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
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old August 16th, 2015, 05:46 PM
I working on this code

Code:
    ~ If not human get out now
      doneif (#hasrace[rHuman] = 0) 

     ~set our focus to the hero's race
      perform hero.findchild[BaseRace].setfocus
      doneif (state.isfocus = 0)
      ~ Give one Nationality
      focus.field[rGiveSp2nd].value +=1
      perform focus.assign[Helper.OptCustom]
      focus.field[rSpec2ndSi].text = "Nationality"
It gives the bonus fine, but it will not change the name and I get this error:

Syntax error in 'eval' script for Thing 'mechFGMPNa' (Eval Script '#2') on line 1
-> Only derived fields can generally be modified via scripts (field 'rSpec2ndSi')

It's just a text field, any ideas?
Frodie 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 August 16th, 2015, 05:57 PM
Not all fields are setup to allow outside scripts to change the value.

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
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old August 16th, 2015, 06:03 PM
Ok, seems weird, you change all the others, just not that one. Maybe it's a bug. I'll send it in.
Frodie is offline   #3 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old August 17th, 2015, 03:36 PM
Well, I heard back from tech support, and they said that is a closed field. Seems weird that you can re-name rSpecSing, rSpecName and rSpec2ndNm but not rSpec2ndSi.

Anyway they told me to ask here for help. So seeing rSpec2ndNm works but will not show. Any ideas how to fool HL into thinking it multiples and not single abilities so it will use the multiple name?
Frodie is offline   #4 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old August 17th, 2015, 03:47 PM
I'd build this as a configurable bootstrapped from a mechanic, rather than trying to use the racial fields.
Mathias is offline   #5 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old August 17th, 2015, 03:54 PM
Yea, didn't really want to do that. I thought about just moving them to the primary slot, (I can rename the field there). But I couldn't find a good way to hide all the Ethnicity with a loop.
Frodie is offline   #6 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old August 18th, 2015, 08:28 AM
Even if you could use the 2nd racial custom table, there is still several common races (Tiefling and Aasimar) which can use both so you'd run into the same issue as with the primary. Configureable is the way I'd go too.

That said, we'll switch the field from static to derived so that it can be affected by scripts.
Aaron is offline   #7 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old August 18th, 2015, 09:01 AM
Quote:
Originally Posted by Aaron View Post
Even if you could use the 2nd racial custom table, there is still several common races (Tiefling and Aasimar) which can use both so you'd run into the same issue as with the primary. Configureable is the way I'd go too.
Yep ran into this myself with the Eberron setting where I was trying to only allow Eberron Ethnicities. I accidentally removed the ability for the Tiefling/Aasimar to pick there heritages which is in the same place as Ethnicity.

A Configureable is the safest route as future changes/books won't destroy what you do.

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   #8 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old August 18th, 2015, 09:17 AM
For this, it's just for humans, but Thank You so very much for switching the field!!
Frodie is offline   #9 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 12:43 AM.


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