|
tommyketchup Newbie
Joined: 24 Dec 2005 Posts: 6
|
Posted: Sat Jan 14, 2006 9:53 pm
Some general queries |
Hi,
I have recently moved to zmud from pueblo and have several queries I was hoping you peeps could answer.
1) Within a trigger I want to load and unload a set of triggers and aliases, how do I do that?
2) How do I turn triggers off with a typed command, so in theory I could set up an alias/trigger to stop triggers?
I will ask the other questions in another topic.
Any help greatly appreciated.
TK |
|
_________________ Coffee aint my cup of tea! |
|
|
|
tommyketchup Newbie
Joined: 24 Dec 2005 Posts: 6
|
Posted: Sat Jan 14, 2006 11:00 pm |
Ok, I found the command to turn off/on the triggers, now its just all about loading/unload triggers in a file.
|
|
_________________ Coffee aint my cup of tea! |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sat Jan 14, 2006 11:53 pm |
I generally suggest just keeping them all loaded in different classes. You can turn off the whole class at once with #T- as well as individual settings.
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
tommyketchup Newbie
Joined: 24 Dec 2005 Posts: 6
|
Posted: Sun Jan 15, 2006 10:55 pm |
Can I load/unload a class from within an alias?
|
|
_________________ Coffee aint my cup of tea! |
|
|
|
Slaem Apprentice
Joined: 20 Sep 2005 Posts: 135
|
Posted: Mon Jan 16, 2006 5:34 am |
Yes.
#AL classon {#T+ class}
#AL classoff {#T- class} |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon Jan 16, 2006 6:53 am |
That's not what was asked, Slaem.
To load specific settings while retaining whatever is already there, you need to use the #READ command (I'm pretty sure it doesn't completely bypass the parser). You could perhaps use #LOAD, but that command completely replaces whatever was in memory and resets everything to defaults (classes which are disabled on login will be turned off, variables with default values will be assigned the default value, etc). More than likely not what you were looking for.
To unload those specific settings without messing with what you want to stay, you need to use the associated #UNwhatever commands (#UNCLASS, #UNTRIGGER, etc). For this specific reason, it's generally a good idea to keep your script in one master class as you can then #UNCLASS it and delete the whole thing with one command. To erase all settings from memory, use #KILLALL. To completely replace them with something else, use the aforementioned #LOAD command. |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
|
|