Difference between revisions of "Manual:Zone Manual/The Reset Section/The complete dragon station"

From DikuMUD Wiki
Jump to navigation Jump to search
(checked against the current code (wiki review 2026-11-15))
 
Line 1: Line 1:
 
=== The complete dragon station ===
 
=== The complete dragon station ===
−
<nowiki>
 
−
#include &lt;composed.h&gt;
 
−
%zone dragonst
 
−
lifespan 20
 
−
reset RESET_ANYHOW
 
−
creators {"whistler"}
 
  
−
notes
+
This is the whole dragon station: the rooms, NPCs and objects of the earlier chapters, with the reset section from [[Manual:Zone Manual/The Reset Section/Reset walk through|Reset walk through]]. It compiles as it is with the current vmc.
−
"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
+
To try it, save it as <code>dragonst.zon</code> in <code>vme/zone/</code>. A zone file must have the same name as its zone (<code>%zone dragonst</code>), or the server stops at boot. Compile it from that directory:
−
"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
 
−
sulfur."
 
  
−
%rooms
+
<pre>
 +
../bin/vmc -m -d ../etc/ -I../include/ dragonst.zon
 +
</pre>
  
−
chamber
+
which prints
−
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 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"}
+
<pre>
−
"The chairs are made of some metal you don't recognize and every inch is covered
+
VMC 2.0 Copyright (C) 2001 by Valhalla [Nov 14 2026]
−
with some kind of dragon."
+
VMC Compiled with [-DDMSERVER -DPOSIX -DVMC -DVMC_SRC -DLINUX -DMUD_DEBUG]
 +
Compiling 'dragonst.zon'
 +
VMC Done.
 +
</pre>
  
−
extra  {"dragon picture","picture"}
+
(the date is the day your vmc was built). Then add a line for <code>dragonst</code> to <code>vme/etc/zonelist</code>, copying the line of another zone, and restart the server: it reads zones only at boot. Log in as an administrator and <code>goto chamber@dragonst</code>. If something doesn't show up, look in the server log and in <code>wstat zone dragonst errors</code>: vmc doesn't check the names used in exits, keys, <code>dilcopy</code> lines and resets, so a misspelt one only shows up there.
−
"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"}
+
A few things in it that the earlier chapters only touched on:
−
"An intellegence looking dragon is sitting perched on a large chair watching you."
+
* The green and red fields are rooms inside rooms (<code>in portal_room</code>, <code>in ship</code>, <code>in disposal_room</code>). Players get into them with <code>enter field</code>, and <code>force_move@function</code> then moves them on after a few seconds.
 +
* <code>deathspace</code> uses <code>death_room@function</code>, which takes 400 hit points every three seconds from players in the room: anyone who walks into the red field dies.
 +
* The janitor's <code>janitors@midgaard</code> makes him pick up what lies around; <code>wander_zones@function</code> keeps him walking about the station, opening doors but not unlocking them.
 +
* Bob is a banker through <code>special SFUN_BANK</code>. He also carries the key to the weapons locker.
  
−
movement SECT_INSIDE
+
<pre>
−
ALWAYS_LIGHT
+
#include <macros.h>
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
 
  
−
west to disposal_room descr
+
%zone dragonst
−
"You see a small room.";
+
lifespan 20
 +
reset RESET_ANYHOW
 +
creators {"whistler"}
  
−
east to hallway descr
+
notes
−
"You see what looks to be a hallway.";
+
"This is the dragon station. I shortened it to dragonst for ease in
 +
loading."
  
−
end
+
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."
  
−
hallway
+
%rooms
−
title "Module tunnel"
 
−
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"}
+
chamber
−
"Your eyes are drawn to a large ship lit up with running lights sitting
+
title "The middle chamber of the station"
−
about 1 kilometer from 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{"floor","walls","wall"}
+
extra {"chairs", "chair"}
−
"Well what can be said it looks to be in perfect condition. What else would
+
"The chairs are made of some metal you don't recognise and every inch
−
you want to know?"
+
is covered with some kind of dragon."
  
−
extra {"large ship" ,"ship"}
+
extra {"dragon picture", "picture"}
−
"The ship looks really big and is shaped like a dragon. The scales
+
"Thousands of dragons dot the skies of this rather lifelike picture. In
−
sparkle and seem to be multiple colors."
+
the centre you see something move. It looks to be a little green
 +
dragon."
  
−
movement SECT_INSIDE
+
extra {"green dragon", "dragon", "green"}
−
ALWAYS_LIGHT
+
"An intelligent-looking dragon is sitting perched on a large chair,
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
+
watching you."
  
−
west to chamber descr
+
movement SECT_INSIDE
−
"The hallway opens up into a chamber.";
+
ALWAYS_LIGHT
 +
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
  
−
east to office descr
+
west to disposal_room descr
−
"You see what looks to be an office."
+
"You see a small room.";
−
keyword {"air lock door","air lock","door"}
 
−
open {EX_OPEN_CLOSE, EX_CLOSED};
 
  
−
end
+
east to hallway descr
 +
