Code: Select all
(setq charonStationsList (list &stCharonPirateOutpost3; &stCharonPirateOutpost2a;))
Code: Select all
(setq charonStationsList (list &stCharonPirateOutpost3; &stCharonPirateOutpost2a;))
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?
Code: Select all
<OnCreate>
(block nil
(setq theObject gSource)
(setq charonStationsList (list &stCharonPirateOutpost3; &stCharonPirateOutpost2a;))
(sysAddObjRecurringTimerEvent 1000 gSource 'Build)
(setq CharonStationRan (random charonStationsList))
)
</OnCreate>
<Build>
(sysCreateStation CharonStationRan (sysVectorPolarOffset (objGetPosition theObject) (random 0 359) (random 50 400)))
</Build>
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?
Code: Select all
<OnCreate>
(block nil
(sysAddObjRecurringTimerEvent 1000 gSource 'Build)
(objSetData gSource 'CharonStationRan (random (list &stCharonPirateOutpost3; &stCharonPirateOutpost2a;)))
)
</OnCreate>
<Build>
(sysCreateStation (objGetData gSource 'CharonStationRan) (sysVectorPolarOffset (objGetPosition theObject) (random 0 359) (random 50 400)))
</Build>
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?
Code: Select all
(block nil
(setq foo 1)
)
Code: Select all
(block (foo)
(setq foo 1)
)
Code: Select all
(block nil
(objSetData gPlayerShip "foo" 1)
)
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?
Code: Select all
<OnCreate>
(block (charonStationsList)
(setq theObject gSource)
(sysAddObjRecurringTimerEvent 1000 gSource 'Build)
)
</OnCreate>
<Build>
(sysCreateStation (random (list &stCharonPirateOutpost3; &stCharonPirateOutpost2a;)) (sysVectorPolarOffset (objGetPosition theObject) (random 0 359) (random 50 400)))
</Build>
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?
Code: Select all
<OnCreate>
(block nil
(sysAddObjRecurringTimerEvent 1000 gSource 'Build)
)
</OnCreate>
<Build>
(block (station)
(setq station (random (list &stCharonPirateOutpost3; &stCharonPirateOutpost2a;)))
(sysCreateStation station (sysVectorPolarOffset (objGetPosition gSource) (random 0 359) (random 50 400)))
</Build>
I saw on Xelerus that it did not recognize gSource. But if it works, than I'm all for reducing lines!alterecco wrote:The main difference is that gSource can be used everywhere. It is a global value that will always represent the object the event is running on.
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?
I took that to mean it couldn't take gSource.Note: unlike sysCreateShip, this function will not take the position of a spaceobject given to it. Use (objGetPosition theObject) if you need that functionality.
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?