From the NannyMUD documentation
2000-12-16
NAME
inheritance - the ineritance mechanismDESCRIPTION
An object can inherit all variables and functions from another object. This is done with the declaration 'inherit "file";'. This must come before any local variables or functions.NOTE
Some objects have declared their variables as private, in which case they cannot be directly accessed from inheriting objects, but the indirect mechanism of function calls must be used.EXAMPLE
Defining a monster: inherit "std/simple_monster"; reset(arg) { ::reset(arg); if (!arg) { set_name("troll"); set_race("troll"); set_level(9); set_hp(100); set_wc(12); set_al(-60); set_gender(1); set_short("A troll"); set_long("It is a nasty troll. He looks very aggressive."); set_aggressive(1); } } As always, refer to the inherited file to see the functions and variables available.SEE ALSO
inherit in efun/object_related/inherit