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
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old June 1st, 2014, 12:13 PM
Quote:
Originally Posted by BloodAngel099 View Post
So I know I am pulling a necro on this thread but its the closest thing I have found to what I want to do. What would I have to do to just double strength when ever I two hand a weapon instead of the normal x1.5? Its a house rule that we use and I cant seem to figure out what to put into hero lab
As what this thread and you wanted where different I would advise a "new" thread instead.

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
If you also want to affect one-handed weapons that are used in two-hands then the script gets a littler more advanced as you have to loop through all the weapons on the character and give a damage 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.
ShadowChemosh is offline   #11 Reply With Quote
BloodAngel099
Member
 
Join Date: Apr 2014
Posts: 90

Old June 3rd, 2014, 11:12 PM
worked like a dream, thanks for the help!!
BloodAngel099 is offline   #12 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 10:45 PM.


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