"You see what looks to be a hallway.";
 +
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 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
+
hallway
−
ALWAYS_LIGHT
+
title "Module tunnel"
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
+
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 {"paintings","painting"}
+
extra {"windows", "window"}
−
"The paintings are of many dragons and riders in all kinds of tasks from
+
"Your eyes are drawn to a large ship lit up with running lights,
−
combat to look out.  All the figures seem to be staring at a staff
+
sitting about a kilometre from the station."
−
being held by a depiction of a wizard on the south wall."
 
  
−
extra {"wizard","staff"}
+
extra {"floor", "walls", "wall"}
−
"The wizard has his hand stretched out and it seems there is a place
+
"Well, what can be said? It looks to be in perfect condition."
−
you can almost grab the staff. Maybe if you searched the staff you would
 
−
find it."
 
  
−
extra {"desk"}
+
extra {"large ship", "ship"}
−
"Its a desk alright but there doesn't seem to be any drawers and it
+
"The ship looks really big and is shaped like a dragon. The scales
−
seems totally empty."
+
sparkle and seem to be many colours."
  
−
extra{"fabric"}
+
movement SECT_INSIDE
−
"Wussshhhhh you bound across the comfortable floor wasn't that fun."
+
ALWAYS_LIGHT
 +
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
  
−
west to hallway descr
+
west to chamber descr
−
"You see what looks to be a hallway."
+
"The hallway opens up into a chamber.";
−
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
+
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
  
−
portal_room
 
−
title "Green 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 green field right in the center.
 
−
there is a door that leads to another room to the north."
 
  
−
movement SECT_INSIDE
+
office
−
ALWAYS_LIGHT
+
title "The station office"
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
+
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 {"green field","field"}
+
extra {"paintings", "painting"}
−
"The field looks to be a green fog shifting and churning as you watch.
+
"The paintings show many dragons and riders at all kinds of tasks, from
−
if you are nuts you could probably enter it."
+
combat to lookout. All the figures seem to be staring at a staff held
 +
by a wizard painted on the south wall."
  
−
north  to office descr
+
extra {"wizard", "staff"}
−
"You see what looks to be an office."
+
"The wizard has his hand stretched out, and it seems there is a place
−
keyword {"air lock door","air lock","door"}
+
where you could almost grab the staff. Maybe if you searched the staff
−
key nokey
+
you would find something."
−
open {EX_OPEN_CLOSE, EX_CLOSED,EX_LOCKED};
 
  
−
//A link to the portal is also here from room_port
+
extra {"desk"}
−
end
+
"It's a desk all right, but it has no drawers and it is totally empty."
  
−
ship_port
+
extra {"fabric"}
−
names{"green field", "field"}
+
"Wussshhhhh! You bound across the comfortable floor. Wasn't that fun?"
−
title "Green field"
 
−
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
+
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};
  
−
dilcopy force_move@function(
+
south to portal_room descr
−
//Time to activation
+
"You see what looks to be a portal room."
−
4,
+
keyword {"air lock door", "air lock", "staff", "door"}
−
//room and act
+
key nokey
−
"portal_room@dragonst!You feel your body dissolving for lack of a better
+
open {EX_OPEN_CLOSE, EX_CLOSED, EX_LOCKED, EX_HIDDEN}
−
description.&amp;You appear on the deck of a ship.",
+
difficulty 10;
−
//True or False for randomizing or not
+
end
−
FALSE);
 
  
−
end
 
  
−
room_port
+
portal_room
−
names{"green field", "field"}
+
title "Green field room"
−
title "Green field"
+
descr
−
descr
+
"Like the other rooms on the station this one is large enough for
−
"Green Mist swirls about you."
+
dragons to fit in comfortably. The strange thing about this room is
−
movement SECT_INSIDE
+
that it is totally empty except for a green field right in the centre.
−
ALWAYS_LIGHT
+
A door leads to another room to the north."
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
 
  
−
in portal_room
+
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."
  
−
dilcopy force_move@function(
+
movement SECT_INSIDE
−
//Time to activation
+
ALWAYS_LIGHT
−
4,
+
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
−
//room and act
 
−
"ship@dragonst!You feel your body dissolving for lack of a better
 
−
description.&amp;You appear on the deck of a ship.",
 
−
//True or False for randomizing or not
 
−
FALSE);
 
  
−
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;
  
−
disposal_room
+
// room_port is inside this room: the green field
−
title "Red field room"
+
end
−
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
 
−
ALWAYS_LIGHT
 
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
 
  
−
extra {"red field","field"}
+
room_port
−
"The field looks to be a red fog shifting and churning as you watch.
+
names {"green field", "field"}
−
if you are nuts you could probably enter it."
+
title "Green field"
 +
descr
 +
"Green mist swirls about you."
  
−
east to chamber descr
+
movement SECT_INSIDE
−
"You see the main chamber.";
+
ALWAYS_LIGHT
 +
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
  
−
//A link to the portal is also here from dis_port
+
in portal_room
−
end
 
  
−
dis_port
+
dilcopy force_move@function(
−
names {"red field","field"}
+
  // ticks between moves: 12 is 3 seconds
−
title "Red field"
+
  12,
−
descr
+
  // the room to move to, then '!' and the message
−
"Red Mist swirls about you."
+
  "ship@dragonst!You feel your body dissolving.<br/>You appear on the deck of a ship.",
 +
  // FALSE: move at a steady rate
 +
  FALSE);
 +
