• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

DR - Con

Frodie

Well-known member
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?
 
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?
 
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"
 
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? :)
"#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..
 
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.
 
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
 

Attachments

  • Feb 22.jpg
    Feb 22.jpg
    418.6 KB · Views: 6
  • Feb 22a.jpg
    Feb 22a.jpg
    387.6 KB · Views: 3
Got it!

Ok, the original script, a bootstrap, and the upgrade hide from list box check works!!!

Thanks again yall!!
 
One more quick one:
How do I make this run 1 point for 1/2 total levels and not CON

#applydr[abMHDRShd,hero.child[aWIS].field[aModBonus].value]
 
Back
Top