Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System

Notices

Reply
 
Thread Tools Display Modes
clavin123
Member
 
Join Date: Feb 2010
Posts: 33

Old August 21st, 2011, 06:06 AM
I'm building the Hammer of Moradin (PGtF) PrC and would like to have the Powerful Grip feature automatically add its bonus (1/2 Str mod to damage) to all any warhammer the character possesses proactively.

I have created the following adjustment that correctly does the math and adds it to any weapon to which I assign the adjustment, but I can't figure out how to have it run through and find every warhammer and assign the bonus proactively (so that I can simply put the script in the class special ability and not have to do an adjustment).

Here's my script for the adjustment:

~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)

~determine our bonus (half strength)

var bonus as number
bonus = round(hero.child[aSTR].field[aModBonus].value / 2, 0, -1)

~ Add to damage on selected weapon
field[pChosen].chosen.field[wDamBonus].value += bonus

And I am pretty sure that some variation of the following language is what I need, but I have no idea how to tell it to look for a warhammer. (I tried substituting "wWarhammer" for the "Helper.Finesse" and it did not work.)

~ Loop through all weapons, looking for ability to use with weapon finesse

foreach pick in hero where "Helper.Finesse"

~ Add our bonus
each.field[wDamBonus].value += bonus
nexteach

Would appreciate any help that can be provided.

Thanks.

Jonathan
clavin123 is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

Old September 5th, 2011, 01:33 PM
Quote:
Originally Posted by clavin123 View Post
And I am pretty sure that some variation of the following language is what I need, but I have no idea how to tell it to look for a warhammer. (I tried substituting "wWarhammer" for the "Helper.Finesse" and it did not work.)

~ Loop through all weapons, looking for ability to use with weapon finesse

foreach pick in hero where "Helper.Finesse"
Code:
foreach pick in hero from BaseWep where "IsWeapon.wWarhammer"
Mathias is offline   #2 Reply With Quote
clavin123
Member
 
Join Date: Feb 2010
Posts: 33

Old September 6th, 2011, 07:54 AM
Thank you! Worked like a charm.
clavin123 is offline   #3 Reply With Quote
Reply

Thread Tools
Display Modes

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 02:37 AM.


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