Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
Ok, this is a tough one, but as a class ability, use you CMB instead of your normal attack for only firearms. This is what I got:
~ If we're disabled, do nothing doneif (tagis[Helper.FtDisable] <> 0) field[abValue].value += maximum(#applybonus[Attack] - #applybonus[ManeuvBon], 0) foreach pick in hero from BaseWep where "wFtrGroup.Firearms" eachpick.field[wAttRanged].value += field[abValue].value nexteach Any ideas and/or help? Thank you! |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
I think this is closer to what you want but as I am doing this off memory without access to HL I can't be 100% sure about the field names. I think there right.
Also you don't mention timing and that is very important. I think you want to do this very late to override the Ranged Attack Value. Code:
~ If we're disabled, do nothing doneif (tagis[Helper.FtDisable] <> 0) field[abValue].value += maximum(hero.child[Attack].field[tAtkBase].value, hero.child[Maneuver].field[tCMB].value) foreach pick in hero from BaseWep where "wFtrGroup.Firearms" eachpick.field[wAttRanged].value = field[abValue].value nexteach 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. |
#2 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
Almost, I am not getting any errors, lol, but it didn't seem to add the CMB to the firearm, but let me check the timing and see.
Thank you for your help! Well I tried all the timing and got a few numbers that didn't change and a few that were 3-6 above the cmb. IDK Thank you again for helping out. Last edited by Frodie; February 1st, 2012 at 04:46 PM. |
#3 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
I think it is add the two values together. Trying to get the CMB to replace the normal attack
|
#4 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
Yea, I can get it to add or suptract, but not replace with CMB.
Any thoughts help? Thanks |
#5 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Just off the top of my head, you could subtract the current value of the field (rendering it 0), then add the value of the CMB field (which would replace it).
|
#6 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
That did it, that's yall:
~ If we're disabled, do nothing doneif (tagis[Helper.FtDisable] <> 0) field[abValue].value -= hero.child[Attack].field[tAtkBase].value field[abValue].value += hero.child[Maneuver].field[tCMB].value foreach pick in hero from BaseWep where "wFtrGroup.Firearms" eachpick.field[wAttRanged].value = field[abValue].value nexteach |
#7 |
|
|