View Single Post
dungeonguru
Senior Member
 
Join Date: May 2016
Posts: 608

Old October 2nd, 2020, 06:55 AM
You would need to have a script on the class feature that runs post-attribute so that you have a final modifier from charisma (like post-attribute/10000 timing or later phase).

In that script you would need to check your attribute modifier with the #attrmod and some if statements and apply your dice to the weapon that you would have to find with the hero.childfound method.

You could look at the scripts in the Hex Warrior ability or the Improved Pact Weapon of the Hexblade for some examples of how to pick the weapon.

A simpler example to get you started might be:

if (#attrmod[aCHA] = 1) then
hero.childfound[weapon_ID].field[wDamExtra].text &= "+ 1d2 chaos "
endif
if (#attrmod[aCHA] = 2) then
hero.childfound[weapon_ID].field[wDamExtra].text &= "+ 1d4 chaos "
endif
etc....

The reason I suggest looking at the Hex Warrior/Improved Pact Weapon is that they show you how to create a dropdown to find your chosen or created weapon. I'm pretty sure there is also an activation in that ability to turn on/off charisma too.
dungeonguru is offline   #2 Reply With Quote