Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
Kaleb
Senior Member
 
Join Date: Aug 2010
Posts: 531

Old August 9th, 2018, 12:54 AM
I am trying to make an adjustment for a new spell called focused strike thee spell doubles the base weapon damage how would I modify the below script.

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

~ Modify all melee weapons
foreach pick in hero from BaseWep where "wCategory.Melee & !Ability.ipImpact"
~ Only modify size if we are not a natural attack or unarmed strike
if (eachpick.tagis[wGroup.Natural] + eachpick.tagis[thingid.wUnarmed] = 0) then
~ Increase damage dice by one size
eachpick.field[wDamage].value += 1
endif
nexteach

~ Oddly enough, the monk's unarmed strike counts as a manufactured weapon
~ for spell effects, so apply a DamageUp tag to the unarmed strike if we
~ have monk levels.
doneif (hero.tagexpr[Classes.Monk | Classes.MonkUnc] = 0)

perform hero.childfound[wUnarmed].assign[Helper.DamageUp]

would I do something like this
eachpick.field[wDamage].value *2
Kaleb is offline   #1 Reply With Quote
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 949

Old August 9th, 2018, 07:04 AM
I would probably do it like this -

Right before the foreach loop:
Code:
var myDmg as number
Then in the loop:
Code:
myDmg = eachpick.field[wDamage].value
eachpick.field[wDamage].value += myDmg

Working on -
TCArknight is offline   #2 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 01:36 PM.


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