 |
CHAPTER 1
A Simple Example:
#include <room2.h>
reset(arg) {
if (arg) return;
set_short("an example room");
set_long("This is a simple example room.\n");
set_weather(LIGHT_ON);
}
This file creates a lit room with a long and a short description and no
exits. This is the most basic form of a room. Every room has to define
these functions. It is a rather boring room though, therefore you should
take advantage of the lots of features that are provided by the room
support.
This file defines a room, but it is still a long way from the plain code
to another room in the game.
Changed/modified in August 2016.
See also: |
 |