200
editsAd placeholder
Modding:Coding An Item: Difference between revisions
Jump to navigation
Jump to search
no edit summary
No edit summary |
No edit summary |
||
Line 419: | Line 419: | ||
CanMerge 1 | CanMerge 1 | ||
new subtable "1,1" | new subtable "1,1" | ||
object category "I_MY_COOL_NEW_CIRCLET",1,0,0,0,0,0,0,0 | object category "I_MY_COOL_NEW_CIRCLET",1,0,0,0,0,0,0,0 | ||
This will make it spawn in the tutorial chest. | This will make it spawn in the tutorial chest. Other treasuretable codes to put it different places can be found [https://www.nexusmods.com/baldursgate3/mods/2534 here- Modder's Resource - Treasure Table Spreadsheet]. | ||
Make sure you don't forget the ''I_'' prefix for the item! | |||
The numbers affect the drop rate chance among other things. The numbers above will cause the item to always spawn in the chest. For more info see Larian's wili page on [https://docs.larian.game/Treasure_Tables TreasureTables], it is for a different game but shares the same idea. | |||
If you plan to put a lot of items in your mod, it is recommended to create a bag item containing them and put that in the Tutorial Chest, to avoid clutter. | |||
If something goes wrong, it is recommended to overwrite a custom mesh from someone else's mod, or add it to the back of an existing mod. When you know the fault is not with your mesh, you check your materials, and so you can fix things one step at a time. | If something goes wrong, it is recommended to overwrite a custom mesh from someone else's mod, or add it to the back of an existing mod. When you know the fault is not with your mesh, you check your materials, and so you can fix things one step at a time. |