User Tools

Site Tools


coding:amob
#include <mudlib.h>
#include <ansi.h>
#pragma strong_types
 
inherit MONSTER;
 
void reset (int arg)
{
  ::reset (arg);
  if (arg) return;
 
  set_name ("soldier");
  set_gender (1);
  
  set_short ("A Soldier");
  set_long ("This is just a basic soldier.\n");
 
  set_level (15);
  add_money (300);
  
  set_non_combat_chats( 20, ({
    ({ "Hah!",            "say"   }),
    ({ "sneers at you.",  "emote" }),
    ({ "looks confused.", "emote" }),
    ({ "Where am I?",     "say"   }),
    ({ "The soldier looks around the room.", "echo" })
  }) );
}

A very simple monster, let's check out how it works...

coding/amob.txt · Last modified: 2010/05/04 20:14 by orbital