Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - D&D 5th Edition SRD

Notices

Reply
 
Thread Tools Display Modes
spannclann
Member
 
Join Date: Aug 2018
Location: Texas
Posts: 87

Old September 21st, 2021, 07:48 AM
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.
spannclann is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

Old 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.
Mathias is offline   #2 Reply With Quote
spannclann
Member
 
Join Date: Aug 2018
Location: Texas
Posts: 87

Old September 21st, 2021, 09:04 AM
Hero Lab 5e
spannclann is offline   #3 Reply With Quote
spannclann
Member
 
Join Date: Aug 2018
Location: Texas
Posts: 87

Old 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

Last edited by spannclann; September 21st, 2021 at 10:33 AM.
spannclann is offline   #4 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 04:41 AM.


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