Member
Join Date: Aug 2018
Location: Texas
Posts: 87
|
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. |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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.
|
#2 |
Member
Join Date: Aug 2018
Location: Texas
Posts: 87
|
Hero Lab 5e
|
#3 |
Member
Join Date: Aug 2018
Location: Texas
Posts: 87
|
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 by spannclann; September 21st, 2021 at 10:33 AM. |
#4 |
|
|