How to calculate half class level
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. |
round(hero.tagcount[Classes.Sorcerer]/2,0,1)
|
Thank you.
|
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] |
Where to find "Counts as ability" in menu for "Class Abilities"
moved to separate topic
|
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. |
All times are GMT -8. The time now is 10:29 AM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.