Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Kodi1124
Junior Member
 
Join Date: Jul 2015
Location: California
Posts: 17

Old December 30th, 2015, 11:46 AM
Hello everyone,

I am attempting to create a feat for Pathfinder and don't know anything about scripting. Please forgive my ignorance.

I want the Feat to increase the characters BAB by +1, but not allow it if the BAB would be more than the characters HD.

Any help would be very appreciated, thank you.
Kodi1124 is offline   #1 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old December 30th, 2015, 12:37 PM
Sure, here is how I would approach it.

PostLevel 5000
Code:
~ Stop if this feat is disabled
doneif (tagis[Helper.FtDisable] <> 0)

~ Determine if we have at least 1 point between our base attack bonus and hit dice.
doneif (hero.childfound[Attack].field[tAtkBase].value - herofield[tHitDice].value >= 0)

~ Add one to our Base attack bonus
hero.childfound[Attack].field[tAtkBase].value += 1
Aaron is offline   #2 Reply With Quote
Kodi1124
Junior Member
 
Join Date: Jul 2015
Location: California
Posts: 17

Old January 4th, 2016, 08:47 AM
I'll give that a try. Thanks.
Kodi1124 is offline   #3 Reply With Quote
Reply


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:34 AM.


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