Sorry for my english
How to make trigger like this
I have a barrel, when im attacking it and there is no nearby enemy, the attacking hero will back to the base
but
if there is nearby enemy, the barrel will kill everyunit nearby included my hero
I need a trigger guys, dont give me any tips please coz i tried it many times with if/then/else still failed
but if its too complicated, then giving a hints is okay
See my trigger
when there is nearby enemy, my hero death at the base and the camera pan to the base too
it supposed to be death at current location and camera stay still
How to make trigger like this
I have a barrel, when im attacking it and there is no nearby enemy, the attacking hero will back to the base
but
if there is nearby enemy, the barrel will kill everyunit nearby included my hero
I need a trigger guys, dont give me any tips please coz i tried it many times with if/then/else still failed
but if its too complicated, then giving a hints is okay
See my trigger
-
Barrel explode
-
Events
-
Unit - BarrelRemove 0011 <gen> Is attacked
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in (Units within 1500.00 of (Center of Region 007 <gen>)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Picked unit)) Equal to Watery Minion
-
-
Then - Actions
-
Unit - Kill (Picked unit)
-
Unit - Kill (Attacking unit)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Picked unit)) Equal to Adventurer
-
-
Then - Actions
-
Unit - Move (Attacking unit) instantly to (Center of Region 004 <gen>)
-
Selection - Select (Attacking unit)
-
Camera - Pan camera for Player 1 (Red) to (Center of Region 004 <gen>) over 0.00 seconds
-
-
Else - Actions
-
-
-
-
-
-
-
when there is nearby enemy, my hero death at the base and the camera pan to the base too
it supposed to be death at current location and camera stay still