CodeSpeaker
Member
Help with Selectable spell attribute
Greetings. I've just gotten Hero Lab recently (for pathfinder) and I've started to play with it.
In my search for help with this following thing, I searched this site, hlkitwiki, and the provided documentation. Either I didn't search for the right thing, or it's not their, but I couldn't find the answers I needed.
I'm trying to allow a custom class the ability to select their spell casting attribute.
My plan was to create a class special, that had the user could select from attributes. Then that would modify the spell casting attribute.
Making the class special and the drop down attributes box worked fine.
Then I started on the evalscript and I things failed to make sense.
I looked at the adjustment code
But when I tried to use that straight, it threw errors telling me pIsOn and pchosen didn't exist.
So First. where do those come from? what do I need to replace them with? How do I figure that out?
It was then my plan to use the dropdown result in some sort of If statement (select case type thing) to set the 'SplAttr' tag to the appropriate attribute.
Is that possible? any good pointers for things doing that already? Or other help?
Finally, is this all pointless, and is there some easier/better way already done?
Thanks in advance.
Greetings. I've just gotten Hero Lab recently (for pathfinder) and I've started to play with it.
In my search for help with this following thing, I searched this site, hlkitwiki, and the provided documentation. Either I didn't search for the right thing, or it's not their, but I couldn't find the answers I needed.
I'm trying to allow a custom class the ability to select their spell casting attribute.
My plan was to create a class special, that had the user could select from attributes. Then that would modify the spell casting attribute.
Making the class special and the drop down attributes box worked fine.
Then I started on the evalscript and I things failed to make sense.
I looked at the adjustment code
Code:
~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)
~ Add to our chosen attribute
field[pChosen].chosen.field[aStartMod].value += field[pAdjust].value
But when I tried to use that straight, it threw errors telling me pIsOn and pchosen didn't exist.
So First. where do those come from? what do I need to replace them with? How do I figure that out?
It was then my plan to use the dropdown result in some sort of If statement (select case type thing) to set the 'SplAttr' tag to the appropriate attribute.
Is that possible? any good pointers for things doing that already? Or other help?
Finally, is this all pointless, and is there some easier/better way already done?
Thanks in advance.
Last edited: