Refering to expired timer

Parsival

Active Member
Reaction score
6
Hi,

Am I able to refer to expired timer which turns on trigger?

Example:
Trigger:
  • Events
    • Time - Timer[1] Expires
    • Time - Timer[2] Expires
    • Time - Timer[3] Expires
    • Time - Timer[4] Expires

Dunno why it has not a proper icon.

And now I want to know which timer expired right before. Is it possible or I have to make new trigger for each of timers? :|

Thanks.
 

Parsival

Active Member
Reaction score
6
Could You give me an example of using this function? I don't code in JASS too often and I don't even have vJass.
I need integer value from Timer's array index.

Thank You.
 

Parsival

Active Member
Reaction score
6
Sorry for bumping.

I tried to found an answer by myself. I see it's more complicated than I thought.
Well. 'GetExpiredTimer()' function gives me timer. I cannot receive any more informations from this variable. I don't know which timer is it etc.
Any ideas how to recognize this timer?:(
 

Jedi

New Member
Reaction score
63
You can use GetExpiredTimer in GUI, but you can't compare timers with GUI.
Trigger:
  • Actions
    • Set ExpiredTimer = (Expiring timer)
    • For each (Integer A) from 1 to 4, do (Actions)
      • Loop - Actions
        • Custom script: if udg_ExpiredTimer == udg_Timer[bj_forLoopAIndex] then
        • Custom script: exitwhen true
        • Custom script: endif
    • -------- Integer A is number of expired timer now, loop finished --------
 

Parsival

Active Member
Reaction score
6
You can use GetExpiredTimer in GUI, but you can't compare timers with GUI.
Exactly!

Ahh! Thanks, mate. :)
It works now. +rep for You and Your family.

Have a nice day or night wherever You live.
 
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