PaladinWhite
Member
The wiki lists:
boolean use_skill( skill to_use )
However, when I try to do this in a consult script:
... I get "!" operator requires a boolean value (test.ash, line 2)
Did this function get changed sometime after the wiki page was last updated? Is there a good reason it's no longer returning a boolean? If not, can it be changed back?
boolean use_skill( skill to_use )
However, when I try to do this in a consult script:
Code:
void main(int round, monster foe, string page) {
if(!use_skill($skill[Fist of the Mummy])) {
print("Failed to use Fist of the Mummy!");
}
}
... I get "!" operator requires a boolean value (test.ash, line 2)
Did this function get changed sometime after the wiki page was last updated? Is there a good reason it's no longer returning a boolean? If not, can it be changed back?