Full Strength Secondary Attacks
We run with a house rule that you use full strength on off-hand/secondary attacks and double strength on two-handed. I got help from here before for adding full strength to off-hand and double on two-handed, can someone tell me what I need to get full strength on secondary attacks? Thanks!
Pre-levels 5000 ~ If we're disabled, do nothing doneif (tagis[Helper.FtDisable] <> 0) perform hero.assign[Hero.DblSlice] Post-attributes 10000 var bonus as number ~ Calculate the extra .5 of the strength modifier. This added to the ~ normal 1.5 bonus will give us 2x Str bonus. bonus += round(#attrmod[aSTR]/2,0,1) ~ This will only affect two-handed melee weapons foreach pick in hero from BaseWep where "wClass.TwoHanded & wCategory.Melee" ~ Give a unnamed bonus to Damage Melee eachpick.field[dmmBonus].value += bonus nexteach Post-attributes 10000 var bonus as number ~ Calculate the extra .5 of the strength modifier. This added to the ~ normal 1.5 bonus will give us 2x Str bonus. bonus += round(#attrmod[aSTR]/2,0,1) ~ One handed weapons wielded in two-hands don't get the above ~ damage bonus. So we have to loop through all the active weapons ~ and give the bonus individually. ~ Loop through only the melee weapons foreach pick in hero from BaseWep where "wCategory.Melee" ~we are a one handed weapon equipped in two hands If (eachpick.tagis[wClass.OneHanded] + eachpick.field[gIsEquip].value + eachpick.field[wIs2nd].value = 3) Then ~ Give a bonus eachpick.field[wDamBonus].value += bonus Endif nexteach |
I assume when you say secondary attacks you mean "Secondary Natural Attacks". That is what the below script assumes. I have combined your multiple scripts into one foreach loop because foreach loops are very CPU intensive to run.
This a full replacement for both scripts running at Post-attributes 10000 Code:
var bonus as number The above script just adds back the .5 to the secondary natural attacks. NOTE: I wrote this without access to HL so tweaking maybe needed. :) |
Isn't this house rule effectively the same as saying "everyone gets the effects of the double slice feat"? The script on Double Slice is a lot simpler.
|
Quote:
1) Manufactured off-hand attacks are at full Str. This is easy to do with applying Hero.DblSlice tag to the hero. 2) Manufactured Two-handed weapons (and 1H weapons in 2 hands) get 2x Str not 1.5x Str. 3) Secondary Natural Attacks which normally are at .5 Str need to be 1x Str. Based on the question and that Hero.DblSlice is already in use I assume Hero.DblSlice does not affect Natural Attacks. If a tag exists for situation #2 & #3 to remove the foreach loop great but I couldn't find any in my notes.... :) |
Okay, from what I read in the original post, #2 and #3 were done, and this script was only trying to implement #1
|
Quote:
Guess we will know for sure once BloodAngel099 replies. :) |
Quote:
|
Quote:
In my notes I have "Helper.NatHalfStr" which forces a Primary attack to get half damage. I was hoping there was a Helper.NatFullStr tag to make a secondary get full damage. :) |
Looks like there is a tag for it - Helper.NoHalfStr.
|
Quote:
|
All times are GMT -8. The time now is 11:36 PM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.