Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   How to calculate half class level (http://forums.wolflair.com/showthread.php?t=64520)

Aril July 12th, 2020 06:38 PM

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.

Minous July 13th, 2020 03:57 PM

round(hero.tagcount[Classes.Sorcerer]/2,0,1)

Aril July 14th, 2020 11:11 AM

Thank you.

Aril September 29th, 2020 08:23 PM

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]

Aril September 29th, 2020 08:48 PM

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 +

Minous September 30th, 2020 02:39 AM

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]


Aril October 1st, 2020 10:32 PM

Where to find "Counts as ability" in menu for "Class Abilities"
 
moved to separate topic

DeltaMasterMind October 10th, 2020 06:00 AM

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 02:34 AM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.