|
Junior Member
Join Date: Jun 2013
Posts: 10
|
Hi,
I'm trying to create an artefact from the Savage Tide campaign in Herolab: It's a +1 shocking burst longbow that allows you to add your str bonus to damage (just like a composite bow but with no fixed value). I created a new weapon capability where I add the character str bonus to the damage. My problem is that I don't know how to limit the bonus to that weapon only. Every time I equip that bow in one portfolio the str bonus is added to all the weapon the character carries (so it's added twice for all melee weapon). Thank you for your help. |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
It would be easier to help if you posted the actual script. But my guess is you added the bonus to the "Damage" Thing which is the global value and not the one specific to the weapon you are running on.
As this is a specific magic weapon I am pretty sure you have to transition to the container's parent first. Not near HL so I can't test. So if the below doesn't work try removing the "container.parent" part.... So you need a script like this at Post-Attributes/10000 Code:
~ Give strength bonus to weapon container.parent.field[wDamBonus].value += #attrmod[aSTR] Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#2 |
Junior Member
Join Date: Jun 2013
Posts: 10
|
Yep that's exactly what I did.
Your solution works perfectly! Thanks a lot! |
#3 |
Senior Member
Join Date: Nov 2009
Location: Jonesboro, AR (USA)
Posts: 858
|
The easier way to do that - if I understand what you're trying to accomplish - would be to make a +1 Shocking Burst Composite Longbow, and give it the Adaptive power.
Easier, but not as much fun |
#4 |
Junior Member
Join Date: Jun 2013
Posts: 7
|
Houston we have a problem.
It adds the strenght bonus 1 1/2 times, instead 1. Any suggestions? |
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
So my assumption is you have a +2 Str Composite Longbow with a 18 Str. It's final value is +6. Two from the Composite and 4 from the script. You will have to do more scripting to take into account the +2 Composite part of the bow. Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
|
#6 |
Junior Member
Join Date: Jun 2013
Posts: 7
|
I put the code in a "longbow".
Problem was fixed up adding the next tag: Group Id: Helper. Tag Id: NoDblStr Thanks, ShadowChemosh |
#7 |
|
|