Difference between revisions of "Manual:Zone Manual/The Room Section/Putting the rooms together"

From DikuMUD Wiki
Jump to navigation Jump to search
(checked against the current code (wiki review 2026-11-15))
 
Line 1: Line 1:
 
=== Putting the rooms together ===
 
=== Putting the rooms together ===
  
−
Using all you have learned so far and putting it all together into
+
Here is everything from this chapter in one zone: a space station with a secret door, two transporters and a trap. Save it as <code>dragonst.zon</code> (the zone name and the file name must be the same) and compile it as shown in [[Manual:Zone_Manual/The_Room_Section/Compiling_and_debugging_your_first_room|Compiling and debugging your first room]]. It compiles without errors or warnings, also with <code>-l</code>.
−
one zone.  You end up with a very interesting space station with some
 
−
secret rooms and traps.. The full zone all together looks like
 
−
this.
 
−
<nowiki>
 
−
#include &lt;composed.h&gt;
 
−
%zone dragonst
 
−
lifespan 20
 
−
reset RESET_ANYHOW
 
−
creators {"whistler"}
 
  
−
notes
+
The chamber has grown a little since the first version: a longer description, and the station's terrain, light and flags.
−
"This is the dragon station I shortened it to dragonst for ease in
 
−
loading.  If you have  any questions email me at whistler@valhalla.com"
 
  
−
help
+
<pre>
−
"Not sure what could help you now. You are stuck on one of the
+
#include <macros.h>
−
weirdest space stations you have ever seen and you smell burning
 
−
sulfur."
 
  
−
%rooms
+
%zone dragonst
 +
lifespan 20
 +
reset RESET_ANYHOW
 +
creators {"whistler"}
  
−
chamber
+
notes
−
title "The middle chamber of the station"
+
"This is the dragon station. I shortened it to dragonst for ease in
−
descr
+
loading."
−
"This chamber seems to have the entire station rotating around it.  It is
 
−
unbelievably large the ceiling seems to be a good 200 meeters high and
 
−
the room is perfectly cubic. Small human size ornate chairs with dragon
 
−
designs scrawled on the arms and back are arranged in a triangle like
 
−
setting with one large chair at the front.  This must be where all
 
−
station meetings are held. large pictures cover the walls depicting
 
−
dragons in all kinds of situations.  large passages lead of to the west
 
−
and the east.."
 
  
−
extra {"chair","chairs"}
+
help
−
"The chairs are made of some metal you don't recognize and every inch is covered
+
"Not sure what could help you now. You are stuck on one of the
−
with some kind of dragon."
+
weirdest space stations you have ever seen and you smell burning
 +
sulphur."
  
−
extra  {"dragon picture","picture"}
+
%rooms
−
"Thousands of dragons dot the skies of this rather life like picture.  In the
 
−
center you see something move.  It looks to be a little green dragon."
 
  
−
extra{"green dragon","dragon","green"}
+
chamber
−
"An intellegence looking dragon is sitting perched on a large chair watching you."
+
title "The middle chamber of the station"
 +
descr
 +
"This chamber seems to have the entire station rotating around it. It
 +
is unbelievably large: the ceiling is a good 200 metres high and the
 +
room is perfectly cubic. Small human-size ornate chairs with dragon
 +
designs on the arms and backs are arranged in a triangle, with one
 +
large chair at the front. This must be where all station meetings are
 +
held. Large pictures cover the walls, showing dragons in all kinds of
 +
situations. Large passages lead off to the west and the east."
  
−
movement SECT_INSIDE
+
extra {"chairs", "chair"}
−
ALWAYS_LIGHT
+
"The chairs are made of some metal you don't recognise and every inch
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
+
is covered with some kind of dragon."
  
−
west to disposal_room descr
+
extra {"dragon picture", "picture"}
−
"You see a small room.";
+
"Thousands of dragons dot the skies of this rather lifelike picture. In
 +
