This came up in chat today in the context of "
having an NPC detect what weapon the player is holding"
:
The script commands If... Set Player Weapon Staff, Pickaxe, Caber, etc. will return true if the player's weapon has been set to those weapons either by scripting setting that as their default weapon, or if (when the script's processing sequence occurs), the player is holding that weapon (e.g. from a weapon token).
However, If... Set Player Weapon Off only returns true if the player has been disarmed via scripting. It still returns false when the player has a weapon, but has been disarmed either by a disarm token or by oremites. This is inconsistent; I'd expect that condition to return true in those latter two cases.
There's currently no _Weapon variable (which I might draw up a separate feature request for), so this means there's no way to use the "
set player weapon"
command to detect whether the player is disarmed on any particular turn; the only way to do so is to manually update a variable whenever something hits a disarm token.
____________________________
Quick links to my stuff (in case you forgot where it was):
Click here to view the secret text
[Last edited by Chaco at 02-03-2017 06:55 PM]