Reviving heroes after duel time(gladiator mode)

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.
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
^^ 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.
 

emjlr3

Change can be a good thing
Reaction score
395
if the units are dead how can you pink them to move them?

try adding them to variable arrays when they die, and reviivng all of them when wanted at region wanted
 

Yoshii

New Member
Reaction score
74
emjlr3 said:
if the units are dead how can you pink them to move them?

try adding them to variable arrays when they die, and reviivng all of them when wanted at region wanted

I made a unit array and it work fine althought its kinda long to make 1 for each color like this
Code:
Diegrand
    Events
        Unit - A unit Dies
    Conditions
        ((Dying unit) is A Hero) Equal to True
        (Owner of (Dying unit)) Not equal to Neutral Hostile
    Actions
  Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            (Owner of (Triggering unit)) Equal to Player 4 (Purple)
        Then - Actions
            Set DeadHero[2] = (Dying unit)
        Else - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            (Owner of (Triggering unit)) Equal to Player 10 (Light Blue)
        Then - Actions
            Set DeadHero[1] = (Dying unit)
        Else - Actions
Code:
Unit Group - Pick every unit in (Units in Duelregion <gen> matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)
    Loop - Actions
        Hero - Instantly revive DeadHero[1] at (Center of Herostartarea <gen>), Hide revival graphics
Hero - Instantly revive DeadHero[2] at (Center of Herostartarea <gen>), Hide revival graphics
        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
 

Yoshii

New Member
Reaction score
74
got an idea to end duel when there is only 1 hero left?instead of timer expire? i tryed many thing and no success
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top