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
Enforcer84
Senior Member
 
Join Date: Oct 2011
Location: Portland
Posts: 313

Old November 24th, 2015, 01:11 PM
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?
Enforcer84 is offline   #1 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old November 24th, 2015, 01:34 PM
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.
Aaron is offline   #2 Reply With Quote
Enforcer84
Senior Member
 
Join Date: Oct 2011
Location: Portland
Posts: 313

Old November 24th, 2015, 01:51 PM
so would I try to use wMeleeAttr field?
Enforcer84 is offline   #3 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old November 24th, 2015, 04:43 PM
Is it an untyped bonus? If so I would use atmBonus
Aaron is offline   #4 Reply With Quote
Enforcer84
Senior Member
 
Join Date: Oct 2011
Location: Portland
Posts: 313

Old November 25th, 2015, 07:34 AM
it is untyped, would I substitute tAtkMelee with atmBonus?
Enforcer84 is offline   #5 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old November 25th, 2015, 09:20 AM
It's almost certainly faster to check that out yourself than to wait for my response.
Aaron is offline   #6 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old November 25th, 2015, 09:37 AM
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.
AndrewD2 is offline   #7 Reply With Quote
Enforcer84
Senior Member
 
Join Date: Oct 2011
Location: Portland
Posts: 313

Old November 25th, 2015, 09:46 AM
Quote:
Originally Posted by Aaron View Post
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 by Enforcer84; November 25th, 2015 at 10:02 AM.
Enforcer84 is offline   #8 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old November 25th, 2015, 10:00 AM
Quote:
Originally Posted by Enforcer84 View Post
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]

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.
ShadowChemosh is offline   #9 Reply With Quote
Enforcer84
Senior Member
 
Join Date: Oct 2011
Location: Portland
Posts: 313

Old November 25th, 2015, 10:03 AM
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.
Enforcer84 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 08:02 AM.


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