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.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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.
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.
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.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.![]()
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
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...
Sweet! Good to hear.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!