A
/ \ _ Play Now Nemesis on
| | | | _______ _ _ _______ _______ _ _______
| |\ | | | ____| | \ / | | ____| / ____| | | / ____|
/-------/-------------------------------------------------------------------,
O= Home <=XX| About News Pics Adventurers Wizards Download Connect >
\-------\-------------------------------------------------------------------'
| | \ | | |____ | | | | | |____ ___ \ \ | | ___ \ \
| | \_| |_______| |_| |_| |_______| |_______/ |_| |_______/
\ /
V
Documentation Area
Document Path: /doc/monster/set_level
Lfun: set_level - set the level of a monster
Synopsis:
void set_level(int level)
Description:
The set_level call sets the level of a monster. It is the most
important function for coding monsters for it sets a variety of
other variables along with the level, namely
all stats (int, con, str & dex), hp (incl. max_hp), sp (incl.
max_sp), experience, wc and ac.
Return value:
none
Examples:
set_level(5);
Note:
The values of variables stated above set via set_level are not
bad! There is no need to change them all, especially experience
and all stats.
The set ac or wc of monsters with armours and/or weapons will
change to the ac or wc of the armours or weapons by wearing
resp. wielding them.
See also:
This page was generated in LPC
Imprint / Impressum