|
Kooshymonster Newbie
Joined: 26 Sep 2002 Posts: 2 Location: USA
|
Posted: Thu Sep 26, 2002 8:49 pm
Setting a trigger to only go off when... |
Ok, is there a way to set a trigger to be only go off based on if a class is enabled or disabled?
for example if this worked it would be perfect, maybe I'm missing some syntax help is nice thanks:
#if (%class autoanounce) {#ECHO ANOUNCE ON}{#ECHO ANOUNCE OFF} |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Thu Sep 26, 2002 11:15 pm |
#IF (%trigger(className)) {do stuff - class is enabled} {do some other stuff - class is not enabled}
Kjata |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Sep 27, 2002 3:44 am |
The easiest way is to put the trigger in the class. Then, if the class is disabled so is the trigger. That's one of the major purposes of classes, after all. The other major purpose is organization.
#TR {Is autoannounce on?} {#ECHO ANNOUNCE ON} {autoannounce}
LightBulb
Senior Member |
|
|
|
|
|