Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Ok some slight changes to the code so I figured I'd put those up. Its supposed to be an alternate racial ability and previously I was creating a racial ability and bootstrapping it into the alternate, now I've just got it all in the alternate. As my testing for the size change doesn't seem to be doing anything I've moved on to adding flight with 5 or more HD. It compiles fine, but the flight doesn't show up.
Code:
<thing id="raRPTriAnc" name="Trixie Ancestry" description="Some gnomes have a spiritual or hereditary bond with an ancient relative that was transformed into the combination of a gnome and a pixie. As a full-round action, they can become Diminutive. They gain a +4 size bonus to their Dexterity, and 6 penalty to their Strength, a +3 size bonus to attack rolls and armor class, a +4 size bonus to the Fly skill, a +6 size bonus to Stealth and a -3 size penalty to both CMB and CMD. Their gear is also changed appropriately for the characters new stature. If they possess at least 5 Hit Dice they gain thin, transparent wings that allow them to fly at a speed of 30 with perfect maneuverability, their gear is transformed to allow for and accommodate their wings, and they also gain Fly as a class skill. This racial trait replaces the\ngnomish magic racial trait." compset="AltRaceTrt" summary="can become Diminutive" uniqueness="unique"> <fieldval field="actName" value="Trixie Transformation"/> <usesource source="bPF101_ART"/> <tag group="AllowRCust" tag="rGnome"/> <tag group="RaReplace" tag="raGnIllus"/> <tag group="RaReplace" tag="raGnDance"/> <tag group="RaReplace" tag="raGnGhost"/> <tag group="RaReplace" tag="raGnSpeak"/> <tag group="RaReplace" tag="raGnPrest"/> <tag group="User" tag="Activation"/> <tag group="ProductId" tag="PIdRitePub"/> <tag group="Custom" tag="Abil12"/> <bootstrap thing="xFly"> <containerreq phase="First" priority="1000">hero#Custom.Abil12</containerreq> <autotag group="Value" tag="30"/> <autotag group="Maneuver" tag="Perfect"/> </bootstrap> <eval phase="First" priority="1000">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> <eval phase="UserPostLv" priority="1000" index="2"><![CDATA[if (#totallevelcount[] > 4) then perform hero.assign[Custom.Abil12] endif]]></eval> </thing> |
#11 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Your Bootstrap condition is running at First 1000 looking for the Custom.Abil12 tag. However that tag isn't being assigned until UserPostLv 1000, which is much later than that. Assign the tag before First 1000 and the Fly special should show up.
|
#12 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Though honestly this is the super hard way to do it. Much easier to not try and use bootstraps with Value.? tags as xFly is bootstrapped to all characters anyway. This works because xFly, xClimb, etc don't show themselves unless they have a value greater than zero. So do this: Code:
~ Post Level 10,000 if (#totallevelcount[] > 4) then ~ Give speed of 30 #value[xFly] += 30 ~ assign the Perfect Maneuver tag to Fly perform hero.child[xFly].assign[Maneuver.Perfect] endif 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. |
|
#13 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Thanks. That works great. And I added: doneif (field[abilActive].value = 0) to the beginning to it turns on and off with the ability.
|
#14 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
So medium Padded Armor was staying 10 lbs even when shrunk down to size tiny. I am not sure if the Procedure needs some additional code or if the Background/Skeletal scripts need to be changed/fixed to take into account weight changes when they item changes on the fly. 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. |
|
#15 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Please report this in the bug thread then and I will take a look in the runup to the next release.
|
#16 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Roger roger!
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. |
#17 |
Senior Member
Join Date: Jun 2007
Posts: 273
|
Hey, you are advancing my RiP files? Maybe we can work together to get better and faster HL files for Rite Publishing?
|
#18 |
|
|