f-990204-0
ldmud-3.2.9/src/bugs/f-990204-0 · 733 B
From the archive ldmud-329.tar.gz
Download the archive « Back to the archive contents
Short: New hook: Pre-/Post-create
From: Daniel von Dincklage <vondincklage@usa.net>
Date: Fri, 19 Jun 1998 13:17:34 +0200
Type: Feature
State: Unclassified
See also: p-990204-1
- pre_/post_create - Hooks
The former one could be used to intialize an object prior to the
call of create(), without haaving to abuse this __INIT-thing
in the current implemntation. The latter could be used to check
if people have set certain important variables in the create - esp.
if combined with the deep_call_other above - eg. you could place in
the item-post_create:
if (!query_name() &&
(function_exists("query_name",this_object()) != "/i/item/name.c"))
raise_error("You need to set a name in the create-function !");