Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

simple blue popup box

Triton Sands
Registered User
Join date: 16 Jul 2007
Posts: 8
05-20-2008 20:57
I thought this would be the easiest thing to find, but I've searched everywhere. I'm just looking for a simple script that when you click on an object it pops up a blue box where I can add announcement or info text...no further actions to deliver or do anything..just the text.

anyone?

Thanks!
Shadow Subagja
Registered User
Join date: 29 Apr 2007
Posts: 354
05-20-2008 21:01
llDialog with an empty button list maybe?
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
05-20-2008 23:57
Yup that's the trick. You'll be limited to the keys of people you can see, and as far as I know, llDialog is limited to "llRegionSay" range. Likewise, you can make a "One button dialog" and then customize the "okay" button to something of your choosing.

Popups created in this manner will still have the tiny "ignore" button though.

and, being limited to keys, you'll need to use a sensor to detect the 16 closest agents.. so you may want to consider a larger "network" of sensors if you own a club.. something that checks the area for all the keys it can find, then a central unit that copiles the list of keys, weeds out duplicates, and then uses that list to send the dialogs.

I think you can put a list to around 160 keys without running out of memory. (tha's a guess, it may be MANY more.. or it may be less). You can also "steer" your sensors, and limit their effective ranges, to reduce duplication of agents detected.
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
Triton Sands
Registered User
Join date: 16 Jul 2007
Posts: 8
05-21-2008 06:19
I didn't mean to send to everyone in an area automatically. I mean that if someone touches a sign object that it delivers a blue popup on their screen in the upper right with instructions on it (one step) and not a notecard that they have to accept (two steps)

The main use is the annoying work around for the join groups from a sign process where I have to put the sign in land that ISNT owned by the same group. For this reason I cant use one of the pre-made scripts where you simply set the sign to group and when clicked it delivers the user a simple blue popup telling them to go to chat history to click the link that was whispered. I tried to get the script for those sime popups but I cant see any of the scripts.

The workaround was I added the sign to the of the land so it doesnt auto-return, but added the whisper script in it to spit out the link for the non-land group. BUT half the people dont follow open chat text or even have chat history turned on, so duplicating the instructions on how to go to chat history is needed by a popup that I will aslo put into sign.

whew...does any of that make sense? :-)
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
05-21-2008 07:17
From: Triton Sands
I thought this would be the easiest thing to find, but I've searched everywhere. I'm just looking for a simple script that when you click on an object it pops up a blue box where I can add announcement or info text...no further actions to deliver or do anything..just the text.

anyone?

Thanks!

CODE

integer handle;
default
{
touch_start(integer num_detected)
{
handle = llListen( dialogChannel, "", llDetectedKey(0), "");
llDialog( llDetectedKey(0), "Say whatever you have to say here", [], dialogChannel);
}

listen(integer channel, string name, key id, string message)
{
if ( message == "OK" ) llWhisper( PUBLIC_CHANNEL, llKey2Name(id)+ "pressed the 'OK' button");
llListenRemove( handle );
}
}

If you don't care for the answer then omit the 'listen' event.
The handle should be removed somehow, by a time out or state change. Otherwise you will end up with handles for all those who clicked your object and that is not good for the sim
Code not compiled and not tested.
Happy scripting
_____________________
From Studio Dora
Triton Sands
Registered User
Join date: 16 Jul 2007
Posts: 8
05-23-2008 20:34
I got a script error. There isn't an easier way to get a blue box to pop up with like one line of text? I dont need a notification that anyone clicked to trigger it OR have the box have any further choices....just one line of simple text.

Thanks
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
05-23-2008 21:42
From: Triton Sands
I got a script error. There isn't an easier way to get a blue box to pop up with like one line of text? I dont need a notification that anyone clicked to trigger it OR have the box have any further choices....just one line of simple text.

Thanks

What was your script error?

http://lslwiki.net/lslwiki/wakka.php?wakka=llDialog

CODE
default
{
touch_start(integer total_number)
{
llDialog("", "message must be less then 512 characters", [],-1209381);
}
}


That being said, please at least read the wiki entry and try to take something more from this then just a freebie script. We love people to learn here.
_____________________
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
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
Lost?
05-24-2008 01:37
From: Triton Sands
I got a script error. There isn't an easier way to get a blue box to pop up with like one line of text? I dont need a notification that anyone clicked to trigger it OR have the box have any further choices....just one line of simple text.

Thanks

Helpless ? You have got all the help you can hope for. You can't expect to have a full shining, debugged and tested script that will fit your dreams, from this forum. To make it the way you want it to be you must either expect to get grease on your fingers, by actually writing the script, or pay someone to do it.
_____________________
From Studio Dora
Pale Spectre
Registered User
Join date: 2 Sep 2005
Posts: 586
05-24-2008 02:22
From: Triton Sands
I got a script error.
It's always a good idea to say what the error is. So, for the sake of example, if the script compile reports something like: ";(5, 32) : ERROR : Name not defined within scope", it's worth mentioning that. ;)

CODE

default
{
touch_start(integer num_detected)
{
llDialog(llDetectedKey(0), "\nHi " +
llList2String( llParseString2List( llKey2Name( llDetectedKey(0)), [" "], []), 0) +
", can you go to your chat history and click the link that was whispered.\n\nThank you!", [], -1);
}
}
Triton Sands
Registered User
Join date: 16 Jul 2007
Posts: 8
05-24-2008 17:56
>>>Helpless ? You have got all the help you can hope for. You can't expect to have a full shining, debugged and tested script that will fit your dreams, from this forum. To make it the way you want it to be you must either expect to get grease on your fingers, by actually writing the script, or pay someone to do it.>>>

I never said helpless, so I don't know why you'd write that. Yes, I am thankful for all the help and merely posted again to make sure I was asking for the right thing. I had to log off quickly before and couldn't go back and re-run it to get the error. Thanks for all your help and I'll give it a shot and post back.

Thanks again
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
05-24-2008 18:28
From: Triton Sands
Thanks for all your help and I'll give it a shot and post back.

Thanks again


Well then welcome aboard Triton! Sorry but we get a lot of people coming just to get freebies and we try to weed them out. But we really do love for new people to come and learn. It is how each of us has started and grown.

Try the simple script that I posted. Haven't checked it in world but it works fine in LSLEditor. Should be just about what you are looking for. It acts like a notification box.

Hope to see you posting more and asking more questions.
_____________________
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