LSL feature request. The described function does not exist. This article is a feature request.
Prompt the user for a string. If provided and user presses OK, the string is shout by the avatar on the chat channel.
void llPrompt( string message, integer chat_channel );
Forced delay: 1.0 seconds. Energy: 10.0.
If user provides no string and presses OK, an empty string is returned. If the user presses CANCEL, no string is shout on the output channel.
<lsl> default integer channel = 1000;
default {
state_entry()
{
llListen(channel,"", "","");
}
touch_start(integer count)
{
llPrompt("Please, tell me your REAL name (first life).", channel);
}
listen(integer chan, string name, key id, string mes)
{
if(id == llGetOwnerKey(id))//won't listen to objects unless they aren't in the region.
llSay(0,"Your real name is " + mes);
}
} </lsl>