• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Timer expire

Status
Not open for further replies.

ABM

ABM

Level 7
Joined
Jul 13, 2005
Messages
279
Hi ,

is there a way to detect an expired timer when the same trigger has multiple timer expire as an event?

[Trigger=]
TribeTimer global
Events
Time - TribeJoin_timer[1] expires
Time - TribeJoin_timer[2] expires
Time - TribeJoin_timer[3] expires
Time - TribeJoin_timer[4] expires
Time - TribeJoin_timer[5] expires
Time - TribeJoin_timer[6] expires
Time - TribeJoin_timer[7] expires
Time - TribeJoin_timer[8] expires
Time - TribeJoin_timer[9] expires
Time - TribeJoin_timer[10] expires
Time - TribeJoin_timer[11] expires
Time - TribeJoin_timer[12] expires
Conditions
Actions
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Initial time for (Expiring timer)) - 50.00) Equal to (Real(A))
Then - Actions
Set TribeJoin_started[A] = False
Set TribeJoin_number[A] = 0
Else - Actions
[/Trigger]

i used different time value for each timer to detect wich one is wich, but that sux a bit, it doesn't look professional and clean, is there any way in jass to have the function?

*if timer(GetexpiringTimer) = timer(1) then
 

ABM

ABM

Level 7
Joined
Jul 13, 2005
Messages
279
right now i am still using WEU, so hashtable use is impossible....
until i can redo all the map triggers from scratch, i have to deal without hashtable...
WaterKnight thanks for the function....^^
 
Status
Not open for further replies.
Top