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


Joined: 26 Apr 2004
Posts: 15
Location: USA

PostPosted: Thu May 06, 2004 12:17 am   

#IF check for enabled classes
 
I am just wondering if there is a way to set #IF to determine if a class is activated or not.. for example:

#al {startspells} {
#if {Spells|Sanc=ACTIVE} {c sanc}
#if {Spells|Armor=ACTICE} {c armor}}

Etc... where Spells if the primary class, Sanc or Armor is the subclass

If this is possible, what is the format?

The reason for this is that I play a MUD with remorting, and I wanna set one alias to spellup, and just have it automatically check whether or not I have regained those spells on my particular mort.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Thu May 06, 2004 12:36 am   
 
class
Syntax: %class(class)
Return true if the specified class is enabled. If the class does not exist, -1 is returned. (Same as the %trigger function)

#if (%class(sanc)) {c sanc}
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