- Joined
- Jun 16, 2008
- Messages
- 333
I made trigger for a timer but it isn't working right. When a unit dies it starts a timer and when it is finished he revives but it wont work... here is the trigger...
-
Alliance Grave Yard
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
Actions
-
Set Alliance_grp = (All allies of Player 2 (Blue))
-
Player Group - Pick every player in Alliance_grp and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked player) slot status) Equal to Is playing
-
((Picked player) controller) Equal to User
-
-
Then - Actions
-
Countdown Timer - Create a timer window for AllianceTimer with title ((Name of (Owner of (Dying unit))) + <Empty String>)
-
Countdown Timer - Start AllianceTimer as a One-shot timer that will expire in 30.00 seconds
-
Countdown Timer - Show (Last created timer window) for (Picked player)
-
Game - Display to Alliance_grp the text: ((Name of (Owner of (Dying unit))) + has just died. )
-
Set AllianceHero[(Player number of (Owner of (Dying unit)))] = (Dying unit)
-
Set AllianceTimerWindow[(Player number of (Owner of (Dying unit)))] = (Last created timer window)
-
-
Else - Actions
-
-
-
-
Custom script: call DestroyForce(udg_Alliance_grp)
-
-
-
Alliance Timer
-
Events
-
Time - AllianceTimer expires
-
-
Conditions
-
Actions
-
Set Alliance_Loc = (Center of Alliance GraveYard <gen>)
-
Countdown Timer - Destroy AllianceTimerWindow[(Player number of (Owner of (Dying unit)))]
-
Hero - Instantly revive AllianceHero[(Player number of (Owner of (Dying unit)))] at Alliance_Loc, Show revival graphics
-
Custom script: call RemoveLocation(udg_Alliance_Loc)
-
-