Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llDialog expansion - requestor?

Siggy Romulus
DILLIGAF
Join date: 22 Sep 2003
Posts: 5,711
12-01-2004 18:29
Anyone who programmed the Amiga way back when will be familiar with the requestor library and know exactly what I'm talking about.

In a nutshell - a text box to type in some info that is then sent with the button selected.
I think that being able to send some text would be hugely useful.

I've seen some items out there that would make a unix head cringe..

Think about it /100 blah blah, +1 blah

or

Touch item type 'blah blah' hit button. Done.


Apart from the option for more buttons (which I've already touched on before) I think it would be a huge step forward for making scripted items more user friendly.

Siggy.
_____________________
The Second Life forums are living proof as to why it's illegal for people to have sex with farm animals.

From: Jesse Linden
I, for one, am highly un-helped by this thread
Tiger Crossing
The Prim Maker
Join date: 18 Aug 2003
Posts: 1,560
12-02-2004 08:04
So you want...

llDialogInput( string prompt, string default, integer chan )
CODE
touch_start( integer num )
{
llDialogInput( "What is the password?", "dunno", 12345 );
}

listen( integer chan, string name, key id, string msg )
{
if ( chan == 12345 )
llShout( 0, "Hey everyone! "+name+"'s password is "+msg+"!!!" );
}
Where touching the object pops up a dialog box with the prompt and a place to type in some text, with "dunno" in it to start, in this example.




Me too.
_____________________
~ Tiger Crossing
~ (Nonsanity)
Nexus Nash
Undercover Linden
Join date: 18 Dec 2002
Posts: 1,084
12-02-2004 20:36
From: Tiger Crossing
So you want...

llDialogInput( string prompt, string default, integer chan )
CODE
touch_start( integer num )
{
llDialogInput( "What is the password?", "dunno", 12345 );
}

listen( integer chan, string name, key id, string msg )
{
if ( chan == 12345 )
llShout( 0, "Hey everyone! "+name+"'s password is "+msg+"!!!" );
}
Where touching the object pops up a dialog box with the prompt and a place to type in some text, with "dunno" in it to start, in this example.




Me too.


A+++
_____________________
Siggy Romulus
DILLIGAF
Join date: 22 Sep 2003
Posts: 5,711
12-02-2004 20:37
Yeah Tiger, pretty much that :)

Siggy.
_____________________
The Second Life forums are living proof as to why it's illegal for people to have sex with farm animals.

From: Jesse Linden
I, for one, am highly un-helped by this thread