TheIronGolem
Well-known member
I'm working on a class special that grants SR to an animal companion. Seems like it should be easy enough, but I can't seem to get it working. No matter what timing I try, I can't seem to access xSplRs on the minion, even though it has clearly been bootstrapped.
My code (Currently at Post-Attr/10000, though I've tried several others):
This never gets beyond the second doneif. Not sure what I'm doing wrong, because this seems to be pretty much how the paladin applies SR to its mount in the animcompSR procedure.
My code (Currently at Post-Attr/10000, though I've tried several others):
Code:
~ Stop now if we don't have an animal companion active
doneif (hero.childlives[cAnimComp] = 0)
~ Add SR to animal companion
perform hero.childfound[cAnimComp].minion.childfound[xSplRs].setfocus
doneif (state.isfocus = 0)
focus.minion.childfound[xSplRs].field[abValue].value = maximum(focus.minion.childfound[xSplRs].field[abValue].value, field[xAllLev].value + field[abValue].value)
This never gets beyond the second doneif. Not sure what I'm doing wrong, because this seems to be pretty much how the paladin applies SR to its mount in the animcompSR procedure.