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
Yaourth
Junior Member
 
Join Date: Mar 2010
Posts: 17

Old May 11th, 2010, 11:48 AM
Hi all !

i'm a new Hlab user and very very weak in code making... so the Editor is like a alien artefact for me
But, i've mastered the D1 module (Crown of Kobold King) and one of my player (sorcerer) have looted the famous Crown.
And i'm not able to create the correct item in Herolab...

this is the basic stats :

Alteration Bonus +2 Charisma (easy)
Natural Armor +2 (easy)
and... the hardest part :
If the character is a Sorcerer, he casts spells with +1 NLS. It's not a basic NLS+1...

is it possible to code that in a wonderous item ?

Thanks a lot for help (and apologies for my poor english)
Yaourth is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old May 11th, 2010, 12:21 PM
I'm sorry, I don't recognize the abbreviation "NLS".
Mathias is offline   #2 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old May 11th, 2010, 05:51 PM
Found it in my copy of the module. He means +1CL for sorcerer levels only

Quote:
Originally Posted by Crown of the Kobold King
Wearing the crown grants a +2 enhancement bonus to Charisma and a +2 natural armor bonus. You are immune to the frightful presence ability of all dragons. If you are a sorcerer you cast spells at +1 caster level.
ShadowChemosh is offline   #3 Reply With Quote
Yaourth
Junior Member
 
Join Date: Mar 2010
Posts: 17

Old May 12th, 2010, 07:50 AM
ooops sorry... NLS is the french code for CL...
Yaourth is offline   #4 Reply With Quote
Theocrat
Senior Member
 
Join Date: Aug 2009
Location: Imperial Theocracy
Posts: 151
Send a message via Skype™ to Theocrat

Old May 12th, 2010, 08:59 AM
Although, I'm not working on this area - I too am like Yaourth, I don't know much. The tutorial isn't that much help. Is there a forum area that lists more in detail how to do such things? I'm having many troubles with many of the things that I'm trying to code.

Theocrat Issak
Las Vegas Lodge Gaming Agent
PFSTheocrat@gmail.com
Theocrat is offline   #5 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old May 12th, 2010, 09:15 AM
Here's the method you'd use to figure this out:

Add a level of sorcerer to a blank character.

In the develop menu, make sure that "Enable Data File Debugging" is checked at the top, and then select the "Floating Info Windows" option at the bottom of the develop menu. Select "Show Selection Fields" from that list, and then find Sorcerer. You'll see that there are two Sorcerer entries, so select both and press OK.

You'll now have two windows open, each telling you what the field values are for those picks. You'll see that one, labeled "cHelpSor" has quite a lot more information than the one labeled "cSorcerer" - that's because the Class Helper (they all start with "cHelp" is where the majority of the information for a class is stored. So, close the window for the "cSorcerer" thing - you won't need it.

Look through the list of fields for the Sorcerer Class Helper - in this case it's very easy to find what you're looking for, since the cMagicLev and cCasterLev fields are right at the top.

Now, to make sure these are what we want, add 2 levels of Eldritch Knight (ignore the validation errors). On the Eldritch Knight tab, add a magic level, and select sorcerer as what that magic level should improve.

Look back at the list of fields for the Sorcerer, and you'll see that cMagicLev and cCasterLev have both increased by 2.

What's actually happening behind the scenes is that the prestige class is adding to the Sorcerer's cMagicLev, then cMagicLev is added to the cCasterLev. In most cases, they're identical. cMagicLev is the level that the class is for the purpose of what spells they can cast, cCasterLev is the caster level.

Now, choosing a timing; caster level and magic level are a function of the level of a class, so that suggests that Hero Lab is using either the Levels or Post-Levels phase to make all the calculations relating to the magic level and caster level. Therefore, you'll put your script in the Pre-Levels phase, before both of those. Any priority within Pre-Levels should be fine, so leave it at the default 100.

You'll simply need to add 1 to the caster level:

Code:
 
hero.childfound[cHelpSor].field[cCasterLev].value += 1
Mathias is offline   #6 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old May 12th, 2010, 09:25 AM
Quote:
Originally Posted by Theocrat View Post
Although, I'm not working on this area - I too am like Yaourth, I don't know much. The tutorial isn't that much help. Is there a forum area that lists more in detail how to do such things? I'm having many troubles with many of the things that I'm trying to code.
Studying existing things is the best way to figure out how to accomplish something - break what you want to do into component pieces (like how Yaourth listed out the things he wanted to accomplish in his original email), and think of something that already exists that does the same thing.

Adding a bonus to Charisma - the Headband of Alluring Charisma
Adding a bonus to Natural Armor - the Amulet of Natural Armor

So, pull those items up in the editor, and study their scripts, and figure out how they accomplish their task.

There is no good example of something that modifies caster level, so my previous post explained a more advanced technique for figuring out how information is stored.
Mathias is offline   #7 Reply With Quote
chiefweasel
Senior Member
 
Join Date: Aug 2008
Location: Miamisburg, OH
Posts: 1,322

Old May 12th, 2010, 11:06 AM
Also for some training sessions, the good folks at Lone Wolf give classes at Gen Con. I have been to a few of them myself and they have ben very helpful. If anyone is going to Gen Con this year check out the schedule and see where they are having the sessions this year.

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   #8 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old May 12th, 2010, 11:52 AM
Too bad I am not going to Gen Con. Maybe Lone Wolf should record those sessions and post them to their website. I am sure I am not the only one that would be willing to watch them from home.
ShadowChemosh is offline   #9 Reply With Quote
Theocrat
Senior Member
 
Join Date: Aug 2009
Location: Imperial Theocracy
Posts: 151
Send a message via Skype™ to Theocrat

Old May 12th, 2010, 09:34 PM
My biggest concern with the editor is the little buttons on the right side. I don't understand any of them. I can figure out a couple of the bottom buttons, but when I'm trying to work on the Seeker of Secrets feats, spells and magic items there is some problems that I don't know how to work out.
I'll be at Strategicon/Gamex as well as NeonCon but with still no job - there's no way I can make GenCon (unless I get room/board/flight for volunteering). So I agree, making these seminars sounds great - even better if they're online.
Be Well. Be Well Webed.
Theocrat Issak

Theocrat Issak
Las Vegas Lodge Gaming Agent
PFSTheocrat@gmail.com
Theocrat is offline   #10 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 07:30 AM.


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