Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   #appenddesc usrChosen1 (http://forums.wolflair.com/showthread.php?t=53497)

Frodie July 27th, 2015 12:37 PM

#appenddesc usrChosen1
 
What's the script to #appenddesc a usrChosen1?

Code:

#appenddesc[field[usrChosen1].chosen,"test"]

ShadowChemosh 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".

Frodie July 27th, 2015 02:19 PM

Ah, ok. Thanks Shadow!

ShadowChemosh July 27th, 2015 02:31 PM

Quote:

Originally Posted by Frodie (Post 213266)
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.

Frodie July 27th, 2015 02:42 PM

Yea, thank you. I got it to workout. Thanks again Shadow!

ShadowChemosh July 27th, 2015 02:50 PM

Quote:

Originally Posted by Frodie (Post 213270)
Yea, thank you. I got it to workout. Thanks again Shadow!

Nice! See all these crazy scripts are starting make sense! :)

Frodie 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


AndrewD2 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.

Mathias 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.

AndrewD2 July 27th, 2015 04:02 PM

Quote:

Originally Posted by Mathias (Post 213277)
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.


All times are GMT -8. The time now is 10:18 AM.

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