Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
I am trying to get a DR based on the Con bonus, I have it bootstapped and here is the script
"#applydr[xDamRdB,hero.child[aCON].field[aModBonus].value]" but nothing will show. Any ideas? |
#1 |
Member
Join Date: Dec 2010
Posts: 62
|
When does the script execute?
|
#2 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
post attributes priority 10500
|
#3 |
Member
Join Date: Dec 2010
Posts: 62
|
Works fine for me at Post-Attributes 100. What are you bootstrapping it to?
|
#4 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
xDamRdS is the boot strap
|
#5 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
Ok, it's working, but I am not getting the bonus info under the class tab and I am getting it listed twice in the special tab, one with the bonus and one without.
Any ideas? |
#6 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
I also tried this script with no luck
"#applydr[xDamRdS,hero.child[aCON].field[aModBonus].value] field[abValue=xDamRdS,hero.child[aCON]].value += field[aModBonus].value field[livename].text = "DR/Slashing" field[abSumm].text = "Your DR/Slashing bonus is +" & field[abValue].value field[listname].text = "DR/Slashing +" & field[xIndex].value ~ If we're not shown, just get out now doneif (tagis[Helper.ShowSpec] = 0) field[trkMax].value += field[abValue].value" |
#7 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Just an FYI you don't have to bootstrap DR anymore. These are all bootstrapped to all characters all the time. Same with Fly, Swim and bunch of others. It won't hurt either.
Umm this should not even compile as I am not sure what that line of code is suppose to be? Macro gone bad? Quote:
Try putting a DEBUG line for aModBonus: Code:
debug hero.child[aCON].field[aModBonus].value 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. |
|
#8 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
The two copies appearing in the special list - does your class ability/feat/whatever's providing this have the "Appears In Special List" or "Upgrade - Don't Show in Special List" or whatever flag appropriately so that it isn't showing up?
Your last example has some major coding errors in the field[abValue line. Please look up other examples of where field[abValue].value is set to see how it's done. |
#9 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
This is with the original script and non boot strap. If I add the bootstrap I get the double posting in the special tab. I don't see a check bot not to show it.
BTW - Thank yall for the help. Kevin |
#10 |
|
|