Unknown2007-09-15 06:49:01
#if (@slickness=0 and @salvebalance=1 and @asleep=0 and @stunned=0 and @paralyzed=0 and (@aeon=0|@aeon=.5))
Could anyone explain why that if statement doesn't function correctly with that OR comparison in there, and how I could make it so that it will check for that?
Could anyone explain why that if statement doesn't function correctly with that OR comparison in there, and how I could make it so that it will check for that?
Shryke2007-09-15 07:35:20
I've neverd used the (@whatever|@whatever) syntax, but I'd go with (@aeon=0 or @aeon=0.5) just for giggles, I think it might fix it.
Unknown2007-09-15 07:40:45
nah, I've tried it both ways.
Forren2007-09-15 07:43:06
Do a #SAY to find out which condition isn't matching.
Unknown2007-09-15 07:48:02
I went through the troubleshooting earlier, and all the parameters check out, each one is at zero. If I take out the "or @aeon=.5", everything works fine.
Forren2007-09-15 07:52:20
QUOTE(Deschain @ Sep 15 2007, 03:48 AM) 442081
I went through the troubleshooting earlier, and all the parameters check out, each one is at zero. If I take out the "or @aeon=.5", everything works fine.
Try putting quotes around .5 and see if that makes it work, or just use @aeon < 1 instead.
Unknown2007-09-15 07:55:32
QUOTE(Forren @ Sep 15 2007, 03:52 AM) 442083
or just use @aeon < 1 instead.
Bah, it's late, I should have thought of that.
Thanks for the help.