rat.c

ds2.9a10/lib/domains/default/npc/rat.c · 719 B

From the archive ds2.9a10.zip

Download the archive   « Back to the archive contents

#include <lib.h>

inherit LIB_SENTIENT;

static void create() {
    sentient::create();
    SetKeyName("rat");
    SetAdjectives( ({"mangy", "little", "dirty"}) );
    SetId( ({"rat"}) );
    SetShort("a rat");
    SetLong("A scruffy little dirty rat.");
    SetLevel(3);
    SetMaxHealthPoints(50);
    SetRace("rodent");
    SetGender("male");
    SetClass("fighter");
    SetWanderSpeed(1);
    SetEncounter(0);
    SetMessage("come","$N scurries in.");
    SetMessage("leave","$N scurries $D.");
    SetAction(5, ({ 
        "The rat squeaks.", "You hear a rat scuttling about.", 
        "A scruffy little rat brushes against your leg.",
        "You hear tiny munching sounds."}));
}
void init(){
    ::init();
}

Site Stats

Snippets: 1791
Codebases: 571