• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Adding attribute bonuses to class ability

Dalandrial

New member
My husband and I are creating a specialized campaign within the Pathfinder rules that requires us to modify existing races and classes, and also create new ones. Thus, I have been poking at the HL Editor, and getting more and more frustrated as of late.

At the moment, I am working on creating a level 10 ability, called Avatar, that imbues the character with deific martial powers 1x/day for 5 consecutive rounds. All related bonuses are Holy, and stack with all other bonuses and equipment. An extra attack is granted at base attack level.

The stats I wish this ability to give are as follows:
+2 BAB, +4 STR/DEX/CON, +30 HP, DR 10/--, SR 30, fast-healing 5, All elemental resistance 20.

I wanted to begin by adding the attribute bonuses to the ability, and got stuck there. Currently, my script looks like

~if we've been replaced, get out now
doneif (tagis[Helper.SpcReplace] <> 0)

field[abValue].value += 4

~ +4 to Dexterity
#holybonus[aDEX] += field[abValue].value

~ +4 to Constitution
#holybonus[aCON] += field[abValue].value

~ +4 to Strength
#holybonus[aSTR] += field[abValue].value

The program keeps telling me there is an error on line 7, therefore I figure the error would be repeated on lines 10 and 13 as well. Can anyone point me in the direction of how I should be portraying this information?

Also, when I first started working with the editor program, I had found a webpage with all the basic terminology for Hero Lab; I can no longer find this page anywhere. It used to state all of the basic terms one would want to know when learning how to script i.e. bonuses and all their different levels such as holy and enhancement. It is almost impossible to figure out the right word to imput into the editor without.
 
"Holy" is not one of the official bonus types in Pathfinder.

There's also no way for users to add a new bonus type.

You'll have to use a generic bonus:

Code:
hero.child[aDEX].field[Bonus].value += field[abValue].value

Help menu (within the editor)...Help On Using the Editor...Reference Information
 
A million thank-yous to you, Mathias. I can't believe the information I was looking for was hiding in the editor help the entire time. And here I've spent an entire week scouring the internet for it!

Thanks also for the generic bonus code. As long as it's enough to make it show up, I'll be happy.
 
I wanted to begin by adding the attribute bonuses to the ability, and got stuck there. Currently, my script looks like

~if we've been replaced, get out now
doneif (tagis[Helper.SpcReplace] <> 0)

field[abValue].value += 4

~ +4 to Dexterity
#holybonus[aDEX] += field[abValue].value

~ +4 to Constitution
#holybonus[aCON] += field[abValue].value

~ +4 to Strength
#holybonus[aSTR] += field[abValue].value
Stuff that start with the # symbol are Macros and they have to be defined by LW actually. So you can't just create new ones on the fly.

Also the Bonus types are just the ones that are part of Pathfinder and don't recall any "holy" bonus. So instead you would just want to use Bonus mostly likely as you want these to stack with everything else I assume.

Phase: Post-Levels Priority: 10,000 <= This is important as if your too early the script will never run as the Helper.ShowSpec tag is not placed until into the Post-Levels timing.
Code:
~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] <> 1)
 ~if we've been replaced, get out now
doneif (tagis[Helper.SpcReplace] <> 0)

~ Set our bonus here so outside things can adjust us
field[abValue].value += 4

~ +4 to Dexterity
hero.child[aDEX].field[Bonus].value += field[abValue].value

~ +4 to Constitution
hero.child[aCON].field[Bonus].value += field[abValue].value

~ +4 to Strength
hero.child[aSTR].field[Bonus].value += field[abValue].value

Gahhh stupid ninja's.......
 
*rolls eyes at self*

I see that now ShadowChemosh. Every time I read that article (and I read it several times) my eyes decided to skip over the part about using the help menu WITHIN the editor.
 
*rolls eyes at self*

I see that now ShadowChemosh. Every time I read that article (and I read it several times) my eyes decided to skip over the part about using the help menu WITHIN the editor.
No problem at all and its ALLOT of information to try and take in at first. I remember trying to figure it out and its not really "hard" its just SO much information its easy to skip something small at first.

I just wanted to make sure you knew it was available is all. :D
 
Back
Top