Checking if unarmed then add +2 to Damage
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.
|
Hero Lab 5e
|
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 |
All times are GMT -8. The time now is 08:31 AM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.