end
  
−
movement SECT_INSIDE
 
−
ALWAYS_LIGHT
 
−
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
+
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."
  
−
ship
+
extra {"view ports", "view port", "ports", "port"}
−
title "War dragon"
+
"Sorry, you're not 50 metres tall. Maybe they are made for a dragon?"
−
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
+
extra {"view screen", "screen"}
−
ALWAYS_LIGHT
+
"It seems to be the pilot's view screen, but you can't see a way to
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
+
turn it on."
  
−
extra {"view port"}
+
extra {"controls", "control"}
−
"Sorry your not 50 meters tall maybe it is made for a dragon?"
+
"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 {"view screen","screen"}
+
extra {"soft fabric", "fabric"}
−
"It seems to be the pilots view screen but you can't seem to see a way
+
"It looks to be a dragon lounge area."
−
to turn it on."
 
  
−
extra {"controls","control"}
+
extra {"green field", "field"}
−
"The controls are in some weird language and your afraid if you start
+
"The field looks to be a green fog, shifting and churning as you watch."
−
pushing buttons you might rocket in to the station or worse slam into
 
−
a planet."
 
  
−
extra {"soft fabric","fabric"}
+
movement SECT_INSIDE
−
"It looks to be a dragon lounge area."
+
ALWAYS_LIGHT
 +
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
  
−
//A link to the portal is also here from ship_port
+
// ship_port is inside this room: the green field
−
end
+
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
+
ship_port
−
ALWAYS_LIGHT
+
names {"green field", "field"}
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
+
title "Green field"
 +
descr
 +
"Green mist swirls about you."
  
−
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
+
in ship
  
−
%mobiles
+
dilcopy force_move@function(12,
 +
  "portal_room@dragonst!You feel your body dissolving.<br/>You appear in the station.",
 +
  FALSE);
 +
end
  
−
bldragon
 
  
−
title "a black dragon"
+
disposal_room
−
descr "A big ugly black dragon is clawing the ground here."
+
title "Red field room"
−
names {"big ugly black dragon","ugly black dragon","big black dragon",
+
descr
−
"black dragon","dragon"}
+
"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 {}
+
extra {"red field", "field"}
−
"The black dragons scales glitter like black granite that has been
+
"The field looks to be a red fog, shifting and churning as you watch.
−
polished for years by water.  He has a large neck and huge bat like
+
If you are nuts you could probably enter it."
−
wings.  his eyes watch you as you stand before him. One claw seems to be
 
−
tapping slightly on the ground as if the dragon is waiting for
 
−
something."
 
  
−
extra {"eye","eyes"}
+
movement SECT_INSIDE
−
"The dragons eyes seem to follow you no matter where you go in the room
+
ALWAYS_LIGHT
−
nothing seems to escape the dragons attention."
+
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
  
−
extra {"claws","claw"}
+
east to chamber descr
−
"The claw is big black and it looks very deadly.  It seems like the
+
"You see the main chamber.";
−
dragon has two sets of 4 large claws and 2 sets of 4 smaller claws which
 
−
to say means the claws are about the size of short swords and long
 
−
swords."
 
  
−
extra {"scales","scale"}
+
// dis_port is inside this room: the red field
−
"Its a scale!  Haven't you ever seen a dragon before!"
+
end
  
−
extra {"bat wings","wings"}
 
−
"The dragon sees you looking and flaps his wings creating one heck of a
 
−
wind blast."
 
  
−
M_DRAGON_BLACK_OLD(SEX_MALE)
+
dis_port
 +
names {"red field", "field"}
 +
title "Red field"
 +
descr
 +
"Red mist swirls about you."
  
−
end
+
movement SECT_INSIDE
 +
ALWAYS_LIGHT
 +
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
  
−
janitor
+
in disposal_room
−
names {"ugly janitor", "janitor", "hobgoblin"}
 
−
title "an ugly janitor"
 
−
descr "an ugly janitor is walking around, cleaning up."
 
  
−
extra{}
+
dilcopy force_move@function(12,
−
"This ugly green thing looks more goblin than hobgoblin but he seems intent
+
  "deathspace@dragonst!You feel your body dissolving.",
−
on cleaning everything around him."
+
  FALSE);
 +
end
  
−
M_AVG_HOBGOBLIN(6, SEX_MALE)
 
  
−
// he is sort of good for cleaning so much
+
deathspace
−
alignment 900
+
title "Open space"
 +
descr
 +
"You see the ship and the station far off in the distance, and you are
 +
in space!"
  
−
//give him some money
+
movement SECT_INSIDE
−
money 5 IRON_PIECE
+
ALWAYS_LIGHT
 +
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS, UNIT_FL_NOSAVE}
  
−
dilcopy janitors@function(15);
+
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
  
−
// only want him cleaning the station
+
%mobiles
−
dilcopy wander_zones@function("dragonst", 20, 1, 1);
 
  
−
end
+
bldragon
 +
title "a black dragon"
 +
descr "A big ugly black dragon is clawing the ground here."
 +
names {"big ugly black dragon", "ugly black dragon", "big black dragon",
 +
      "black dragon", "dragon"}
  
−
bob
+
extra {}
 +
"The black dragon's scales glitter like black granite that has been
 +
