Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Turkey_March
Newbie


Joined: 18 Apr 2007
Posts: 3

PostPosted: Thu May 31, 2007 3:24 am   

Trigger processing question
 
Say I have a trigger that grabs a line of input, stores it in a variable, and performs some time-consuming operations on it. If the same trigger fires again before these operations have finished, will the variable be overwritten, causing undesirable results? Or will the trigger not fire again while it is still working? Or will the second match be acknowledged, but not begin processing until the first has finished?

I have consulted the documentation but can't find any information about how triggers are handled by zMUD.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Thu May 31, 2007 4:35 am   
 
I believe that the variable will be overwritten. zMUD will definitely not pause processing while your trigger is working. Use the #priority command or store your value in a variable that isn't going to be changed by any other settings. Using #t- to disable the trigger until it's finished would be a good idea.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net