A
          / \      _             Play Now                         Nemesis on fb
          | |     | |  _______   _        _   _______    _______   _    _______
          | |\    | | |   ____| |  \    /  | |   ____|  /   ____| | |  /   ____|
 /-------/-------------------------------------------------------------------,
O= Home <=XX|  About  News  Pics  Adventurers  Wizards  Download  Connect     >
 \-------\-------------------------------------------------------------------'
          | |   \   | |  |____  | |      | | |  |____   ___ \  \  | |  ___ \  \
          | |     \_| |_______| |_|      |_| |_______| |_______/  |_| |_______/
          \ /
           V  

Documentation Area

Document Path: /doc/efun/input_to


Name: input_to - start input mode to a player

Syntax:
	input_to(string fun, int noecho, int noescape)

Description:
	The input_to efun enable the next line of user input to be sent to
	the local function fun as an argument. The input line will not be
	parsed.

	Note that fun is not called immediately. It will not be called until
	the current execution has terminated, and the player has given a new
	command.

	If input_to is called more than once in the same execution, only the
	first call has any effect.

	If optional argument noecho is non-zero, the line given by the
	player will not be echoed, and is not seen if snooped.

	If optional argument noescape is non-zero, then the player will not
	be able to give a command with a leading '!' out of the input_to call.

Examples:
	query_name() {
		write("Please enter your name: \n");
		input_to("get_name");
		return 1;
	}
	get_name(str) {
		name=str;
	}
	
See also:


This page was generated in LPC

Imprint / Impressum