Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old April 14th, 2012, 08:04 PM
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>
I based that on the adjustment for Reduce Person and Enlarge person, changing the appropriate values to adjust the strength lower and the dexterity higher and adjusting the size down 2 so be diminutive instead of tiny.

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
AndrewD2 is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

Old April 15th, 2012, 08:39 AM
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.
Mathias is online now   #2 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old April 15th, 2012, 08:47 AM
Doh, yeah that was it. Now this ability is supposed to resize all equipment with the character. Is there a way to do that?
AndrewD2 is offline   #3 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old April 15th, 2012, 01:43 PM
Quote:
Originally Posted by AndrewD2 View Post
Doh, yeah that was it. Now this ability is supposed to resize all equipment with the character. Is there a way to do that?
You have the script set to phase="UserFirst" priority="2000". For size change stuff I have always used "First 1,000".

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.
ShadowChemosh is offline   #4 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old April 15th, 2012, 02:22 PM
That does not seem to change anything.
AndrewD2 is offline   #5 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,144

Old April 16th, 2012, 04:18 AM
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
Sendric is offline   #6 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

Old April 16th, 2012, 07:51 AM
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.
Mathias is online now   #7 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,144

Old April 16th, 2012, 09:22 AM
Quote:
Originally Posted by Mathias View Post
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.
Man...your Pathfinder code is so much cooler than d20.
Sendric is offline   #8 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old April 16th, 2012, 10:44 AM
Quote:
Originally Posted by Mathias View Post
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.
Yea good suggestion also is the size changes going smaller but are they still putting your character over weight because the Str is going down so much?

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.
ShadowChemosh is offline   #9 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old April 16th, 2012, 11:16 AM
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.
AndrewD2 is offline   #10 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 12:24 PM.


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