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
tommyketchup
Newbie


Joined: 24 Dec 2005
Posts: 6

PostPosted: 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!
Reply with quote
tommyketchup
Newbie


Joined: 24 Dec 2005
Posts: 6

PostPosted: 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!
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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
Reply with quote
tommyketchup
Newbie


Joined: 24 Dec 2005
Posts: 6

PostPosted: Sun Jan 15, 2006 10:55 pm   
 
Can I load/unload a class from within an alias?
_________________
Coffee aint my cup of tea!
Reply with quote
Slaem
Apprentice


Joined: 20 Sep 2005
Posts: 135

PostPosted: Mon Jan 16, 2006 5:34 am   
 
Yes.

#AL classon {#T+ class}
#AL classoff {#T- class}
_________________
Show your love.
Support Zugg Software!
Donate to zugg@zuggsoft.com with PayPal Send Money.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
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