the centre you see something move. It looks to be a little green
 +
dragon."
  
−
east to hallway descr
+
extra {"green dragon", "dragon", "green"}
−
"You see what looks to be a hallway.";
+
"An intelligent-looking dragon is sitting perched on a large chair,
 +
watching you."
  
−
end
+
movement SECT_INSIDE
 +
ALWAYS_LIGHT
 +
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
  
−
hallway
+
west to disposal_room descr
−
title "Module tunnel"
+
"You see a small room.";
−
descr "The hallway is about 50 meters long and around 100 meters from
 
−
side to side and top to bottom.  The hallway seems to be dust free.  The
 
−
walls and the floors seem to be made out of the same sterile
 
−
metal-plastic that all space agencies uses.  There are large plate glass
 
−
windows that open up into space.  The hallway is filled with a dim light
 
−
that seems to come from everywhere yet no where all at once.  You notice
 
−
a glimmer of bright light coming from the windows.  To the east you see
 
−
an air lock and to the west the hallway opens up into a larger room."
 
  
−
extra {"windows","window"}
+
east to hallway descr
−
"Your eyes are drawn to a large ship lit up with running lights sitting
+
"You see what looks to be a hallway.";
−
about 1 kilometer from the station."
+
end
  
−
extra{"floor","walls","wall"}
 
−
"Well what can be said it looks to be in perfect condition.  what else would you want to know?"
 
  
−
extra {"large ship" ,"ship"}
+
hallway
−
"The ship looks really big and is shaped like a dragon. The scales
+
title "Module tunnel"
−
sparkle and seem to be multiple colors."
+
descr
 +
"The hallway is about 50 metres long and around 100 metres from side to
 +
side and top to bottom. It seems to be dust free. The walls and the
 +
floor are made of the same sterile metal-plastic that all space
 +
agencies use. Large plate glass windows open up into space. The
 +
hallway is filled with a dim light that seems to come from everywhere
 +
and nowhere at once. You notice a glimmer of bright light coming from
 +
the windows. To the east you see an air lock and to the west the
 +
hallway opens up into a larger room."
  
−
movement SECT_INSIDE
+
extra {"windows", "window"}
−
ALWAYS_LIGHT
+
"Your eyes are drawn to a large ship lit up with running lights,
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
+
sitting about a kilometre from the station."
  
−
west to chamber descr
+
extra {"floor", "walls", "wall"}
−
"The hallway opens up into a chamber.";
+
"Well, what can be said? It looks to be in perfect condition."
  
−
east to office descr
+
extra {"large ship", "ship"}
−
"You see what looks to be an office."
+
"The ship looks really big and is shaped like a dragon. The scales
−
keyword {"air lock door","air lock","door"}
+
sparkle and seem to be many colours."
−
open {EX_OPEN_CLOSE, EX_CLOSED};
 
  
−
end
+
movement SECT_INSIDE
 +
ALWAYS_LIGHT
 +
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
  
−
office
+
west to chamber descr
−
title "The station office"
+
"The hallway opens up into a chamber.";
−
descr
 
−
"Large paintings fill the walls of this part of the station.  The room
 
−
is as large as the other rooms big enough for Dragons to lounge while
 
−
still having a desk in one corner small enough for a humanoid.  The
 
−
floor along the north wall is lined with some kind of fabric and seems very soft to
 
−
walk on, it may be some kind of dragon lounge judging by how large an
 
−
area it covers.  There is a passage to the west."
 
  
−
movement SECT_INSIDE
+
east to office descr
−
ALWAYS_LIGHT
+
"You see what looks to be an office."
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
+
keyword {"air lock door", "air lock", "door"}
 +
open {EX_OPEN_CLOSE, EX_CLOSED};
 +
end
  
−
extra {"paintings","painting"}
 
−
"The paintings are of many dragons and riders in all kinds of tasks from
 
