Guest
Posts: n/a
|
I'm in a Pathfinder campaign, and the DM is using the Toughness Feat DDO style (where you get the additional 3 HP up front and then 1 HP per level and it does not stack). I've been looking at the editor to customize the feat (first copying the existing Toughness feat), but am at a loss on how to script it from there. Any ideas?
|
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Here you are (since I wrote this for something else).
Timing: UserPreAt, 100 Code:
~Count the number of hit dice var HD as number HD = hero.tagcount[Hero.HitDice] ~ Add to our HP hero.child[Totals].field[tHP].value += HD Code:
~Count the number of hit dice var HD as number HD = hero.tagcount[Hero.HitDice] + 3 ~ Add to our HP hero.child[Totals].field[tHP].value += HD |
#2 |
Guest
Posts: n/a
|
Thanks! I added this to the portfolio and it works like a charm.
|
#3 |
|
|