Detect expiring timer?

naughty

New Member
Reaction score
12
Lets say i do this:
Trigger:
  • Countdown Timer - Start THE_TIMER[(Player number of (Owner of (Attacking unit)))] as a One-shot timer that will expire in 1.25 seconds

Now in the next trigger i have all these events:
Trigger:
  • Trigger
    • Events
    • Time - THE_TIMER[2] expires
    • Time - THE_TIMER[3] expires
    • Time - THE_TIMER[4] expires
    • Time - THE_TIMER[5] expires
    • Time - THE_TIMER[6] expires
    • Time - THE_TIMER[8] expires
    • Time - THE_TIMER[9] expires
    • Time - THE_TIMER[10] expires
    • Time - THE_TIMER[11] expires
    • Time - THE_TIMER[12] expires


How can i detect which timer has expired? Or i just should make a separate trigger for every timer?
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Better make seperate triggers :S Much easier to handle ;)

Why not player 1 ??
 

naughty

New Member
Reaction score
12
player 1 and 7 are controlled by the computer... Btw i know its much better with a separate trigger but what if i have a much bigger variable not only 12? in that case i definitely wont make a separate trigger....lol
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
U wil hav to store the player in a variable then cal it
 

Nexor

...
Reaction score
74
loop all of them and check for remaining time, if it's 0 there is your expired timer
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
If they arnt use then its 0 so al of them wil be 0
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
He has that he wants to detect which one
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top