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

Documentation Area

Document Path: /doc/monster/load_a_chat


Lfun:	load_a_chat - make a monster talk during combat

Synopsis:
	void load_a_chat(int chance, string *chats)

Description:
	The load_a_chat call tells a monster to chat during combat. The chance
	argument is the chat chance of each combat round and is an integer
	between 0 (no chat) and 100 (chat every round).

	The chats argument is an array of chat strings, from which one is
	randomly selected if the monster wants to make a chat.

Return value:
	none

Examples:
	load_a_chat(30, ({
		"Orc says: Kill him!\n",
		"Orc says: Stop him!\n",
		"Orc says: Get him!\n",
		"Orc says: Let's rip out his guts!\n",
		"Orc says: Kill him before he runs away!\n"
	}) );

See also:


This page was generated in LPC

Imprint / Impressum