Some help with scripting

Freeform discussion about anything related to modding Transcendence.
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

Did you wrap it all in a block like i wrote? If you need an example let me know
Drako Slyith
Fleet Officer
Fleet Officer
Posts: 1036
Joined: Wed Feb 03, 2010 4:28 am
Location: Researching how to make St. Kats star go supernova.
Contact:

I have what is in the code I posted without the parentheses.
Image
Image
Play in over 100 systems in a network. Play the 2011 Mod Of the Year
and the highest rated mod on Xelerus, The Network.
Play the July Mod of the Month, Fellow Pilgrims!
Play My other mods as well
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

OK, like I wrote (a couple of times now), you need to wrap all the code inside the <Invoke> tag in a block (and you can study what block is on it's xelerus page)

So, you would end up with something like:

Code: Select all

<Invoke key="H" installedOnly="true">
  (block nil
    (setq sovlist (list &svPlayer;))
    (setq randomSov1 (random sovlist))
    (setq sovlist2 (list &svCentauriWarlords; &svCommonwealth;))

    (setq randomSov2 (random sovlist2))
    (setq disList   (list 'friend 'neutral 'enemy)
    (setq randomDis (random disList))

    (sovSetDisposition randomSov1 randomSov2 randomDis)
    (sovSetDisposition randomSov2 randomSov1 randomDis)
  )
</Invoke>
Does that work for you?
Drako Slyith
Fleet Officer
Fleet Officer
Posts: 1036
Joined: Wed Feb 03, 2010 4:28 am
Location: Researching how to make St. Kats star go supernova.
Contact:

Oh wow. i can't believe I forget the block nil. That's one of the three or four things I know how to do with script. wow...

YAY I've never been so happy to see all those green dots in Eridani turn red. :D Wonderful Commonwealth randomly deciding I'm an enemy.
Image
Image
Play in over 100 systems in a network. Play the 2011 Mod Of the Year
and the highest rated mod on Xelerus, The Network.
Play the July Mod of the Month, Fellow Pilgrims!
Play My other mods as well
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

Drako Slyith wrote: Wonderful Commonwealth randomly deciding I'm an enemy.
That sounds like fun! :D
Post Reply