Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Vyzzini
Junior Member
 
Join Date: Jun 2013
Posts: 10

Old June 3rd, 2013, 01:57 AM
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.
Vyzzini is offline   #1 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old June 3rd, 2013, 09:41 AM
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.
ShadowChemosh is offline   #2 Reply With Quote
Vyzzini
Junior Member
 
Join Date: Jun 2013
Posts: 10

Old June 3rd, 2013, 09:57 AM
Yep that's exactly what I did.
Your solution works perfectly!

Thanks a lot!
Vyzzini is offline   #3 Reply With Quote
Maidhc O Casain
Senior Member
 
Join Date: Nov 2009
Location: Jonesboro, AR (USA)
Posts: 858

Old June 3rd, 2013, 05:05 PM
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
Maidhc O Casain is offline   #4 Reply With Quote
Gerard
Junior Member
 
Join Date: Jun 2013
Posts: 7

Old April 1st, 2014, 06:58 PM
Houston we have a problem.

It adds the strenght bonus 1 1/2 times, instead 1.

Any suggestions?
Gerard is offline   #5 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old April 2nd, 2014, 10:52 AM
Quote:
Originally Posted by Gerard View Post
Houston we have a problem.

It adds the strenght bonus 1 1/2 times, instead 1.

Any suggestions?
The above code was meant to work on a "Longbow" not a Composite Longbow with a Strength score. So yes in such a case you will get double values not a single bonus.

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.
ShadowChemosh is offline   #6 Reply With Quote
Gerard
Junior Member
 
Join Date: Jun 2013
Posts: 7

Old April 3rd, 2014, 06:17 PM
I put the code in a "longbow".

Problem was fixed up adding the next tag:

Group Id: Helper.

Tag Id: NoDblStr

Thanks, ShadowChemosh
Gerard is offline   #7 Reply With Quote
Reply


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 11:52 AM.


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