Dameon
"All the power in the world resides in the eyes"
- Reaction score
- 127
Hi guys, I got a weird problim here, I created a reincarnation spell for my mage hero and for some reason it glitches my revive trigger, so this is what happens, it creates the timer, the timer counts down and hit's 0 then the window is removed, but thats it, the hero is never revived. Now if I use another hero then the revive trigger works, just not with the mage.
The reincarnation is based off reincarnation, it has a 0 sec cast time and a 2 sec revival wait with a 30 sec cooldown.
Here is the trigger.
The reincarnation is based off reincarnation, it has a 0 sec cast time and a 2 sec revival wait with a 30 sec cooldown.
Here is the trigger.
Code:
Hero Revive
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
-------- Revival Timer --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Then - Actions
Game - Display to (All players) the text: ((Name of (Owner of (Triggering unit))) + 's Hero Has Fallen!)
Countdown Timer - Start Main_Timer[(Player number of (Owner of (Triggering unit)))] as a One-shot timer that will expire in Real_Timers[(Player number of (Owner of (Triggering unit)))] seconds
Countdown Timer - Create a timer window for Main_Timer[(Player number of (Owner of (Triggering unit)))] with title ((Name of (Owner of (Triggering unit))) + 's Hero Revival In )
Set Main_TW[(Player number of (Owner of (Triggering unit)))] = (Last created timer window)
Else - Actions
Wait Real_Timers[(Player number of (Owner of (Triggering unit)))] seconds
-------- Hero Revival --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Then - Actions
Countdown Timer - Destroy Main_TW[(Player number of (Owner of (Triggering unit)))]
For each (Integer Main_Interger[3]) from 1 to 2, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) is in Team[Main_Interger[3]]) Equal to True
Then - Actions
Hero - Instantly revive (Triggering unit) at Point_Field[Main_Interger[3]], Hide revival graphics
Camera - Pan camera for (Owner of (Triggering unit)) to Point_Field[Main_Interger[3]] over 3.00 seconds
Game - Display to (All players) the text: ((Name of (Owner of (Triggering unit))) + 's Hero Has Been Revived!)
Else - Actions
Else - Actions