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
Lasivian
Wanderer


Joined: 25 Jan 2002
Posts: 76
Location: USA

PostPosted: Sun Aug 07, 2011 6:18 am   

Command in a trigger to disable all further triggers?
 
Is there a way to disable all triggers by command?

IE. The same as clicking the little gun Icon in the bottom right of the window.

Thanks
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Sun Aug 07, 2011 9:31 am   
 
put all the relevant settings into a class and then use

#T- "class name"
to turn it off
with #T+ to turn it on
%class will reference its current state if you want to make an #alias or #button to toggle it on or off
i go a step further and #CALL %btncol as well so i can tell whats available at a glance

#HELP #ALIAS
#HELP %btncol

most premade commands and functions have examples in the help files, which are accessed as seen above
_________________
Discord: Shalimarwildcat
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Sun Aug 07, 2011 4:11 pm   
 
You want the #IGNORE command - you shouldn't use it within a trigger though.
Reply with quote
Scirkhan
Apprentice


Joined: 14 Sep 2007
Posts: 167
Location: aztx

PostPosted: Sun Aug 07, 2011 8:45 pm   
 
As Daern said, #IGNORE.
#IGNORE does the same thing as clicking the gun icon.
#IGNORE 1 turns triggers on
#IGNORE 0 turns triggers off
#IG for short.
I do use #IG..

And for what Shalimar was talking about, you can use #class <name> 1 or #class <name> 0
I have a class named Path, and a class named Record in the path class.
#class path 0 "turns off" the path class (and everything in it, including the record class)
#class path/record 0 turns off the record class.

Shalimar, what benefits does using #t have? Does it turn off only triggers, or only aliases, etc?
Thanks.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Aug 07, 2011 11:03 pm   
 
#T turns off everything. I can't remember if it has the settings-type filter like in CMud (#T- name alias), but in ZMud you largely should never be using #CLASS in a script.
_________________
EDIT: I didn't like my old signature
Reply with quote
Scirkhan
Apprentice


Joined: 14 Sep 2007
Posts: 167
Location: aztx

PostPosted: Sun Aug 07, 2011 11:12 pm   
 
Why? Thanks.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Aug 07, 2011 11:26 pm   
 
Because ZMud uses #CLASS automatically. If you use it in a script, it changes the default class and could cause variables and other settings to be written to the wrong place.
_________________
EDIT: I didn't like my old signature
Reply with quote
Scirkhan
Apprentice


Joined: 14 Sep 2007
Posts: 167
Location: aztx

PostPosted: Mon Aug 08, 2011 12:04 am   
 
Does that anyway.. How do I stop it from doing that and all that. I like my classes to have their relevant info etc.
I don't like other variables ending up in there. I use setdef.
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