Modding:Worlds: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
m (add navbox)
imported>Teamtotobot
m (Teamtotobot moved page Modding: Worlds to Modding/Worlds: Bot: Moved page)
(No difference)

Revision as of 14:34, 22 September 2019

This page is about modding. See the modding overview for an abstract on modding.
This page is about modding. See the modding overview for an abstract on modding.

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>