So, I'm trying to put NSH on my Small gnome in Giantslayer, but I get several errors, and it looks like it's related to it trying to adjust the size limitations for my unarmed attack? (I don't have any other slam attacks)
The relevant script is below, I don't have time for a bug fix as I need it tomorrow. Is there a way to fix this? like check if the pick from the foreach is unarmed, then skip it? (FWIW I tested it on a medium creature and it works just fine, so pretty sure it's because I'm small?)
Current script:
The relevant script is below, I don't have time for a bug fix as I need it tomorrow. Is there a way to fix this? like check if the pick from the foreach is unarmed, then skip it? (FWIW I tested it on a medium creature and it works just fine, so pretty sure it's because I'm small?)
Current script:
Code:
var wepsize as number
wepsize = herofield[tSize].value + 1
~ If we're not equipped, get out now
doneif (field[gIsEquip].value = 0)
foreach pick in hero from BaseWep
if (eachpick.field[gSize].value = wepsize) then
eachpick.field[gSizeDiff].value -= 1
endif
nexteach