-
October 14th, 2022, 19:33 #1
- Join Date
- Jan 2021
- Posts
- 2
Trouble Finding Where AC and Initiative Are Calculated (5E)
Hello all, I have been struggling with a small extension I am making for a very homebrewed campaign. The short of it is that I added a Ability Score, and I am trying to get AC and Initiative to calculate off of it instead of DEX. Could anyone point me in the right direction of what files I need to mess with?
-
October 14th, 2022, 20:02 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 19,644
You posted in the FG Classic support forum; so not sure if you meant to post in FG Unity (latest builds).
If FG Classic, I don't have an easy way to review the older code or answer the question.
If FG Unity, there are a few different places where I found dexterity mentioned that looked like it applied:
Templates: number_chartotalac; number_charinit
Window Control: charsheet_combatcalc:initdexbonus
Global Scripts: ActionInit.getEffectAdjustments, ActorManager5E.getDefenseValue, CombatManager2.onNPCPostAdd, CombatManager2.onVehiclePostAdd
There also might be some other field links to track when adding an ability score, but you'd have to look all over for where ability scores are referenced to match.
If the new ability score is PC only, you can avoid modifying the NPC/vehicle specific scripts, but you'll need to be more careful editing the others not to affect non-PCs.
Regards,
JPGFG Wish List - https://fgapp.idea.informer.com/
-
October 15th, 2022, 00:20 #3
- Join Date
- Jan 2021
- Posts
- 2
Thank you so much!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks