Bloodydood
New Member
- Reaction score
- 14
Working on a hero arena and it seems my clock won't go in sync with the countdown timer for duels.
I've filtered the initialization trigger to just what affects the actual clock trigger.
And here's the actual clock trigger, (Initially Off)
Variable used: Time (Integer Array (6))
And yes I set up the clock to be shown as the Multiboard title, (It was a huge pain to set it up correctly last night).
Here's how I have the countdown timer set up (Filtered out everything to do with the actual duel)
I have an alternative to just warn players of the upcoming duel in x seconds, wait x seconds, and then go on with the duel.
I've filtered the initialization trigger to just what affects the actual clock trigger.
Trigger:
- Initialization
- Events
- Map initialization
- Conditions
- Actions
- Wait 1.00 seconds
- Trigger - Turn on Clock <gen>
- Trigger - Run Time <gen> (ignoring conditions)
- Events
And here's the actual clock trigger, (Initially Off)
Variable used: Time (Integer Array (6))
Trigger:
- Clock
- Events
- Map initialization
- Conditions
- Actions
- Wait 1.00 seconds
- Set Time[1] = (Time[1] + 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Time[1] Greater than or equal to 10
- Then - Actions
- Set Time[1] = 0
- Set Time[2] = (Time[2] + 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Time[2] Greater than or equal to 6
- Then - Actions
- Set Time[2] = 0
- Set Time[3] = (Time[3] + 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Time[3] Greater than or equal to 10
- Then - Actions
- Set Time[3] = 0
- Set Time[4] = (Time[4] + 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Time[4] Greater than or equal to 6
- Then - Actions
- Set Time[4] = 0
- Set Time[5] = (Time[5] + 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Time[5] Greater than or equal to 10
- Then - Actions
- Set Time[5] = 0
- Set Time[6] = (Time[6] + 1)
- Else - Actions
- If - Conditions
- Else - Actions
- If - Conditions
- Else - Actions
- If - Conditions
- Else - Actions
- If - Conditions
- Else - Actions
- If - Conditions
- Multiboard - Change the title of Multiboard to (Time Played: |cffffffff + ((String(Time[6])) + ((String(Time[5])) + <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> + ((String(Time[4])) + ((String(Time[3])) + <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> + ((String(Time[2])) + ((String(Time[1])) + |r)))))))))
- Trigger - Run (This trigger) (ignoring conditions)
- Events
And yes I set up the clock to be shown as the Multiboard title, (It was a huge pain to set it up correctly last night).
Here's how I have the countdown timer set up (Filtered out everything to do with the actual duel)
Trigger:
- Timer
- Events
- Time - Elapsed game time is 10.00 seconds
- Conditions
- Actions
- Trigger - Turn off (This trigger)
- Countdown Timer - Create a timer window for Temp_Timer with title Duel in:
- Set Temp_TimerWindow = (Last created timer window)
- Countdown Timer - Show Temp_TimerWindow
- Countdown Timer - Start Temp_Timer as a One-shot timer that will expire in 590.00 seconds
- Events
Trigger:
- Timer Expire
- Events
- Time - Temp_Timer expires
- Conditions
- Actions
- Countdown Timer - Destroy Temp_TimerWindow
- Trigger - Turn on Timer 2 <gen>
- Events
Trigger:
- Timer 2
- Events
- Unit - A unit Dies
- Conditions
- And - All (Conditions) are true
- Conditions
- ((Triggering unit) is A Hero) Equal to True
- (Duel Area <gen> contains (Triggering unit)) Equal to True
- Conditions
- And - All (Conditions) are true
- Actions
- Wait 5.00 seconds
- Countdown Timer - Create a timer window for Temp_Timer with title Duel in:
- Set Temp_TimerWindow = (Last created timer window)
- Countdown Timer - Show Temp_TimerWindow
- Countdown Timer - Start Temp_Timer as a One-shot timer that will expire in 595.00 seconds
- Events
I have an alternative to just warn players of the upcoming duel in x seconds, wait x seconds, and then go on with the duel.