Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

PopulationTables currently do not have limited support for modding, but many zone template encounters draw objects from dynamically created population tables. Check out the following tags in ObjectBlueprints.xml to see them in use: DynamicObjectsTable, ExcludeFromDynamicEncounters. Some dynamic population tables are created based on the base type of the object, so new objects will begin appearing immediately in areas generated with dynamic population tables unless they are tagged with ExcludeFromDynamicEncounters.

...

You may add new entries to encountertables existing encounter tables by including encountertablesEncounterTables.xml in your mod, using an existing table name and setting the Load="Merge" property on the encountertable tag.

Code Block
languagexml
titleAdding "My New Ammo" to the "Ammo 1" built-in encounter table
<?xml version="1.0" encoding="utf-8"?>
<encountertables>
  <encountertable Name="Ammo 1" Load="Merge">
    <objects>
      <object Chance="100" Number="3d6" Blueprint="My New Ammo"></object>
    </objects>
  </encountertable>
</encountertables>

...

Adding and Replacing Population Tables

You may add new population tables and replace existing ones by including PopulationTables.xml in your mod.

Code Block
languagexml
titleAdding "MyMods_SmallGunAssortment" population table
<?xml version="1.0" encoding="utf-8"?>
<populations>
  <population Name="MyMods_SmallGunAssortment">
    <group Style="pickeach">
      <object Blueprint="Borderlands Revolver" Number="1-3"></object>
      <object Blueprint="Semi-Automatic Pistol" Number="0-2"></object>
      <object Blueprint="Chain Pistol" Number="0-1"></object>
    </group>
  </population>
</populations>


Additional Info

Here's a thread on Steam where I discuss using encounter and population tables: http://steamcommunity.com/app/333640/discussions/3/358415738194955181/