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
Guest
 
Posts: n/a

Old August 7th, 2008, 02: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?
  #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old 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
Mathias is offline   #2 Reply With Quote
loki.the.mischievous
Guest
 
Posts: n/a

Old August 22nd, 2008, 05:11 PM
Thanks! I added this to the portfolio and it works like a charm.
  #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 12:54 PM.


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