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
BloodAngel099
Member
 
Join Date: Apr 2014
Posts: 90

Old May 18th, 2016, 12:27 AM
I was wondering how to create a wondrous item in the editor that will use the wielders attribute and caster levels to determine its strength and dc.
BloodAngel099 is offline   #1 Reply With Quote
BloodAngel099
Member
 
Join Date: Apr 2014
Posts: 90

Old May 18th, 2016, 10:11 PM
I have changed this over to magic weapon in the editor since it seemed easier to build what I wanted. Even though I add spells under the staff spells section (so that it uses the wielders caster level and attribute) it is still using the minimum caster level and no attribute to calculate the DC. The staff spell box is check on all of the spells as well. I don't understand why its not working.
BloodAngel099 is offline   #2 Reply With Quote
BloodAngel099
Member
 
Join Date: Apr 2014
Posts: 90

Old May 21st, 2016, 01:35 PM
Does anyone have any idea of how to get magic items to use the wielder's ability score instead of the minimum? I have been working on this for days and can't even get it to work on staves (which is supposed to be a built in function of staves). Does Hero Lab not support this function?
BloodAngel099 is offline   #3 Reply With Quote
TobyFox2002
Senior Member
 
Join Date: Nov 2013
Location: Andover, Ma
Posts: 632

Old May 21st, 2016, 04:39 PM
Are you looking to do this with ALL items or only a single item? Also, staves would be very likely much harder that normal magic items because spells are added through tags. It would be quite difficult to adjust any of the spells DC's. (although, probably not impossible).

I think there is an archetype that allows the caster to use their abilitiy scores forwands and scrolls. And a magic item that adjusts the DC of poisons. But I dont know the name for either.
TobyFox2002 is offline   #4 Reply With Quote
BloodAngel099
Member
 
Join Date: Apr 2014
Posts: 90

Old May 21st, 2016, 11:42 PM
Quote:
Originally Posted by TobyFox2002 View Post
Are you looking to do this with ALL items or only a single item? Also, staves would be very likely much harder that normal magic items because spells are added through tags. It would be quite difficult to adjust any of the spells DC's. (although, probably not impossible).

I think there is an archetype that allows the caster to use their abilitiy scores forwands and scrolls. And a magic item that adjusts the DC of poisons. But I dont know the name for either.
For now I am only looking to do it with this specific item. The only reason I brought up staves is because they usually use the wielders ability score and if this was already programmed into Hero Lab I was hoping to just be able to copy a script or something from another item, I have had no luck finding such a mechanic however.
BloodAngel099 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 May 23rd, 2016, 10:12 AM
Unless Aaron knows of a tag to do this. I am thinking you will need to set a Custom.? tag onto each spell bootstrap. Then run a script to foreach through all the spells with the Custom.? tag to adjust the sDC field to what you want it to be. I would recommend sometime after Attributes and after HL has already set the sDC field to make your change.

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
BloodAngel099
Member
 
Join Date: Apr 2014
Posts: 90

Old May 25th, 2016, 08:36 PM
Quote:
Originally Posted by ShadowChemosh View Post
Unless Aaron knows of a tag to do this. I am thinking you will need to set a Custom.? tag onto each spell bootstrap. Then run a script to foreach through all the spells with the Custom.? tag to adjust the sDC field to what you want it to be. I would recommend sometime after Attributes and after HL has already set the sDC field to make your change.
Well, I am not very good at the editor yet so I have no idea how to do any of that... lol
BloodAngel099 is offline   #7 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old May 26th, 2016, 09:17 AM
Quote:
Originally Posted by BloodAngel099 View Post
Well, I am not very good at the editor yet so I have no idea how to do any of that... lol
I will see if I can put together a script for you. Just wish I could star or mark a thread so I remember to read them again later.

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   #8 Reply With Quote
BloodAngel099
Member
 
Join Date: Apr 2014
Posts: 90

Old May 26th, 2016, 11:22 AM
Quote:
Originally Posted by ShadowChemosh View Post
I will see if I can put together a script for you. Just wish I could star or mark a thread so I remember to read them again later.
That would be amazing. Thanks! Yea it can be a bit of a hassle to remember which threads you wanted to come back to and which ones your done with. lol
BloodAngel099 is offline   #9 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old May 28th, 2016, 09:44 AM
Attached to this post is a working example.

I will go over the steps here to help out. If you have any questions feel free to ask.

I made a quick unique magic called 'Shadow' with a unique id of "iS2Shadow". Yes I am "very" original in my ideas.

On the weapon, magic tab click the blue button called "Bootstraps" and find your spells you want to have attribute bonuses added to. On these click the "tags..." button and click on "Click to add another tag". In the new boxes type in "Activated" for the group id and the UNIQUE ID OF YOUR WEAPON as the tag id. In my example I typed in "iS2Shadow".

Then on the weapon itself click on "Eval Scripts" and add a new one to run at "Post-Attributes" priority "25000".

Then past the following script into the "Script:" text box:
Code:
      var searchexpr as string
      ~ Create our Activated tag with our Unique ID
      searchexpr = tagids[Activated.?,"|"]

      ~ Loop through all the spells with this weapons activated
      ~ identity tag.
      foreach pick in hero from BaseSpell where searchexpr
        eachpick.field[sDCAttr].value += #attrmod[aCHA]
      nexteach
The above code is generic enough to run on any weapon or item as it gets the Activated.? tag from the Pick itself.

The only part you will need to change is in the macro #attrmod[] to be the ability score that should provide the bonus. For testing I used Charisma.

Hope that gets you going in the right direction...
Attached Files
File Type: email BloodAngel099 Forum Help.user (1.2 KB, 1 views)

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   #10 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 10:02 PM.


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