guys i was working on revival system allmost 100% of the system works except the timer it shows. I make 2 triggers. The first one is for force 1 and second for force 2.when i make the first one it goes very good:
First i want just one timer. second to work to go from 60 - 0. Can you see the leak i made?
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
((Owner of (Killing unit)) controller) Not equal to User
-
((Owner of (Triggering unit)) controller) Equal to User
-
((Triggering unit) is A Hero) Equal to True
-
((Owner of (Triggering unit)) is in FightingPvPGroup) Equal to False
-
-
Actions
-
Game - Display to (Player group((Owner of (Triggering unit)))) for 8.00 seconds the text: |cffffcc00You will ...
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of (Triggering unit)) Less than or equal to 40
-
-
Then - Actions
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Triggering unit)) Equal to Player 1 (Red)
-
-
Then - Actions
-
Countdown Timer - Start TimerRed as a One-shot timer that will expire in 60.00 seconds
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Triggering unit)) Equal to Player 2 (Blue)
-
-
Then - Actions
-
Countdown Timer - Start TimerBlue as a One-shot timer that will expire in 60.00 seconds
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Triggering unit)) Equal to Player 3 (Teal)
-
-
Then - Actions
-
Countdown Timer - Start TimerTeal as a One-shot timer that will expire in 60.00 seconds
-
-
Else - 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
-
Countdown Timer - Start TimerPurple as a One-shot timer that will expire in 60.00 seconds
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Triggering unit)) Equal to Player 5 (Yellow)
-
-
Then - Actions
-
Countdown Timer - Start TimerYellow as a One-shot timer that will expire in 60.00 seconds
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Triggering unit)) Equal to Player 6 (Orange)
-
-
Then - Actions
-
Countdown Timer - Start TimerOrange as a One-shot timer that will expire in 60.00 seconds
-
-
Else - Actions
-
-
Countdown Timer - Create a timer window for (Last started timer) with title (Name of (Triggering player))
-
Set RevivalTimerWindow[(Player number of (Owner of (Triggering unit)))] = (Last created timer window)
-
Countdown Timer - Show RevivalTimerWindow[(Player number of (Owner of (Triggering unit)))]
-
Wait 60.00 game-time seconds
-
Set ModeGroup = (Units owned by (Owner of (Triggering unit)) matching (((Matching unit) is A Hero) Equal to True))
-
Unit Group - Pick every unit in ModeGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is dead) Equal to True
-
-
Then - Actions
-
Hero - Instantly revive (Picked unit) at (Center of DOBRI POCETOK <gen>), Show revival graphics
-
Unit - Set mana of (Picked unit) to 80.00%
-
Unit - Make (Picked unit) Vulnerable
-
Selection - Select (Picked unit) for (Owner of (Triggering unit))
-
Camera - Pan camera for (Owner of (Picked unit)) to (Center of DOBRI POCETOK <gen>) over 0.00 seconds
-
-
Else - Actions
-
-
-
-
Custom script: call DestroyGroup (udg_ModeGroup)
-
Countdown Timer - Destroy RevivalTimerWindow[(Player number of (Owner of (Triggering unit)))]
-
If (((Owner of (Triggering unit)) is in NOSAVING) Equal to True) then do (Player Group - Remove (Owner of (Triggering unit)) from NOSAVING) else do (Do nothing)
-
First i want just one timer. second to work to go from 60 - 0. Can you see the leak i made?