• 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

How to calculate half class level

Aril

Well-known member
I'm trying to create a sorcerer bloodline that basically does the following:

+1 per 2 sorcerer levels to saves
+1 per 2 sorcerer levels deflection bonus to AC
Swift action
Duration 1 round

I see the options for making it last 1 round, and for making it a swift action to activate.

But I can't figure out how to assign a bonus to saves and AC = to half the class level.
 
So, do you think something like this would work for adding the bonuses to saves?

Use this to determine half the sorcerer's level.

field[abValue].value += round(hero.tagcount[Classes.Sorcerer]/2,0,1)

Use this, then, to apply a bonus equal to half sorcerer's level to their saves:

hero.child[svFort].field[BonLuck].value = field[abValue].value +

hero.child[svRef].field[BonLuck].value = field[abValue].value +

hero.child[svWill].field[BonLuck].value = field[abValue].value +

And then this to apply half the sorcerer's level as an enhancement bonus to their AC?

#applybonus[tACMisc, hero.child[ArmorClass], field[abValue].value]
 
Hmm....when trying to set the save bonus, I'm getting an error.

"->Error in right-side expression of assignment"

This was the script I created.

hero.child[svFort].field[BonLuck].value = field[abValue].value +
 
I'd use something like:
Code:
#applybonus[BonLuck, hero.child[vFort], field[abValue].value]
#applybonus[BonLuck, hero.child[vRef], field[abValue].value]
#applybonus[BonLuck, hero.child[vWill], field[abValue].value]

#applybonus[tACMisc, hero.child[ArmorClass], field[abValue].value]
 
Where to find "Counts as ability" in menu for "Class Abilities"

moved to separate topic
 
Last edited:
Just an FYI the reason for the error was you left a + sign with nothing to add thus the function got confused. In those lines of script just use this example: hero.child[svWill].field[BonLuck].value += field[abValue].value
Keep in mind that the += means it will add to the left side field, where as = means it will override left side field with what is in the right side field.
 
Last edited:
Back
Top