Some help with scripting
-
- 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.
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?
- alterecco
- 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:
Does that work for you?
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>
-
- 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. Wonderful Commonwealth randomly deciding I'm an enemy.
YAY I've never been so happy to see all those green dots in Eridani turn red. Wonderful Commonwealth randomly deciding I'm an enemy.
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?