NAME
	friend.c - some code for friends handling

INHERITS
	Nothing	

SETUP FUNCTIONS

	add_friend
	

REMOVE FUNCTIONS

	remove_friend
	
QUERY FUNCTIONS
	
	query_friends

=======================================================================
NAME
	add_friend - add a friend to the monster

SYNTAX
	void add_friend(string|string* who)

DESCRIPTION

	Add a friend to the monster. This means that we call  whenever we
	are attacked so  can help us. Note that  is a string and
	we will call _all_ monsters in the same room for which id(who)
	returns 1. If an array is given all elements are considered friends.
=======================================================================
NAME
	remove_friend - Remove a friend from the list of friends

SYNTAX
	void remove_friend(string friend)

DESCRIPTION

	If the monster had a friend with the name , it is removed
	from the list of friends.
=======================================================================
NAME
	query_friends - Ask the monster what friends it has.

SYNTAX
	string* query_friends()

DESCRIPTION

	Returns an array with all the monster's friends.
=======================================================================

Help topics available:
basic_monster.doc friend.doc monster.doc simple_monster.doc state_monster.doc

[START|BACK ]




[ NannyMuds main page | FAQ | Contact us ]

You are guest number 68 since January 2020.
This file was last modified: June 2000.