Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - D&D 5th Edition SRD


Thread Tools Display Modes
Junior Member
Join Date: Apr 2015
Posts: 4

Old October 15th, 2020, 04:11 PM
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.
hammerrw is offline   #1 Reply With Quote
Senior Member
Join Date: May 2016
Posts: 596

Old October 16th, 2020, 05:29 AM
You can try something like:

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.
dungeonguru is offline   #2 Reply With Quote
Senior Member
Join Date: Sep 2017
Posts: 409

Old October 20th, 2020, 09:25 AM
Pretty much the same thing, just a little simpler:

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:

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

Found an issue with or have a suggestion for the 5e Community Pack? Please post it here at our GitHub.

Feel free to stop by the Lone Wolf Development Subreddit, for discussion of any and all LWD products and community efforts!
Fenris447 is offline   #3 Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 07:08 AM.

Powered by vBulletin® - Copyright ©2000 - 2021, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.