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
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old February 1st, 2012, 12:04 PM
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!
Frodie is offline   #1 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old February 1st, 2012, 02:54 PM
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.
ShadowChemosh is offline   #2 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old February 1st, 2012, 04:39 PM
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.
Frodie is offline   #3 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old February 1st, 2012, 07:27 PM
I think it is add the two values together. Trying to get the CMB to replace the normal attack
Frodie is offline   #4 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old February 2nd, 2012, 06:27 AM
Yea, I can get it to add or suptract, but not replace with CMB.
Any thoughts help?

Thanks
Frodie is offline   #5 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old February 2nd, 2012, 07:53 AM
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).
Aaron is offline   #6 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old February 2nd, 2012, 08:09 AM
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
Frodie is offline   #7 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 04:50 AM.


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