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.
[07:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[2024-4-27. : 6:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[2024-4-27. : 3:33 pm]
O)FaRTy1billion[MM] -- o sen is back
Please log in to shout.


Members Online: RexyRex