Difference between revisions of "Manual:Zone Manual"

From DikuMUD Wiki
Jump to navigation Jump to search
(checked against the current code (wiki review 2026-11-15))
 
Line 1: Line 1:
 +
The '''Zone Manual''' explains how to build areas ("zones") for DikuMUD3: rooms, objects, NPCs and the resets that bring them into the game. A zone is a text file (<code>.zon</code>) that you write in any editor and compile with '''vmc''', the zone compiler. The game server loads the compiled zone when it boots.
  
−
  [[Manual:Zone_Manual/Introduction|Introduction]]
+
The scripts that make units act (DIL) have their own manual, the [[Manual:DIL Manual|DIL Manual]]. The zones that come with DikuMUD3, in <code>vme/zone/</code> ([https://github.com/Seifert69/DikuMUD3/tree/master/vme/zone on GitHub]), are working examples of everything in this manual.
−
        [[Manual:Zone_Manual/Introduction#Giving credit where credit is due!|Giving credit where credit is due!]]
+
 
−
  [[Manual:Zone_Manual/General_Compiler_Information|General Compiler Information]]
+
== Contents ==
−
        [[Manual:Zone_Manual/General_Compiler_Information#The compiler|The compiler]]
+
* [[Manual:Zone_Manual/Introduction|Introduction]]
−
        [[Manual:Zone_Manual/General_Compiler_Information/The_VMC_pre-processor|The VMC pre-processor]]
+
* [[Manual:Zone_Manual/General_Compiler_Information|General Compiler Information]]
−
              [[Manual:Zone_Manual/General_Compiler_Information/The_VMC_pre-processor#Commenting your zone|Commenting your zone]]
+
** [[Manual:Zone_Manual/General_Compiler_Information/The_VMC_pre-processor|The VMC pre-processor]]
−
              [[Manual:Zone_Manual/General_Compiler_Information/The_VMC_pre-processor#Macros and what they can do for you|Macros and what they can do for you]]
+
* [[Manual:Zone_Manual/Zone_Source_File|Zone Source File]]
−
              [[Manual:Zone_Manual/General_Compiler_Information/The_VMC_pre-processor#Including other files in your zone|Including other files in your zone]]
+
** [[Manual:Zone_Manual/Zone_Source_File/Zone_information_section|Zone information section]]
−
              [[Manual:Zone_Manual/General_Compiler_Information/The_VMC_pre-processor#Doing minor calculations|Doing minor calculations]]
+
* [[Manual:Zone_Manual/Unit_Building_Blocks|Unit Building Blocks]]
−
  [[Manual:Zone_Manual/Zone_Source_File|Zone Source File]]
+
* [[Manual:Zone_Manual/The_Room_Section|The Room Section]]
−
        [[Manual:Zone_Manual/Zone_Source_File#Definition types|Definition types]]
+
** [[Manual:Zone_Manual/The_Room_Section/Building_your_first_room|Building your first room]]
−
        [[Manual:Zone_Manual/Zone_Source_File/Zone_information_section|Zone information section]]
+
** [[Manual:Zone_Manual/The_Room_Section/Climbing|Climbing]]
−
  [[Manual:Zone_Manual/Unit_Building_Blocks|Unit Building Blocks]]
+
** [[Manual:Zone_Manual/The_Room_Section/Compiling_and_debugging_your_first_room|Compiling and debugging your first room]]
−
  [[Manual:Zone_Manual/The_Room_Section|The Room Section]]
+
** [[Manual:Zone_Manual/The_Room_Section/DIL_functions_for_rooms|DIL functions for rooms]]
−
        [[Manual:Zone_Manual/The_Room_Section#Description of room fields|Description of room fields]]
+
** [[Manual:Zone_Manual/The_Room_Section/A_more_complex_set_of_rooms|A more complex set of rooms]]
−
        [[Manual:Zone_Manual/The_Room_Section/Building_your_first_room|Building your first room]]
+
** [[Manual:Zone_Manual/The_Room_Section/Putting_the_rooms_together|Putting the rooms together]]
−
        [[Manual:Zone_Manual/The_Room_Section/Climbing|Climbing]]
+
** [[Manual:Zone_Manual/The_Room_Section/Suggested_room_exercises|Suggested room exercises]]
−
        [[Manual:Zone_Manual/The_Room_Section/Compiling_and_debugging_your_first_room|Compiling and debugging your first room]]
+
* [[Manual:Zone_Manual/The_NPC_Section|The NPC Section]]
−
        [[Manual:Zone_Manual/The_Room_Section/DIL_functions_for_rooms|DIL functions for rooms]]
+
** [[Manual:Zone_Manual/The_NPC_Section/NPC_macros|NPC macros]]
−
        [[Manual:Zone_Manual/The_Room_Section/A_more_complex_set_of_rooms|A more complex set of rooms]]
+
** [[Manual:Zone_Manual/The_NPC_Section/Building_your_first_NPC|Building your first NPC]]
−
              [[Manual:Zone_Manual/The_Room_Section/A_more_complex_set_of_rooms#Exits with doors|Exits with doors]]
+
** [[Manual:Zone_Manual/The_NPC_Section/Compiling_and_debugging_your_first_NPC|Compiling and debugging your first NPC]]
−
              [[Manual:Zone_Manual/The_Room_Section/A_more_complex_set_of_rooms#Locked exits|Locked exits]]
+
** [[Manual:Zone_Manual/The_NPC_Section/DIL_functions_for_NPCs|DIL functions for NPCs]]
−
              [[Manual:Zone_Manual/The_Room_Section/A_more_complex_set_of_rooms#Hidden exits|Hidden exits]]
+
** [[Manual:Zone_Manual/The_NPC_Section/A_more_complex_set_of_NPCs|A more complex set of NPCs]]
−
              [[Manual:Zone_Manual/The_Room_Section/A_more_complex_set_of_rooms#Rooms inside of rooms|Rooms inside of rooms]]
+
** [[Manual:Zone_Manual/The_NPC_Section/Dragon_station_with_rooms_and_NPCs|Dragon station with rooms and NPCs]]
−
        [[Manual:Zone_Manual/The_Room_Section/Putting_the_rooms_together|Putting the rooms together]]
+
** [[Manual:Zone_Manual/The_NPC_Section/Suggested_NPC_exercises|Suggested NPC exercises]]
−
        [[Manual:Zone_Manual/The_Room_Section/Suggested_room_exercises|Suggested room exercises]]
+
* [[Manual:Zone_Manual/The_Objects_Section|The Objects Section]]
−
  [[Manual:Zone_Manual/The_NPC_Section|The NPC Section]]
+
** [[Manual:Zone_Manual/The_Objects_Section/Object_macros|Object macros]]
−
        [[Manual:Zone_Manual/The_NPC_Section#Description of NPC fields|Description of NPC fields]]
+
** [[Manual:Zone_Manual/The_Objects_Section/Building_your_first_object|Building your first object]]
−
        [[Manual:Zone_Manual/The_NPC_Section/NPC_macros|NPC macros]]
+
** [[Manual:Zone_Manual/The_Objects_Section/Compiling_and_Debugging_your_first_object|Compiling and Debugging your first object]]
−
              [[Manual:Zone_Manual/The_NPC_Section/NPC_macros#The attack and armour macro|The attack and armour macro]]
+
** [[Manual:Zone_Manual/The_Objects_Section/DIL_functions_for_objects|DIL functions for objects]]
−
              [[Manual:Zone_Manual/The_NPC_Section/NPC_macros#The_defense and offense bonus macro|The defense and offense bonus macro]]
+
** [[Manual:Zone_Manual/The_Objects_Section/More_complex_objects|More complex objects]]
−
              [[Manual:Zone_Manual/The_NPC_Section/NPC_macros#The NPc abilities macro|The NPc abilities macro]]
+
** [[Manual:Zone_Manual/The_Objects_Section/Dragon_station_with_rooms_NPCs_and_objects|Dragon station with rooms, NPCs and objects]]
−
              [[Manual:Zone_Manual/The_NPC_Section/NPC_macros#The NPc weapon and spell macros|The NPc weapon and spell macros]]
+
** [[Manual:Zone_Manual/The_Objects_Section/Suggested_object_exercises|Suggested object exercises]]
−
              [[Manual:Zone_Manual/The_NPC_Section/NPC_macros#Using the composed.h|Using the composed.h]]
+
* [[Manual:Zone_Manual/The_Reset_Section|The Reset Section]]
−
        [[Manual:Zone_Manual/The_NPC_Section/Building_your_first_NPC|Building your first NPC]]
+
** [[Manual:Zone_Manual/The_Reset_Section/Loading_objects_and_NPCs|Loading objects and NPCs]]
−
        [[Manual:Zone_Manual/The_NPC_Section/Compiling_and_debugging_your_first_NPC|Compiling and debugging your first NPC]]
+
** [[Manual:Zone_Manual/The_Reset_Section/Special_reset_functions|Special reset functions]]
−
        [[Manual:Zone_Manual/The_NPC_Section/DIL_functions_for_NPCs|DIL functions for NPCs]]
+
** [[Manual:Zone_Manual/The_Reset_Section/Reset_walk_through|Reset walk through]]
−
        [[Manual:Zone_Manual/The_NPC_Section/A_more_complex_set_of_NPCs|A more complex set of NPCs]]
+
** [[Manual:Zone_Manual/The_Reset_Section/The_complete_dragon_station|The complete dragon station]]
−
              [[Manual:Zone_Manual/The_NPC_Section/A_more_complex_set_of_NPCs#Magic casting NPC|Magic casting NPC]]
+
* [[Manual:Zone_Manual/Color_and_Formatting_Codes|Color and Formatting Codes]]
−
              [[Manual:Zone_Manual/The_NPC_Section/A_more_complex_set_of_NPCs#A wandering janitor|A wandering janitor]]
+
** [[Manual:Zone_Manual/Color_and_Formatting_Codes/Formatting_codes|Formatting codes]]
−
              [[Manual:Zone_Manual/The_NPC_Section/A_more_complex_set_of_NPCs#Creating a teacher|Creating a teacher]]
+
** [[Manual:Zone_Manual/Color_and_Formatting_Codes/Formatting_code_descriptions_and_examples|Formatting code descriptions and examples]]
−
              [[Manual:Zone_Manual/The_NPC_Section/A_more_complex_set_of_NPCs#Guild master functions|Guild master functions]]
+
** [[Manual:Zone_Manual/Color_and_Formatting_Codes/Color_code_descriptions_and_examples|Color code descriptions and examples]]
−
              [[Manual:Zone_Manual/The_NPC_Section/A_more_complex_set_of_NPCs#NPC banker|NPC banker]]
+
* [[Manual:Zone_Manual/The_DIL_Section|The DIL Section]]
−
        [[Manual:Zone_Manual/The_NPC_Section/Dragon_station_with_rooms_and_NPCs|Dragon station with rooms and NPCs]]
+
* [[Manual:Zone_Manual/Appendices|Appendices]]
−
        [[Manual:Zone_Manual/The_NPC_Section/Suggested_NPC_exercises|Suggested NPC exercises]]
+
** [[Manual:Zone_Manual/Appendices/Reserved_keyword_listing|Reserved keyword listing]]
−
  [[Manual:Zone_Manual/The_Objects_Section|The Objects Section]]
+
** [[Manual:Zone_Manual/Appendices/Race_Definitions_in_values.h|Race Definitions in values.h]]
−
        [[Manual:Zone_Manual/The_Objects_Section#Description of object fields|Description of object fields]]
+
** [[Manual:Zone_Manual/Appendices/weapon_definitions_in_values.h|weapon definitions in values.h]]
−
        [[Manual:Zone_Manual/The_Objects_Section/Object_macros|Object macros]]
+
** [[Manual:Zone_Manual/Appendices/Liquid_macros_file|Liquid macros file]]
−
              [[Manual:Zone_Manual/The_Objects_Section/Object_macros#Weapon and armour craftsmanship|Weapon and armour craftsmanship]]
+
** [[Manual:Zone_Manual/Appendices/Complete_magical_transfers_macros_listing|Complete magical transfers macros listing]]
−
              [[Manual:Zone_Manual/The_Objects_Section/Object_macros#Magical modifier|Magical modifier]]
+
** [[Manual:Zone_Manual/Appendices/Skill_definitions_in_values.h|Skill definitions in values.h]]
−
              [[Manual:Zone_Manual/The_Objects_Section/Object_macros#Setting weapon fields|Setting weapon fields]]
+
** [[Manual:Zone_Manual/Appendices/Spell_definitions_in_values.h|Spell definitions in values.h]]
−
              [[Manual:Zone_Manual/The_Objects_Section/Object_macros#Setting armour fields|Setting armour fields]]
 
−
              [[Manual:Zone_Manual/The_Objects_Section/Object_macros#Setting shield fields|Setting shield fields]]
 
−
              [[Manual:Zone_Manual/The_Objects_Section/Object_macros#Setting material types|Setting material types]]
 
−
              [[Manual:Zone_Manual/The_Objects_Section/Object_macros#Light object macro|Light object macro]]
 
−
              [[Manual:Zone_Manual/The_Objects_Section/Object_macros#Money macro|Money macro]]
 
−
              [[Manual:Zone_Manual/The_Objects_Section/Object_macros#Magical transfer macros|Magical transfer macros]]
 
−
        [[Manual:Zone_Manual/The_Objects_Section/Building_your_first_object|Building your first object]]
 
−
        [[Manual:Zone_Manual/The_Objects_Section/Compiling_and_Debugging_your_first_object|Compiling and Debugging your first object]]
 
−
        [[Manual:Zone_Manual/The_Objects_Section/DIL_functions_for_objects|DIL functions for objects]]
 
−
              [[Manual:Zone_Manual/The_Objects_Section/DIL_functions_for_objects#Restriction functions|Restriction functions]]
 
−
              [[Manual:Zone_Manual/The_Objects_Section/DIL_functions_for_objects#Tuborg function|Tuborg function]]
 
−
              [[Manual:Zone_Manual/The_Objects_Section/DIL_functions_for_objects#Message board|Message board]]
 
−
        [[Manual:Zone_Manual/The_Objects_Section/More_complex_objects|More complex objects]]
 
−
              [[Manual:Zone_Manual/The_Objects_Section/More_complex_objects#Making a communication board|Making a communication board]]
 
−
              [[Manual:Zone_Manual/The_Objects_Section/More_complex_objects#Making a container|Making a container]]
 
−
              [[Manual:Zone_Manual/The_Objects_Section/More_complex_objects#Creating drinks|Creating drinks]]
 
−
              [[Manual:Zone_Manual/The_Objects_Section/More_complex_objects#Creating food|Creating food]]
 
−
              [[Manual:Zone_Manual/The_Objects_Section/More_complex_objects#Making a weapon|Making a weapon]]
 
−
              [[Manual:Zone_Manual/The_Objects_Section/More_complex_objects#Making armour|Making armour]]
 
−
              [[Manual:Zone_Manual/The_Objects_Section/More_complex_objects#Making non-armour worn object|Making non-armour worn object]]
 
−
        [[Manual:Zone_Manual/The_Objects_Section/Dragon_station_with_rooms_NPCs_and_objects|Dragon station with rooms, NPCs, and objects]]
 
−
        [[Manual:Zone_Manual/The_Objects_Section/Suggested_object_exercises|Suggested object exercises]]
 
−
  [[Manual:Zone_Manual/The_Reset_Section|The Reset Section]]
 
−
        [[Manual:Zone_Manual/The_Reset_Section#Door resets|Door resets]]
 
−
        [[Manual:Zone_Manual/The_Reset_Section/Loading_objects_and_NPCs|Loading objects and NPCs]]
 
−
        [[Manual:Zone_Manual/The_Reset_Section/Special_reset_functions|Special reset functions]]
 
−
              [[Manual:Zone_Manual/The_Reset_Section/Special_reset_functions#The complete directive.|The complete directive.]]
 
−
              [[Manual:Zone_Manual/The_Reset_Section/Special_reset_functions#The purge command|The purge command]]
 
−
              [[Manual:Zone_Manual/The_Reset_Section/Special_reset_functions#The random command|The random command]]
 
−
              [[Manual:Zone_Manual/The_Reset_Section/Special_reset_functions#The remove command|The remove command]]
 
−
        [[Manual:Zone_Manual/The_Reset_Section/Reset_walk_through|Reset walk through]]
 
−
        [[Manual:Zone_Manual/The_Reset_Section/The_complete_dragon_station|The complete dragon station]]
 
−
  [[Manual:Zone_Manual/Color_and_Formatting_Codes|Color and Formatting Codes]]
 
−
        [[Manual:Zone_Manual/Color_and_Formatting_Codes#The escape character|The escape character]]
 
−
        [[Manual:Zone_Manual/Color_and_Formatting_Codes/Formatting_codes|Formatting codes]]
 
−
        [[Manual:Zone_Manual/Color_and_Formatting_Codes/Formatting_code_descriptions_and_examples|Formatting code descriptions and examples]]
 
−
        [[Manual:Zone_Manual/Color_and_Formatting_Codes/Color_code_descriptions_and_examples|Color code descriptions and examples]]
 
−
  [[Manual:Zone_Manual/The_DIL_Section|The DIL Section]]
 
−
        [[Manual:Zone_Manual/The_DIL_Section#What is DIL?|What is DIL?]]
 
−
        [[Manual:Zone_Manual/The_DIL_Section#What can DIL be used for?|What can DIL be used for?]]
 
−
        [[Manual:Zone_Manual/The_DIL_Section#Where do I get more information on DIL?|Where do I get more information on DIL]]
 
−
  [[Manual:Zone_Manual/Appendices|Appendices]]
 
−
        [[Manual:Zone_Manual/Appendices#VMC command line options|VMC command line options]]
 
−
        [[Manual:Zone_Manual/Appendices/Reserved_keyword_listing|Reserved keyword listing]]
 
−
        [[Manual:Zone_Manual/Appendices/Race Definitions in values.h|Race Definitions in values.h]]
 
−
        [[Manual:Zone_Manual/Appendices/weapon definitions in values.h|weapon definitions in values.h]]
 
−
        [[Manual:Zone_Manual/Appendices/Liquid macros file|Liquid macros file]]
 
−
        [[Manual:Zone_Manual/Appendices/Complete magical transfers macros listing|Complete magical transfers macros listing]]
 
−
        [[Manual:Zone_Manual/Appendices/Skill definitions in values.h|Skill definitions in values.h]]
 
−
        [[Manual:Zone_Manual/Appendices/Spell definitions in values.h|Spell definitions in values.h]]
 
  
 
<div style='padding-top: 30px; padding-bottom: 20px; text-align: right;float:right;width:50%;'>[[Manual:Zone_Manual/Introduction|Next: Introduction]]</div>
 
<div style='padding-top: 30px; padding-bottom: 20px; text-align: right;float:right;width:50%;'>[[Manual:Zone_Manual/Introduction|Next: Introduction]]</div>
  
 
[[Category:Manual Title Pages]]
 
[[Category:Manual Title Pages]]

Latest revision as of 06:19, 15 November 2026

The Zone Manual explains how to build areas ("zones") for DikuMUD3: rooms, objects, NPCs and the resets that bring them into the game. A zone is a text file (.zon) that you write in any editor and compile with vmc, the zone compiler. The game server loads the compiled zone when it boots.

The scripts that make units act (DIL) have their own manual, the DIL Manual. The zones that come with DikuMUD3, in vme/zone/ (on GitHub), are working examples of everything in this manual.

Contents

Next: Introduction