Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
So what you want is easy if you are only including "two-handed" weapons ONLY and not one-handed weapons used in two-hands. If so the script is as follows and is made to go on a Mechanic so that it affects every character. Post-Attributes/10000 Code:
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 weapons hero.child[Damage].field[tDamTwo].value += bonus Post-Attributes/10000 Code:
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 weapons hero.child[Damage].field[tDamTwo].value += bonus ~ 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 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. |
|
#11 |
Member
Join Date: Apr 2014
Posts: 90
|
worked like a dream, thanks for the help!!
|
#12 |
|
|