llPrompt

From Second Life Wiki
Revision as of 05:03, 2 April 2008 by Strife Onizuka (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Emblem-important-yellow.png LSL Feature Request
The described function does not exist. This article is a feature request.

Summary

Function: llPrompt( string message, integer chat_channel );
REQUEST Function ID
1.0 Forced Delay
10.0 Energy

Prompt the user for a string. If provided and user presses OK, the string is shout by the avatar on the chat channel.

• string message message to be displayed
• integer chat_channel output channel

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.

Caveats

  • This function causes the script to sleep for 1.0 seconds.
All Issues ~ Search JIRA for related Bugs

Examples

<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>

Deep Notes

Search JIRA for related Issues

Signature

//function void llPrompt( string message, integer chat_channel );