 |
Maarek Newbie
Joined: 22 Nov 2002 Posts: 4
|
Posted: Sun Nov 24, 2002 3:44 am
IF statement? |
Ok, I have an if statement in a trigger so that it checks every time my prompt appears so that the IF statement can change a flag to 0 from 1, now say @flag = 1 right now I want the If statement to check if Health has reached 80 or above then if true wake up if false do nothing at all, But when it checks and its false it always trying to put a blank space or something on the screen but I dont want it to do anything at all, Any suggestions?
Trigger is ~<Lifeforce ~((%d)~) Armor ~((%d)~) Energy ~((%d)~)
And What i have for an IF statement now is %IF( @flag = 1 AND @LF = 80, wake,)
??
Thanks |
|
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Nov 24, 2002 4:32 am |
quote:
Ok, I have an if statement in a trigger so that it checks every time my prompt appears so that the IF statement can change a flag to 0 from 1, now say @flag = 1 right now I want the If statement to check if Health has reached 80 or above then if true wake up if false do nothing at all, But when it checks and its false it always trying to put a blank space or something on the screen but I dont want it to do anything at all, Any suggestions?
Trigger is ~<Lifeforce ~((%d)~) Armor ~((%d)~) Energy ~((%d)~)
And What i have for an IF statement now is %IF( @flag = 1 AND @LF = 80, wake,)
??
Thanks
Use #IF, not %if. %if will ALWAYS return something; #IF will only return what's defined (if applicable), and you don't have to define a false condition code block if you don't need it.
li'l shmoe of Dragon's Gate MUD |
|
|
|
 |
|
|
|
|
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
|
|