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
shazara
Beginner


Joined: 17 Feb 2003
Posts: 16
Location: USA

PostPosted: Mon Jun 28, 2004 10:01 pm   

Commands based on whether a class is on or off.
 
I need a way to use an #IF command that operates on whether or not a class/subclass is enabled or disabled. Such as #IF (classisenabled) {do this} {else do this}. Is this possible, and if so, what expression would I use to check if the class is on/off?

Also trying to find a way to implement that with toggle buttons. If a class is enabled, the button is on, if disabled, the button is off.
Reply with quote
Insomniac
Wanderer


Joined: 25 Mar 2004
Posts: 78
Location: United Kingdom

PostPosted: Mon Jun 28, 2004 10:29 pm   
 
#IF (%class(YourClassName)) {#ECHO YourClassName is enabled} {#ECHO YourClassName is disabled}

The command is %class(ClassName)

I believe it returns 1 if true, 0 if false and -1 if non-existant.
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