Buckey's Engineering.. complete!
Here is the final code to the Buckey's Engineering area. There is a
lot more that could be done with such a simple area to make it unique
using just the techniques covered in this tutorial. If you are
interested in creating an area for Sanity's Edge then get in touch
with a coder to find out how you can help develop the mud.
/* defs.h
* Definitions for Buckey's Engineering area.
* Coram, 19th February 2003.
*/
#define BUCK_ENG "/d/Edge/coram/buckey/"
/* reception.c
* The reception to Buckey's Engineering.
* Coram, 18th February 2003.
*/
inherit "/std/room";
#include "defs.h"
void
create_room()
{
set_short("Buckey's reception");
set_long("This is the reception to Buckey's Engineering. A "+
"white table faces the entrance, below the company logo. "+
"A fancy holographic display dances from frame to frame "+
"of an advertising video clip.\n");
add_item( ({"hologram", "display", "holographic display"}),
"A fancy display shows off some of Buckey's achievements.\n");
add_exit(BUCK_ENG +"office", "south");
}
/* office.c
* Buckey's spiffy office.
* Coram, 19th February 2003.
*/
object buckey;
#include "defs.h"
void
reset_room()
{
if(!buckey)
{
buckey = clone_object(BUCK_ENG +"buckey");
buckey -> move(this_object());
}
}
void
create_room()
{
set_short("Buckey's office");
set_long("Buckey's office has a single desk in the middle of "+
"the room in front of a chair. Bright light shines in "+
"through the window.\n");
add_item("window", "A glass window, letting in lots of light.\n");
add_item("desk", "A solid looking desk with a metal surface.\n");
add_item("chair", "A fairly plain looking chair.\n");
add_exit(BUCK_ENG +"reception", "north");
reset_room();
}
/* buckey.c
* Buckey, the engineer and businessman.
* Coram, 19th February 2003.
*/
inherit "/std/monster";
#include <ss_types.h>
void
create_monster()
{
set_name("buckey");
add_name("man");
set_short("Buckey");
set_long("Buckey is a middle-ages businessman, struggling to make "+
"his engineering business profitable. He looks over worked "+
"but still possesses a gleam in his eye.\n");
set_gender(0);
set_stats( ({ 30, 30, 40, 35, 30 30 }) );
set_skill(SS_UNARM_COMBAT, 15);
set_skill(SS_DEFENCE, 15);
add_chat("Hi, my name is Buckey - may I help you?");
add_chat("Welcome to Buckey's Engineering!");
add_act("smile");
add_act("sigh");
}