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
Starcloud
Junior Member
 
Join Date: Sep 2011
Posts: 16

Old September 10th, 2011, 04:03 PM
So, the DM is a big believer in creating and giving out custom and custmized magic items.
I've already figured out how to create an item that gives +2 to a stat, +1 to saves and AC, and casts a single specific spell once a day.

However, the other magic item is giving me some difficulty. It's a rod that gives sorcerers and other spontaneous spellcasters the use of the Empowered Spell feat once a day and also adds the casting of one extra second level spell per day.

This giving me fits. Adding spells per day is not, apparently, documented anywhere and looking at related items (Ring of Wizardry, Pearl of Power, various "how to edit classes" tutorials) does not help.

So what would this magic item look like? What fields, tags, eval scripts, etc would it have?

Last edited by Starcloud; September 10th, 2011 at 04:48 PM.
Starcloud is offline   #1 Reply With Quote
bodrin
Senior Member
 
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265

Old September 10th, 2011, 11:45 PM
Take a look at the Adjustment scripts. They have a good selection of examples that add or subtract to your character. You should find examples how to add extra spells. The metamagic feat would require a charge indicator though.
bodrin is offline   #2 Reply With Quote
Starcloud
Junior Member
 
Join Date: Sep 2011
Posts: 16

Old September 11th, 2011, 01:24 PM
Thank you for your attempt to help. However, I don't own the authoring kit and the basic documentation doesn't go into adjustment scripts, not that I've found.

Therefore, I need something a little more detailed than "Look for this kinda stuff."
Starcloud is offline   #3 Reply With Quote
chiefweasel
Senior Member
 
Join Date: Aug 2008
Location: Miamisburg, OH
Posts: 1,322

Old September 11th, 2011, 01:51 PM
You can lok at he scripts ion the Editor, which is different freom the Authoring kit. Just select Launch Editor from the Tools Menu. From there you can create anything for the game system.

Web site - Cheese Weasel Logistics - www.cheeseweasel.net
Twitter - @CheeseWeaselGMZ
For user created content check out www.d20pfsrd.com and www.cheeseweasel.net
For video demos of Hero Lab go to http://www.youtube.com/user/TheChiefweasel?blend=9&ob=5
chiefweasel is offline   #4 Reply With Quote
Starcloud
Junior Member
 
Join Date: Sep 2011
Posts: 16

Old September 11th, 2011, 02:57 PM
On another note, I'm finding the documentation to be wholly inadequate.

I've found the cast spells per day adjustment script, but.

var spelllevel as number
spelllevel = field[pSpellLvl].value
field[pChosen].chosen.field[cMemMax].arrayvalue[spelllevel] += field[pAdjust].value
field[pChosen].chosen.field[cCastMax].arrayvalue[spelllevel] += field[pAdjust].value

Does not make sense to me. How do I assign this to be Level 2 and add 1 spell per day?

Would it be

field[pSpellLvl].value = 2
field[pAdjust].value = 1

var spelllevel as number
spelllevel = field[pSpellLvl].value
field[pChosen].chosen.field[cMemMax].arrayvalue[spelllevel] += field[pAdjust].value
field[pChosen].chosen.field[cCastMax].arrayvalue[spelllevel] += field[pAdjust].value

Or does this not work because of something like "Derived fields cannot be adjusted through a script"?

Yep, this does not work. There's something not documented here.

Last edited by Starcloud; September 11th, 2011 at 03:36 PM.
Starcloud 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 September 11th, 2011, 03:55 PM
What you are looking is a hierarchy of Things that take you down eventually to the array values you want to modify.

So lets break down:
Code:
field[pChosen].chosen.field[cMemMax].arrayvalue[spelllevel] += field[pAdjust].value
field[pChosen].chosen defines the first drop down box on the adjustment which is a list of classes or the thing to be "chosen".

field[cMemMax] defines a specific field of the thing "chosen" which in this case is the Maximum Memorized Spell Count.

arrayvalue[spelllevel] defines an array of values of the cMemMax field. This is where you say the level of the spell from 0 to 9.

With that in mind here is a script that will modify a Sorcerer's 2nd level spells castable per day.

Phase: Final Phase Priority: 10000
Code:
~ Increase Maximum Memorized Spell Count level 2 by 1
hero.child[cHlpSor].field[cMemMax].arrayvalue[2] += 1
~ Increase Maximum Cast Spell Count level 2 by 1
hero.child[cHlpSor].field[cCastMax].arrayvalue[2] += 1
This hard codes Sorcerer and if you don't have Sorcerer levels you will get thrown errors. If you want a chooser (ie Drop Down Selection Box) you would need to setup a "Select From..." to be "Classes" on your wondrous item. Then go back to this as your code:

Phase: Final Phase Priority: 10000
Code:
~ If nothing chosen, get out now
doneif (field[usrChosen1].ischosen = 0)

~ Increase Maximum Memorized Spell Count level 2 by 1
field[usrChosen1].chosen.field[cMemMax].arrayvalue[2] += 1
~ Increase Maximum Cast Spell Count level 2 by 1
field[usrChosen1].chosen.field[cCastMax].arrayvalue[2] += 1
You will note pChosen was changed to "usrChosen1". That is because magic items have a different chooser than Adjustments. So how did I find that?

I added the magic item to my character and went to Develop->Enable Data File Debugging. Then I right clicked on the magic items ? field and took "Show Debug Fields for XXXX". Then on the new window I looked for the "Chosen Thing/Pick#1" field and found the field name.

Hope that helps some.

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.

Last edited by ShadowChemosh; September 11th, 2011 at 04:04 PM.
ShadowChemosh is offline   #6 Reply With Quote
Starcloud
Junior Member
 
Join Date: Sep 2011
Posts: 16

Old September 11th, 2011, 04:44 PM
This explanation helps a great deal. Thank you very much.

Given that this item is only useable by spontaneous casters, how would I limit the classes available to pick from? Is there a particular field that identifies a spontaneous spellcaster, or would I have to try to define an array that only holds spontanteous spellcasting classes?
Starcloud is offline   #7 Reply With Quote
Kendall-DM
Spy
 
Join Date: Jan 2011
Location: Van Nuys, California
Posts: 1,220

Old September 11th, 2011, 09:19 PM
You want to look for the Hero.SpontArc tag.
Kendall-DM is offline   #8 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 09: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.