Staredit Network > Forums > SC2 Custom Maps > Topic: Aternative to Peridic Timer
Aternative to Peridic Timer
Jul 2 2010, 8:09 am
By: (U)Bolt_Head  

Jul 2 2010, 8:09 am (U)Bolt_Head Post #1



Hello all I have noticed a lot of people obsessing with good reason about how period events are like the bubonic plague to efficient triggers.

I thought of this idea the other day and don't know if it would be worse or better or just highly circumstantial.

Basicly instead of using a periodic use a 'Timer expires' Event. Not only does this make it so that the duration of your periodic is adjustable. But also ensures you a way to disable the periodic check.

Here is an idea of what the triggers may look like.
Event:
- Timer01 expires
Conditions
- Whatever
Actions:
- Repeated Actions
- IF (TimerCheck == TRUE )
- THEN { Set Timer01 to X seconds as a one shot timer (or whatever the syntax is) }

To Enable the Periodic you would make actions to:
- Varable TimerCheck = TRUE
- Set Timer01 to 0 seconds as a oneshot timer.

Like many everything I'm sure there are pros and cons and I have no idea how much lag a Timer causes compared to a periodic.

Edit: Oh you can probably use a variable for a periodic too... (I don't have access to Galaxy right now) Oh well =)



None.

Jul 3 2010, 5:46 am Temp Post #2



You can turn triggers off and on using actions. It is pretty much what you suggesting here and is a good idea when using periodic events, only run them when you need to.



None.

Jul 3 2010, 5:36 pm (U)Bolt_Head Post #3



Quote from Temp
You can turn triggers off and on using actions. It is pretty much what you suggesting here and is a good idea when using periodic events, only run them when you need to.

Oh I hadn't realized that, that is pretty neat.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
[2024-4-17. : 1:52 am]
Vrael -- hah do you think I was born yesterday?
Please log in to shout.


Members Online: Mysylia52, Roy, jun3hong