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
pholtus
Junior Member
 
Join Date: Apr 2012
Posts: 26

Old September 8th, 2013, 01:31 PM
I'm trying to modify the Masterwork Tool item to have user entered text for the specific aspect of a skill that is benefited by the tool. Currently, I have a script that says:

#situational[hero.childfound[skUseMagic],"+2 bonus to emulate Dwarven race",field[thingname].text]

If I check the option, "User Text" in the editor, can I insert that text as a variable in my eval script? That would make this tool more more generically useful with UMD. In other words:

#situational[hero.childfound[skUseMagic],"%UserText%",field[thingname].text]

I suspect there's a variable for this, but I can't seem to find what it is.
pholtus is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old September 8th, 2013, 01:54 PM
In the develop menu, make sure that "Enable Data File Debugging" is turned on.

Now, add this item to a sample character, right-click it, and choose "Show Debug Fields for XXXXX".

Now, studying that list of fields, watch which ones change when you change the user text.
Mathias is offline   #2 Reply With Quote
pholtus
Junior Member
 
Join Date: Apr 2012
Posts: 26

Old September 8th, 2013, 07:38 PM
Excellent. It looks like I'm looking for domDomain then. Unfortunately, my script-fu is failing me.

#situational[hero.childfound[skUseMagic],"blar [domDomain]",field[thingname].text] doesn't quite work. Anything I surround with quotes gives that exact text right back. What syntax returns the value of domDomain when used inside quotes?

Thank you again.
pholtus is offline   #3 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old September 8th, 2013, 07:41 PM
Sort of looks like your use to PHP or something that does replacement in the middle of a string. HL does not do that. But it can use the & to concatenate two strings together.

Code:
#situational[hero.childfound[skUseMagic],"blar" & field[domDomain].text & "end Blar",field[thingname].text]

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   #4 Reply With Quote
pholtus
Junior Member
 
Join Date: Apr 2012
Posts: 26

Old September 9th, 2013, 04:08 AM
Thank you!

That was it. The big thing I was screwing up on was not adding "field" right before [domDomain]. I'm intrigued by the concatination script though. There are a few situational boons the wife picked up that would be enhanced by that.
pholtus is offline   #5 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 04:28 AM.


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