Modding:General Best Practices: Difference between revisions

Jump to navigation Jump to search
m
formatting, punctuation
imported>CaptainTechnicality54384
mNo edit summary
m (formatting, punctuation)
Line 1: Line 1:
[[Category:Modding]]
[[Category:Modding]]
= Prefix your object and table names with some unique ID =
= Prefix your object and table names with some unique ID =
For instance, alphabeardmods_{id}, this will prevent namespace conflicts with official content and other mods in the future.
For instance, <code>alphabeardmods_{id}</code>. This will prevent namespace conflicts with official content and other mods in the future.


<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
Line 12: Line 12:
</syntaxhighlight>
</syntaxhighlight>


= Only include your content and the minimum changeset via Load="Merge" in tables and object definitions =
= Only include your content and the minimum changeset via <code>Load="Merge"</code> in tables and object definitions =
Don't copy the whole contents of the game xml. You only need to include new content.
Don't copy the whole contents of the game xml. You only need to include new content.


For objects and encountertables, if you're editing an existing item you can use Load="Merge" in it's tag and only specify new items. For example, if I wanted my mod to give chain mail a 2DV:
For objects and encounter tables, if you're editing an existing item you can use <code>Load="Merge"</code> in it's tag and only specify new items. For example, if I wanted my mod to give chain mail a 2DV:


<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">

Navigation menu