Yoshii
New Member
- Reaction score
- 74
My map has different mode of play; ffa,team and grand.When a hero die in ffa and team he revive 2sec later at a certain region and this is working fine however in grand mode this cant work as I want the heroes to revive after everyone is dead but 1.
^^ this is for if timer expire it pick every hero and transport them all.
How do i revive all the dead hero that died while in battle?and only revive them if timer expire.and how can i end the round if there is only 1 living hero? i tryed "pick every unit in region duel and Hero revive picked unit and other thing and it didnt work at all.
Code:
EndDuel
Events
Time - Dueltime expires
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
ROUNDDUEL Equal to 3
Then - Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player - Add 1000 to (Picked player) Current gold
Player - Add 1000 to (Picked player) Current lumber
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
ROUNDDUEL Equal to 2
Then - Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player - Add 1000 to (Picked player) Current gold
Player - Add 1000 to (Picked player) Current lumber
Else - Actions
Set ROUNDDUEL = (ROUNDDUEL + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
ROUNDDUEL Equal to 1
Then - Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player - Add 1000 to (Picked player) Current gold
Player - Add 1000 to (Picked player) Current lumber
Else - Actions
Unit Group - Pick every unit in (Units in Duelregion <gen>) and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to (Center of Herostartarea <gen>)
Camera - Pan camera as necessary for (Owner of (Picked unit)) to (Position of (Picked unit)) over 0.00 seconds
How do i revive all the dead hero that died while in battle?and only revive them if timer expire.and how can i end the round if there is only 1 living hero? i tryed "pick every unit in region duel and Hero revive picked unit and other thing and it didnt work at all.