Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - D&D 5th Edition SRD (http://forums.wolflair.com/forumdisplay.php?f=89)
-   -   Checking if unarmed then add +2 to Damage (http://forums.wolflair.com/showthread.php?t=66356)

spannclann September 21st, 2021 07:48 AM

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.

Mathias September 21st, 2021 08:12 AM

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.

spannclann September 21st, 2021 09:04 AM

Hero Lab 5e

spannclann September 21st, 2021 10:11 AM

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 07:40 AM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.