Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Worn Prim Menus

Lynn Kukulcan
Registered User
Join date: 7 May 2006
Posts: 149
06-04-2006 16:13
I have an open source hug animation that has two scripts in it. The two scripts communicate with with each other via linked messages, and you have to wear the prim for the animation.

What I want to do is add another animation to this prim, and use llDialog to setup a menu system where people can actively pick between the animations independent of each other. It would be kinda' like a fun little game of "Rock, Paper, Scissors," only with animations.

The thing is, I don't understand how it is the second script ends up on the person not owning the script. As I am basically trying to learn from this script how this would be done, not knowing how the two scripts from one prim worn on one person end up on two different people is kinda, well, frustrating.

The hug script is the Personal Hugger (90 Sec) script. I've already ripped one to shreds to capture some elements of it and rewrote it to meet my needs. The new script works great, to a point, as it's designed to work with two people and *only* two people.

Figuring out how the script sorted out the people in question and verified that they were both close was easy. Now I need the menu to pop up to basically play my Animation Version of "Rock, Paper, Scissors" on both parties, and without understanding how the second script ends up on the other person, I'm at a total loss.

Any help would be greatly appreciated, and thanks.

Love & Friendship & Blessed Be!
Lynn Kukulcan
Registered User
Join date: 7 May 2006
Posts: 149
How to send menus to remote users.
06-04-2006 18:37
Nevermind. I found it, but I will say it here, in case others need to do the same thing.

It was a bit of a process. person who wanted to play had to say they wanted to play while addressing my box with my name.

The box used my name to identify they were talking to my box, and then did a sensor scan for the speaker by full name over 20 meters {the range of speech}.

It would pick up the speaker, {in theory} and then fetch their UUID {"Key"}. Using this key, I can then send them a dialog with the list of animations that I wish to offer them.

Now as to using those animations, I can only guess that the UUID can also be used to animate an avatar, with permission, of course. :-)

Love & Friendship & Blessed Be!
Lazink Maeterlinck
Registered User
Join date: 8 Nov 2005
Posts: 332
06-04-2006 19:26
hate to burst your bubble, because sounds like you worked hard on figuring that script out, but you can't animate someone using a UUID, only stop an animation :(
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
06-04-2006 20:02
From: Lazink Maeterlinck
hate to burst your bubble, because sounds like you worked hard on figuring that script out, but you can't animate someone using a UUID, only stop an animation :(


I disagrre Lazink. Using someone's key you can request permission to animate them. Once you've got permission to animate them you trigger an llStartAnimation() check in that script and they'll start.

The thing that might cause some confusion is that each script can only hold permission(s) for one avatar at once. There are lots of items, including huggers, out there that seek permission from another by key and then animate them with permission.
Lazink Maeterlinck
Registered User
Join date: 8 Nov 2005
Posts: 332
06-04-2006 20:29
I ment you can't use llStartAnimation() with the UUID of the animation. At least I don't think you can, never ACTUALLY tried it, as I read it on the wiki, but we all know the wiki is ALWAYS right (big sarcasm there) :)
Neurosis Darkes
Registered User
Join date: 12 May 2006
Posts: 49
06-04-2006 20:32
From: Lazink Maeterlinck
I ment you can't use llStartAnimation() with the UUID of the animation. At least I don't think you can, never ACTUALLY tried it, as I read it on the wiki, but we all know the wiki is ALWAYS right (big sarcasm there) :)



I will personally donate $USD if someone will make it where i dont ever have to use the wiki again.
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
06-04-2006 23:24
Ah ok, and you can, or at least you used to be able to in a product I made recently. I've not tried it since 1.10.

There are problems about finding a anim's key if it's not full perms though.
Lynn Kukulcan
Registered User
Join date: 7 May 2006
Posts: 149
Animations
06-07-2006 00:29
So the one script can animate per person at a time thingy explains the link messages and the dual scripts and stuff. Well, at least that's a good heads up. Thanks! :-)

What I was planning on doing was having the menu call seperate animations scripts. I figured that would make better sense, anyway, and now I learn that some animations will require two scripts, this isn't much of a problem, after all. :-)

My main concern was how in heck the script menus in one person's thingy could be accessed by another person. That figured out, I've almost completed this script!

I will work out the animations scripts, later! {Giggles}

Love & Friendship & Blessed Be!
Lynn Kukulcan