Senior Member
Join Date: Oct 2011
Location: Portland
Posts: 313
|
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? |
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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.
|
#2 |
Senior Member
Join Date: Oct 2011
Location: Portland
Posts: 313
|
so would I try to use wMeleeAttr field?
|
#3 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Is it an untyped bonus? If so I would use atmBonus
|
#4 |
Senior Member
Join Date: Oct 2011
Location: Portland
Posts: 313
|
it is untyped, would I substitute tAtkMelee with atmBonus?
|
#5 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
It's almost certainly faster to check that out yourself than to wait for my response.
|
#6 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
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. |
#7 |
Senior Member
Join Date: Oct 2011
Location: Portland
Posts: 313
|
Quote:
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 by Enforcer84; November 25th, 2015 at 10:02 AM. |
|
#8 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
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] 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. Last edited by ShadowChemosh; November 25th, 2015 at 10:04 AM. |
|
#9 |
Senior Member
Join Date: Oct 2011
Location: Portland
Posts: 313
|
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. |
#10 |
|
|