Can anyone advise on how to bootstrap the Monk AC ability (Wisdom bonus to AC and CMD + 1 per 4 levels) so that classes other than the monk can benefit from this ability?
I've tried duplicating the original ability, but the changes don't seem to apply.
Timing is: Post-Attributes 10000 and After Encumber Final
Script is below:
I've tried duplicating the original ability, but the changes don't seem to apply.
Timing is: Post-Attributes 10000 and After Encumber Final
Script is below:
Code:
var bonus as number
bonus = field[xIndex].value - 1
field[listname].text = "AC Bonus +" & bonus
~ Get our encumbrance level - if we're encumbered by that, or if we're
~ wearing armor or a shield, we're disabled.
if (hero.tagis[Encumbered.Light] = 0) then
perform assign[Helper.SpcDisable]
done
endif
~ only run the rest for the first copy
doneif (tagis[Helper.FirstCopy] = 0)
~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] = 0)
~ Start our bonus off as our wisdom bonus + the count of specials, -1
~ (because our first instance gives a base of +0)
field[abValue].value += #attrbonus[aWIS] + field[xCount].value - 1
field[livename].text = "AC Bonus +" & field[abValue].value
~ If we're disabled, do nothing
doneif (tagis[Helper.SpcDisable] <> 0)
~ Apply our AC bonus to all our armor scores
hero.child[ArmorClass].field[Bonus].value+= field[abValue].value