Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
My brains gone into meltdown.
I'm entering an undead Template that retains BAB, Saves, Skill points and Size of base creature. However it grants Turn Resistance +2 which i've bootstrapped xTurnRes into the data successfully but I can't get the +2 to show on the portfolio or creature. Secondly the abilities get adjusted as Dex +2, Int -4 (Minimum 0) and No Con score. I've got the +2 Dex modifier and the -4 Int Modifier and the Con score to show - but I can't seem to find any code examples on setting a minimum score to an ability, that overrides the modifier if it would be lower. A search of the editor manual and the forums produces a faint buzzing in the head and blurred vision, methinks tis time for a break and ask the sage Mathias for Help once more! |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
The lich, ghost and vampire templates all set their turn resistances within the same script where they apply their No CON score.
I generally don't consider minimums worth the time needed to implement them - they're not something that's often encoutered when adding templates to real creatures, and if so, they're easy to corect manually. |
#2 |
Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
They are easy to correct manually, but for my OCD's sake I'd like the template to correctly apply the minimum with a script. This Template base will be a model for a few others.
|
#3 |
Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
I've managed to butcher a script from the Celestial template that sets the Intelligence to a specific number.
Code:
~ If our intelligence is less than 0, make it 0 minimum var intel as number perform hero.child[aINT].setfocus intel = focus.field[aValue].value + focus.field[aStartMod].value if (intel < 0) then focus.field[aNormMod].value += 0 - intel endif Last edited by bodrin; December 1st, 2010 at 08:57 AM. |
#4 |
Senior Member
Join Date: Aug 2008
Location: Miamisburg, OH
Posts: 1,322
|
Quick question about this, wouldnt there be an impact if the Int stat was then modified for some reason? being at 0 and adding +2 = 2, while being -2 and adding 2 = 0.
i do like your solution though, dont get me wrong. but folks will need to know that if the int changes for any reason it might not be what they think. but to be honest i dont see that happening very often at all. Web site - Cheese Weasel Logistics - www.cheeseweasel.net Twitter - @CheeseWeaselGMZ For user created content check out www.d20pfsrd.com and www.cheeseweasel.net For video demos of Hero Lab go to http://www.youtube.com/user/TheChiefweasel?blend=9&ob=5 |
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Jun 2010
Posts: 623
|
Quote:
So if you got GBC'd and Str became 1, but you had a +6 STR item, you would have 7 STR. Bodrin, how does this play into your script? |
|
#6 |
Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
Quote:
Quote:
The script is from the Celestial Template which I found after searching things that set a specific number. So I can't take the credit for it! |
||
#7 |
|
|