polished by water for years. He has a long neck and huge bat-like
 +
wings. His eyes watch you as you stand before him. One claw is tapping
 +
slightly on the ground, as if the dragon is waiting for something."
  
−
names {"Bob"}
+
extra {"eyes", "eye"}
−
title "Bob"
+
"The dragon's eyes seem to follow you wherever you go in the room.
−
descr "Bob the Banker is here, sitting behind the counter."
+
Nothing seems to escape the dragon's attention."
−
extra {}
 
−
"He has a very serious look on his face."
 
  
−
// define from composed.h
+
extra {"claws", "claw"}
−
M_SHOP_KEEPER(4, SEX_MALE, RACE_HUMAN)
+
"The claws are big, black and very deadly. The dragon has two sets of
 +
four large claws and two sets of four smaller ones; the small ones are
 +
the size of short swords, the large ones the size of long swords."
  
−
//discourage people from killing banker
+
extra {"scales", "scale"}
−
exp -500
+
"It's a scale! Haven't you ever seen a dragon before?"
  
−
flags {UNIT_FL_NO_TELEPORT}
+
extra {"bat wings", "wings"}
 +
"The dragon sees you looking and flaps his wings, creating one heck of
 +
a wind blast."
  
−
special SFUN_BANK
+
M_DRAGON_BLACK_MEDIUM(70, SEX_MALE)
−
end
+
end
  
−
%objects
 
  
−
info_board
+
janitor
 +
names {"ugly janitor", "janitor", "hobgoblin"}
 +
title "an ugly janitor"
 +
descr "An ugly janitor is walking around, cleaning up."
  
