Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old December 18th, 2011, 01:43 PM
You will need to write an eval script to modify the race. By putting the fields on the R cust special you are trying to modify fields that don't exist on the R Cust Special instead of the race.

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   #11 Reply With Quote
Jobe00
Senior Member
 
Join Date: Nov 2008
Location: Jonesboro, Arkansas
Posts: 150

Old December 19th, 2011, 12:26 AM
Great. I don't know why I thought it would be easy.

So how do I script to add the fields rHeightMnM, rHeightMnF, rWeightMnM, and rWeightMnF as well as the tags for HeightDice, HeightSize, and WeightMult to override the racial defaults?
Jobe00 is offline   #12 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

Old December 20th, 2011, 09:16 AM
Can you find any code anywhere that deals with changing the value of a field?
Can you figure out how to delete an existing tag value and add a new tag value?

Think in terms of abilities in Pathfinder that alter how something else functions - that's the sort of ability that will be altering the fields and tags of other things.

Since I can't think of a good example to lead you to in order to give you this, here's how to reach the race, no matter which race it is:

Code:
 
perform hero.findchild[Race].setfocus
 
doneif (state.isfocus = 0)
And once the focus has been established, you can use

Code:
 
focus.
to get there, instead of the hero.child[XXXXX]. you may see in other places.
Mathias is online now   #13 Reply With Quote
Matt Droz
Senior Member
 
Join Date: Apr 2010
Posts: 152

Old February 16th, 2012, 09:27 AM
Okay, I've been trying to do this myself and I keep running into various errors. First off, if I put in the findchild code as above, without anything else, I get this error:

Quote:
Syntax error ... line 8
-> Non-existent component 'Race' used by script
I then change it to [BaseRace] and it compiles fine. But when I add in

Code:
focus.field[rHeightMnM].value = 60
I get the following error:

Quote:
Syntax error ... line 10
-> Only derived fields can generally be modified via scripts (field 'rHeightMnM')
I've looked through the forums for possible solutions, but can't seem to find any.

Last edited by Matt Droz; February 16th, 2012 at 09:32 AM.
Matt Droz is offline   #14 Reply With Quote
Matt Droz
Senior Member
 
Join Date: Apr 2010
Posts: 152

Old February 25th, 2012, 07:28 AM
*bump*

Any suggestions?
Matt Droz is offline   #15 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old February 25th, 2012, 09:50 AM
Quote:
Originally Posted by Matt Droz View Post
Any suggestions?
Don't recommend it allot but you could try trustme at the top of the script.
Code:
trustme

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   #16 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old February 27th, 2012, 04:04 PM
I'll look into whether switching them to derived fields would break anything. If not I will and then you can modify them.

If you're manipulating the tags that control added die size, those scripts run an First 650, I think. Make sure you run your script before that.
Aaron is offline   #17 Reply With Quote
Matt Droz
Senior Member
 
Join Date: Apr 2010
Posts: 152

Old February 28th, 2012, 10:03 AM
Cool, thanks!
Matt Droz is offline   #18 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old February 28th, 2012, 10:22 AM
Alright, I switched the fields to derived, you should be able to work with them after the next release.
Aaron is offline   #19 Reply With Quote
Matt Droz
Senior Member
 
Join Date: Apr 2010
Posts: 152

Old March 19th, 2012, 07:50 AM
Any idea when the next release is going out?
Matt Droz is offline   #20 Reply With Quote
Reply

Thread Tools
Display Modes

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:01 PM.


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