• 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

Two handed fighter - Overhand Chop

Minous

Well-known member
I'm trying to get the fighter ability Overhand Chop (cFtrOverCh) to work in the Activated Abilities on the In-Play tab and also correctly calculate the damage. I know it doesn't do it normally but any help adding that functionality would be appreciated.
 
Im trying to figure out how to change the strength modifier from 1.5x damage to 2x Damage, However I am unsure of how to do it.
 
I understand that changing the strength modifier is your goal. My question was more "what have you attempted in pursuit of that aim"?

If you are truly at a loss as to how to begin, then I would ask what your experience level is? If you're not familiar with editor stuff at all, then you might benefit from checking out out intro to the editor seminar (it's on youtube, here https://www.youtube.com/watch?v=ZzrfEMuG_cw).

If you're a bit more experienced, I would say "Add an activation which foreaches through equipped two handed weapons, and add to the field storing their attribute damage"
 
Ive done some basic editing, but Im not enough to know how to do the for each modifications. Ill take a look at the YouTube link and see if that helps.
 
Ive hit a wall, I do programming in other languages but cannot seem to piece the documentation together enough to do this in HL.
 
Something like this, perhaps?

PostAttr 10000
Code:
~ First, lets figure out how much damage we should add, the difference between 1.5x Str and 2x Str.
field[abValue].value += (#attrbonus[aSTR] * 2) - round(#attrbonus[aSTR] * 1.5,0,-1)

~ Now let's go through all weapons on the hero that are, A. Equipped, and B. Two Handed, C. Used in Melee, and D. Not overridden to use some attribute other than Str
foreach pick in hero from BaseWep where "fieldval:gIsEquip <> 0 & wClass.TwoHanded & wCategory.Melee & !DamageOver.?"
  ~ And add the bonus
  eachpick.field[dmmBonus].value += field[abValue].value
  nexteach

Not tested, tweak as necessary.
 
Last edited:
Back
Top