Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Modding:Editing Equipment.txt: Difference between revisions

From bg3.wiki
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Modding box}}{{Modding sidebar}}
{{Modding box}}{{Modding sidebar}}


To change the starting equipment for your game's classes, you can edit the Equipment.txt file. But how do you do that?
To change the starting equipment for your game's classes, you can edit the Equipment.txt file. This is useful for previewing items or creating icons, just to name a couple examples. But how do you edit Equipment.txt?


== Tools You'll Need ==
== Tools You'll Need ==
You should just need the '''[https://github.com/ShinyHobo/BG3-Modders-Multitool BG3 Modder's Multitool]''' for this, which you'll use to extract the existing Equipment.txt file from the game. You'll also need a text editor, [https://code.visualstudio.com/ VSCode] or [https://notepad-plus-plus.org/ Notepad++] are good options.
You should just need the '''[https://github.com/ShinyHobo/BG3-Modders-Multitool BG3 Modder's Multitool]''' for this, which you'll use to extract the existing Equipment.txt file from the game. You'll also need a text editor, [https://code.visualstudio.com/ '''VSCode'''] or [https://notepad-plus-plus.org/ '''Notepad++'''] are good options.


== Extracting and Placing Equipment.txt ==
== Extracting and Placing Equipment.txt ==
Line 13: Line 13:
Copy the Equipment.txt from the first Generated folder to this newly created one. This new Equipment.txt will overwrite the base game settings for equipment.
Copy the Equipment.txt from the first Generated folder to this newly created one. This new Equipment.txt will overwrite the base game settings for equipment.


== Editing Equipment.txt ==
== Editing Equipment.txt - Removing equipment ==
Before making any changes, we recommend making a copy of the Equipment.txt and naming it something like "Equipment - OG Copy.txt". This is so you can easily revert back to the default later if you so choose.
Before making any changes, we recommend making a copy of the Equipment.txt and naming it something like "Equipment - OG Copy.txt". This is so you can easily revert back to the default later if you so choose.


Line 94: Line 94:


The concept is the same for any class. Keep in mind that some classes have subclasses that each have their own unique equipment set, such as Sorcerer and Paladin. You will need to locate the specific subclass you want to change.
The concept is the same for any class. Keep in mind that some classes have subclasses that each have their own unique equipment set, such as Sorcerer and Paladin. You will need to locate the specific subclass you want to change.
{{Modding navbox}}
 
==Editing Equipment.txt - Adding/changing equipment==
But what if you want to change the equipment or add new equipment instead of removing it? Well, here's where you'll have to trawl through the game files to find the right UIDs... or you can just check the Wiki to see if they have it. For example, let's say we want to put [[Armour of Landfall]] on our Barbarian, and give them a [[Greatsword +1]]. We visit those wiki pages and find that the UID for the outfit is <code>MAG_Druid_Land_Magic_Leather_Armor</code> and the UID for the weapon is <code>WPN_Greatsword_1</code>.
 
Now we just add these entries to our Barbarian:<syntaxhighlight lang="xml">
new equipment "_PC_Equipment"
 
new equipment "EQP_Unarmed"
add initialweaponset "Melee"
 
new equipment "EQP_CC_Barbarian"
add initialweaponset "Melee"
add equipmentgroup
add equipment entry "WPN_Greatsword_1"
add equipmentgroup
add equipment entry "MAG_Druid_Land_Magic_Leather_Armor"
 
<!-- file continues -->
</syntaxhighlight>
Now our Barbarian spawns in wearing the Armour of Landfall and with a Greatsword +1 on their back. Wearable items are automatically equipped. Items that aren't wearable (such as potions) will appear in your character's inventory once you start the game.
 
Warning: adding multiple armors or multiple weapons at once can cause some odd things to happen.{{Modding navbox}}
[[Category:Modding guides]]