• 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

Script for AC = DEX mod + CHA mod

hammerrw

New member
I'm trying to figure out an Eval Script to get the Armor class to include the dexterity and charisma modifiers with no luck. Any assistance would be appreciated.
 
You can try something like:

Code:
field[abValue].value = #attrmod[aCHA]
hero.childfound[ArmorClass].field[Bonus].value += field[abValue].value


This would add the charisma modifier as an additional bonus to the AC. By default AC automatically uses DEX for the AC calculation on a PC unless you have something unusual going on or are wearing heavy/medium armor.
 
Pretty much the same thing, just a little simpler:

Code:
hero.childfound[ArmorClass].field[Bonus].value += #attrmod[aCHA]

As dungeonguru said, DEX is already included in AC calculations automatically. But if for some reason it isn't in this particular creature, you could do:

Code:
field[abValue].value = #attrmod[aCHA]
field[abValue].value += #attrmod[aDEX]
hero.childfound[ArmorClass].field[Bonus].value += field[abValue].value
 
Back
Top