A
          / \      _                                               Nemesis on 
          | |     | |  _______   _        _   _______    _______   _    _______
          | |\    | | |   ____| |  \    /  | |   ____|  /   ____| | |  /   ____|
 /-------/-------------------------------------------------------------------,
O= Home <=XX|  About  News  Pics  Adventurers  Wizards  Download  Connect     >
 \-------\-------------------------------------------------------------------'
          | |   \   | |  |____  | |      | | |  |____   ___ \  \  | |  ___ \  \
          | |     \_| |_______| |_|      |_| |_______| |_______/  |_| |_______/
          \ /
           V  

Documentation Area

Document Path: /doc/room2/page3


<
                                  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:
>

This page was generated in LPC

Imprint / Impressum