Vylatin
New Member
- Reaction score
- 32
I'm not very good with timers, so I want you to check I did everything right with these triggers below This revive system is supposed to revive all dead heroes every 90 seconds of game time.
Trigger:
- Start Timer
- Events
- Time - Elapsed game time is 0.01 seconds
- Conditions
- Actions
- Countdown Timer - Create a timer window for Revive_Timer with title Ressurection Timer
- Set ReviveWindow = (Last created timer window)
- Countdown Timer - Show ReviveWindow
- Countdown Timer - Start Revive_Timer as a Repeating timer that will expire in 90.00 seconds
- Events
Trigger:
- Add unit to grp
- Events
- Unit - A unit Dies
- Conditions
- ((Dying unit) is A Hero) Equal to True
- Actions
- Unit Group - Add (Dying unit) to Revive_Group
- Events
Trigger:
- Revive Timer
- Events
- Time - Revive_Timer expires
- Conditions
- Actions
- Unit Group - Pick every unit in Revive_Group and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Owner of (Picked unit)) is in PlayersRed) Equal to True
- Then - Actions
- Hero - Instantly revive (Picked unit) at (Center of Red Revive <gen>), Show revival graphics
- Unit Group - Remove (Picked unit) from Revive_Group
- Else - Actions
- Hero - Instantly revive (Picked unit) at (Center of Blue Revive <gen>), Show revival graphics
- Unit Group - Remove (Picked unit) from Revive_Group
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Unit Group - Pick every unit in Revive_Group and do (Actions)
- Events