roommak.c

dw_fluffos_v1/lib/obj/roommak.c · 1.3 KB

From the archive dw_fluffos_v1.tar.gz

Download the archive   « Back to the archive contents

/*  -*- LPC -*-  */
/*
 * $Locker:  $
 * $Id: roommak.c,v 1.1 1998/01/06 04:58:17 ceres Exp $
 * $Log: roommak.c,v $
 * Revision 1.1  1998/01/06 04:58:17  ceres
 * Initial revision
 * 
*/
/*
 * Room maker.  Pinkfish version.
 * Started 2-10-92.
 * Version 0.01
 */
inherit "/std/object";

mixed *exits,
      *items;
string de_long,
       de_short;
int de_light;

void setup() {
  set_name("maker");
  add_adjective("room");
  set_short("Room maker");
  set_long("It is a small wooden rod about 30 centimeters long with deep "+
           "burn marks along the sides.  It has what looks like a small "+
           "lens stuck in the end and three buttons along its length.\n");
}

void init() {
  if (this_player()->query_creator()) {
    add_action("do_new", "new"); /* Creates a new room */
    add_action("do_set", "set");   /* Allows you to seperately set things */
    add_action("do_add", "add");   /* Adds things.  ie doors etc */
    add_action("do_setup", "setup"); /* Sets up a bunch of default things. */
    add_action("do_modify", "modify"); /* Changes things :) */
    add_action("do_map", "map");   /* Draws a nice little map */
  }
}

/*
 * Examples of usage:
 * new bing
 * set short
 * set long
 * add exit
 * modify exit
 */

int do_new(string str) {
  if (!str) {
    notify_fail("Syntax: new <name>\n");
    return 0;
  }
  
}

Site Stats

Snippets: 1791
Codebases: 571