- Joined
- Mar 2, 2010
- Messages
- 3,069
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Untitled Trigger 001

Events


Time - Every 2.00 seconds of game time

Conditions

Actions


Unit Group - Pick every unit in (Units of type Basal Golem created from blood forge) and do (Actions)



Loop - Actions




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





If - Conditions






Or - Any (Conditions) are true







Conditions








(Current order of (Picked unit)) Equal to (Order(smart))








(Current order of (Picked unit)) Equal to (Order(attack))








(Current order of (Picked unit)) Equal to (Order(move))








(Current order of (Picked unit)) Equal to (Order(cloudoffog))








(Current order of (Picked unit)) Equal to (Order(charm))





Then - Actions






Do nothing





Else - Actions






Unit - Order (Picked unit) to Night Elf Druid Of The Claw - Bear Form






Unit - Order (Picked unit) to Night Elf Druid Of The Claw - Night Elf Form
Melee Initialization Edit

Events


Map initialization

Conditions

Actions


-------- Your existing actions are still there in the actual map --------


-------- I just removed them from this post to show you my setup --------


-------- --------


-------- --------


-------- --------


-------- Settting up arrays to make other triggers more efficient --------


Set Foundation[1] = foundation8 <gen>


Set Foundation[2] = foundation14 <gen>


Set Foundation[3] = foundation10 <gen>


Set Foundation[4] = foundation22 <gen>


Set Foundation[5] = foundation16 <gen>


Set Foundation[6] = Foundation1 <gen>


Set Foundation[7] = foundation7 <gen>


Set Foundation[8] = foundation19 <gen>


Set Foundation[9] = No region


Set Foundation[10] = foundation17 <gen>


Set StartingRace[1] = Human


Set StartingRace[2] = Orc


Set StartingRace[3] = Undead


Set StartingRace[4] = Night Elf


Set StartingUnitTypes[1] = Barracks custom


Set StartingUnitTypes[2] = Temple custom


Set StartingUnitTypes[3] = Crypt custom


Set StartingUnitTypes[4] = Arbor Lodge
Unit Creation Edit

Events


Time - Elapsed game time is 0.50 seconds

Conditions

Actions


-------- I created 2 integer variables for the loops: --------


-------- TempIntegerPlayer and TempIntegerRace --------


-------- --------


-------- --------


-------- --------


For each (Integer TempIntegerPlayer) from 1 to 10, do (Actions)



Loop - Actions




For each (Integer TempIntegerRace) from 1 to 4, do (Actions)





Loop - Actions






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







If - Conditions








(Race of (Player(TempIntegerPlayer))) Equal to StartingRace[TempIntegerRace]







Then - Actions








Set TempPoint = (Center of Foundation[TempIntegerPlayer])








Unit - Create 1 StartingUnitTypes[TempIntegerRace] for (Player(TempIntegerPlayer)) at TempPoint facing Default building facing degrees








Unit Group - Add (Last created unit) to CampSite[TempIntegerPlayer]








Custom script: call RemoveLocation(udg_TempPoint)







Else - Actions
