Reviving Hero Problem

silentgamerz

New Member
Reaction score
0
Trigger:
  • Set team1 = (All allies of Player 1 (Red))
    • Set team2 = (All allies of Player 6 (Orange))


Trigger:
  • reviving heroes
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
    • Actions
      • Unit Group - Add (Dying unit) to revivableheroes
      • Countdown Timer - Start countdowntimer[(Player number of (Owner of (Dying unit)))] as a One-shot timer that will expire in 5.00 seconds


Trigger:
  • reviving heroes Copy
    • Events
      • Time - countdowntimer[1] expires
      • Time - countdowntimer[2] expires
      • Time - countdowntimer[3] expires
      • Time - countdowntimer[4] expires
      • Time - countdowntimer[5] expires
      • Time - countdowntimer[6] expires
      • Time - countdowntimer[7] expires
      • Time - countdowntimer[8] expires
      • Time - countdowntimer[9] expires
      • Time - countdowntimer[10] expires
    • Conditions
    • Actions
      • Unit Group - Pick every unit in revivableheroes and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Remaining time for countdowntimer[(Player number of (Owner of (Picked unit)))]) Less than 1.00
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Owner of (Picked unit)) is in team1) Equal to True
                • Then - Actions
                  • Hero - Instantly revive (Picked unit) at Region8, Show revival graphics
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Owner of (Picked unit)) is in team2) Equal to True
                • Then - Actions
                  • Hero - Instantly revive (Picked unit) at Region7, Show revival graphics
                • Else - Actions
            • Else - Actions



What i want is to revive heroes from team 1 in a region while heroes from team 2 in another region. But whenever i test it heroes from team 2 never revive only heroes from team 1 are revived. :confused::confused::confused:

Edit: I was the only one reviving even if i test it or play it in game.
Edit again: Other heroes were revived once i was revived and their deaths weren't recorded in the multiboard.
 

Dinowc

don't expect anything, prepare for everything
Reaction score
223
are all timers created at map init? I suck at GUI so I don't know how they work there
 

Curo

Why am I still playing this game...?
Reaction score
109
First, use "triggering unit" instead of "dying unit".
Second, remove the unit from revivableheroes after it revives.
Third, make sure your ally properties are set properly, so that the players are actually getting put into the player groups.
Fourth, post the trigger for your multiboard that is supposed to record deaths, but isn't.

@ Dinowc: timers are stored in variables, and started/stopped whenever needed. If that means that they are created at map init, then I guess they are. But that doesn't seem to be a problem here.
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top