• 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

Checking if unarmed then add +2 to Damage

spannclann

Well-known member
I am trying to check a hero to see if they are unarmed then I want to add +2 to damage if true. I can check if unarmed by:

if (hero.tagis[Hero.EquipMain] = 0) then
if (hero.tagis[Hero.EquipOff] = 0) then

or

if (tagis[IsWeapon.wUnarmed] = 0) then

I am just unsure how to add the +2 to damage to the hero.
 
Which game system is this, so that I can move this post into the correct forum? The details of the answer will vary by game system.
 
I did find a bit of code that works, but it adds +2 to the Attack AND Damage. What needs to be done to it to only add +2 to damage?

hero.child[wUnarmed].field[Bonus].value += 2

******Edit******

It took a bit of searching, but I found it. The code is:

hero.child[wUnarmed].field[dmmBonus].value += 2
 
Last edited:
Back
Top