Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
I'm working on implementing an ability that changes a gnome from small to diminutive.
My code is currently Code:
<thing id="raRPGnoTri" name="Trixie Transformation" compset="RaceSpec" summary="you become diminuative and may grow wings" uniqueness="unique"> <tag group="Helper" tag="ShowSpec"/> <tag group="AbilType" tag="Super"/> <tag group="User" tag="Activation"/> <tag group="User" tag="Tracker"/> <eval phase="UserFirst" priority="2000">doneif (field[abilActive].value = 0) hero.child[aDEX].field[Bonus].value += 4 hero.child[aSTR].field[Penalty].value -= 6 ~we want to decrease our size by -2 var sizemod as number sizemod = -2 call SizeChange</eval> </thing> Anyways, when activated as it is currently everything seems to update properly, except the AC. Currently I get the +3 AC for the size change, but not the bonus from the dexterity increase. If I comment out the size change I get the bonus from dexterity. I can't see what I am missing here. Any ideas? Andrew |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,214
|
Does it lower the encumbrance limit so far that the test character becomes encumbered, and starts taking Max Dex limits from the encumbrance (if you're testing on a PC, the 3 lbs of coins that's the default starting cash would be medium encumbrance to a diminutive creature with an effective strength of 2). Medium encumbrance's max dex of +3 may be limiting the effectveness of the DEX bonus you're adding.
|
#2 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Doh, yeah that was it. Now this ability is supposed to resize all equipment with the character. Is there a way to do that?
|
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
See if that fixes the equipment not changing size. Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
|
#4 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
That does not seem to change anything.
|
#5 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
This is the script I use in d20. You may be able to port it over to pathfinder, but I haven't checked. Might at least be a starting point:
Code:
foreach pick in hero from MyGear eachpick.field[gSizeMod].value += field[pAdjust].value nexteach |
#6 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,214
|
Sendric, the SizeChange procedure in Pathfinder, which he's calling, includes that code. That's why ShadowChemosh is trying to help him track down why it isn't having the effect it's supposed to.
ShadowChemosh and AndrewD2 - I'd look into which items you're testing this on - double check that they're ones that are supposed to be changing size, rather than items whose size is fixed. |
#7 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
|
#8 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
From my quick testing last night everything was changing size correctly. @AndrewD2 do you have any specific examples of equipment, armor, magic items, or something that is NOT changing size? Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
|
#9 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Well I just tried with padded armor, which weighs 5 lbs as small, and should only weigh 1lb as diminutive, and it stayed 5lbs when I clicked the box to change size.
|
#10 |
|
|