Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Sending Chat Commands to Attachments

Love Hastings
#66666
Join date: 21 Aug 2007
Posts: 4,094
06-20-2008 08:12
Is it possible to programmatically send chat channel (or other channel) commands to personal HUDs, and other people scripts (like collars)? That is, to impersonate the avatar who does have permissions so that the messages are coming directly from the avatar as far as the foreign scripts are concerned? The idea is to impersonate myself, not others.

As an example of what I want to do to make this clearer:

1. Click my own HUD.
2. Get a pop up showing the 5 closest people
3. Choose a name
4. Disable my AO (through say "/1 ao off";)
5. Perform hug (through say, "/hug <name>" if it's my hug attachment, or through "xxhug" if it's another avatar's collar)
6. Wait 15 seconds (or for some other condition to be met)
7. Enable my AO again

So steps 4, 5 and 7 is where I'm unsure.

Thanks!
_____________________
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
06-20-2008 08:41
To do it all in world, it depends on the script that does the listening. Some listeners check for the avatar's UUID, some will be a little more inclusive and listen to objects owned by the avatar too.

For the more inclusive ones, it would be enough to use an llWhisper etc. to send the commands.

If your toys only listen to the owner and not the owner's stuff, you will either need to change those other scripts (if possible) or use a modded client that could rebroadcast "white" chat for you.

A few AOs can accommodate the green chat commands, no idea with the hug attachment =)
_____________________
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
06-20-2008 08:47
Or you could get the same effect without a HUD at all by defining a Gesture "macro" that just says all this text. (Note also that Gestures can chat on other channels, so they can also silently control a HUD listening on that channel, in case that HUD has other stuff it's supposed to do in conjunction with the AO and hugger commands.)
_____________________
Archived for Your Protection
Love Hastings
#66666
Join date: 21 Aug 2007
Posts: 4,094
06-20-2008 08:54
Thanks both.

Is it possible to trigger a gesture with LSL? Do gestures have variables? How do I do a "/hug avatar_name" where avatar_name varies each time?
_____________________
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
06-20-2008 09:19
From: Love Hastings
Is it possible to trigger a gesture with LSL? Do gestures have variables? How do I do a "/hug avatar_name" where avatar_name varies each time?
oops. :o Gestures might not work very well here because I think you may want that "avatar_name" to apply to more than one utterance generated by the Gesture. It's not a "variable" per se, but if it only had to apply to one thing (like the hugger), then I think you could splice-in "Replace With" text where the Gesture-identifying string occurred.

I don't think it's possible to trigger a Gesture from a script. (Can't get in-world right now to test all this.)

If you *can* mod the scripts for all the stuff you want to control (or if they happen to listen to object chat), that would be a more general solution.
_____________________
Archived for Your Protection
Love Hastings
#66666
Join date: 21 Aug 2007
Posts: 4,094
06-20-2008 09:28
From: Qie Niangao

If you *can* mod the scripts for all the stuff you want to control (or if they happen to listen to object chat), that would be a more general solution.


I have a larger project in mind, and being able to talk to other products (which I obviously cannot modify) would be very useful.
_____________________
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
06-20-2008 09:40
One thing that might be relevant (or not): the lockmeister protocol defined some messaging that's intended to disable/enable AOs (at least the ones in shoes?). I've no idea how many AOs pay any attention to this. It sure would be handy if it were ubiquitous, though, because then stuff like poseballs and danceballs could solve the neverending struggle of overrider animation priorities.
_____________________
Archived for Your Protection
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
06-20-2008 09:54
From: Qie Niangao
One thing that might be relevant (or not): the lockmeister protocol defined some messaging that's intended to disable/enable AOs (at least the ones in shoes?). I've no idea how many AOs pay any attention to this. It sure would be handy if it were ubiquitous, though, because then stuff like poseballs and danceballs could solve the neverending struggle of overrider animation priorities.

Lulu toys use the regular /1 ao on/off, it depends on the AO being willing to listen to the owner's objects. That rules out the standard ZHAO stuff that doesn't listen at all. The dd stuff uses a separate listener, and throws in some distance and UUID matching in an attempt to allow other owners' messages to work without opening up too many griefy possibilities. Wait a little bit, then clobber the sitter's animations, is a lot easier and skips the chat =) The chatty things are still interesting for things that don't require sitting though.
_____________________
Gearsawe Stonecutter
Over there
Join date: 14 Sep 2005
Posts: 614
06-20-2008 10:01
How about using llDialog. limit to 24 letter percommand if believe. but basically it is the AV that is saying the commands when you click the buttons on the blue drop down. I have never tried this but seems like it should work you would not put "/hug <name>" jsut "hug <name>". would have to test this.

llDialog works by making you AV say commands on a specific chat channel. but you would have to have different Dialogs for each channel.
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
06-20-2008 10:10
From: Gearsawe Stonecutter
How about using llDialog. limit to 24 letter percommand if believe.

Mm, that's the maddeningly oh-so-close possibility! "/1hug Gearsawe Stonecutter" is 26 characters so no hugs for you :( (oo wait! can drop the /1 so you get one after all =) )
_____________________
Love Hastings
#66666
Join date: 21 Aug 2007
Posts: 4,094
06-20-2008 11:14
From: Viktoria Dovgal
Mm, that's the maddeningly oh-so-close possibility! "/1hug Gearsawe Stonecutter" is 26 characters so no hugs for you :( (oo wait! can drop the /1 so you get one after all =) )


Most of them are smart enough to work with "/hug Gearsawe"

That's an interesting idea. Hmmmm
_____________________