|
Senior Member
Join Date: Jul 2019
Posts: 142
|
I'm new to Hero Lab, and have been reading through the documentation and samples, and have figured out (using the Faerie Dragon example) how to create racial skill bonuses for a race I'm building.
However, the race I'm trying to convert has skill bonuses as the character's level goes up. So, it has +1 to X skill at lvl 1.....but then it gets another +1 at lvl 5, another +1 at lvl 10, another +1 at lvl 15, and a final +1 at lvl 20. I'm not sure how to build a scaling racial skill bonus. Is this possible? |
#1 |
Junior Member
Join Date: Jul 2019
Posts: 15
|
Yeah, you can do it in the scripting.
I don't know the exact variable but it would be something like... hero.child[skill] += 1+(hero.child[level]/5) I am probably WAY wrong on what the exact language is but it would be something like that. |
#2 |
Senior Member
Join Date: Jul 2019
Posts: 142
|
I used I think one of the "Eval" menus to add the script for the skill.....I followed exactly along with the instructions from the Faerie Dragon example in the tutorial.
Is that where I'd try using this alternate script you're suggesting? |
#3 |
Senior Member
Join Date: May 2015
Posts: 830
|
Are you using the HL editor to create your race or are you using the GUI racial builder?
|
#4 |
Senior Member
Join Date: Jul 2019
Posts: 142
|
Hmm....I'm not sure....I'm new......I went into Hero Lab, went to Tools, and clicked to open the Editor tool. I'm in there.
Here's a screenshot of where I'm working. |
#5 |
Senior Member
Join Date: May 2015
Posts: 830
|
So you are in the correct place, you're using the HL editor. I would recommend something like #applybonus macro should work, its something like #applybonus[BonComp,hero.child[skDiplo],4] where BonComp is the bonus for race (its failing me now) and 4 should be round(field[xTotalLev].value / 5, 0, -1) + 1
|
#6 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Minous - racial bonuses to skills are almost always stacking bonuses. #applybonus will create a non-stacking bonus, so that if anything else (like skill focus) is adding a bonus to that same skill, it will not stack with a bonus applied using #applybonus.
|
#7 |
Senior Member
Join Date: Jul 2019
Posts: 142
|
Are there places where these different macros are listed? Like a guide or something?
Maybe I've just jumped into trying something difficult, rather than starting with something easy. |
#8 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
On the same page in the help where you found the faerie dragon example, scroll down to "Reference Information".
Copying from existing examples is always my recommendation. So if you want to know how to write a script that applies a skill bonus, how about a feat like Deceitful, that applies a bonus to a skill. If you want to know how to look up the level of a character, how about the leadership feat, that has a prereq of a character being 7th level? If you want to know how to divide a value (like the level) by some number, and then round it correctly, how about Deadly Aim, which gets +1/4 BAB. |
#9 |
Senior Member
Join Date: Jul 2019
Posts: 142
|
So, I've been gradually piecing together what I think I need to do.
Does this make sense for an eval script? field[abValue].value += field[#totallevelcount[]/5,0,1] +1 |
#10 |
|
|