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:39 am]
KrayZee -- So liberators in defender mode and oracles.
[12:18 am]
l)ark_ssj9kevin -- for terran and protoss
[12:18 am]
l)ark_ssj9kevin -- maybe the 2nd expansion introduces air units that only hit ground units
[12:18 am]
l)ark_ssj9kevin -- brood war was medic valkyrie lurker devourer dt corsair? the theme was antiair
[06:21 pm]
KrayZee -- The gold minerals and purple vespene gas
[2025-3-16. : 9:54 am]
NudeRaider -- someone could just make it a mod
[2025-3-15. : 9:37 pm]
Ultraviolet -- would be pretty sweet, dunno how much i want to tease myself with imagination tho
[2025-3-15. : 2:39 pm]
l)ark_ssj9kevin -- mercenaries race o_o
[2025-3-15. : 2:42 am]
Oh_Man -- what units would u want to see in a second SC1 expansion? Green Archon? Terran Viking? Baneling?
[2025-3-15. : 2:41 am]
Oh_Man -- Blizzard should go the WoW classic route - give us a second expansion for Starcraft 1!
Please log in to shout.


Members Online: KrayZee, Oh_Man