zarqon
Well-known member
In a Fistcore run, I noticed one of my combat scripts kept attacking rather than using the Fist skill which it should have been using. It turns out that the Unarmed modifier was returning false:
Also, I tested with an aftercore character and it returned false regardless of whether there were items in the hands.
Am I misunderstanding something or is this not the way it should work?
> ash boolean_modifier("Unarmed")
Returned: false
> ash equipped_item($slot[weapon])
Returned: none
plural => nones
descid =>
image =>
levelreq => 0
quality =>
adventures =>
muscle =>
mysticality =>
moxie =>
fullness => 0
inebriety => 0
spleen => 0
notes =>
combat => false
reusable => false
usable => false
multi => false
seller => none
buyer => none
> ash equipped_item($slot[offhand])
Returned: none
plural => nones
descid =>
image =>
levelreq => 0
quality =>
adventures =>
muscle =>
mysticality =>
moxie =>
fullness => 0
inebriety => 0
spleen => 0
notes =>
combat => false
reusable => false
usable => false
multi => false
seller => none
buyer => none
> wtf?
deodorant
Bad item value: "deodorant" (zlib.ash, line 383)
Also, I tested with an aftercore character and it returned false regardless of whether there were items in the hands.
Am I misunderstanding something or is this not the way it should work?