• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

timing help for morale bonus/penalty

psych777

Well-known member
i have a trait that gives a morale bonus to some items (str, con, will save) and a morale penalty to AC.
i've tried running it at both pre-attributes and post-attributes 10000. it seems to apply things slightly differently at each for the bonus'....and the penalty never shows up.
getting too hard to think straight as i keep dozing at the keyboard, so hoping for some quick help from those more familiar with these items... trying to execute these:

#applybonus[BonMorale,hero.childfound[aSTR],2]
#applybonus[BonMorale,hero.childfound[aCON],2]
#applybonus[BonMorale,hero.childfound[svWill],1]
#applypenalty[PenMorale,hero.childfound[ArmorClass],2]

wasn't sure if the penalty was supposed to be a -2 or 2, but since i can't get it to show in the developer window i couldn't see the result of having a negative or positive number there....
 
I never used applypenalty before as it doesn't make sense all penalties stack.

So try

hero.childfound[ArmorClass].field[PenMorale].value += -2
 
yeah i can do that for the penalty, was just trying to use the specialty line :o)

do you know what timing needs to be used to apply those bonus ones correctly?
 
pre-attributes should work for both penalties and bonuses. I usually go earlier like post-levels or so.

If nothing is working then I would ask is that really the whole script?
 
i've another trait working just fine with post-attributes, but this one was giving odd results. but i changed it to post-levels and seems to be all working now. helps that i was awake to test it this time :)
thanks!
 
Back
Top