A
/ \ _ Play Now Nemesis on
| | | | _______ _ _ _______ _______ _ _______
| |\ | | | ____| | \ / | | ____| / ____| | | / ____|
/-------/-------------------------------------------------------------------,
O= Home <=XX| About News Pics Adventurers Wizards Download Connect >
\-------\-------------------------------------------------------------------'
| | \ | | |____ | | | | | |____ ___ \ \ | | ___ \ \
| | \_| |_______| |_| |_| |_______| |_______/ |_| |_______/
\ /
V
Documentation Area
Document Path: /doc/monster/set_brave
Lfun: set_brave - make a monster very brave and not wimpy at all
Synopsis:
void set_brave(int brave)
Description:
The set_brave call makes a monster more than NOT wimpy, which
means it won't run away, even when the lfunc run_away() is called.
This is useful against clerics of Axelrod's Guild and perhaps
others. Monsters with set_brave(1) could not be scared away. No
overloading of run_away() needed by setting up an extra object by
using inherit. Especially for monsters which walk a fixed way or
should stay in place.
Return value:
none
Examples:
monster->set_brave(1);
Note:
Creating tools for players to change the braveness of a monster is
prohibited. Setting an existing brave monster to not being brave
and calling run_away() is NOT allowed. If the creator of a monster
says it is brave, then it IS brave! With your own monsters you can
do what you want e.g. also changing their braveness ;-)
See also:
This page was generated in LPC
Imprint / Impressum