|
BlackSmith Apprentice
Joined: 08 Dec 2002 Posts: 152
|
Posted: Sun Feb 06, 2005 6:51 pm
Shouldnt #IF function be able to to evaluate? |
because this
Code: |
#IF (@LastSpellCasted = Force Dome) {say The Force Dome lasts for %eval( @Psionicists_level/5) minutes} |
is always triggered regaldes what i have in LastSpellCasted variable.
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Feb 06, 2005 7:58 pm |
It IS evaluating. What's happening is that @lastspellcasted is being evaluated against "Force". While most likely false, the fact you have " Dome" still in there means that the evaluation will never end up being 0/False. What you need to do is surround "Force Dome" with quotes.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
BlackSmith Apprentice
Joined: 08 Dec 2002 Posts: 152
|
Posted: Sun Feb 06, 2005 8:05 pm |
DOH.
Thanks. That will solve 13 other bugging triggs i got. |
|
|
|
|
|