• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Help w/ adjustment

Kaleb

Well-known member
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
 
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
 
Back
Top