−
combat to look out.  All the figures seem to be staring at a staff
 
−
being held by a depiction of a wizard on the south wall."
 
  
−
extra {"wizard","staff"}
+
office
−
"The wizard has his hand stretched out and it seems there is a place
+
title "The station office"
−
you can almost grab the staff. Maybe if you searched the staff you would
+
descr
−
find it."
+
"Large paintings fill the walls of this part of the station. The room
 +
is as large as the other rooms, big enough for dragons to lounge in,
 +
while a desk in one corner is small enough for a humanoid. The floor
 +
along the north wall is lined with some kind of fabric and seems very
 +
soft to walk on; judging by how large an area it covers, it may be a
 +
dragon lounge. There is a passage to the west."
  
−
extra {"desk"}
+
extra {"paintings", "painting"}
−
"Its a desk alright but there doesn't seem to be any drawers and it
+
"The paintings show many dragons and riders at all kinds of tasks, from
−
seems totally empty."
+
combat to lookout. All the figures seem to be staring at a staff held
 +
by a wizard painted on the south wall."
  
−
extra{"fabric"}
+
extra {"wizard", "staff"}
−
"Wussshhhhh you bound across the comfortable floor wasn't that fun."
+
"The wizard has his hand stretched out, and it seems there is a place
 +
where you could almost grab the staff. Maybe if you searched the staff
 +
you would find something."
  
−
west to hallway descr
+
extra {"desk"}
−
"You see what looks to be a hallway."
+
"It's a desk all right, but it has no drawers and it is totally empty."
−
keyword {"air lock door","air lock","door"}
 
−
open {EX_OPEN_CLOSE, EX_CLOSED};
 
−
south to portal_room descr
 
−
"You see what looks to be a portal room."
 
−
keyword {"air lock door","air lock","staff","door"}
 
−
key nokey
 
−
open {EX_OPEN_CLOSE, EX_CLOSED,EX_LOCKED,EX_HIDDEN}
 
−
        difficulty 10;
 
  
−
end
+
extra {"fabric"}
 +
"Wussshhhhh! You bound across the comfortable floor. Wasn't that fun?"
  
−
portal_room
+
movement SECT_INSIDE
−
title "Green field room"
+
ALWAYS_LIGHT
−
descr
+
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
−
"Like the other rooms on the station this one is large enough for
 
−
dragons to comfortably fit in.  The strange thing about this room though
 
−
is it is totally empty except for a green field right in the center.
 
−
there is a door that leads to another room to the north."
 
  
−
movement SECT_INSIDE
+
west to hallway descr
−
ALWAYS_LIGHT
+
"You see what looks to be a hallway."
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
+
keyword {"air lock door", "air lock", "door"}
 +
open {EX_OPEN_CLOSE, EX_CLOSED};
  
−
extra {"green field","field"}
+
south to portal_room descr
−
"The field looks to be a green fog shifting and churning as you watch.
+
"You see what looks to be a portal room."
−
if you are nuts you could probably enter it."
+
keyword {"air lock door", "air lock", "staff", "door"}
 +
key nokey
 +
open {EX_OPEN_CLOSE, EX_CLOSED, EX_LOCKED, EX_HIDDEN}
 +
difficulty 10;
 +
end
  
−
north  to office descr
 
−
"You see what looks to be an office."
 
−
keyword {"air lock door","air lock","door"}
 
−
key nokey
 
−
open {EX_OPEN_CLOSE, EX_CLOSED,EX_LOCKED}
 
−
                difficulty 10;;
 
  
−
//A link to the portal is also here from room_port
+
portal_room
−
end
+
title "Green field room"
 +
descr
 +
"Like the other rooms on the station this one is large enough for
 +
dragons to fit in comfortably. The strange thing about this room is
 +
that it is totally empty except for a green field right in the centre.
 +
A door leads to another room to the north."
  
