room_chat03.c
lima-1.0b5/lib/domains/std/school/R/room_chat03.c · 516 B
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("How to add function as room chat");
set_long(@MAY
A function can be used in a room chats, by putting it in (: :).
This example uses the function time() to return the current time,
then ctime() to convert it to a 'sensible' form.
set_room_chat( (: ctime(time()):), 5);
MAY
);
set_room_chat( (: ctime(time()):), 5);
set_exits( ([
"backward" : R "room_chat02",
"finish" : R "room",
]) );
set_objects( ([
]) );
}