Staredit Network > Forums > SC2 Assistance > Topic: Trying to find a "step" or "update" event.
Trying to find a "step" or "update" event.
Aug 4 2010, 7:31 am
By: Anthius  

Aug 4 2010, 7:31 am Anthius Post #1



Without cheating (using a 0.01 second wait, or having a trigger trigger itself at the end of execution, or anything else that is slopy and could lead to bugs...
Is there any "onUpdate" or "onStep" type event that I can register an event with in Galaxy script?

Also, if anyone has a good listing for the Galaxy API I'd love it :)

Tks ahead of time.



None.

Aug 4 2010, 11:02 pm Temp Post #2



Would help if I knew exactly why you needed such an event, there may be a better solution (such as running a trigger whenever you would trigger an update). If you want a continuous evaluation of a condition then you will need a periodic trigger, there really is no other way of doing it.

Also recursive triggers are a valid way of doing certain things.



None.

Aug 5 2010, 7:19 am Anthius Post #3



Heh, I asked exactly what I needed to know...
I don't have a specific need for the onStep function, I just was digging around the API to get a feel for it... most APIs have some form of update function you can attach continuous logic checks to... I know there's a nice event handler to manage all of that jazz, and I know 95% of the time, you should use that, but I was just curious.

Primarily, I'll try to write as much as I can in GS and not have to use the GUI triggers as they tend to be a tad (relative) slow, and I just like working in code better, I'm a control nut (I'd rather know how things are being done, not just what they are doing).



None.

Aug 5 2010, 7:33 am Ahli Post #4

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

You would have to do that manually running triggers at the end of some functions like you said, I guess.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[04:59 am]
zsnakezz -- >:)
[04:59 am]
zsnakezz -- :)
[04:58 am]
zsnakezz -- somebody gets it
[04:58 am]
zsnakezz -- and its not all just numbers in my file screen
[04:57 am]
zsnakezz -- thank you for your comment though, good to know some people out there tried my map out
[04:57 am]
zsnakezz -- just kidding
[04:57 am]
zsnakezz -- ultra you have any thought or notes on undead invasion?
[2024-5-31. : 2:36 pm]
Wing Zero -- Bop em
[2024-5-31. : 2:36 pm]
Wing Zero -- Mods
[2024-5-29. : 9:40 pm]
Ultraviolet -- :wob:
Please log in to shout.


Members Online: C(a)HeK