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 28th, 2016, 11:32 AM
Quote:
Originally Posted by ShadowChemosh View Post
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...

Worked like a charm!!! Yea I changed it to Int for my witch. Thank you so much, I could not figure this out to save my life!
BloodAngel099 is offline   #11 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, 02:09 PM
Quote:
Originally Posted by BloodAngel099 View Post
Worked like a charm!!! Yea I changed it to Int for my witch. Thank you so much, I could not figure this out to save my life!
Sweet! Good to hear.

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   #12 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:10 AM.


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