These forums are CLOSED. Please visit the new forums HERE
llgiveinventorylist with sub folders? |
|
Moon Corrigible
Registered User
Join date: 19 Jan 2007
Posts: 75
|
11-24-2009 21:31
I'm trying to figure out how to give a recipient a folder full of subfolders containing the items I want them to have. But while I can see how to define one folder, I cant seem to figure out how to define sub folders. Any suggestions?
|
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
|
11-24-2009 23:26
You can create a subfolder under the main #RLV folder using llGiveInventoryList if the recipient has the RestrainedLifeForbidGiveToRLV debug setting as FALSE and, of course, if he or she is using RLV in the first place, but I've never heard of being done otherwise.
If that's what you need it for, there's an explanation and example down at the end of http://wiki.secondlife.com/wiki/RestrainedLifeAPI Hope this helps. |
Moon Corrigible
Registered User
Join date: 19 Jan 2007
Posts: 75
|
11-25-2009 05:58
Thanks for the info and I'll definately take a look but its not what I'm thinking of. Basically I'd like to be able to hand the recipient five seperate files with different things in them. But that just makes for a messy inventory so I was trying to be tidy and hand them the folders inside of one folder. But for the LIFE of me I cant figure out how to do it!
|
Viktoria Dovgal
…
![]() Join date: 29 Jul 2007
Posts: 3,593
|
11-25-2009 07:51
The basic problem is that object inventories don't do folders. llGiveInventoryList fakes it, but it can't give out subfolders because objects can't contain them :/
|
Pete Olihenge
Registered User
![]() Join date: 9 Nov 2009
Posts: 315
|
11-25-2009 09:57
You could use a naming convention for the items that groups them together naturally in a single folder. This doesn't solve the problem, but it makes it easier for a recipient to sort things out for themselves.
|
Argent Stonecutter
Emergency Mustelid
![]() Join date: 20 Sep 2005
Posts: 20,263
|
11-25-2009 10:07
Or you can give them multiple boxes and let them sort THOSE out.
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/
"And now I'm going to show you something really cool." Skyhook Station - http://xrl.us/skyhook23 Coonspiracy Store - http://xrl.us/coonstore |
Lear Cale
wordy bugger
![]() Join date: 22 Aug 2007
Posts: 3,569
|
11-25-2009 10:15
Right: you can't do exactly what you want to do. llGiveInventoryList() always creates exactly one folder, and (ignoring RLV) puts it under the top level in your inventory.
It sure would be nice to be able to sell, say, an outfit, with a folder to wear to get the outfit with short skirt, and another to wear to get the long skirt, without the customer having to pore through and figure it out, or wear it all and get arbitrary results. |
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
11-25-2009 10:44
a while back before i knew anything about scripting, i remember buying something that instead of opening the box, it had me click on it as alot of things do now, but it did give me a folder with subfolders, it's been a few years, and i only saw it that one time, so maybe it was a bug that was later fixed. and i doubt i'd be able to remember what it is that i bought that did that
_____________________
Dark Heart Emporium
http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020 want more layers for tattoos, specifically for the head? vote here http://jira.secondlife.com/browse/VWR-1449? llDetectedCollision* Functions similar to touch http://jira.secondlife.com/browse/SVC-3369 |
Argent Stonecutter
Emergency Mustelid
![]() Join date: 20 Sep 2005
Posts: 20,263
|
11-25-2009 11:05
You can get multiple llGiveInventoryList calls on click, but the result will be multiple top level folders, not subfolders.
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/
"And now I'm going to show you something really cool." Skyhook Station - http://xrl.us/skyhook23 Coonspiracy Store - http://xrl.us/coonstore |
Moon Corrigible
Registered User
Join date: 19 Jan 2007
Posts: 75
|
11-25-2009 20:29
OK at least I know I'm not completely missing the obvious boat (of which I am usually the captain!) Thank you!!
|
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
|
11-25-2009 23:54
a while back before i knew anything about scripting, i remember buying something that instead of opening the box, it had me click on it as alot of things do now, but it did give me a folder with subfolders, it's been a few years, and i only saw it that one time, so maybe it was a bug that was later fixed. and i doubt i'd be able to remember what it is that i bought that did that I guess it must have been a short-lived bug, though, because otherwise everyone would be using it by now. |
Moon Corrigible
Registered User
Join date: 19 Jan 2007
Posts: 75
|
11-26-2009 04:38
well heaven knows I've tried every trick I could think of to get lsl to recognize a sub folder tag - lol
|