Dead-Souls SetItem

Post Reply
eldron
Posts: 1
Joined: Mon Jan 21, 2019 1:57 pm

Dead-Souls SetItem

Post by eldron » Mon Jan 21, 2019 2:01 pm

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?

User avatar
Vadi
Posts: 4660
Joined: Sat Mar 14, 2009 3:13 pm

Re: Dead-Souls SetItem

Post by Vadi » Mon Jan 21, 2019 6:51 pm

I'm not sure, but hopefully one of the MUD builders here can help you.

valaria
Posts: 17
Joined: Tue Dec 22, 2009 11:27 pm

Re: Dead-Souls SetItem

Post by valaria » Tue Jan 22, 2019 3:39 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests