add_item02.c
lima-1.0b5/lib/domains/std/school/R/add_item02.c · 1.1 KB
From the archive lima-1.0b5+driver.tar.gz
Download the archive « Back to the archive contents
#include "../school.h";
inherit ROOM;
void setup(){
set_brief("Add_items for multiple names");
set_long(@MAY
You can use one description to relate to multiple names.
Just include all the alternatives as an array at the beginning.
add_item( "desk", "table", "furniture" ,
([ "look" :
"It defies belief, it's actually a desk made of dark matter. "
"Surely, it takes a great mind to use it, yet alone work on it. "
"To even place anything on the surface would destroy it. "
"There is only one drawer made of the same material."
"\n",
]) );
MAY
);
add_item( "desk", "table", "furniture" ,
([ "look" :
"It defies belief, it's actually a desk made of dark matter. "
"Surely, it takes a great mind to use it, yet alone work on it. "
"To even place anything on the surface would destroy it. "
"There is only one drawer made of the same material."
"\n",
]) );
set_exits( ([
"backward" : R + "add_item01",
"forward" : R + "add_item03",
]) );
set_objects( ([
]) );
}