How to add new stashes
Tutorial "How to add new stashes"
Files & folders needed:
assets/gameplay/loot_containers.json
assets/scripts/p_game.gd
Here is JSON structure of regular container:
"loot_battery":{
"name": "shelf",
"caption": "box",
"items_casual":[
"medkit",
"medkit"
],
"items": [
"af_battery",
"medkit_army"
]
}loot_battery = container ID, must be unique
name = Any text or language key from lang_*.json
caption = cut-off feature, just leave blank
items_casual = (optional) list of items IDs that will be spawned in easy mode
items = array of items IDsCreate new container copy with ID "my_loot_container" and add there few medkits and antirads.
How to test it? Well... We can do some trick. If you look into source code project, it has level_editor folder there.

Inside it, there will be prefabs that can be used in Godot Engine level editor but we can trick it with external scripts that inside game build path assets/scripts/.

Remember the path to the prefab: (in game root directory -> res://) /level_editor/usable_triggers/items_loot_trigger.tscn
Open assets/scripts/p_game.gd script and at the start of the game (level intro) add this code:
Run the new game and look at the middle between corpses:


Last updated