• 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

Help with a hard one

Frodie

Well-known member
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!
 
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
 
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:
I think it is add the two values together. Trying to get the CMB to replace the normal attack
 
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).
 
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
 
Back
Top