- Joined
- Dec 1, 2010
- Messages
- 346
-
unload Homeport
-

Events
-


Time - Every 0.50 seconds of game time
-
-

Conditions
-

Actions
-


Unit Group - Pick every unit in tradePorts and do (Actions)
-



Loop - Actions
-




Set VariableSet portPos = (Position of (Picked unit))
-




Unit Group - Pick every unit in (Units within 150.00 of portPos.) and do (Actions)
-





Loop - Actions
-






-------- If tradeship and going to homeport --------
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Unit-type of (Picked unit)) Equal to Transport Ship
-








(Load 3 of (Key (Picked unit).) from hashtable[3].) Equal to 2
-








(Load 3 of (Key (Picked unit).) from hashtable[3].) Equal to 2
-
-







Then - Actions
-







Else - Actions
-
-






-------- If tradeship and going to destination port --------
-
-
-
-
-
-
I was wondering if this actually works. Since i'm using GUI, when i refer to 'picked unit' will it refer to the unit picked in the inner 'pick every units in' function?
And if so, can i just refer to the picked unit from the outer loop by setting it to a variable.?


