Story Framework 6 is now live! Find more info here.
Story Framework Documentation

Storage Containers

SF Includes simple and effective Storage Containers that can be used to scatter loot around your levels, or alternatively allow the player to use a specific storage container actor as their "persistent" storage.


The Storage Container actor can be placed into the scene. It can be found in the StoryFramework > Core > Gameplay > Interaction directory.

Once placed in the scene, it will appear as an "empty" interactable. From here, you can add your own mesh / components to the storage container by clicking on the button in the details panel with your storage container selected (near the component hierarchy).


Managing how this storage container will behave is done so through the details panel under the "Loot" section.

Use Persistent Storage Determines whether loot displayed in the container is sourced from the "Loot Profile" defined, or if this storage container is "persistent storage" – meaning the contents shown within the storage container is items the player has put into it from any other storage container marked as "persistent storage". Loot Profile Loot Profiles determine what set of random items can appear in your storage container IF your storage container is not marked as "persistent storage". Inventory Size The number of slots that appear within this storage container. Applies to both storage containers that use Loot Profiles as well as "persistent storage".


Loot Profiles are data assets containing information about randomly generated items. In the context of storage containers, its used to determine what items should be inside of your storage container. Below will explain how Loot Profiles are setup. Upon creating a new Loot Profile data asset, you'll be greeted with the Loot Groups array. This is a simple list for internally identifying different groups of loot for loot generation to sample from (I.e. names set here aren't used elsewhere).

Within each Loot Groups entry, you'll be prompted to define the randomization rules for the bottom Entries array (the array containing the data for each of your items). Roll Chance (scale between "0,0" - "1,0") determines what chance this specific Loot Groups entry has to be picked during random generation. Random Iteration Range Min/Max determines how many times to loop through this same Loot Groups entry, picking a random item from the Entries array. Allow Duplicates simply determines whether the same item in the Entries array can be picked multiple times.

Let's touch on an item entry in the Entries array. Upon adding a new entry, you'll find two values to define. Loot Data is the interaction data for your item. You have 2 options to pick from here; InteractData_S (The full interaction data of an item), or SimpleInventoryItem_S (a simplified version of the base InteractionData_S structure that only contains inventory relevant data). Weight determines the probability of this item being picked during random generation.


Export to PDF