Kelv
TH.net Regular
- Reaction score
- 7
My flickering text problem is in my multiboard. When a hero dies, sometimes the text wont be constant, for example it will say 55 seconds remaining, and then its blank, and then it says 53. Sometimes however, it is constant.
Here are the triggers involved in that.
Now, I believe my other problem is much more simpler but I wanted to make sure. I wont post the whole trigger just because it affects more than one unit. So here is the trigger.
The event is every one second. If the unit is dead, is that why this ghost is haunting me by floating above where he usually is? If so, I can solve that easily, I was just wondering.
Here are the triggers involved in that.
Code:
Revive Hero
Events
Unit - A unit Dies
Conditions
(((Dying unit) is in Ally_Heroes) Equal to True) or (((Dying unit) is in Horde_Heroes) Equal to True)
Actions
Unit Group - Add (Dying unit) to RevivableHeroes
Set TempReal = (((Real((Hero level of (Dying unit)))) x 5.00) + 5.00)
Countdown Timer - Start ReviveTimers[(Player number of (Owner of (Dying unit)))] as a One-shot timer that will expire in TempReal seconds
Code:
Tally Deaths
Events
Time - Every 1.00 seconds of game time
Conditions
(RevivableHeroes is empty) Equal to False
Actions
Unit Group - Pick every unit in RevivableHeroes and do (Actions)
Loop - Actions
Multiboard - Set the text for (Last created multiboard) item in column 2, row Multiboard_Spots[(Player number of (Owner of (Picked unit)))] to (String((Integer((Remaining time for ReviveTimers[(Player number of (Owner of (Picked unit)))])))))
Now, I believe my other problem is much more simpler but I wanted to make sure. I wont post the whole trigger just because it affects more than one unit. So here is the trigger.
Code:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units within 512.00 of (Center of Zig 1 Boss <gen>) matching (((Matching unit) is in Ally_Heroes) Equal to True))) Greater than 0
Then - Actions
Unit - Move PitLord[1] instantly to (Center of Zig 1 Boss <gen>)
Unit - Unhide PitLord[1]
Else - Actions
Unit - Hide PitLord[1]
Unit - Move PitLord[1] instantly to (Center of (Playable map area))
Unit - Set life of PitLord[1] to 100.00%
Unit - Set mana of PitLord[1] to 100.00%
The event is every one second. If the unit is dead, is that why this ghost is haunting me by floating above where he usually is? If so, I can solve that easily, I was just wondering.