Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
What's the script to #appenddesc a usrChosen1?
Code:
#appenddesc[field[usrChosen1].chosen,"test"] |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
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. |
#2 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
Ah, ok. Thanks Shadow!
|
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
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. |
#4 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
Yea, thank you. I got it to workout. Thanks again Shadow!
|
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
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. |
#6 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
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 |
#7 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
You could probably just make a searchexp variable
Code:
var searchexp as string searchexp = field[usrChosen1].chosen.tagids[thingid.?] |
#8 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Andrew - he's using foreach thing - there isn't a findchild equivalent for things - findchild is only for picks.
|
#9 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
|
#10 |
|
|