NAME
	/obj/daemon/wedd.c - keep track of whom is married to whom

DEFINITIONS


DESCRIPTION
	This daemon keeps tracks of whom is married to whom. It is used by the
	priest in the church and by the general wedding ring.

USEFUL FUNCTIONS
	marry
	divorce
	query_spouse
	query_pairs

=========================================================================
NAME
	marry
SYNTAX
	void marry(string player1, string player2, string initiator)

RETURNED VALUES
	None.

DESCRIPTION
	This function registers the marriage between 'player1' and 'player2'.

=========================================================================
NAME
	divorce
SYNTAX
	void divorce(string player)

RETURNED VALUES
	None.

DESCRIPTION
	This function divorces 'player' from his/her/its spouse.

=========================================================================
NAME
	query_spouse
SYNTAX
	mixed *query_spouse(string who)

  return cache[lower_case(who || "")];
} // query_spouse
RETURNED VALUES
	An array of the form
	({ "spouse", "initiator", "date-string" })

DESCRIPTION
	This function allows one to check if someone is married by returning
	an appropriate array.

=========================================================================
NAME
	query_pairs
SYNTAX
	mixed query_pairs()

RETURNED VALUES
	An array of arrayer, in the format

	({ ({"spouse11", "spouse12", "initiator1", "date-string1" }),
	   ({"spouse21", "spouse22", "initiator2", "date-string2" }),
		...
	})

DESCRIPTION
	This function returns a copy of the database.

=========================================================================

Help topics available:
area_d.doc examples/ reclaimd.doc timed.doc wedd.doc

[START|BACK ]




[ NannyMuds main page | FAQ | Contact us ]

You are guest number 140 since December 2019.
This file was last modified: June 2000.