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
dazed-n-confused999
Wanderer


Joined: 03 Aug 2004
Posts: 79

PostPosted: Wed Nov 03, 2004 8:08 am   

help with if statements
 
#if (@hasalkar or!@haspent or!@hasaloof or!@hasparry) {attack = 1} {attack = 2}
#case @attack {#play miss.wav} {#play hit.wav}
Another pathetic newbie question. As far as I can tell this is good according to the help file.
If one of the variables in the #if expression is true I will not be able to hit my opponent, and would like to play the miss.wav file. If all of the variables in the expression are false then I will be able to hit my opponent and would like to play the hit.wav file. I have messed with different combos of this for days now and I am fed up. Help.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Wed Nov 03, 2004 1:29 pm   
 
Since you said if any of these are true add ! to the first one and a space between or!

#if (!@hasalkar OR !@haspent OR !@hasaloof OR !@hasparry)
_________________
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