• 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

Prestige Class Feature

RavenX

Well-known member
I am trying to get a prestige class into hero lab
and failing at it.
It is supposed to apply a bonus/penalty to social skills based on odd levels the character has in the class. I put the class into hero lab and it keeps giving me this error:

HELP PLEASE? I have been at this code for two hours and am at the point of banging my head on the desk from frustration.

error message
syntax error in eval script for thing cXXXTintAu on line 2
tag classes.cArcDefilr not defined

var value as number
value = round(#levelcount[cArcDefilr]/2,0,0)

hero.child[skBluff].field[ModCirc].value = -(value)
hero.child[skDiplo].field[ModCirc].value = -(value)
hero.child[skHandleAn].field[ModCirc].value = -(value)
hero.child[skIntim].field[ModCirc].value = value
 
If this is in a class special, you don't even need to know what class it's on to get the level - the xAllLev field stores that:

value = round(field[xAllLev].value/2,0,-1)

(I put a -1, rather than a 0 into the last entry to tell hero lab to round down, rather than rounding normally)
 
This is for a Prestige Class actually. It needs to account for the odd levels of the prestige class itself and apply a circumstance bonus to Intimidate, and penalty to the other social skills. Basically as the Defiler gets stronger, his aura of defilement grows to where he can't hide his true nature.

"Tainted Aura (Su): You are tainted by your arcane ways in such a matter that it is noticeable. People feel uncomfortable and wary when you are present and animals whimper when you approach. You suffer a –1 circumstance penalty to Bluff, Diplomacy, and Handle Animal checks for every odd level of arch defiler you have. Likewise, you receive a +1 circumstance bonus to Intimidate checks for every level of
arch defiler gained. The tainted aura has a range of 5 feet per arch defiler level."

I know this does not match the code up above I just caught the intimidate thing and fixed the code on it to match the actual text.


I do need to know how to create an eval script to lower the level of metamagic feats by 1 to a minimum of 1 for the last class feature of this prestige class though. I can't think of any class features or abilities that already do this off the top of my head.

"Metamagic Raze: You can gather energy during spell preparation to improve your metamagic capacity. Spell slot level adjustments from metamagic feats are reduced by one (to a minimum of one), but only once per spell. For each use of metamagic raze, you defile a 5‐foot‐radius where the spell is prepared. Preparation of multiple spells increase the radius by 5 foot for each spell prepared with this ability."
 
I'd leave #2 as text only for now and come back to it when you're more experienced with Hero Lab's coding. Fooling with metamagic is a very advanced topic.
 
Last edited:
Back
Top