Junior Member
Join Date: Mar 2017
Posts: 27
|
I am creating a Ring for Sorcerers that will increase the number of Spells per Day by 1 for 1st, 2nd, and 3rd levels spells.
I am onyl guessing at this as I am not a script writer. Looking at other items, I came up with this (that does not work)/; Phase: Final Phase Priority: 10000 Index: 1 ~ if we're equipped, apply additional spells per day at levels 1, 2 and 3. if (field[gIsEquip].value <> 0) then hero.child[cHelpWiz].field[cCastMax].arrayvalue[1] += 1 hero.child[cHelpWiz].field[cCastMax].arrayvalue[2] += 1 hero.child[cHelpWiz].field[cCastMax].arrayvalue[3] += 1 endif I am not sure of the correct Thing field to use. Thanks for your time |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
First I would recommend reading the Glossary of Terms for the Editor. Then check out FAQ#2 for all the places to learn about the editor including YouTube videos. Welcome to the wonderful world of using the HL editor which will be the most frustrating and rewarding thing you can do with Hero Lab.
Then looking quickly at your script your going after hero.child[cHelpWiz] which is the "Class Helper Wizard" Pick. But you said you wanted to affect Sorcerer so that is your first issue. I assume when running this script you are getting errors? If not then I assume you have yet to turn on Debugging which makes things easier. See FAQ#9 for how to turn on Debugging and how to find fields. Armed with the above knowledge you can add a 1 level of Sorcerer and go to "Develop->Floating Info Windows->Show Selection Fields" and look for Sorcerer with a thing id starting with cHelp. Then you can look at all the fields that make up the Sorcerer class helper Pick. You should know be able to correctly write the script and even make sure the values are changing as expected... 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. |
#2 |
Junior Member
Join Date: Mar 2017
Posts: 27
|
ShadowChemosh, thank you so very much for all the useful information you have provided. I look forward to reading all this information and discovering this oh so wonderful world of the Editor.
Thanks again! |
#3 |
Junior Member
Join Date: Mar 2017
Posts: 27
|
Took me a little while but I got it.
Logically is was hero.child[cHelpSor] but I followed your steps just to be sure and it now works. Thanks! |
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Awesome!
Plus hopefully the above info comes in handy for many future script projects. 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. |
#5 |
Junior Member
Join Date: Mar 2017
Posts: 27
|
It has, thank you very much!
|
#6 |
|
|