−
ship_port
+
extra {"green field", "field"}
−
names{"green field", "field"}
+
"The field looks to be a green fog, shifting and churning as you watch.
−
title "Green field"
+
If you are nuts you could probably enter it."
−
descr
 
−
"Green Mist swirls about you."
 
  
−
movement SECT_INSIDE
+
movement SECT_INSIDE
−
ALWAYS_LIGHT
+
ALWAYS_LIGHT
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
+
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
  
−
in ship
+
north to office descr
 +
"You see what looks to be an office."
 +
keyword {"air lock door", "air lock", "door"}
 +
key nokey
 +
open {EX_OPEN_CLOSE, EX_CLOSED, EX_LOCKED}
 +
difficulty 10;
  
−
dilcopy force_move@function(
+
// room_port is inside this room: the green field
−
//Time to activation
+
end
−
4,
 
−
//room and act
 
−
"portal_room@dragonst!You feel your body dissolving for lack of a better
 
−
description.&amp;nYou appear on the deck of a ship.",
 
−
//True or False for randomizing or not
 
−
FALSE);
 
  
−
end
 
  
−
room_port
+
room_port
−
names{"green field", "field"}
+
names {"green field", "field"}
−
title "Green field"
+
title "Green field"
−
descr
+
descr
−
"Green Mist swirls about you."
+
"Green mist swirls about you."
−
movement SECT_INSIDE
 
−
ALWAYS_LIGHT
 
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
 
  
−
in portal_room
+
movement SECT_INSIDE
 +
ALWAYS_LIGHT
 +
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
  
−
dilcopy force_move@function(
+
in portal_room
−
//Time to activation
 
−
4,
 
−
//room and act
 
−
"ship@dragonst!You feel your body dissolving for lack of a better
 
−
description.&amp;nYou appear on the deck of a ship.",
 
−
//True or False for randomizing or not
 
−
FALSE);
 
  
−
end
+
dilcopy force_move@function(
 +
  // ticks between moves: 12 is 3 seconds
 +
  12,
 +
  // the room to move to, then '!' and the message
 +
  "ship@dragonst!You feel your body dissolving.<br/>You appear on the deck of a ship.",
 +
  // FALSE: move at a steady rate
 +
  FALSE);
 +
end
  
−
disposal_room
 
−
title "Red field room"
 
−
descr
 
−
"Like the other rooms on the station this one is large enough for
 
−
dragons to comfortably fit in.  The strange thing about this room though
 
−
is it is totally empty except for a red field right in the center.
 
−
there is a door that leads to another room to the east."
 
  
−
movement SECT_INSIDE
+
ship
−
ALWAYS_LIGHT
+
title "War dragon"
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
+
descr
 +
"Blue light softly glows from conduits that line the walls of this
 +
ship. The floors beside the east and west walls have what looks to be
 +
soft fabric covering. Small controls along the south wall seem to be
 +
made for humanoids, with two small chairs that look to be pilot seats.
 +
View ports are about 50 metres up the sides of the ship on the west
 +
and east walls, and some kind of electronic screen covers the south
 +
wall. The ship seems to be a one-room ship, but there is a green field
 +
by the north wall."
  
−
extra {"red field","field"}
+
extra {"view ports", "view port", "ports", "port"}
−
"The field looks to be a red fog shifting and churning as you watch.
+
"Sorry, you're not 50 metres tall. Maybe they are made for a dragon?"
−
if you are nuts you could probably enter it."
 
  
−
east to chamber descr
+
extra {"view screen", "screen"}
−
"You see the main chamber.";
+
"It seems to be the pilot's view screen, but you can't see a way to
 +
turn it on."
  
−
//A link to the portal is also here from dis_port
+
extra {"controls", "control"}
−
end
+
"The controls are in some weird language, and you're afraid that if you
 +
start pushing buttons you might rocket into the station or, worse, slam
 +
into a planet."
  
