|
Lasivian Wanderer
Joined: 25 Jan 2002 Posts: 76 Location: USA
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: Sun Aug 07, 2011 4:11 pm |
You want the #IGNORE command - you shouldn't use it within a trigger though.
|
|
|
|
Scirkhan Apprentice
Joined: 14 Sep 2007 Posts: 167 Location: aztx
|
Posted: 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. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
Scirkhan Apprentice
Joined: 14 Sep 2007 Posts: 167 Location: aztx
|
Posted: Sun Aug 07, 2011 11:12 pm |
Why? Thanks.
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
Scirkhan Apprentice
Joined: 14 Sep 2007 Posts: 167 Location: aztx
|
Posted: 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. |
|
|
|
|
|