Heya
I just got a problem with my hero reviving system: It doesn't display the time remaning until the revive of the hero.
My trigger (only in this one is a problem):
Btw: Trigger translated from German (so not perfect equal to true xD)
I hope it's only a little misstake^^
I just got a problem with my hero reviving system: It doesn't display the time remaning until the revive of the hero.
My trigger (only in this one is a problem):
-
Death
-
Events
-
Unit - A unit dies
-
-
Conditions
-
((Dying unit) is a hero) equal to true
-
-
Actions
-
Unit Group - Add (Dying unit) to deathheroes
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Conditions
-
((Owner of (Dying unit)) is an ally of Player 1 (Red)) equal to True
-
-
'THEN'-Actions
-
Players - Add killinggold to (Owner of (Killing unit)) actual gold amount
-
Players - Add (0 - killinggold) to (Owner of (Dying unit)) actual gold amount
-
Game - Display to (All players) the text: ((playernames[(Player number of (Owner of (Killing unit)))] + |cffFFFF00just owned|R ) + (playernames[(Player number of (Owner of (Dying unit)))] + ( |cffFFFF00for|r |cffFFFF00 + ((String(killinggold)) + |r |cffFFFF00gold!!|r))))
-
Set revivaltime[(Player number of (Owner of (Dying unit)))] = (((Real((Hero level of (Dying unit)))) x 3.00) + 5.00)
-
Countdown Timer - Start deathtimer[(Player number of (Owner of (Dying unit)))] as a One-Shot Timer that will expire in revivaltime[(Player number of (Owner of (Dying unit)))] seconds
-
Countdown Timer - Create a timer window for (Last started timer) with title Revive in ..
-
Set revivaltimerwindow[(Player number of (Owner of (Dying unit)))] = (Last created timer window)
-
Countdown Timer - Show (Last created timer window) for (Owner of (Dying unit))
-
Set killinggold = (killinggold + 10)
-
-
Else Actions
-
//the same actions as the "Then - Actions" for now.
-
-
-
-
Btw: Trigger translated from German (so not perfect equal to true xD)
I hope it's only a little misstake^^
Last edited: