Lib Discussion => Dead Souls Support => Topic started by: vakuta on September 21, 2006, 12:15:35 pm

Title: Room code
Post by: vakuta 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() {




   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.");


      ({ "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");



void init() {



Title: Room code
Post by: vakuta on September 21, 2006, 12:22:06 pm
Never mind, it was an error in the SetExits() function.
Title: Room code
Post by: cratylus on September 21, 2006, 12:40:13 pm

Correct. line 24 should read:

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