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


Joined: 16 Apr 2005
Posts: 12

PostPosted: Sat Apr 16, 2005 12:50 am   

Simple trigger...not working
 
I feel ashamed for posting this, but why doesn't it work? :p

#ALIAS stat {
gr
last %1
#ALARM +2 {#IF (@%1.class==({@tank})) {gt @%1.hp/@%1.maxhp ~(%eval( 100*@%1.hp/@%1.maxhp)% HP~)} {gt @%1.mana/@%1.maxmana ~(%eval( 100*@%1.mana/@%1.maxmana)% mana~)}}
}

The thing that isn't working is the #IF (here)
I've tried putting "" around both, ()...etc...what should I put there?

@TANK has in it Rogue|Warrior...etc
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sat Apr 16, 2005 3:14 am   
 
This should work
#IF (%ismember(@{%1.class},@tank))
_________________
Zmud Support Library
Zmud Knowledge Base
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