Difference between revisions of "Area File Layout"

From The Final Challenge Wiki
Jump to navigation Jump to search
m
 
Line 5: Line 5:




There are 10 kinds of blocks:
There are 11 kinds of blocks:
*The [[Area Header|Area Header]]
*The [[Area Header|Area Header]]
*The [[Help Record|Helps Block]]
*The [[Help Record|Helps Block]]
Line 11: Line 11:
*The [[Object Record|Objects Block]]
*The [[Object Record|Objects Block]]
*The [[Room Record|Rooms Block]]
*The [[Room Record|Rooms Block]]
*The [[STRINGS|Strings Block]]
*The [[Reset Record|Resets Block]]
*The [[Reset Record|Resets Block]]
*The [[Shop Record|Shops Block]]
*The [[Shop Record|Shops Block]]
*The Specials Block
*The Specials Block
*The Rspecs Block
*The Triggers Block
*The Triggers Block
*The Rspecs Block




Line 24: Line 25:


An area file is laid out like this, then:
An area file is laid out like this, then:
 
[[Area Header|<nowiki>#AREA</nowiki>]] { 1  2} Author  Area_Name~ F 1<BR><BR>  
[[Area Header|<nowiki>#AREA</nowiki>]] { 1  2} Author  Area_Name~ F 1<BR><BR>  


Line 48: Line 49:
room record 1<br>
room record 1<br>
room record 2<br>
room record 2<br>
...<br>
<nowiki>#0</nowiki><BR><BR>
[[STRINGS|<nowiki>#STRINGS</nowiki>]]<br>
string record 1<br>
string record 2<br>
...<br>
...<br>
<nowiki>#0</nowiki><BR><BR>
<nowiki>#0</nowiki><BR><BR>
Line 66: Line 73:
specfun record 1<br>
specfun record 1<br>
specfun record 2<br>
specfun record 2<br>
...<br>
S<BR><BR>
<nowiki>#RSPECS</nowiki><br>
rspec record 1<br>
rspec record 2<br>
...<br>
...<br>
S<BR><BR>
S<BR><BR>
Line 72: Line 85:
trigger record 1<br>
trigger record 1<br>
trigger record 2<br>
trigger record 2<br>
...<br>
S<BR><BR>
<nowiki>#RSPECS</nowiki><br>
rspec record 1<br>
rspec record 2<br>
...<br>
...<br>
S<BR><BR>
S<BR><BR>


<nowiki>#$</nowiki>
<nowiki>#$</nowiki>


[[Category:Area Development]]
[[Category:Area Development]]

Latest revision as of 22:00, 4 February 2015

An area file is laid out using a series of BLOCKS. Each block starts with a control structure that tells the MUD what kind of data is contained in the block. Following the control structure are the records holding the data. After the final record in a block, a control marker occurs indicating the block is finished.


All blocks are optional, and you may have only ONE of each type. However, some blocks force the use of other blocks. For example, if you have a block of mobs or objects, you are forced to have a block of the resets to load them into the area. Or if you have rooms in the file, you MUST have an area header block.


There are 11 kinds of blocks:


For ease of reading, they MUST be used in the order listed above.

Following all the blocks, the last line of the area file must contain the control marker signifying the "end of file". This is the string "#$" on a line all by itself. If this is omitted, the area will NOT load.


An area file is laid out like this, then:

#AREA { 1 2} Author Area_Name~ F 1

#HELPS
help record 1
help record 2
...
0 $~

#MOBILES
mob record 1
mob record 2
...
#0

#OBJECTS
obj record 1
obj record 2
...
#0

#ROOMS
room record 1
room record 2
...
#0

#STRINGS
string record 1
string record 2
...
#0

#RESETS
reset record 1
reset record 2
...
S

#SHOPS
shop record 1
shop record 2
...
0

#SPECIALS
specfun record 1
specfun record 2
...
S

#RSPECS
rspec record 1
rspec record 2
...
S

#TRIGGERS
trigger record 1
trigger record 2
...
S

#$