Manual:Zone Manual/The Objects Section/Dragon station with rooms NPCs and objects
Jump to navigation
Jump to search
Dragon station with rooms, NPCs and objects
This page adds the objects from More complex objects
to the zone from Dragon station with rooms and NPCs.
The new part is the %objects section at the end: the information board, the weapons
locker and its black key, the stiletto, the breast plate, the bag of wine, the beef stick and the
Maskwa ring.
The zone compiles and the server can load it, but it is not finished: nothing loads the NPCs and
objects into the rooms yet, and the NPCs don't wear their equipment. That is what the
%reset section does, in The Reset Section, which ends with
the complete dragon station.
Save the source as dragonst.zon: the file name must be the zone's name, dragonst.
Compile it as shown in General Compiler Information.
#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
%end