−
title "a merchant information board"
+
extra {}
−
descr "A merchant information Board is mounted on a wall here."
+
"This ugly green thing looks more goblin than hobgoblin, but he seems
−
names {"merchant information board","information board","merchant
+
intent on cleaning everything around him."
−
board","board"} extra {} "A large flashy black steal board."
 
  
−
MATERIAL_METAL("A very fine quality black steel")
+
M_AVG_HOBGOBLIN(6, SEX_MALE)
−
type ITEM_BOARD
 
−
dilcopy board@boards("info","","rem_res@boards","",100);
 
  
−
end
+
// he is sort of good for cleaning so much
 +
alignment 900
  
−
w_stiletto
+
// give him some money
−
title "a stiletto"
+
money 5 IRON_PIECE
−
names {"deadly looking stiletto","deadly stiletto","stiletto", "dagger"}
 
−
descr "A deadly looking stiletto has been left here."
 
  
−
MATERIAL_METAL("A very fine quality steel")
+
dilcopy janitors@midgaard(15);
−
manipulate {MANIPULATE_TAKE, MANIPULATE_WIELD}
 
−
WEAPON_DEF(WPN_DAGGER, 1, 2)
 
−
weight 2
 
−
cost 2 GOLD_PIECE
 
−
rent 1 COPPER_PIECE
 
  
−
SKILL_TRANSFER(SKI_BACKSTAB, 2)
+
// he only cleans the station, and doesn't unlock doors
−
dilcopy abi_restrict@function (ABIL_DEX,10,0,25,"");
+
dilcopy wander_zones@function("dragonst", 20, 1, 0);
 +
end
  
−
extra{}
 
−
"This looks like a thieves dream come true. "
 
  
−
extra {"$identify"}
+
bob
−
"The stiletto looks magical in nature and seems really sharp. You can
+
names {"Bob", "banker"}
−
tell if you wield it you would be able to backstab someone really easy."
+
title "Bob"
 +
descr "Bob the Banker is here, sitting behind the counter."
 +
extra {}
 +
"He has a very serious look on his face."
  
−
extra{"$improved identify"}
+
M_SHOP_KEEPER(4, SEX_MALE, RACE_HUMAN)
−
"The stiletto gives you a magical bonus of +1 and has a quality of +2.
 
−
It also raises your back stabbing skill  by 2%.  You have to have at
 
−
least 10% in dex before you can wield this magical weapon."
 
  
−
end
+
// discourage people from killing the banker
 +
exp -500
  
−
wpn_locker
+
flags {UNIT_FL_NO_TELEPORT}
  
−
title "a weapons locker"
+
special SFUN_BANK
−
names {"weapons locker","weapon locker","locker"}
+
end
  
−
descr "a small weapons locker hangs on the wall here."
+
%objects
−
manipulate {MANIPULATE_ENTER}
 
−
CONTAINER_DEF(500)
 
−
open {EX_OPEN_CLOSE, EX_CLOSED,EX_LOCKED}
 
−
weight 400
 
−
MATERIAL_METAL("A very fine quality steel")
 
  
−
extra {}
+
info_board
−
"It is an ordinary weapons locker that looks like it holds any illegal
+
names {"merchant information board", "information board", "merchant board",
−
weapons that are taken on the station."
+
      "board"}
 +
title "a merchant information board"
 +
descr "A merchant information board is mounted on a wall here."
 +
extra {}
 +
"A large flashy black steel board."
 +
MATERIAL_METAL("A very fine quality black steel")
 +
type ITEM_BOARD
 +
dilcopy board@boards("info", "", "rem_res@boards", "", 100);
 +
end
  
−
end
+
wpn_locker
 +
names {"weapons locker", "weapon locker", "locker"}
 +
title "a weapons locker"
 +
descr "A small weapons locker hangs on the wall here."
 +
extra {}
 +
"It is an ordinary weapons locker that looks like it holds any illegal
 +
weapons that are taken on the station."
 +
MATERIAL_METAL("A very fine quality steel")
 +
CONTAINER_DEF(50)
 +
manipulate {MANIPULATE_ENTER}
 +
open {EX_OPEN_CLOSE, EX_CLOSED, EX_LOCKED}
 +
key black_key
 +
weight 400
 +
end
  
−
pol_plate
+
black_key
−
names {"polished breast plate","polished plate","breast plate","plate"}
+
names {"small black key", "black key", "key"}
−
title "a polished breast plate"
+
title "a small black key"
−
descr "A polished breast plate has been left here."
+
descr "A small black key has been dropped here."
−
extra{}
+
extra {}
−
"This is one shiny plate it seems to be made out of one perfect piece of
+
"It is a plain key of black steel. It looks like it fits a locker."
−
metal. There doesn't even seem to be any markings of owner ship." manipulate
+
MATERIAL_METAL("Black steel")
−
{MANIPULATE_TAKE, MANIPULATE_WEAR_BODY} ARMOUR_PLATE(5,9)
+
type ITEM_KEY
 +
manipulate {MANIPULATE_TAKE, MANIPULATE_HOLD}
 +
weight 1
 +
end
  
−
MATERIAL_METAL("A high luster silver colored metal")
+
w_stiletto
 +
names {"deadly looking stiletto", "deadly stiletto", "stiletto", "dagger"}
 +
title "a stiletto"
 +
descr "A deadly looking stiletto has been left here."
 +
extra {}
 +
"This looks like a thief's dream come true."
 +
MATERIAL_METAL("A very fine quality steel")
 +
WEAPON_DEF(WPN_DAGGER, BONUS_AVERAGE_PLUS, BONUS_GOOD)
 +
SKILL_TRANSFER(SKI_BACKSTAB, 2)
 +
dilcopy abi_restrict@function(ABIL_DEX, 10, 0, 25, "");
 +
weight 2
 +
cost 2 GOLD_PIECE
 +
rent 1 COPPER_PIECE
  
−
manipulate {MANIPULATE_TAKE, MANIPULATE_WEAR_BODY}
+
extra {"$identify"}
−
ARMOUR_DEF(ARM_PLATE,5,9)
+
"The stiletto looks magical in nature and seems really sharp. You can
−
dilcopy abi_restrict@function (ABIL_STR,40,0,25,"");
+
tell that if you wield it you would be able to backstab someone really
−
cost 2 GOLD_PIECE
+
easily."
−
rent 3 COPPER_PIECE
 
−
weight 25
 
  
−
extra{"$identify"}
+
extra {"$improved identify"}
−
"This is a high quality plate with a magical feeling."
+
"The stiletto has a magic bonus of +2 and a craftsmanship of +1. It
 +
also raises your backstab skill by 2. You need a dexterity of at least
 +
10 to wield it."
 +
end
  
−
extra{"$improved identify"}
+
pol_plate
−
"The plate has a magical bonus to your defence of a +5 and a quality of
+
names {"polished breast plate", "polished plate", "breast plate", "plate"}
−
+9. You need 40% in strength to be able to wear it."
+
title "a polished breast plate"
−
end
+
descr "A polished breast plate has been left here."
 +
extra {}
 +
"This is one shiny plate. It seems to be made out of one perfect piece
 +
of metal. There don't even seem to be any marks of ownership."
 +
MATERIAL_METAL("A high lustre silver coloured metal")
 +
ARMOUR_DEF(ARM_PLATE, BONUS_EXCELLENT, BONUS_GOOD_PLUS)
 +
manipulate {MANIPULATE_WEAR_BODY}
 +
dilcopy abi_restrict@function(ABIL_STR, 40, 0, 25, "");
 +
weight 25
 +
cost 2 GOLD_PIECE
 +
rent 3 COPPER_PIECE
  
−
liq_ration
+
extra {"$identify"}
−
names {"red bag", "bag", "wine"}
+
"This is a high quality plate with a magical feeling."
−
title "a red bag"
 
−
descr "A red bag has been gently placed here."
 
  
−
MATERIAL_ORGANIC("a soft plastic")
+
extra {"$improved identify"}
−
manipulate {MANIPULATE_TAKE}
+
"The plate has a magic bonus of +3 and a craftsmanship of +4. You need
 +
a strength of at least 40 to wear it."
 +
end
  
−
LIQ_WINE(1,2,2,0)
+
liq_ration
−
cost 2 IRON_PIECE
+
names {"red bag", "bag", "wine"}
−
extra {}
+
title "a red bag"
−
"A small label reads Tassel Grove's finest. Year 321"
+
descr "A red bag has been gently placed here."
 +
extra {}
 +
"A small label reads: Tassel Grove's finest. Year 321."
 +
MATERIAL_ORGANIC("a soft plastic")
 +
LIQ_WINE(1, 2, 2, 0)
 +
manipulate {MANIPULATE_TAKE}
 +
cost 2 IRON_PIECE
  
−
extra {"$identify"}
+
extra {"$identify"}
−
"Its the special wine from Tassel grove a small halfling village on the
+
"It's the special wine from Tassel Grove, a small halfling village on the
−
planet Valhalla. It seems like a great vintage wine."
+
planet Valhalla. It seems like a great vintage."
 +
end
  
−
end
+
beef_stick
 +
names {"tough leathery stick", "tough leather stick", "leathery stick",
 +
      "leather stick", "tough stick", "stick"}
 +
title "a tough leathery stick"
 +
descr "A tough leathery looking stick is lying here."
 +
extra {}
 +
"This has the word BEEF burnt into it."
 +
MATERIAL_ORGANIC("tough beef")
 +
FOOD_DEF(5, 0)
 +
manipulate {MANIPULATE_TAKE}
 +
weight 1
 +
cost 1 COPPER_PIECE
 +
end
  
−
beef_stick
+
maskwa
 +
names {"maskwa platinum ring", "platinum ring", "maskwa ring", "maskwa",
 +
      "ring"}
 +
title "a Maskwa ring"
 +
descr "A Maskwa platinum ring is lying here."
 +
extra {}
 +
"The ring has a large bear head. Could this be the legendary head of
 +
Maskwa? Anything formed with its head on it is said to strengthen the
 +
wearer."
 +
MATERIAL_METAL("Platinum, and other precious metals")
 +
type ITEM_WORN
 +
manipulate {MANIPULATE_TAKE, MANIPULATE_WEAR_FINGER}
 +
STR_TRANSFER(+1)
 +
weight 1
 +
cost 100 COPPER_PIECE
 +
rent 50 IRON_PIECE
 +
end
  
−
title "a tough leathery stick"
 
−
descr "A tough leathery looking stick is laying here."
 
−
names {"tough leathery stick","tough leather stick","leathery stick",
 
−
"leather stick","tough stick","stick"}
 
  
−
extra {}
+
%reset
−
"This has the word BEEF burnt into it."
 
  
−
manipulate {MANIPULATE_TAKE}
+
// The office door: closed again at every reset
−
FOOD_DEF(5,0)
+
door hallway EAST {EX_OPEN_CLOSE, EX_CLOSED}
−
weight 1
+
door office WEST {EX_OPEN_CLOSE, EX_CLOSED}
−
cost 1 COPPER_PIECE
 
−
MATERIAL_ORGANIC("tough beef")
 
−
end
 
  
−
  maskwa
+
// The secret door: hidden and locked on the office side,
 +
// only locked on the portal room side
 +
door office SOUTH {EX_OPEN_CLOSE, EX_CLOSED, EX_LOCKED, EX_HIDDEN}
 +
door portal_room NORTH {EX_OPEN_CLOSE, EX_CLOSED, EX_LOCKED}
  
−
names {"maskwa platinum ring", "platinum ring","maskwa ring","maskwa","ring"}
+
load info_board into chamber
−
title "a Maskwa ring"
 
−
descr "A Maskwa platinum ring is laying here."
 
−
MATERIAL_METAL("Platinum, and other precious metals")
 
−
extra {}
 
−
"The ring has a large bear head.  Could this be the legendary head of
 
−
Maskwa?  Any thing formed with its head on it is said to strengthen the
 
−
wearer."
 
−
type ITEM_WORN
 
−
manipulate {MANIPULATE_TAKE, MANIPULATE_HOLD, MANIPULATE_WEAR_FINGER}
 
−
cost 100 COPPER_PIECE
 
−
rent 50 IRON_PIECE
 
−
weight 1
 
−
STR_TRANSFER(+1)
 
−
end
 
  
−
%reset
+
load wpn_locker into office
 +
{
 +
  load w_stiletto
 +
}
  
−
//Office door reset
+
load bob into office
−
door hallway EAST {EX_OPEN_CLOSE, EX_CLOSED,EX_LOCKED}
+
{
−
door office WEST {EX_OPEN_CLOSE, EX_CLOSED,EX_LOCKED}
+
  equip pol_plate position WEAR_BODY
 +
  load black_key
 +
}
  
−
//secret door reset
+
load janitor into chamber
−
door office SOUTH {EX_OPEN_CLOSE, EX_CLOSED,EX_LOCKED,EX_HIDDEN}
+
{
−
door portal_room  NORTH {EX_OPEN_CLOSE, EX_CLOSED,EX_LOCKED}
+
  equip pol_plate position WEAR_BODY
 +
  load beef_stick
 +
  load liq_ration
 +
}
  
−
load info_board into chamber
+
random 50
 +
{
 +
  load bldragon into ship
 +
  {
 +
      load maskwa
 +
  }
 +
}
  
−
load wpn_locker into office
+
%end
−
  {
+
</pre>
−
  load w_stiletto
 
−
  }
 
−
 
 
−
  load bob into office
 
−
  {
 
−
  equip pol_plate WEAR_BODY
 
−
  }
 
−
 
 
−
  load janitor into chamber
 
−
    {
 
−
equip pol_plate WEAR_BODY
 
−
}
 
−
 
 
−
random 50
 
−
  {
 
−
  load bldragon
 
−
      {
 
−
  load maskwa
 
−
  }
 
−
  }
 
−
 
 
−
%end</nowiki>
 
  
 
<div style='padding-top: 30px; padding-bottom: 20px; text-align: left;float:left;width:50%;'>[[Manual:Zone_Manual/The_Reset_Section/Reset_walk_through|Previous: Reset walk through]]</div>
 
<div style='padding-top: 30px; padding-bottom: 20px; text-align: left;float:left;width:50%;'>[[Manual:Zone_Manual/The_Reset_Section/Reset_walk_through|Previous: Reset walk through]]</div>
 
<div style='padding-top: 30px; padding-bottom: 20px; text-align: right;float:right;width:50%;'>[[Manual:Zone_Manual/Color_and_Formatting_Codes|Next: Color and Formatting Codes]]</div>
 
<div style='padding-top: 30px; padding-bottom: 20px; text-align: right;float:right;width:50%;'>[[Manual:Zone_Manual/Color_and_Formatting_Codes|Next: Color and Formatting Codes]]</div>

Latest revision as of 06:23, 15 November 2026

The complete dragon station

This is the whole dragon station: the rooms, NPCs and objects of the earlier chapters, with the reset section from Reset walk through. It compiles as it is with the current vmc.

To try it, save it as dragonst.zon in vme/zone/. A zone file must have the same name as its zone (%zone dragonst), or the server stops at boot. Compile it from that directory:

../bin/vmc -m -d ../etc/ -I../include/ dragonst.zon

which prints

VMC 2.0 Copyright (C) 2001 by Valhalla [Nov 14 2026]
VMC Compiled with [-DDMSERVER -DPOSIX -DVMC -DVMC_SRC -DLINUX -DMUD_DEBUG]
Compiling 'dragonst.zon'
VMC Done.

(the date is the day your vmc was built). Then add a line for dragonst to vme/etc/zonelist, copying the line of another zone, and restart the server: it reads zones only at boot. Log in as an administrator and goto chamber@dragonst. If something doesn't show up, look in the server log and in wstat zone dragonst errors: vmc doesn't check the names used in exits, keys, dilcopy lines and resets, so a misspelt one only shows up there.

A few things in it that the earlier chapters only touched on:

  • The green and red fields are rooms inside rooms (in portal_room, in ship, in disposal_room). Players get into them with enter field, and force_move@function then moves them on after a few seconds.
  • deathspace uses death_room@function, which takes 400 hit points every three seconds from players in the room: anyone who walks into the red field dies.
  • The janitor's janitors@midgaard makes him pick up what lies around; wander_zones@function keeps him walking about the station, opening doors but not unlocking them.
  • Bob is a banker through special SFUN_BANK. He also carries the key to the weapons locker.
#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

%mobiles

bldragon
title "a black dragon"
descr "A big ugly black dragon is clawing the ground here."
names {"big ugly black dragon", "ugly black dragon", "big black dragon",
       "black dragon", "dragon"}

extra {}
"The black dragon's scales glitter like black granite that has been
polished by water for years. He has a long neck and huge bat-like
wings. His eyes watch you as you stand before him. One claw is tapping
slightly on the ground, as if the dragon is waiting for something."

extra {"eyes", "eye"}
"The dragon's eyes seem to follow you wherever you go in the room.
Nothing seems to escape the dragon's attention."

extra {"claws", "claw"}
"The claws are big, black and very deadly. The dragon has two sets of
four large claws and two sets of four smaller ones; the small ones are
the size of short swords, the large ones the size of long swords."

extra {"scales", "scale"}
"It's a scale! Haven't you ever seen a dragon before?"

extra {"bat wings", "wings"}
"The dragon sees you looking and flaps his wings, creating one heck of
a wind blast."

M_DRAGON_BLACK_MEDIUM(70, SEX_MALE)
end


janitor
names {"ugly janitor", "janitor", "hobgoblin"}
title "an ugly janitor"
descr "An ugly janitor is walking around, cleaning up."

extra {}
"This ugly green thing looks more goblin than hobgoblin, but he seems
intent on cleaning everything around him."

M_AVG_HOBGOBLIN(6, SEX_MALE)

// he is sort of good for cleaning so much
alignment 900

// give him some money
money 5 IRON_PIECE

dilcopy janitors@midgaard(15);

// he only cleans the station, and doesn't unlock doors
dilcopy wander_zones@function("dragonst", 20, 1, 0);
end


bob
names {"Bob", "banker"}
title "Bob"
descr "Bob the Banker is here, sitting behind the counter."
extra {}
"He has a very serious look on his face."

M_SHOP_KEEPER(4, SEX_MALE, RACE_HUMAN)

// discourage people from killing the banker
exp -500

flags {UNIT_FL_NO_TELEPORT}

special SFUN_BANK
end

%objects

info_board
names {"merchant information board", "information board", "merchant board",
       "board"}
title "a merchant information board"
descr "A merchant information board is mounted on a wall here."
extra {}
"A large flashy black steel board."
MATERIAL_METAL("A very fine quality black steel")
type ITEM_BOARD
dilcopy board@boards("info", "", "rem_res@boards", "", 100);
end

wpn_locker
names {"weapons locker", "weapon locker", "locker"}
title "a weapons locker"
descr "A small weapons locker hangs on the wall here."
extra {}
"It is an ordinary weapons locker that looks like it holds any illegal
weapons that are taken on the station."
MATERIAL_METAL("A very fine quality steel")
CONTAINER_DEF(50)
manipulate {MANIPULATE_ENTER}
open {EX_OPEN_CLOSE, EX_CLOSED, EX_LOCKED}
key black_key
weight 400
end

black_key
names {"small black key", "black key", "key"}
title "a small black key"
descr "A small black key has been dropped here."
extra {}
"It is a plain key of black steel. It looks like it fits a locker."
MATERIAL_METAL("Black steel")
type ITEM_KEY
manipulate {MANIPULATE_TAKE, MANIPULATE_HOLD}
weight 1
end

w_stiletto
names {"deadly looking stiletto", "deadly stiletto", "stiletto", "dagger"}
title "a stiletto"
descr "A deadly looking stiletto has been left here."
extra {}
"This looks like a thief's dream come true."
MATERIAL_METAL("A very fine quality steel")
WEAPON_DEF(WPN_DAGGER, BONUS_AVERAGE_PLUS, BONUS_GOOD)
SKILL_TRANSFER(SKI_BACKSTAB, 2)
dilcopy abi_restrict@function(ABIL_DEX, 10, 0, 25, "");
weight 2
cost 2 GOLD_PIECE
rent 1 COPPER_PIECE

extra {"$identify"}
"The stiletto looks magical in nature and seems really sharp. You can
tell that if you wield it you would be able to backstab someone really
easily."

extra {"$improved identify"}
"The stiletto has a magic bonus of +2 and a craftsmanship of +1. It
also raises your backstab skill by 2. You need a dexterity of at least
10 to wield it."
end

pol_plate
names {"polished breast plate", "polished plate", "breast plate", "plate"}
title "a polished breast plate"
descr "A polished breast plate has been left here."
extra {}
"This is one shiny plate. It seems to be made out of one perfect piece
of metal. There don't even seem to be any marks of ownership."
MATERIAL_METAL("A high lustre silver coloured metal")
ARMOUR_DEF(ARM_PLATE, BONUS_EXCELLENT, BONUS_GOOD_PLUS)
manipulate {MANIPULATE_WEAR_BODY}
dilcopy abi_restrict@function(ABIL_STR, 40, 0, 25, "");
weight 25
cost 2 GOLD_PIECE
rent 3 COPPER_PIECE

extra {"$identify"}
"This is a high quality plate with a magical feeling."

extra {"$improved identify"}
"The plate has a magic bonus of +3 and a craftsmanship of +4. You need
a strength of at least 40 to wear it."
end

liq_ration
names {"red bag", "bag", "wine"}
title "a red bag"
descr "A red bag has been gently placed here."
extra {}
"A small label reads: Tassel Grove's finest. Year 321."
MATERIAL_ORGANIC("a soft plastic")
LIQ_WINE(1, 2, 2, 0)
manipulate {MANIPULATE_TAKE}
cost 2 IRON_PIECE

extra {"$identify"}
"It's the special wine from Tassel Grove, a small halfling village on the
planet Valhalla. It seems like a great vintage."
end

beef_stick
names {"tough leathery stick", "tough leather stick", "leathery stick",
       "leather stick", "tough stick", "stick"}
title "a tough leathery stick"
descr "A tough leathery looking stick is lying here."
extra {}
"This has the word BEEF burnt into it."
MATERIAL_ORGANIC("tough beef")
FOOD_DEF(5, 0)
manipulate {MANIPULATE_TAKE}
weight 1
cost 1 COPPER_PIECE
end

maskwa
names {"maskwa platinum ring", "platinum ring", "maskwa ring", "maskwa",
       "ring"}
title "a Maskwa ring"
descr "A Maskwa platinum ring is lying here."
extra {}
"The ring has a large bear head. Could this be the legendary head of
Maskwa? Anything formed with its head on it is said to strengthen the
wearer."
MATERIAL_METAL("Platinum, and other precious metals")
type ITEM_WORN
manipulate {MANIPULATE_TAKE, MANIPULATE_WEAR_FINGER}
STR_TRANSFER(+1)
weight 1
cost 100 COPPER_PIECE
rent 50 IRON_PIECE
end


%reset

// The office door: closed again at every reset
door hallway EAST {EX_OPEN_CLOSE, EX_CLOSED}
door office WEST {EX_OPEN_CLOSE, EX_CLOSED}

// The secret door: hidden and locked on the office side,
// only locked on the portal room side
door office SOUTH {EX_OPEN_CLOSE, EX_CLOSED, EX_LOCKED, EX_HIDDEN}
door portal_room NORTH {EX_OPEN_CLOSE, EX_CLOSED, EX_LOCKED}

load info_board into chamber

load wpn_locker into office
{
   load w_stiletto
}

load bob into office
{
   equip pol_plate position WEAR_BODY
   load black_key
}

load janitor into chamber
{
   equip pol_plate position WEAR_BODY
   load beef_stick
   load liq_ration
}

random 50
{
   load bldragon into ship
   {
      load maskwa
   }
}

%end
Previous: Reset walk through
Next: Color and Formatting Codes