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.
[11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[2026-4-13. : 10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
[2026-4-13. : 9:37 pm]
IskatuMesk -- I have never and will never own a phone
[2026-4-13. : 9:15 pm]
NudeRaider -- Vrael ranting still is though
[2026-4-13. : 9:14 pm]
ClansAreForGays -- anticapitalism isnt edgy anymore
[2026-4-13. : 3:31 pm]
Vrael -- it only costs 50% of my post-tax salary for life and in return I get to also become a drone whose sole purpose is CAPITALISM
[2026-4-13. : 3:30 pm]
Vrael -- pssht, you're still using a phone? I just record 100% of my life using my ElonBrainChip
[2026-4-13. : 2:13 pm]
NudeRaider -- bro I don't go anywhere without my phone to record anything significant
[2026-4-13. : 1:28 pm]
Vrael -- Zoan
Zoan shouted: not if u wer there
id say even if you were there its tricky, human memory can be very faulty
Please log in to shout.


Members Online: Prankenstein