−
dis_port
+
extra {"soft fabric", "fabric"}
−
names {"red field","field"}
+
"It looks to be a dragon lounge area."
−
title "Red field"
 
−
descr
 
−
"Red Mist swirls about you."
 
  
−
movement SECT_INSIDE
+
extra {"green field", "field"}
−
ALWAYS_LIGHT
+
"The field looks to be a green fog, shifting and churning as you watch."
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
 
−
dilcopy force_move@function(
 
−
//how fast to force move in seconds
 
−
4,
 
−
//room to force move to and act
 
−
"deathspace@dragonst!You feel your body dissolving for lack of a better description.",
 
−
//true or false random move or not
 
−
0);
 
−
in disposal_room
 
  
−
end
+
movement SECT_INSIDE
 +
ALWAYS_LIGHT
 +
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
  
−
ship
+
// ship_port is inside this room: the green field
−
title "War dragon"
+
end
−
descr
 
−
"Blue light softly glows from con duets that line the walls of this ship.
 
−
The floors beside the east and west wall have what looks to be soft
 
−
fabric covering.  The south wall has small controls that seem to be made
 
−
for humanoids with two small chairs that look to be pilot seats.  view
 
−
portals are about 50 meters up the side of the ship on the west and east
 
−
wall and some kind of electronic screen covers the south wall.  The ship
 
−
seems to be a one room ship but there is a green field by the north
 
−
wall."
 
  
−
movement SECT_INSIDE
 
−
ALWAYS_LIGHT
 
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
 
  
−
extra {"view port"}
+
ship_port
−
"Sorry your not 50 meters tall maybe it is made for a dragon?"
+
names {"green field", "field"}
 +
title "Green field"
 +
descr
 +
"Green mist swirls about you."
  
−
extra {"view screen","screen"}
+
movement SECT_INSIDE
−
"It seems to be the pilots view screen but you can't seem to see a way
+
ALWAYS_LIGHT
−
to turn it on."
+
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
  
−
extra {"controls","control"}
+
in ship
−
"The controls are in some weird language and your afraid if you start
 
−
pushing buttons you might rocket in to the station or worse slam into
 
−
a planet."
 
  
−
extra {"soft fabric","fabric"}
+
dilcopy force_move@function(12,
−
"It looks to be a dragon lounge area."
+
  "portal_room@dragonst!You feel your body dissolving.<br/>You appear in the station.",
 +
  FALSE);
 +
end
  
−
//A link to the portal is also here from ship_port
 
−
end
 
  
−
deathspace
+
disposal_room
−
title"Open space"
+
title "Red field room"
−
descr
+
descr
−
"You see the ship and the station far off in the distance and you are in Space!"
+
"Like the other rooms on the station this one is large enough for
 +
dragons to fit in comfortably. The strange thing about this room is
 +
that it is totally empty except for a red field right in the centre.
 +
A passage leads back to the east."
  
−
movement SECT_INSIDE
+
extra {"red field", "field"}
−
ALWAYS_LIGHT
+
"The field looks to be a red fog, shifting and churning as you watch.
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
+
If you are nuts you could probably enter it."
  
−
dilcopy death_room@function (
+
movement SECT_INSIDE
−
//how often is damage done 4 would be 1 second
+
ALWAYS_LIGHT
−
4,
+
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
−
//damage
 
−
400,
 
−
//act for the damage.
 
−
"You realize to late that was the trash disposal transporter and you feel your lungs explode.");
 
  
−
end
+
east to chamber descr
 +
"You see the main chamber.";
  
−
%end</nowiki>
+
// dis_port is inside this room: the red field
 +
end
 +
 
 +
 
 +
dis_port
 +
names {"red field", "field"}
 +
title "Red field"
 +
descr
 +
"Red mist swirls about you."
 +
 
 +
movement SECT_INSIDE
 +
ALWAYS_LIGHT
 +
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
 +
 
 +
