blaxxun-boop / Backpacks

3 stars 4 forks source link

How to exclude a .yml defined backpack from being "dropped" on death #45

Closed b-morgan closed 4 months ago

b-morgan commented 4 months ago

I have created a second backpack using Backpacks.yml and am carrying it in my regular inventory. I have HelheimHarmonizer mod installed and configured so I don't drop Food when I die. I'd like to add the second backpack to the list of items not to drop.

Can this be done and if so, how?

b-morgan commented 4 months ago

If the first line of Backpacks.yml is "Private Backpack": # Give your backpack an amazing name! Quote the name, if you want to use special characters. "Blaxxun's Pack": then the prefab name is PrivateBackpack and the HelheimHarmonizer.yml entry looks like:

# Configure inventory rules here.
inventory:
  exclude: # List groups or individual items to exclude from dropping in the main inventory.
    - Swords # Exclude all items in the "Swords" group.
    - Tier2Items # Exclude all items in the "Tier2Items" group.
    - Bows # Exclude all items in the "Bows" group.
    - Food # Exclude all items in the "Food" group.
    - PrivateBackpack # My second Backpack