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
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