ghidorah5464
G
ghidorah5464
in the search for illidan campaign in frozen throne the units are automatically trained and go into battle on their own. are there triggers that can make that happen on a custom map?
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.
Spawn

Events


Time - Every 30.00 seconds of game time

Conditions

Actions


Set PointVariable[0] = (Center of Your base <gen>)


Set PointVariable[1] = (Center of Enemy Base <gen>)


For each (Integer A) from 1 to 5, do (Actions)



Loop - Actions




Unit - Create 1 Footman for Player 1 (Red) at PointVariable[0] facing Default building facing degrees




Unit - Order (Last created unit) to Attack-Move To PointVariable[1]


Custom script: call RemoveLocation(udg_PointVariable[0])


Custom script: call RemoveLocation(udg_PointVariable[1])
Respawn

Events


Time - Every 12.00 seconds of game time

Conditions

Actions


Set XPoint = (Position of Guard Tower 0021 <gen>)


Set YPoint = (Random point in Right Top <gen>)


Unit - Create 2 Soldier for Player 10 (Light Blue) at XPoint facing (Y of YPoint) degrees


Unit - Order (Last created unit) to Attack-Move To YPoint


Unit Group - Pick every unit in (Units owned by Player 10 (Light Blue) of type UnitAttacking) and do (Unit - Order (Picked unit) to Attack-Move To YPoint)


Custom script: call RemoveLocation(udg_XPoint)


Custom script: call RemoveLocation(udg_YPoint)
Unit - Create 2 Soldier for Player 10 (Light Blue) at XPoint facing (Y of YPoint) degrees
Unit - Order (Last created unit) to Attack-Move To YPoint
Unit - Create 1 Soldier for Player 10 (Light Blue) at XPoint facing (Y of YPoint) degrees
Unit - Order (Last created unit) to Attack-Move To YPoint
Unit - Create 1 Soldier for Player 10 (Light Blue) at XPoint facing (Y of YPoint) degrees
Unit - Order (Last created unit) to Attack-Move To YPoint
aaa

Events


Time - Every 30.00 seconds of game time

Conditions

Actions


Unit Group - Pick every unit in (Units owned by Player 1 (Red) matching ((Unit-type of (Matching unit)) Equal to Barracks)) and do (Actions)



Loop - Actions




Unit - Order (Picked unit) to train/upgrade to a Footman




Unit Group - Pick every unit in (Units owned by Player 1 (Red) matching ((Unit-type of (Matching unit)) Equal to Arcane Sanctum)) and do (Actions)





Loop - Actions






Unit - Order (Picked unit) to train/upgrade to a Priest






Unit Group - Pick every unit in (Units owned by Player 1 (Red) matching ((Unit-type of (Matching unit)) Equal to Gryphon Aviary)) and do (Actions)







Loop - Actions








Unit - Order (Picked unit) to train/upgrade to a Gryphon Rider
bbb

Events


Unit - A unit Finishes training a unit

Conditions

Actions


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



If - Conditions




(Unit-type of (Trained unit)) Equal to Footman



Then - Actions




Unit - Order (Trained unit) to Attack-Move To (Center of Region 000 <gen>)




Unit - Order (Triggering unit) to train/upgrade to a Footman



Else - Actions


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



If - Conditions




(Unit-type of (Trained unit)) Equal to Priest



Then - Actions




Unit - Order (Trained unit) to Attack-Move To (Center of Region 000 <gen>)




Unit - Order (Triggering unit) to train/upgrade to a Priest



Else - Actions


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



If - Conditions




(Unit-type of (Trained unit)) Equal to Gryphon Rider



Then - Actions




Unit - Order (Trained unit) to Attack-Move To (Center of Region 000 <gen>)




Unit - Order (Triggering unit) to train/upgrade to a Gryphon Rider



Else - Actions
It's because you do
It orders the second unit to attack-move.
Unit - Create 2 Soldier for Player 10 (Light Blue) at XPoint facing (Y of YPoint) degrees
Unit - Order (Last created unit) to Attack-Move To YPoint
Make it like this:
Unit - Create 1 Soldier for Player 10 (Light Blue) at XPoint facing (Y of YPoint) degrees
Unit - Order (Last created unit) to Attack-Move To YPoint
Unit - Create 1 Soldier for Player 10 (Light Blue) at XPoint facing (Y of YPoint) degrees
Unit - Order (Last created unit) to Attack-Move To YPoint