in disposal_room
 +
 
 +
dilcopy force_move@function(12,
 +
  "deathspace@dragonst!You feel your body dissolving.",
 +
  FALSE);
 +
end
 +
 
 +
 
 +
deathspace
 +
title "Open space"
 +
descr
 +
"You see the ship and the station far off in the distance, and you are
 +
in space!"
 +
 
 +
movement SECT_INSIDE
 +
ALWAYS_LIGHT
 +
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS, UNIT_FL_NOSAVE}
 +
 
 +
dilcopy death_room@function(
 +
  // ticks between hits: 12 is 3 seconds, the shortest it allows
 +
  12,
 +
  // hit points of damage per hit
 +
  400,
 +
  // the message for each hit
 +
  "Too late you realise that was the rubbish disposal. Your lungs explode!");
 +
end
 +
 
 +
%end
 +
</pre>
 +
 
 +
A walk through the station:
 +
* From the chamber, east leads through the hallway and its air lock door to the office.
 +
* In the office, <code>search staff</code> finds the hidden air lock door to the south. It is locked and nobody has the key (<code>nokey</code>), so it has to be picked (or opened with the <code>unlock</code> spell).
 +
* In the portal room, <code>enter field</code> puts you in the green field, which sends you to the dragon ship after a few seconds. The ship's own green field brings you back to the portal room.
 +
* West of the chamber, <code>enter field</code> in the disposal room sends you into open space, where you die within seconds.
 +
 
 +
There is no <code>%reset</code> section yet, so a door that a player opens stays open until the next reboot. The [[Manual:Zone_Manual/The_Reset_Section|reset section]] adds the <code>door</code> resets that close and lock the doors again. The [[Manual:Zone_Manual/The_NPC_Section|NPC section]] adds the station's inhabitants.
  
 
<div style='padding-top: 30px; padding-bottom: 20px; text-align: left;float:left;width:50%;'>[[Manual:Zone_Manual/The_Room_Section/A_more_complex_set_of_rooms|Previous: A more complex set of rooms]]</div>
 
<div style='padding-top: 30px; padding-bottom: 20px; text-align: left;float:left;width:50%;'>[[Manual:Zone_Manual/The_Room_Section/A_more_complex_set_of_rooms|Previous: A more complex set of rooms]]</div>
 
<div style='padding-top: 30px; padding-bottom: 20px; text-align: right;float:right;width:50%;'>[[Manual:Zone_Manual/The_Room_Section/Suggested_room_exercises|Next: Suggested room exercises]]</div>
 
<div style='padding-top: 30px; padding-bottom: 20px; text-align: right;float:right;width:50%;'>[[Manual:Zone_Manual/The_Room_Section/Suggested_room_exercises|Next: Suggested room exercises]]</div>

Latest revision as of 06:20, 15 November 2026

Putting the rooms together

Here is everything from this chapter in one zone: a space station with a secret door, two transporters and a trap. Save it as dragonst.zon (the zone name and the file name must be the same) and compile it as shown in Compiling and debugging your first room. It compiles without errors or warnings, also with -l.

The chamber has grown a little since the first version: a longer description, and the station's terrain, light and flags.

#include <macros.h>

%zone dragonst
lifespan 20
reset RESET_ANYHOW
creators {"whistler"}

notes
"This is the dragon station. I shortened it to dragonst for ease in
loading."

help
"Not sure what could help you now. You are stuck on one of the
weirdest space stations you have ever seen and you smell burning
sulphur."

%rooms

chamber
title "The middle chamber of the station"
descr
"This chamber seems to have the entire station rotating around it. It
is unbelievably large: the ceiling is a good 200 metres high and the
room is perfectly cubic. Small human-size ornate chairs with dragon
designs on the arms and backs are arranged in a triangle, with one
large chair at the front. This must be where all station meetings are
held. Large pictures cover the walls, showing dragons in all kinds of
situations. Large passages lead off to the west and the east."

