• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Wondrous Item

BloodAngel099

Well-known member
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.
 
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.
 
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?
 
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.
 
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.
 
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.
 
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
 
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
 
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. :p

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...
 

Attachments

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. :p

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!
 
Back
Top