HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Countdown Timer Problem...

04-11-2010, 03:59 AM#1
AnarchoGrunt
So I have this countdown timer used triggered every time a hero dies... It works fine except that players 11 and 12 don't have timers for some reason... I spent hours trying to debug said problem but I just can't.. If anyone can help me out, it would be greatly appreciated. Thanks..

The trigger has two parts:

PART 1
Trigger:
HordeHeroDeath
Collapse Events
Unit - A unit Dies
Collapse Conditions
(((Owner of (Dying unit)) is in HordeTeam) Equal to True) and (((Dying unit) is in HeroActiveGroup) Equal to True)
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Collapse Or - Any (Conditions) are true
Collapse Conditions
((Dying unit) is in HeroRogueGroup) Equal to True
((Owner of (Killing unit)) is in (All players)) Equal to False
((Killing unit) belongs to an ally of (Owner of (Dying unit))) Equal to True
(Owner of (Killing unit)) Equal to Neutral Hostile
Collapse Then - Actions
Skip remaining actions
Collapse Else - Actions
Do nothing
Game - Display to (All players) the text: (((PlayerC[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + |r)) + has killed ) + ((PlayerC[(Player number of (Owner of (Dying unit)))] + ((Name of (Owner of (Dying unit))) + |r)) + (! Each player of |cffFF0202The Allian
Player Group - Pick every player in AllianceTeam and do (Player - Add (150 + (10 x (Level of (Dying unit)))) to (Picked player) Current gold)
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Collapse Or - Any (Conditions) are true
Collapse Conditions
(Owner of (Killing unit)) Equal to Player 1 (Red)
(Owner of (Killing unit)) Equal to Player 7 (Green)
(Owner of (Killing unit)) Equal to Neutral Hostile
(Owner of (Killing unit)) Equal to Neutral Victim
(Owner of (Killing unit)) Equal to Neutral Extra
(Owner of (Killing unit)) Equal to Neutral Passive
Collapse Then - Actions
Do nothing
Collapse Else - Actions
Set PlayerKills[(Player number of (Owner of (Killing unit)))] = (PlayerKills[(Player number of (Owner of (Killing unit)))] + 1)
Multiboard - Set the text for GameTable item in column 2, row GameTablePlayerNumber[(Player number of (Owner of (Killing unit)))] to ( + (String(PlayerKills[(Player number of (Owner of (Killing unit)))])))
Set PlayerDeaths[(Player number of (Owner of (Dying unit)))] = (PlayerDeaths[(Player number of (Owner of (Dying unit)))] + 1)
Multiboard - Set the text for GameTable item in column 3, row GameTablePlayerNumber[(Player number of (Owner of (Dying unit)))] to ( + (String(PlayerDeaths[(Player number of (Owner of (Dying unit)))])))
Multiboard - Set the text for GameTable item in column 4, row GameTablePlayerNumber[(Player number of (Owner of (Dying unit)))] to |cffFF0000Dead|r
Trigger - Run HeroMasterRevive <gen> (ignoring conditions)

PART 2
Trigger:
HeroMasterRevive
Events
Conditions
Collapse Actions
If (((Dying unit) is dead) Equal to False) then do (Skip remaining actions) else do (Do nothing)
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(ModeFastHero Equal to False) and (ModeInstantHero Equal to False)
Collapse Then - Actions
Countdown Timer - Create a timer window for ReviveTimer[(Player number of (Owner of (Dying unit)))] with title ((PlayerC[(Player number of (Owner of (Dying unit)))] + (Name of (Owner of (Dying unit)))) + |r:)
Countdown Timer - Start ReviveTimer[(Player number of (Owner of (Dying unit)))] as a One-shot timer that will expire in (2.00 x (Real((Level of (Dying unit))))) seconds
Set ReviveWindow[(Player number of (Owner of (Dying unit)))] = (Last created timer window)
Countdown Timer - Show ReviveWindow[(Player number of (Owner of (Dying unit)))] for (Owner of (Dying unit))
Wait (2.00 x (Real((Level of (Dying unit))))) seconds
Collapse Else - Actions
Do nothing
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
ModeFastHero Equal to True
Collapse Then - Actions
Countdown Timer - Create a timer window for ReviveTimer[(Player number of (Owner of (Dying unit)))] with title ((PlayerC[(Player number of (Owner of (Dying unit)))] + (Name of (Owner of (Dying unit)))) + |r:)
Countdown Timer - Start ReviveTimer[(Player number of (Owner of (Dying unit)))] as a One-shot timer that will expire in 15.00 seconds
Set ReviveWindow[(Player number of (Owner of (Dying unit)))] = (Last created timer window)
Countdown Timer - Show ReviveWindow[(Player number of (Owner of (Dying unit)))] for (Owner of (Dying unit))
Wait 15.00 seconds
Collapse Else - Actions
Do nothing
If (((Dying unit) is dead) Equal to False) then do (Skip remaining actions) else do (Do nothing)
Multiboard - Set the text for GameTable item in column 4, row GameTablePlayerNumber[(Player number of (Owner of (Dying unit)))] to |cff00C000Alive|r
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
((Owner of (Dying unit)) is in AllianceTeam) Equal to True
Collapse Then - Actions
Camera - Pan camera for (Owner of (Dying unit)) to (Center of HeroSummonAreaAlliance <gen>) over 0.00 seconds
Hero - Instantly revive (Dying unit) at (Center of HeroSummonAreaAlliance <gen>), Show revival graphics
Selection - Select (Dying unit) for (Owner of (Dying unit))
Collapse Else - Actions
Camera - Pan camera for (Owner of (Dying unit)) to (Center of HeroSummonAreaHorde <gen>) over 0.00 seconds
Hero - Instantly revive (Dying unit) at (Center of HeroSummonAreaHorde <gen>), Show revival graphics
Selection - Select (Dying unit) for (Owner of (Dying unit))
04-12-2010, 10:15 AM#2
MasterofSickness
I think you should attach your map.
You have so many conditions with variables which are certainly predeclared in other triggers we can not see...
04-12-2010, 12:01 PM#3
Anitarf
Make sure that your ReviveTimer array has the correct size (12) in the variable declaration window.
04-17-2010, 04:56 AM#4
AnarchoGrunt
Quote:
Originally Posted by Anitarf
Make sure that your ReviveTimer array has the correct size (12) in the variable declaration window.

THANKS! Works perfectly now! :D