Distinguishing between Timers

jaybles169

New Member
Reaction score
2
Is there a way to distinguish between multiple timers in a single trigger? I don't see any timer related conditions. In the Timer event it mentions using Event Response - Expiring Timer but I can't find it anywhere. I have about 8 repeating timers that I want to keep track of and it seems like a waste to write 8 triggers at 2 lines each -_-

Anybody got anything for me?
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
Trigger:
  • Timers
    • Events
      • A timer expires
    • Condition
      • Expiring timer is equal to YourTimer variable
    • Actions
      • Do stuff
 

vypur85

Hibernate
Reaction score
803
In GUI you cannot detect the expiring timer. That is why Timers are not so user friendly for GUI users. Perhaps it's a better idea to use periodic trigger, depending on your needs, of course.
 

Ayanami

칼리
Reaction score
288
Trigger:
  • Timers
    • Events
      • A timer expires
    • Condition
      • Expiring timer is equal to YourTimer variable
    • Actions
      • Do stuff

Last time I checked, there were no conditions for checking expiring timer.

You'd have to use different triggers. As mentioned, GUI is not timer-friendly.
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
Instead of timers, you could create units with expiration timers and fixed hp regen/degen rates. That way the time left can also be checked.
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
i thought there was, that was freehand... bummer :(
you cant even determine it based on a variable or anything like that?
 

vypur85

Hibernate
Reaction score
803
> variable or anything like that?

Nah. Messing around with WE more often helps sometimes. :)

Timer variables in GUI can only be detected in the event portion. Alternatively, there are ways to check 'Elapse time', or 'Time Left' in real comparison. But those don't do much good for this case, or any other cases where they involve periodic/repeating actions.
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
what about this, youd have to test it but it may work
Trigger:
  • Timer Test
    • Events
      • Your Timer Events
    • Conditions
    • Actions
      • set Timer_Integer = 0
      • For each integer A from 1 to [variable index] do actions
        • Loop - Actions
          • If then else
            • If
              • Smallest between values(Time elapsed for Timer_Variable[Integer A], Time left for Timer_Variable[Integer A]) = 0.00
            • Then
              • set Timer_Index = Integer A
              • Custom Script: exitwhen (udg_Timer_Index != 0)
            • Else
      • Do other actions
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top