|
dazed-n-confused999 Wanderer
Joined: 03 Aug 2004 Posts: 79
|
Posted: 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. |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: 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) |
|
|
|
|
|