A
/ \ _ Play Now Nemesis on
| | | | _______ _ _ _______ _______ _ _______
| |\ | | | ____| | \ / | | ____| / ____| | | / ____|
/-------/-------------------------------------------------------------------,
O= Home <=XX| About News Pics Adventurers Wizards Download Connect >
\-------\-------------------------------------------------------------------'
| | \ | | |____ | | | | | |____ ___ \ \ | | ___ \ \
| | \_| |_______| |_| |_| |_______| |_______/ |_| |_______/
\ /
V
Documentation Area
Document Path: /doc/monster/load_chat
Lfun: load_chat - make a monster talk
Synopsis:
void load_chat(int chance, string *chats)
Description:
The load_chat call tells a monster to chat if a player is present
and if there is no fight. The first argument is the chat chance of
each heart beat (2 secons) and is an integer between 0 (no chat) and
100 (chat every heart beat).
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_chat(2, ({
"Harry says: What are you waiting for?\n",
"Harry says: Hello there!\n",
"Harry says: I don't like winter.\n",
"Harry says: I don't like snow.\n",
"Harry says: I don't like rain.\n",
"Harry says: Who are you?\n",
"Harry says: Why do you look like that?\n",
"Harry says: What are you doing here?\n",
"Harry says: Nice weather, isn't it?\n",
"Harry smiles.\n"
}) );
See also:
This page was generated in LPC
Imprint / Impressum