extra {"chairs", "chair"}
"The chairs are made of some metal you don't recognise and every inch
is covered with some kind of dragon."

extra {"dragon picture", "picture"}
"Thousands of dragons dot the skies of this rather lifelike picture. In
the centre you see something move. It looks to be a little green
dragon."

extra {"green dragon", "dragon", "green"}
"An intelligent-looking dragon is sitting perched on a large chair,
watching you."

movement SECT_INSIDE
ALWAYS_LIGHT
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}

west to disposal_room descr
"You see a small room.";

east to hallway descr
"You see what looks to be a hallway.";
end


hallway
title "Module tunnel"
descr
"The hallway is about 50 metres long and around 100 metres from side to
side and top to bottom. It seems to be dust free. The walls and the
floor are made of the same sterile metal-plastic that all space
agencies use. Large plate glass windows open up into space. The
hallway is filled with a dim light that seems to come from everywhere
and nowhere at once. You notice a glimmer of bright light coming from
the windows. To the east you see an air lock and to the west the
hallway opens up into a larger room."

extra {"windows", "window"}
"Your eyes are drawn to a large ship lit up with running lights,
sitting about a kilometre from the station."

extra {"floor", "walls", "wall"}
"Well, what can be said? It looks to be in perfect condition."

extra {"large ship", "ship"}
"The ship looks really big and is shaped like a dragon. The scales
sparkle and seem to be many colours."

movement SECT_INSIDE
ALWAYS_LIGHT
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}

west to chamber descr
"The hallway opens up into a chamber.";

east to office descr
"You see what looks to be an office."
keyword {"air lock door", "air lock", "door"}
open {EX_OPEN_CLOSE, EX_CLOSED};
end


office
title "The station office"
descr
"Large paintings fill the walls of this part of the station. The room
is as large as the other rooms, big enough for dragons to lounge in,
while a desk in one corner is small enough for a humanoid. The floor
along the north wall is lined with some kind of fabric and seems very
soft to walk on; judging by how large an area it covers, it may be a
dragon lounge. There is a passage to the west."

extra {"paintings", "painting"}
"The paintings show many dragons and riders at all kinds of tasks, from
combat to lookout. All the figures seem to be staring at a staff held
by a wizard painted on the south wall."

extra {"wizard", "staff"}
"The wizard has his hand stretched out, and it seems there is a place
where you could almost grab the staff. Maybe if you searched the staff
you would find something."

extra {"desk"}
"It's a desk all right, but it has no drawers and it is totally empty."

extra {"fabric"}
"Wussshhhhh! You bound across the comfortable floor. Wasn't that fun?"

movement SECT_INSIDE
ALWAYS_LIGHT
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}

west to hallway descr
"You see what looks to be a hallway."
keyword {"air lock door", "air lock", "door"}
open {EX_OPEN_CLOSE, EX_CLOSED};

south to portal_room descr
"You see what looks to be a portal room."
keyword {"air lock door", "air lock", "staff", "door"}
key nokey
open {EX_OPEN_CLOSE, EX_CLOSED, EX_LOCKED, EX_HIDDEN}
difficulty 10;
end


portal_room
title "Green field room"
descr
"Like the other rooms on the station this one is large enough for
dragons to fit in comfortably. The strange thing about this room is
that it is totally empty except for a green field right in the centre.
A door leads to another room to the north."

extra {"green field", "field"}
"The field looks to be a green fog, shifting and churning as you watch.
If you are nuts you could probably enter it."

movement SECT_INSIDE
ALWAYS_LIGHT
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}

north to office descr
"You see what looks to be an office."
keyword {"air lock door", "air lock", "door"}
key nokey
open {EX_OPEN_CLOSE, EX_CLOSED, EX_LOCKED}
difficulty 10;

// room_port is inside this room: the green field
end


