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
BlackSmith
Apprentice


Joined: 08 Dec 2002
Posts: 152

PostPosted: Sun Feb 06, 2005 6:51 pm   

Shouldnt #IF function be able to to evaluate?
 
because this
Code:
#IF (@LastSpellCasted = Force Dome) {say The Force Dome lasts for %eval( @Psionicists_level/5) minutes}
is always triggered regaldes what i have in LastSpellCasted variable.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Feb 06, 2005 7:58 pm   
 
It IS evaluating. What's happening is that @lastspellcasted is being evaluated against "Force". While most likely false, the fact you have " Dome" still in there means that the evaluation will never end up being 0/False. What you need to do is surround "Force Dome" with quotes.
_________________
EDIT: I didn't like my old signature
Reply with quote
BlackSmith
Apprentice


Joined: 08 Dec 2002
Posts: 152

PostPosted: Sun Feb 06, 2005 8:05 pm   
 
DOH.
Thanks. That will solve 13 other bugging triggs i got.
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