Modding:Worlds

From Caves of Qud Wiki
Revision as of 02:51, 7 September 2019 by Egocarib (talk | contribs)
Jump to navigation Jump to search

Worlds.xml defines many of the important zones on the world map. The game currently only uses one "world", called JoppaWorld, but it is theoretically set up to support more worlds than that.

Structure

Worlds.xml has the following general structure:

XML Tag Description
<worlds>
  <world> auto merged with the game definition if the world with this Name was already defined (the only world currently is JoppaWorld, so you want to use that if you're trying to merge into Qud's world)
    <builder> Any builder class you specify gets added to the list of builders and executed as part of world creation. Must be a class in the XRL.World.WorldBuilders namespace. The only builder used by the base game is JoppaWorldBuilder. Begin a Class name with minus (-) to remove all builders with that class from existing world definition (this would probably be a bad idea though unless you're remaking the entire world by fully replacing JoppaWorldBuilder).
    <cell> Cell nodes are completely overwritten if they have a matching Name to one that already exists in the game files. Cell nodes can inherit from other cell nodes.
      <zone>
        <builder>
        <postbuilder>
        <encounter>
          <feature> loaded by the game but currently not implemented or used for any purpose.
        <map>