- Joined
- May 20, 2008
- Messages
- 138
First, there is an initialization trigger, that stores each unit in a certain area in an unit group and also each units position in the map in a Point array (yeah, thats the theory)
)

-
Akilzon gauntlet init
-
Events
-
Time - Elapsed game time is 1.00 seconds
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in Akilzon gauntlet pick units <gen> owned by Player 12 (Brown)) and do (Actions)
-
Loop - Actions
-
Unit Group - Add (Picked unit) to Akilzon_gauntlet_units
-
-
-
Unit Group - Pick every unit in Akilzon_gauntlet_units and do (Actions)
-
Loop - Actions
-
Set Akilzon_gauntlet_unit_integer = (Akilzon_gauntlet_unit_integer + 1)
-
Set Akilzon_gauntlet_unit_position[Akilzon_gauntlet_unit_integer] = (Position of (Picked unit))
-
Unit - Set the custom value of (Picked unit) to Akilzon_gauntlet_unit_integer
-
-
-
-
-
Akilzon gauntlet win
-
Events
-
Unit - Amani'shi Tempest 0037 <gen> Dies
-
-
Conditions
-
Actions
-
Set Akilzon_gauntlet_inProgress = False
-
Countdown Timer - Start Akilzon_gauntlet_respawntimer as a One-shot timer that will expire in 10.00 seconds
-
Countdown Timer - Create a timer window for (Last started timer) with title Time until respawn
-
-
-
Akilzon gauntlet respawn
-
Events
-
Time - Akilzon_gauntlet_respawntimer expires
-
-
Conditions
-
Actions
-
Trigger - Turn on Akilzon gauntlet start <gen>
-
Unit - Move Akilzon_gauntlet_Lookout instantly to (Center of Akilzon gauntlet lookout point <gen>)
-
Unit Group - Pick every unit in Akilzon_gauntlet_units and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is dead) Equal to True
-
-
Then - Actions
-
Unit - Create 1 (Unit-type of (Picked unit)) for Player 12 (Brown) at (Center of akilzon cree <gen>) facing Default building facing degrees
-
Unit - Set the custom value of (Last created unit) to (Custom value of (Picked unit))
-
Unit Group - Add (Last created unit) to Akilzon_gauntlet_units
-
Unit Group - Remove (Picked unit) from Akilzon_gauntlet_units
-
-
Else - Actions
-
-
-
-
Unit Group - Pick every unit in Akilzon_gauntlet_units and do (Actions)
-
Loop - Actions
-
Unit - Move (Picked unit) instantly to Akilzon_gauntlet_unit_position[(Custom value of (Picked unit))], facing Default building facing degrees
-
-
-
-
Last edited by a moderator: