Timer error

SNOOPDOGGDIZ

New Member
Reaction score
2
im creating a game that has income after so many minutes, and i want to show How long until each income by using countdown timer, below i have this set up, and it works perfect until it expires. Once it expires the entire top of the screen blows up with timers counting down again, where did i go wrong?


Timer 1
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Countdown Timer - Start Timer as a Repeating timer that will expire in 111.00 seconds
Countdown Timer - Create a timer window for Timer with title |cffffcc00Next Inco...
Set TimerWindow = (Last created timer window)

Timer 2
Events
Time - Timer expires
Conditions
Actions
Countdown Timer - Destroy (Last created timer window)
Countdown Timer - Create a timer window for Timer with title |cffffcc00Next Inco...
For each (Integer A) from 1 to 12, do (Trigger - Run Timer 1 <gen> (checking conditions))
 

Azlier

Old World Ghost
Reaction score
461
For each (Integer A) from 1 to 12, do (Trigger - Run Timer 1 <gen> (checking conditions))

Run the first trigger 12 times, creating 12 timers and 12 more timer windows? That doesn't strike me as brilliant.

In fact, I would toss the second trigger away totally. Just make a trigger for, whenever the timer expires, to give income.
 

SNOOPDOGGDIZ

New Member
Reaction score
2
Timer 2
Events
Time - Timer expires
Conditions
Actions
Countdown Timer - Destroy (Last created timer window)
Countdown Timer - Create a timer window for Timer with title |cffffcc00Next Inco...


so this makes more sence?
 

Azlier

Old World Ghost
Reaction score
461
I don't think you have to destroy the timer window at all. Just let it keep repeating, see what happens.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top