Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old February 21st, 2011, 09:51 PM
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?
Frodie is offline   #1 Reply With Quote
unforgivn
Member
 
Join Date: Dec 2010
Posts: 62

Old February 21st, 2011, 10:13 PM
When does the script execute?
unforgivn is offline   #2 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old February 21st, 2011, 10:45 PM
post attributes priority 10500
Frodie is offline   #3 Reply With Quote
unforgivn
Member
 
Join Date: Dec 2010
Posts: 62

Old February 21st, 2011, 10:54 PM
Works fine for me at Post-Attributes 100. What are you bootstrapping it to?
unforgivn is offline   #4 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old February 22nd, 2011, 07:25 AM
xDamRdS is the boot strap
Frodie is offline   #5 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old February 22nd, 2011, 07:40 AM
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?
Frodie is offline   #6 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old February 22nd, 2011, 07:55 AM
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"
Frodie is offline   #7 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old February 22nd, 2011, 08:14 AM
Quote:
Originally Posted by Frodie View Post
xDamRdS is the boot strap
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:
"#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"
Also I don't usually use aModBonus until Final as I want to make sure everything was added in to that before trying to use it. So could be the value is still zero that early in the timing?

Try putting a DEBUG line for aModBonus:
Code:
debug hero.child[aCON].field[aModBonus].value
To check what the actual value is at the time the script is running..

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   #8 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old February 22nd, 2011, 08:17 AM
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.
Mathias is offline   #9 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old February 22nd, 2011, 08:51 AM
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
Attached Images
File Type: jpg Feb 22.jpg (418.6 KB, 6 views)
File Type: jpg Feb 22a.jpg (387.6 KB, 3 views)
Frodie is offline   #10 Reply With Quote
Reply


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 07:50 PM.


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