- Joined
- Dec 19, 2023
- Messages
- 16
Hi guys,
Been trying to figure out this timer and I'm a bit confused what I'm doing wrong.
So, I've got 4 custom units called Summoner Red/Blue/Green/Black, one timer and a quest. Each time one summoner dies, the timer will stop for a period of time and then continue, part which works as inteded. The issue is when all 4 summoners are dead. When they're all dead, timer stops but the window is still visible and, for some reason, it doesn't run the actions after that or maybe the trigger doesn't run at all? The summoners are defined as a real variable with the number of 4, each time one summoner dies, it goes down by one and when it's less than 1, it should run the trigger with the window close.
I define the Summoner variable in map initialization as Set Summoners = 4.00.
The 7 triggers that I have: Timer Setup, Summoner Dies x4, All Summoners Are Dead
Timer setup:
Trigger BlueS is just to make the summoners run the animation that I need them to.
This is the trigger that doesn't run.
All summoners are dead:
Let me know if you need more information related to the triggers etc.
Thank you,
Ashe
Been trying to figure out this timer and I'm a bit confused what I'm doing wrong.
So, I've got 4 custom units called Summoner Red/Blue/Green/Black, one timer and a quest. Each time one summoner dies, the timer will stop for a period of time and then continue, part which works as inteded. The issue is when all 4 summoners are dead. When they're all dead, timer stops but the window is still visible and, for some reason, it doesn't run the actions after that or maybe the trigger doesn't run at all? The summoners are defined as a real variable with the number of 4, each time one summoner dies, it goes down by one and when it's less than 1, it should run the trigger with the window close.
I define the Summoner variable in map initialization as Set Summoners = 4.00.
The 7 triggers that I have: Timer Setup, Summoner Dies x4, All Summoners Are Dead
Timer setup:
-
Events
-
Unit - A unit enters Region 003 <gen>
-
Conditions
-
(Triggering unit) Equal to Summoner Black 0314 <gen>
-
Actions
-
Countdown Timer - Start TimerSummoning as a One-shot timer that will expire in 3600.00 seconds
-
Set TimerSummoning = (Last started timer)
-
Countdown Timer - Create a timer window for TimerSummoning with title Summoning
-
Set CountdownTimerWindow = (Last created timer window)
-
Events
-
Unit - Summoner Black 0314 <gen> Dies
-
Conditions
-
Actions
-
Set Summoners = (Summoners - 1.00)
-
Countdown Timer - Pause TimerSummoning
-
Trigger - Turn off BlueS <gen>
-
Wait 1200.00 seconds
-
Countdown Timer - Resume TimerSummoning
Trigger BlueS is just to make the summoners run the animation that I need them to.
This is the trigger that doesn't run.
All summoners are dead:
-
Events
-
Time - Every 3.00 seconds of game time
-
Conditions
-
Summoners Less than 1.00
-
Actions
-
Countdown Timer - Destroy CountdownTimerWindow
-
Countdown Timer - Pause TimerSummoning
-
Quest - Display to (All enemies of Player 1 (Red)) the Quest Update message: The summoners have ...
-
Quest - Display to (All enemies of Player 2 (Blue)) the Quest Update message: Your summoners have...
Let me know if you need more information related to the triggers etc.
Thank you,
Ashe