Senior Member
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788
|
ShadowChemosh:
Could you please take a look at this script and maybe tell me where I am going wrong. Phase: Post-level, Priority: 10000 Timing: (Before script) Calc skProfBon Quote:
They changed how this is done. I've looked at how Expertise is handled by the Rogue and bard. As far as I can see this script should work . . . but it doesn't <cry> Watch your back, Conserve your ammo, and NEVER cut a deal with a dragon! |
|
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
I don't see anything wrong from just the point of view of the script.
My advice would be to start with Debug lines to see what is really going on: Code:
doneif (tagis[Helper.ShowSpec] = 0) debug "ShowSpec" doneif (tagis[Helper.Disable] <> 0) debug "Disable" debug "Helper.Proficient " & hero.child[skAcrobat].tagis[Helper.Proficient] if (hero.child[skAcrobat].tagis[Helper.Proficient] = 0) then perform hero.child[skAcrobat].assign[Helper.Proficient] debug "assigned Proficient" else perform hero.child[skAcrobat].assign[Helper.ProfDouble] debug "assigned ProfDouble" 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. |
#2 |
Junior Member
Join Date: Jan 2017
Posts: 13
|
Here is how I have made it work with some of the custom feat I have worked on. This feat is also adding an attribute to the feat as well, so I included it.
I am doing it Post-Attributes at 10000 Code:
~ If we're not shown, just get out now doneif (tagis[Helper.ShowSpec] <> 1) ~ if we've been disabled, get out now doneif (tagis[Helper.Disable] <> 0) ~ Add 1 to Dexterity score hero.child[aDEX].field[aStartMod].value += 1 if (hero.tagis[ProfSkill.skAcrobat] <> 0) then perform hero.assign[ProfDouble.skAcrobat] else perform hero.childfound[skAcrobat].assign[Helper.Proficient] endif Last edited by Logoman; May 11th, 2017 at 06:01 PM. |
#3 |
Senior Member
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788
|
For whatever reason, your script doesn't work for me. I'll go back to kooking at it tomorrow.
Thanks for trying. Watch your back, Conserve your ammo, and NEVER cut a deal with a dragon! |
#4 |
Junior Member
Join Date: Jan 2017
Posts: 13
|
I see my error, I am running the script Post-levels not post-attributes. Try that and see if it helps?
|
#5 |
|
|