Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System

Notices

Reply
 
Thread Tools Display Modes
loki.the.mischievous
Member
 
Join Date: May 2008
Posts: 43

Old August 7th, 2008, 03:52 AM
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?
loki.the.mischievous is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 12,855

Old August 7th, 2008, 01: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
Mathias is offline   #2 Reply With Quote
loki.the.mischievous
Member
 
Join Date: May 2008
Posts: 43

Old August 22nd, 2008, 06:11 PM
Thanks! I added this to the portfolio and it works like a charm.
loki.the.mischievous is offline   #3 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 01:10 AM.


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