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


Joined: 26 Sep 2002
Posts: 2
Location: USA

PostPosted: 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}
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Sep 26, 2002 11:15 pm   
 
#IF (%trigger(className)) {do stuff - class is enabled} {do some other stuff - class is not enabled}

Kjata
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

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