GPDL $LISTEN

DungeonCraft Help Home

   $LISTEN()

Adds "You Say:" in the text area at the bottom of the screen and waits for the player to type a message and press the carriage-return.

Return Value: The text entered by the player. A lone carriage-return results in an empty string. The text is also saved for later access using $LISTENTEXT().

Example:

$SAY ("Please name your favorite food");
$WHILE ($NOT ($LISTEN()))
{
$SAY ("I insist on knowing!");
};
$SAY("I like "+$LISTENTEXT()+", too.");