====== Add New Treasure Chest (ER) ====== Authors: Evanlyn ===== Prerequisites ===== * DS Map Studio, and basic usage knowledge * DarkScript 3, and basic usage knowledge * Yabber (w/ unpacked Elden Ring folder) * Patience. ===== Notes ===== Be sure to take notes of all the relevant names and IDs as you go. Make lots of backups. Be careful not to use any duplicate flags or Entity IDs; regions with duplicate EntityIDs in particular have a chance to //permanently corrupt loaded mapbnds//, so exercise caution. Be careful when making Flag IDs; if the fifth digit is 1-9, it will cause the flag to reset on grace/area reload (Eg: XXXX0XXX). Refer to other Entity or Flag IDs to see how FromSoft formatted them; sometimes it might matter, or not. If you're curious about most entities having MapID: -1, UnkE0C: 255, and UnkS0C: -1, don't ask me. I have no idea, but changing it can break things. So just keep them that way. ===== How To Make Treasure Chests ===== **1.** Create a new treasure chest asset (a common one is AEG099_630). Give it the following values: * Name: Unique Name * Unk08: 9000 * EntityID: Unique EntityID **2.** Create a new ObjAct. Give it the following values: * EventID: Unique, One-To-Three Digit Value * EntityID: 0 * MapID: -1 * UnkE0C: 255 * UnkS0C: -1 * Name: Unique Name * ObjActEntityID: 0 * ObjActPartName: Chest Asset Name * StateType: 5 * EventFlagID: Unique Eight-Digit Value (Fifth digit not 1) **3.** Create a new Treasure event. Give it the following values: * EventID: Unique, One-To-Three Digit Value * EntityID: 0 * MapID: -1 * UnkE0C: 255 * UnkS0C: -1 * Name: Unique Name * TreasurePartName: Chest Asset Name * ItemLotID: New ItemLotParam_map entry * InChest: 1 **4.** In a Param Editor, open ItemLotParam_map. Find an entry for the map you're working in, or a similar suitable entry. Duplicate it, and change the value to the same number used in the above ItemLotID. **5.** In the new ItemLotParam entry, set lotItemID01 to the item you want in the chest. Note: Check EquipParams for every item's ID **6.** Set lotItemCategory01 to match the lotItem (Which EquipParam menu it's from) **7.** Set getItemFlagId to a unique value (Fifth digit not 1) **8.** Congrats.