replace_program
final_realms_fluffos_v1/lib/doc/efun/replace_program · 468 B
From the archive final_realms_fluffos_v1.zip
Download the archive « Back to the archive contents
Usage: replace_program("pathtoinheritedfile")
You can use this in rooms that inherit a common base file and have NO
functions other than setup() defined.
This allows the driver to re-use the program code from "pathtoinheritedfile"
rather than loading another copy into memory.
example
inherit "/std/outside.c";
void setup()
{
set_long("blahdy blah blah\n");
add_clone(CHARS+"npc",3);
add_exit("south",HELL,"plain");
replace_program("/std/outside");
}