Author Topic: Room code  (Read 2209 times)

vakuta

  • Guest
Room code
« on: September 21, 2006, 12:15:35 pm »

There is just no syntax error, whether you include the empty spaces or not (and could someone tell me if you are supposed to count the spaces when finding a certain line number?)





#include <lib.h>

#include "./customdefs.h"



inherit LIB_ROOM;



static void create() {

   room::create();

   SetClimate("indoors");

   SetAmbientLight(15);

   SetShort("Ja Lounge");

   SetLong("This cozy little lounge is dimly lit by tall, white candles.  A fire crackles pleasently in the fireplace at the back of the room, providing a little extra light and bringing the lighting to just the right level.  The grate in front of the fireplace has some very interesting patterns on it.  Around the room are some winged armchairs.  A large rug is in front of the fireplace.  Over on the right, the bar serves fine drinks.  At the right end of the bar a large window provides a view out onto the street outside the lounge.  On the left wall are a couple bookcases, full of different books.");

   SetItems(([

      ({ "fireplace" }) : "A fire crackles pleasently inside it.  Strangely enough, the wood burns, but never seems to deplete.  The fireplace is built of big, granite stones, elegantly placed to give the fire a fancy look.",

      ({ "grate" }) : "The wrought-iron grate is curved aroound the opening in the fireplace.  The patterns look very interesting, maybe you should take a closer look.",

      ({ "patterns" }) : "The patterns on the grate are very elegant indeed, but they look somehow symbolic, maybe, just a little, occult.",

      ({ "bar" }) : "The polished oak bar is where customers go when they want some of the finest drinks in Hadan.  It's quite elegant.",

      ({ "window" }) : "The large window is very simple, yet pleasant.",

      ({ "bookcases" }) : "The bookcases are oak, like the bar, but not as darkly stained and polished.  Elegant, yet not as ornate as the grate around the fireplace.  They hold many books, one having a very interesting title, 'The Legacy of the Wyrm'.",

      ({ "rug" }) : "The rug goes well with the grate of the fireplace it lies before, almost as ornate.  It is covered in intricate designs, and looks to be very old in design.  Some of the designs look, like those on the grate, rather occult.",

      ({ "stones" }) : "The granite stones around the fireplace are placed to look elegant, though there are no designs or decorations of any kind.",

      ({ "armchairs" }) : "The red, winged armchairs look soft and comfortable.",

      ({ "chairs" }) : "The red, winged armchairs look soft and comfortable.",

   ]));

    SetExits("south" : MY_DIR "/workroom");

    SetObviousExits("s");





}





void init() {

  ::init();

}


vakuta

  • Guest
Room code
« Reply #1 on: September 21, 2006, 12:22:06 pm »
Never mind, it was an error in the SetExits() function.

Offline cratylus

  • Your favorite and best
  • Administrator
  • ***
  • Posts: 1024
  • Cratylus@Dead Souls <ds> np
    • View Profile
    • About Cratylus
Room code
« Reply #2 on: September 21, 2006, 12:40:13 pm »

Correct. line 24 should read:



SetExits( ([ "south" : MY_DIR "/workroom" ]) );