Page 1 of 1

Dead-Souls SetItem

Posted: Mon Jan 21, 2019 2:01 pm
by eldron
I am attempting to work with a Dead-souls mud. I don't know if anyone is familiar with it. I created a room both by coding and using the quick create system. In both cases SetItem does not work. I cannot find any errors in the code.

#include <lib.h>
#include "/realms/eldron/area/customdefs.h"

inherit LIB_ROOM;

static void create() {
room::create();
SetClimate("indoors");
SetAmbientLight(30);
SetShort("The village church.");
SetLong("A large ornate, stone structure. Large stained glass windows adorn the walls.");
SetItems(([
({ "tome", "book", "large tome", "large book", "leather tome", "leather book" }) : "A large leather bound religious tome.",
({ "altar", "stone altar" }) : "A large stone altar. It is covered in a white linen altar cloth. Two candles, a chalice and a tome sit upon the altar.",
({ "window", "windows", "stained glass window", "stained glass windows", "large window", "large windows" }) : "Large stained glass windows adorn the walls.",
({ "chalice", "cup", "large cup", "gold cup", "gold chalice" }) : "A large, gold cup used in religious services.",
"road" : "The road is south of here.",
({ "church", "place", "here" }) : "A large, ornate, stone structure.",
({ "wall", "alls", "stone wall", "stone walls" }) : "Stone walls. Large stained glass windows adorn the walls.",
({ "cloth", "altar cloth", "white cloth", "linen cloth", "gold trimed cloth" }) : "A white, linen cloth trimmed in gold.",
({ "candle", "candles", "bee's wax", "bee's wax candle", "bee's wax candles" }) : "Two, large, bee's wax candles sit upon the altar. They are not lit.",
({ "pew", "pews", "bench", "benches", "wooden bench", "wooden benches", "wooden pew", "wooden pews" }) : "Wooden benches fill the nave. They don't look very comfortable.",
]));
SetExits(([
"south" : "/domains/town/room/road1",
]));

}
void init(){
::init();
}


Does anyone have any ideas/suggestions?

Re: Dead-Souls SetItem

Posted: Mon Jan 21, 2019 6:51 pm
by Vadi
I'm not sure, but hopefully one of the MUD builders here can help you.

Re: Dead-Souls SetItem

Posted: Tue Jan 22, 2019 3:39 am
by valaria
to make it easy to be a readable (colorful!) code..

Code: Select all

#include <lib.h>
#include "/realms/eldron/area/customdefs.h"

inherit LIB_ROOM;

static void create() {
	room::create();
	SetClimate("indoors");
	SetAmbientLight(30);
	SetShort("The village church.");
	SetLong("A large ornate, stone structure. Large stained glass windows adorn the walls.");
	SetItems(([
		({ "tome", "book", "large tome", "large book", "leather tome", "leather book" }) : 
			"A large leather bound religious tome.",
		({ "altar", "stone altar" }) : 
			"A large stone altar. It is covered in a white linen altar cloth. Two candles, a chalice and a tome sit upon the altar.",
		({ "window", "windows", "stained glass window", "stained glass windows", "large window", "large windows" }) : 
			"Large stained glass windows adorn the walls.",
		({ "chalice", "cup", "large cup", "gold cup", "gold chalice" }) : "A large, gold cup used in religious services.",
			"road" : "The road is south of here.",
		({ "church", "place", "here" }) : "A large, ornate, stone structure.",
		({ "wall", "alls", "stone wall", "stone walls" }) : "Stone walls. Large stained glass windows adorn the walls.",
		({ "cloth", "altar cloth", "white cloth", "linen cloth", "gold trimed cloth" }) : "A white, linen cloth trimmed in gold.",
		({ "candle", "candles", "bee's wax", "bee's wax candle", "bee's wax candles" }) : 
			"Two, large, bee's wax candles sit upon the altar. They are not lit.",
		({ "pew", "pews", "bench", "benches", "wooden bench", "wooden benches", "wooden pew", "wooden pews" }) : 
			"Wooden benches fill the nave. They don't look very comfortable.",
		]));
		SetExits(([
			"south" : "/domains/town/room/road1",
		]));

}
void init(){
	::init();
}

(somehow still messy..)