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
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old January 18th, 2013, 08:51 AM
Need a little help with a custom ability.

You gain a bonus to all Knowledge checks equal to half your level.


Script

~our bonus is level /2
var bonus as number
foreach pick in hero from BaseSkill where "Helper.SkCatKnow"
bonus = field[xTotalLev].value / 2
eachpick.field[Bonus].value += maximum(round(bonus,0,-1),1)
perform eachpick.delete[Helper.TrainOnly]
nexteach
Frodie is offline   #1 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old January 18th, 2013, 09:19 AM
you might try:

Post-Levels 1000
Code:
var bonus as number
bonus = herofield[tHitDice].value / 2

foreach pick in hero from BaseSkill where "Helper.SkCatKnow"
eachpick.field[Bonus].value += maximum(round(bonus,0,-1),1)
perform eachpick.delete[Helper.TrainOnly]
nexteach
Sendric is offline   #2 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old January 18th, 2013, 09:24 AM
Frodie, half of what level? I see that Sendric has given you a "half character level" version of this script, but if this is an ability on a class, the rule for those is that anytime they refer to the level, it means the level of the class (unless it specifically says character level or total level).

What phase & priority were you using? If it is a class ability, switch to Post-Levels/10000, but I don't think you'll need to change anything else about your script.
Mathias is offline   #3 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old January 18th, 2013, 10:13 AM
Timing, I had "pre-levels" not post-levels. Sorry about that. Sometimes I over look the simple things. Thanks yall.
Frodie is offline   #4 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 07:44 PM.


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