INHERITANCE

final_realms_fluffos_v1/lib/doc/efun/INHERITANCE · 535 B

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

.DT
inheritance
FR-MUD's efun help
inheritance

Inheritance
.SP 5 5
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.
.EP

Example
.SI 5
inherit "obj/monster";

reset(arg) {
    ::reset(arg);
    set_name("troll");
    set_level(9);
    set_hp(100);
    set_wc(12);
    set_al(-60);
    set_short("A troll");
    set_long("It is a nasty troll that looks very aggressive.\n");
    set_aggressive(1);
}
.EI

Site Stats

Snippets: 1791
Codebases: 571