Download IFM User Manual

Transcript
IFM User Manual, Release 5.4
There are several reasons why it might be a good idea to split a game map into different sections:
• Some maps can be very large, and may not look good on a single piece of paper.
• It might be awkward to put rooms in relation to each other because of, say, a lot of up/down connections which have to be “flattened out”.
• The game might naturally divide into sections—a prologue, middle-game and end-game, for example.
IFM manages independent map sections automatically, by deciding which rooms are on which section. No
special command is needed to start a new map section—simply define a room which has no connection to
any previous room, by leaving out the dir clause (note that that’s how the kitchen starts out, in the example).
Rooms on different map sections are completely separate, and you may not link them via the link command.
However, you can indicate where a room on one section is connected to a room on another, using the join
command:
join Room1 to Room2;
As usual, Room1 and Room2 are tag names. You can also use join as a clause in a room command
(usually done with the room starting in a new section):
room "Basement" join Ground_Floor;
The “joined” status of the two rooms is indicated after their description text; the default is to use an increasing number.
Each map section can be given a title using the map command, like this:
map "Kensington Gardens";
This names the next map section that hasn’t been named. Note that you should have as many map commands
as you have map sections, although this isn’t enforced—any names that are missing will be assigned default
names, and extra names will be ignored. It’s conventional to give a map command just before starting a new
map section.
In rare circumstances (e.g., a three-dimensional maze) you may need to have rooms on the same map section
which are not connected to each other. The room dir clause creates an implicit link from the previous room
by default, but you can stop this from happening by using the nolink attribute. As a trivial example:
room
room
room
room
join
join
"One Side of Wall" tag this_side;
"Other Side of Wall" dir e nolink tag other_side;
"Underground Passage" tag passage_1;
"Underground Passage" tag passage_2 dir e;
this_side to passage_1 go down;
passage_2 to other_side go up;
In this example, there are two map sections: above ground, and below ground. But the two above-ground
rooms are not connected directly.
6
Chapter 2. Making maps