Lone Wolf Development Forums  

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

Notices

Reply
 
Thread Tools Display Modes
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old July 27th, 2015, 12:37 PM
What's the script to #appenddesc a usrChosen1?

Code:
#appenddesc[field[usrChosen1].chosen,"test"]
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 July 27th, 2015, 02:00 PM
You can't. You must supply the exact "Thing" ID. I am 99% sure it won't take a pointer/reference to the Thing.

Also make sure that you are trying to change a "Thing" not a "Pick".

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 July 27th, 2015, 02:19 PM
Ah, ok. Thanks Shadow!
Frodie 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 July 27th, 2015, 02:31 PM
Quote:
Originally Posted by Frodie View Post
Ah, ok. Thanks Shadow!
If you remember about a month ago when asking about appenddesc I showed the script logic how to "soft-code" a Thing ID with use of appenddesc. You could get the Thing ID string from the usrChosen1 and then use that script to change the name.

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

Old July 27th, 2015, 02:42 PM
Yea, thank you. I got it to workout. Thanks again Shadow!
Frodie is offline   #5 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old July 27th, 2015, 02:50 PM
Quote:
Originally Posted by Frodie View Post
Yea, thank you. I got it to workout. Thanks again Shadow!
Nice! See all these crazy scripts are starting make sense!

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

Old July 27th, 2015, 02:57 PM
Yep, cool this is what I got (I added a tag). Thanks again Shadow!

Code:
      foreach thing in BaseWep where "Custom.FGMPCRoFir"
        perform eachthing.amendthing[description,"Test"]
      nexteach
Frodie is offline   #7 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old July 27th, 2015, 03:54 PM
You could probably just make a searchexp variable

Code:
var searchexp as string

searchexp = field[usrChosen1].chosen.tagids[thingid.?]
instead of adding a tag. Also if it is only going to be applying to 1 thing (although this is a weapon so it could apply to more), you could use findchild isntead of a foreach saving a bit of processing.
AndrewD2 is offline   #8 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

Old July 27th, 2015, 03:58 PM
Andrew - he's using foreach thing - there isn't a findchild equivalent for things - findchild is only for picks.
Mathias is offline   #9 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old July 27th, 2015, 04:02 PM
Quote:
Originally Posted by Mathias View Post
Andrew - he's using foreach thing - there isn't a findchild equivalent for things - findchild is only for picks.
Whoops, thanks you're right, I missed that.
AndrewD2 is offline   #10 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 06:14 AM.


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