room_port
names {"green field", "field"}
title "Green field"
descr
"Green mist swirls about you."

movement SECT_INSIDE
ALWAYS_LIGHT
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}

in portal_room

dilcopy force_move@function(
   // ticks between moves: 12 is 3 seconds
   12,
   // the room to move to, then '!' and the message
   "ship@dragonst!You feel your body dissolving.<br/>You appear on the deck of a ship.",
   // FALSE: move at a steady rate
   FALSE);
end


ship
title "War dragon"
descr
"Blue light softly glows from conduits that line the walls of this
ship. The floors beside the east and west walls have what looks to be
soft fabric covering. Small controls along the south wall seem to be
made for humanoids, with two small chairs that look to be pilot seats.
View ports are about 50 metres up the sides of the ship on the west
and east walls, and some kind of electronic screen covers the south
wall. The ship seems to be a one-room ship, but there is a green field
by the north wall."

extra {"view ports", "view port", "ports", "port"}
"Sorry, you're not 50 metres tall. Maybe they are made for a dragon?"

extra {"view screen", "screen"}
"It seems to be the pilot's view screen, but you can't see a way to
turn it on."

extra {"controls", "control"}
"The controls are in some weird language, and you're afraid that if you
start pushing buttons you might rocket into the station or, worse, slam
into a planet."

extra {"soft fabric", "fabric"}
"It looks to be a dragon lounge area."

extra {"green field", "field"}
"The field looks to be a green fog, shifting and churning as you watch."

movement SECT_INSIDE
ALWAYS_LIGHT
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}

// ship_port is inside this room: the green field
end


ship_port
names {"green field", "field"}
title "Green field"
descr
"Green mist swirls about you."

movement SECT_INSIDE
ALWAYS_LIGHT
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}

in ship

dilcopy force_move@function(12,
   "portal_room@dragonst!You feel your body dissolving.<br/>You appear in the station.",
   FALSE);
end


disposal_room
title "Red field room"
descr
"Like the other rooms on the station this one is large enough for
dragons to fit in comfortably. The strange thing about this room is
that it is totally empty except for a red field right in the centre.
A passage leads back to the east."

extra {"red field", "field"}
"The field looks to be a red fog, shifting and churning as you watch.
If you are nuts you could probably enter it."

movement SECT_INSIDE
ALWAYS_LIGHT
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}

east to chamber descr
"You see the main chamber.";

// dis_port is inside this room: the red field
end


dis_port
names {"red field", "field"}
title "Red field"
descr
"Red mist swirls about you."

movement SECT_INSIDE
ALWAYS_LIGHT
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}

in disposal_room

dilcopy force_move@function(12,
   "deathspace@dragonst!You feel your body dissolving.",
   FALSE);
end


deathspace
title "Open space"
descr
"You see the ship and the station far off in the distance, and you are
in space!"

movement SECT_INSIDE
ALWAYS_LIGHT
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS, UNIT_FL_NOSAVE}

dilcopy death_room@function(
   // ticks between hits: 12 is 3 seconds, the shortest it allows
   12,
   // hit points of damage per hit
   400,
   // the message for each hit
   "Too late you realise that was the rubbish disposal. Your lungs explode!");
end

%end

A walk through the station:

  • From the chamber, east leads through the hallway and its air lock door to the office.
  • In the office, search staff finds the hidden air lock door to the south. It is locked and nobody has the key (nokey), so it has to be picked (or opened with the unlock spell).
  • In the portal room, enter field puts you in the green field, which sends you to the dragon ship after a few seconds. The ship's own green field brings you back to the portal room.
  • West of the chamber, enter field in the disposal room sends you into open space, where you die within seconds.

There is no %reset section yet, so a door that a player opens stays open until the next reboot. The reset section adds the door resets that close and lock the doors again. The NPC section adds the station's inhabitants.

Previous: A more complex set of rooms
Next: Suggested room exercises