Hi
I am just doing a simply 'revive all Heroes in a region' trigger.
To explain in short, the Integer (Variable) will take all Heroes[player number] and revive them at a random point or move other living Heroes to the point.
This is what I've done:
How does this work?
Thanks for taking a look!
I am just doing a simply 'revive all Heroes in a region' trigger.
To explain in short, the Integer (Variable) will take all Heroes[player number] and revive them at a random point or move other living Heroes to the point.
This is what I've done:
-
Set Integer_Roll = 1
-
For each (Integer Integer_Roll) from 1 to PlayerCount, do (Actions)
-

Loop - Actions
-


Set PointDefault = (Random point in Event 2 Heroes Spawn <gen>)
-


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



If - Conditions
-




(Hero[Integer_Roll] is dead) Equal to True
-
-



Then - Actions
-




Hero - Instantly revive Hero[Integer_Roll] at PointDefault, Hide revival graphics
-
-



Else - Actions
-




Unit - Move Hero[Integer_Roll] instantly to PointDefault
-
-
-


Special Effect - Create a special effect at PointDefault using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
-


Special Effect - Destroy (Last created special effect)
-


Camera - Pan camera for (Player(Integer_Roll)) to PointDefault over 0.00 seconds
-


Custom script: call RemoveLocation (udg_PointDefault)
-


Unit - Set life of Hero[Integer_Roll] to 100.00%
-


Unit - Set mana of Hero[Integer_Roll] to 100.00%
-


Unit - Reset ability cooldowns for Hero[Integer_Roll]
-
-
-
Hero - Instantly revive Hero[2] at PointDefault, Hide revival graphics
How does this work?
Thanks for taking a look!







