• 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

Adding text to weapon damage

AndrewD2

Well-known member
I'm working on a template that gives a bonus to damage on all melee attacks based on if its target's alignment.

In the ability I have a foreach loop of:
Code:
foreach pick in hero from BaseWep where "wCategory.Melee"

nexteach

but I'm not sure what I would add for changing the damage text to something like
"+1d8 soulfire to neutral or +2d6 soulfire to evil"

or if there is a better way to do it in general.

Thanks
Andrew
 
I think this should do it.

Code:
foreach pick in hero from BaseWep where "wCategory.Melee"
   #extradamage[eachpick,"+1d8 soulfire to neutral or +2d6 soulfire to evil",field[livename].text]
   nexteach
 
Works beautifully ... I can't believe I overlooked #extradamage[] when I was looking through my macro list ... THANK YOU!
 
No problem, it was only added recently, when we put out Ultimate Equipment and revamped how item powers like flaming work.
 
Back
Top