Senior Member
Join Date: Jul 2019
Posts: 142
|
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. |
#1 |
Senior Member
Join Date: May 2015
Posts: 830
|
round(hero.tagcount[Classes.Sorcerer]/2,0,1)
|
#2 |
Senior Member
Join Date: Jul 2019
Posts: 142
|
Thank you.
|
#3 |
Senior Member
Join Date: Jul 2019
Posts: 142
|
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] |
#4 |
Senior Member
Join Date: Jul 2019
Posts: 142
|
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 + |
#5 |
Senior Member
Join Date: May 2015
Posts: 830
|
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] |
#6 |
Senior Member
Join Date: Jul 2019
Posts: 142
|
moved to separate topic
Last edited by Aril; October 1st, 2020 at 10:34 PM. Reason: Posted in wrong spot |
#7 |
Senior Member
Join Date: Jul 2014
Posts: 412
|
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. Forum link for my content work: Pathfinder Thread Forum link for SU 5e content work: 5e Steven Universe Thread This link is for my group, but feel free to play it with: DMM 5e | "https://www.dropbox.com/s/vsd9w1eodlnwjq0/updatesDMM.xml?dl=1" Copy this link to your update manager to get updates when available. This adds the Pisky subrace to elves from Berserk! and additional subraces for the Gem Race. Please post comments in the provided threads above. Last edited by DeltaMasterMind; October 10th, 2020 at 06:00 AM. Reason: Typo |
#8 |
|
|