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.
[11:05 pm]
Ultraviolet -- :wob:
[03:55 pm]
Zoan -- :wob:
[10:34 am]
NudeRaider -- SEN doesn't rely on spammers initiate its sleep cycle. It hat fully automated rest and clean-up phases. Please understand that this is necessary for the smooth operation of the site. Thank you.
[2024-5-18. : 3:45 am]
Sylph-Of-Space -- Does the shoutbox get disabled when there's spammers?
[2024-5-17. : 6:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[2024-5-17. : 5:41 am]
Ultraviolet -- 🤔 so inf is in you?
[2024-5-17. : 4:57 am]
O)FaRTy1billion[MM] -- my name is mud
[2024-5-17. : 4:35 am]
Ultraviolet -- mud, meet my friend, the stick
[2024-5-16. : 10:07 pm]
lil-Inferno -- nah
[2024-5-16. : 8:36 pm]
Ultraviolet -- Inf, we've got a job for you. ASUS has been very naughty and we need our lil guy to go do their mom's to teach them if they fuck around, they gon' find out
Please log in to shout.


Members Online: Roy