|
Turkey_March Newbie
Joined: 18 Apr 2007 Posts: 3
|
Posted: 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. |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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.
|
|
|
|
|
|