Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

SL Clothing/Avatar Locker

Squash Otoro
Registered User
Join date: 20 Jun 2006
Posts: 6
11-02-2006 06:39
So I make educational games for middle school students. We have 8 hours of kids but only enough logins for one class at a time's worth of avatars.

The kids think my avatar looks really cool, and want to customize their own avatars to be cool too.

Obviously, this is a problem, since the avatars get reused, so later hours' students will trounce the customizations of previous hours customizations.

I want to "multiplex" the avatars to make a device that *EASILY* preserves and restores the avatar for a person. I realize I could export the stuff and then have them re-import them... but that's too complicated. I don't really want them touching their inventories, just customize their avatar and play my games. :)

So I thought it'd be cool to have a "locker". Basically, you touch ("click on";) the locker for your hour (1st 2nd 3rd) and "deposit" your avatar configuration in there. Next time we're in second life, you touch the locker for that same hour and "withdraw" your old avatar config. The locker will have saved your old configuration, and will remember which it was based on your avatar name.

Awesomeness... this possible? I'd like to do more than just llGiveInventory(); I want to extract their avatar configs on the deposits and actually withdraw and equip their avatar configuration on the withdrawal. Undoubtably, I would need to acquire some runtime permissions to mess with their avatars programmatically like this.

Anybody have sample code for something like this, or at least the pieces (extracting the avatar config, programmatically equiping an avatar configuration, etc.)
Dimentox Travanti
DCS Coder
Join date: 10 Sep 2006
Posts: 228
11-02-2006 06:42
If you owned land you could just make a locker prim and drag and drop the inv
then when they want it select copy.
no code needed.


But i know you want ease of use...

The getting inv is the easy part though draging and droping is the hard.

I guess you could cycle through your inv and give it all to the objects key.
_____________________
LSL Scripting Database - http://lsl.dimentox.com
Squash Otoro
Registered User
Join date: 20 Jun 2006
Posts: 6
Too complicated
11-02-2006 06:45
We do own the land.

I think I'd deem what your saying too complicated. The kids only exposure to Second Life will be via this, and I don't want to go over exporting each part (face, body, etc.), finding it in the inventory, dragging it into the box, retrieving it from the box, and manually importing it back on the avatar.

I want automagical. So easy to say "Click on this"
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
11-02-2006 06:51
From: Squash Otoro
We do own the land.

I think I'd deem what your saying too complicated. The kids only exposure to Second Life will be via this, and I don't want to go over exporting each part (face, body, etc.), finding it in the inventory, dragging it into the box, retrieving it from the box, and manually importing it back on the avatar.

I want automagical. So easy to say "Click on this"



Effectively you want to perform the same actions as an Appearance Make Outfit?
I'm not sure if that is programatically possible, you can get a list of attachments but i dont think you can find out what you are wearing?
Squash Otoro
Registered User
Join date: 20 Jun 2006
Posts: 6
Wearing?
11-02-2006 07:00
I'm not as concerned about what the avatar is wearing. I don't really want the kids changing their clothes because I don't want them to take them all off.

Just to change the face and body shape and stuff and store their spiky-haired purple-eyed hulking avatar configurations so that they feel like they have some amount of individuality in the world.
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
11-02-2006 07:38
Just wanted to point out that what you are suggesting violates the TOS and you can get in trouble for it. At least one individual got into trouble after openly admitting that they were letting thier child build stuff here in SL. Middle school children are not allowed in the main grid.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Squash Otoro
Registered User
Join date: 20 Jun 2006
Posts: 6
Nope
11-02-2006 07:43
This is on the teen grid on an isolated island where only students and adults who have been background checked are allowed logins into. We are completely isolated. We cannot get out into the rest of the teen grid, and no one on the rest of the teen grid is allowed in.

We worked with Linden Labs directly for several months to get this set up.

So trust me; this is kosher.
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
11-02-2006 07:46
Cool! Just checking and didn't want you to get in trouble for doing something nice.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Tiarnalalon Sismondi
Registered User
Join date: 1 Jun 2006
Posts: 402
11-02-2006 08:19
Well, I know you said you didn't want them messing with their inventories...but really the easiest way to set this up would be to have a folder in their inventory that is marked by their name, and they just drag n drop their name onto their character.

I would imagine another way to do this would be to have a locker prim, each with a hovertext of their name, and have it set to copy and wear when they click on it. (object set to open on click)

Only drawback of that would be you'd need to go in and clear out all the extra folders in their inventories, but I think they should be able to wear all their stuff like this, however I don't really go much into changing my char's appearrance so it's hard for me to say.
Lina Pussycat
Texture WizKid
Join date: 19 Jun 2005
Posts: 731
11-02-2006 08:23
Ok well first off this is impossible to do Sorry to burst the bubble. LSL doesnt have a function call allowing that. You could put it in a box and have it give them to them each time but essentially they are going to need outfits in the inventory. This is done by apperance > make outfits they need to click off on everything that is listed (as they are likely using full mod stuff they will have copies of everything). They then could name the outfit their name and it will go in the clothing folder in which case they just drag the folder directly to themselves. There isnt an auto way to put everything on i mean you could technically make them buy the box and wear clothing each time and that would solve it but then their inventories are going to end up gargantuan. SO your better off having each make an outfit as SL doesnt currently have any type of scripting function call for that but it would be nice if they would implement something as such and would be a big help to newbies on the mature or teen grid alike.