Hero Lab 4e

Herolab D&D 4e - Downloads Tracker => Modifications => Topic started by: Sean Abel on July 25, 2015, 04:11:14 PM

Title: Add the INit modifier for Battle Harness
Post by: Sean Abel on July 25, 2015, 04:11:14 PM
Is there a fast way to create the init bonus that Battle Harnes is to add according to its modifier bonus?

"Properties: As a free action, you can draw a sheathed weapon or retrieve a stowed item.
You gain a power bonus to initiative equal to the item's enhancement bonus."
Title: Re: Add the INit modifier for Battle Harness
Post by: dmayhew469 on June 15, 2017, 08:27:12 PM
Add this eval script:

Phase:  Traits
Priority: 1000
Script:
    doneif (tagis[Equipped.Equipped] = 0)
    var bonus as number
    bonus = 1
    #traitmodify[trInit,trtPower,bonus,""]

Timing  Before: Derived trtFinal

You will have to add this to each item and change the bonus to match the enhancement bonus of the item.
Title: Re: Add the INit modifier for Battle Harness
Post by: Sean Abel on June 27, 2018, 09:05:33 PM
Hey this is a long time past due [120 days+]
But this did not add to the initiative when equipped. any ideas?
Title: Re: Add the INit modifier for Battle Harness
Post by: Charlie on June 28, 2018, 11:24:49 PM
We had this issue with the Quicksilver Blade, and this script worked:

(EDIT: Apparently the Battle Harness is a Power Bonus rather than an Item Bonus, so I modified to match)

Phase Traits

Priority 1000

doneif (parent.tagis[Equipped.Equipped] = 0)
#traitmodify[trInit,trtPower,1,""]

Timing  Before Derived trtFinal
Title: Re: Add the INit modifier for Battle Harness
Post by: Sean Abel on July 03, 2018, 10:00:35 PM
Awesome not only does it work but I tested it with a weapon of speed and that works as well plus HL only uses the higher of the two bonuses!

Thank you for the help!
Title: Re: Add the INit modifier for Battle Harness
Post by: Sean Abel on July 03, 2018, 10:19:21 PM
Okay I was thinking
Weapon of speed is a Property: While holding this weapon, you gain an item bonus to initiative checks equal to the weapon?s enhancement bonus.
Battle Harness is Properties: You gain a power bonus to initiative equal to the item?s enhancement bonus.

So would those stack or only take the best result? since one is item and the other power? is so then what would be the script difference between them?
Title: Re: Add the INit modifier for Battle Harness
Post by: Charlie on July 05, 2018, 12:22:32 AM
The scripts are the same except that the Quicksilver Blade uses trtItem instead of trtPower; being separate bonus types, they stack (I confirmed this with my character).
Title: Re: Add the INit modifier for Battle Harness
Post by: Sean Abel on July 05, 2018, 09:19:35 PM
Okay so I am getting a few mixed messages from my HL :( its been a bad day for me anyway so why not here as well.
I am not getting a stacked bonus, I am getting a timing error and now I get this message "Thing to replace is already replaced by another thing and cannot be superceded" so it will not update the items. I know that its replacing the old equipment item but it should still save!



ARRRgg this is why I am not a programmer.

I have attached my June & July Updates in case anyone has some time to see what I did wrong. Then if they can explain it to me I will fix it and make changes in my new notes.
I am working with the Weapon of Speed and Battle Harness right now once I have those I can spread out more [cause more problems]
Thanks all