• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

#appenddesc usrChosen1

Frodie

Well-known member
What's the script to #appenddesc a usrChosen1?

Code:
#appenddesc[field[usrChosen1].chosen,"test"]
 
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".
 
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.
 
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
 
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.
 
Andrew - he's using foreach thing - there isn't a findchild equivalent for things - findchild is only for picks.
 
Back
Top