• 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

Custom Feat

  • Thread starter Thread starter loki.the.mischievous
  • Start date Start date
L

loki.the.mischievous

Guest
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?
 
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

So, to add in the extra 3 at 1st level, add those HP in on line 3:
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
 
Thanks! I added this to the portfolio and it works like a charm.
 
Back
Top