Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - d20 System (http://forums.wolflair.com/forumdisplay.php?f=46)
-   -   Custom Feat (http://forums.wolflair.com/showthread.php?t=7826)

loki.the.mischievous August 7th, 2008 02:52 AM

Custom Feat
 
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?

Mathias August 7th, 2008 12:31 PM

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


loki.the.mischievous August 22nd, 2008 05:11 PM

Thanks! I added this to the portfolio and it works like a charm.


All times are GMT -8. The time now is 06:04 PM.

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