Page 1 of 1

/if bug ? (latest zip)

Posted: Wed Apr 21, 2004 5:53 pm
by morannon
/echo ${Me.Combat}

Gives TRUE if in combat (auto attack on), and FALSE if not.

/if ${Me.Combat} == FALSE {
/echo combat false
} else {
/echo combat true
}

Always echoes 'combat false'

I have tried :

/if ${Me.Combat} == FALSE {
/if (${Me.Combat} == FALSE) {
/if (${Me.Combat}) {

And it always executes the first branch.

If im being an idiot then sorry, but I couldnt see any relevant changes in any of the docs.

Posted: Wed Apr 21, 2004 5:58 pm
by Lax
grab 20040421b.zip, fixed

Posted: Wed Apr 21, 2004 11:41 pm
by Smitty
I may be stupid.. but it still seems like there is a problem with the /ifs, and yes I have the newest file

Posted: Wed Apr 21, 2004 11:42 pm
by ml2517
/if's are fine from everything I've tested tonight.

Posted: Thu Apr 22, 2004 1:17 am
by Dantuss
I cant get this simple /if to work.

Code: Select all

/newif ${Target.Distance}>10 /keypress forward hold
/echo ${Target.Distance} will return the distance to my target I just cant figure out how to make the /if work.



Edit I am using April 21 2004 14:55:47 Zip

Posted: Thu Apr 22, 2004 1:24 am
by ml2517
Because you have to surround all /if statements with parenthesis now:

Code: Select all

/if (${Target.Distance}>10) /keypress forward hold