• 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

Weird...Example doesn't do what it says...

Enforcer84

Well-known member
So I copied and pasted this from the Reference Guide for a racial ability:

~ Add our dexterity bonus to the melee attack bonus
hero.child[Attack].field[tAtkMelee].value = hero.child[Attack].field[tAtkMelee].value + hero.child[aDEX].field[aModBonus].value

and it does not add to melee attacks but DOES add to Combat Maneuver Bonus...

Has this changed?
 
It may have. A while back I did a re-organization of bonus types so that things like "an insight bonus to melee attacks" but not ranged ones could be handled. It's possible that tAtkMelee might have changed into an intermediate field or something else in that change.
 
took me a while to figure these out myself when they first showed up.

at = attack
dm = damage
m = melee
r = ranged
and then the bonus type

so atmBonus = untyped Bonus to melee attack, atrBonus = untyped Bonus to ranged attack, dmmBonus = untyped Bonus to Melee Damage, dmrBonus = untyped Bonus to Ranged damage.
 
It's almost certainly faster to check that out yourself than to wait for my response. ;)

Indeed it was...didn't work :)

I tried this...

hero.child[Attack].field[atmBonus].value += hero.child[aDEX].field[aModBonus].value

and the CMD bonuses disappear but the atmBonus does not appear for the attack.

And a bunch of other even stranger things...the less said about them the better.
 
Last edited:
Indeed it was...didn't work :)

I tried this...

hero.child[Attack].field[atmBonus].value += hero.child[aDEX].field[aModBonus].value

and the CMD bonuses disappear but the atmBonus does not appear on the weapons

And a bunch of other even stranger things...the less said about them the better.
What is the timing of your script?

In addition I assume your running before Post-Attributes/10000 which means the Dex "Bonus" has not been calculated yet. So trying moving to Post-Attributes/10000. Plus you can shorten the above code by using a macro:
Code:
hero.child[Attack].field[atmBonus].value += #attrmod[aDEX]
 
Last edited:
I cribbed it from the website...
Post-Attributes User, priority 10000,


oh and check that, it does show up on CMB - but it doesn't list all the maneuvers separately anymore.
 
Well...lookee there I may have breakthrough...Post-Attributes only seems to have fixed it.


Chad Riley, making things harder on himself since 1971...
 
Showing all maneuvers seperately is something that a bonus to all attacks should not do. So the fact it went away is good.
 
Back
Top