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
KataH
Junior Member
 
Join Date: Mar 2017
Posts: 27

Old June 9th, 2017, 09:54 PM
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
KataH is offline   #1 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old June 10th, 2017, 08:35 AM
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.
ShadowChemosh is offline   #2 Reply With Quote
KataH
Junior Member
 
Join Date: Mar 2017
Posts: 27

Old June 10th, 2017, 02:13 PM
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!
KataH is offline   #3 Reply With Quote
KataH
Junior Member
 
Join Date: Mar 2017
Posts: 27

Old June 10th, 2017, 03:14 PM
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!
KataH is offline   #4 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old June 10th, 2017, 06:23 PM
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.
ShadowChemosh is offline   #5 Reply With Quote
KataH
Junior Member
 
Join Date: Mar 2017
Posts: 27

Old June 13th, 2017, 05:05 PM
It has, thank you very much!
KataH is offline   #6 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 02:00 PM.


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