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
BobStumpp
Junior Member
 
Join Date: Oct 2017
Posts: 13

Old January 14th, 2018, 06:21 PM
I have been working on this for most of the day, and just can't seem to figure it out. I am wanting to add a custom feat that will allow you add your proficiency Bonus to your Damage for Melee weapons you are proficient in. I just can't seem to get the Eval Script to be correct. The closest I have come adds the Proficiency Bonus to the Damage of all Melee Weapons (even those without proficiency). Here is what I have for my Eval Script:

Code:
foreach pick in hero from BaseWep where "WepProf.?"
  eachpick.field[dmmBonus].value += hero.childfound[ProfBonus].field[tProfBonus].value
  nexteach
Any way I can reduce this to just proficient weapons? Or is there a better way?

Thanks,

Bob
BobStumpp is offline   #1 Reply With Quote
dungeonguru
Senior Member
 
Join Date: May 2016
Posts: 590

Old January 15th, 2018, 03:59 AM
You can probably look for the Helper.Proficient tag instead, probably in the Final phase.

I think all weapons have an implied WepProf.thingid tag, so your foreach logic will fire off for every weapon.
dungeonguru is offline   #2 Reply With Quote
BobStumpp
Junior Member
 
Join Date: Oct 2017
Posts: 13

Old January 15th, 2018, 08:39 AM
Thank you very much, that is what I needed:

Code:
foreach pick in hero from BaseWep where "Helper.Proficient"
    eachpick.field[dmmBonus].value += hero.childfound[ProfBonus].field[tProfBonus].value
    nexteach
BobStumpp is offline   #3 Reply With Quote
Enforcer84
Senior Member
 
Join Date: Oct 2011
Location: Corvallis
Posts: 282

Old February 6th, 2018, 01:56 PM
Is there a way to add half proficiency bonus? I know there's a ProfHalf thing but I couldn't make it work with this script.
Enforcer84 is offline   #4 Reply With Quote
BobStumpp
Junior Member
 
Join Date: Oct 2017
Posts: 13

Old February 7th, 2018, 08:55 AM
If you are having trouble with ProfHalf, I would just go with the math option:

Code:
foreach pick in hero from BaseWep where "Helper.Proficient"
    eachpick.field[dmmBonus].value += round(hero.childfound[ProfBonus].field[tProfBonus].value/2, 0 ,-1)
    nexteach
Doing this from my head, but that should be correct...
BobStumpp is offline   #5 Reply With Quote
Enforcer84
Senior Member
 
Join Date: Oct 2011
Location: Corvallis
Posts: 282

Old February 7th, 2018, 06:06 PM
ooh nice. I'll give that a try.

Thank you!
Enforcer84 is offline   #6 Reply With Quote
Brolthemighty
Senior Member
 
Join Date: Jan 2013
Posts: 267

Old February 23rd, 2020, 04:39 PM
Necro'ing this thread, because it's hitting the nail on the head for something I'm looking to do as well. I'm using the scripting, but it's not actually effecting anything. What timing are you using? I went with Post-levels 10000?

I've also bootstrapped Reckless attack to my thing. It works...but on the specials tab it's grayed out.

Last edited by Brolthemighty; February 23rd, 2020 at 04:42 PM.
Brolthemighty is offline   #7 Reply With Quote
BobStumpp
Junior Member
 
Join Date: Oct 2017
Posts: 13

Old February 24th, 2020, 05:09 AM
Truthfully, I completely forget the reason for this script, but I believe I ran it in Final Phase 5000.
BobStumpp is offline   #8 Reply With Quote
Brolthemighty
Senior Member
 
Join Date: Jan 2013
Posts: 267

Old February 24th, 2020, 02:27 PM
Thank you, I'll try that.

Edit: That worked perfectly, thank you! Now I just have to add the script in order for it to only apply when activated (i.e., find the script to add lol.)

Last edited by Brolthemighty; February 24th, 2020 at 02:32 PM.
Brolthemighty is offline   #9 Reply With Quote
dungeonguru
Senior Member
 
Join Date: May 2016
Posts: 590

Old February 24th, 2020, 02:36 PM
tProfBonus is available till after Levels/15000, but most weapon fields don't get initialized until the Post-Attributes stage so it's usually easier to mess with weapons in the Final stage.

You can always right-click and view the timing report to make sure when something gets touched.

When something gets greyed out, is somehow is getting a Helper.Disabled or losing the Helper.ShowSpec tag, those are two things to look for.
dungeonguru is offline   #10 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 03:39 AM.


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