Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Asking owner's permission

Midori Mikazuki
Registered User
Join date: 20 Sep 2006
Posts: 78
10-04-2007 13:17
I've coded up a variation of the ever-popular "click on the prim clothing attachment to rip it off" idea. To give the item wearer some control, if an unknown AV initiates the touch event, I use llDialog() to ask the owner if (s)he wishes to allow the action. I only came up with a way to ask for permission on behalf of one AV at a time, though. I change to a "waiting for authorization" state with a time out period for the owner to respond to the dialog. If anyone clicks during that timeout period, I give them a message to wait a bit.

It works, but it feels clumsy. Especially given that all of my friends started clicking madly at once when I was teaking the scripts, and then complained about the "wait a minute" message! *heh*

I suppose I could use a pool of scripts, each listening on a different random channel for the llDialog responses, to allow for multiple people's requests to be handled, but that doesn't strike me as the best solution.

Does anyone have any suggestions for alternative ways to deal with multiple people clicking the attachment and needing to get permission?

Thanks in advance,
-MM
Darien Caldwell
Registered User
Join date: 12 Oct 2006
Posts: 3,127
10-04-2007 13:25
hmm, well once one person tears your clothes off, is there really a need to respond to anyone else's "tear the clothes off" request? I mean, once you're naked, you're pretty much naked... right? :)
_____________________
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
10-04-2007 13:52
I have a similar problem in a script of mine, waiting on animate permissions from another av...

my method of solving it was to make the event that caused it to continue (permissions granted) do all the work...

in this case you'd want to associate the button text with the name of the person that clicked (because I'm guessing you use that in some llSay if the owner agrees) and then just set a timer event (30 sec?) for the dialogs listen

timer goes off ever X secs AFTER the call is made... if a new call is made, it resets the wait time... so in the above example the listen is only open a max of 30 secs after the last time the dialog pops....

remember to turn the timer off in timer state, and to easily close all listens without need for listen handles, just change to another state, and right back... you should prolly turn the timer off if the owner says yes too and flip the state to kill the listens

is that what you were working at?

now if you are trying to simulate <send some message after X seconds saying the owner didn't reply> that's MUCH more difficult
Midori Mikazuki
Registered User
Join date: 20 Sep 2006
Posts: 78
10-04-2007 19:52
From: Darien Caldwell
hmm, well once one person tears your clothes off, is there really a need to respond to anyone else's "tear the clothes off" request? I mean, once you're naked, you're pretty much naked... right? :)


lol. Not really, I made a bikini out of balloons. Each touch pops one, and there are a dozen or so covering you :D

From: Void Singer
In this case you'd want to associate the button text with the name of the person that clicked (because I'm guessing you use that in some llSay if the owner agrees) and then just set a timer event (30 sec?) for the dialogs listen


I'll look into that. Must remembe to trim the name to the maximum size I can put in an iiDialog button though.

Thank you for the ideas.
Dire Graves
Registered User
Join date: 3 Sep 2007
Posts: 51
10-04-2007 21:41
From: Midori Mikazuki
lol. Not really, I made a bikini out of balloons. Each touch pops one, and there are a dozen or so covering you :D

Sweet idea!, I need to get one of those for my girl ;-)