LootLocker
The BasicsGame SystemsContent ManagementPlayer Management
LootLocker
  • 📌The Basics
    • Getting Started
    • What is LootLocker?
    • Core Concepts
      • Players
      • Assets
      • Character Classes
      • API Types
      • Web Console
      • Stage & Live Environments
      • Glossary
    • Unity Quick Start
      • Install the SDK
      • Configure the SDK
      • Authenticate Your First Player
      • Update the SDK
    • Unreal Quick Start
      • Install & Configure the SDK
        • Older versions
      • Authenticate Your First Player
    • Godot Quick Start
      • Install the SDK
      • Configure the SDK
      • Authenticate Your First Player
      • Update the SDK
    • SDKs
    • Samples
      • Authentication Samples
      • Leaderboard Samples
      • Progression Samples
      • Player Samples
    • Launching Your Game
    • Support
      • Error Codes
      • Unreal Marketplace Plugin Support
  • 🎭Players
    • Overview
    • Authentication
      • How To
        • Guest Login
        • Steam
        • Apple
        • Apple Game Center
        • Google
        • Epic Games
        • PlayStation
        • Meta / Oculus
        • Xbox
        • Nintendo Switch
    • Files
      • How To
        • Manage Files in Web Console
        • Work with Files In-Game
    • Inventory
      • How To
        • Work with Player Inventory
    • Messages
      • How To
        • Configure Messages in Web Console
    • Names
      • How To
        • Work with Player Names
    • Player Manager
      • How To
        • Manage Players through Web Console
        • Manage Players In-Game
        • Use Player Operations
    • Unified Player Accounts
      • How To
        • Configure UPA in Web Console
        • Use Remote Login In-Game
        • Connect Identiy Provider to Player
        • External Provider Linking
        • Transition from Guest Login to Other Provider
        • Disconnect Identity Provider from Player
    • White Label Login
      • How To
        • Configure White Label Login
        • Create a New White Label User
        • Request User Verification
        • Handle Returning Users
        • Start a White Label Session
  • 🪙Commerce
    • Overview
    • Catalogs
      • How To
        • Configure Catalogs in LootLocker Console
        • List all Catalogs
        • Use Catalogs In-Game
        • Setup In-Game Store
    • Currencies
      • How To
        • Configure a Currency in Web Console
        • Use Currencies In-Game
    • DLC Management
      • How To
        • Configure DLC in Web Console
        • Use DLC In-Game
    • Entitlements
      • How To
        • Work with Entitlements In-Game
    • Real Money Purchases
      • How To
        • Configure In-App Purchase in Web Console
        • Make Purchases through Google Play Store
        • Make Purchases through Apple Store
        • Make Purchases through Steam Store
    • Virtual Purchases
    • Wallets
      • How To
        • Manage a Wallet in Web Console
        • Use Wallets In-Game
  • ⚔️Content
    • Overview
    • Assets
      • How To
        • Create & Configure an Asset
        • Organize & Search for Assets
        • Retrieve Assets In-Game
        • Set up Asset Storage Template
        • Check Grant Notifications
        • Set up a Game Config Asset
        • Create a Loot Box
        • Work with Loot Boxes In-Game
        • Create a Drop Table
        • Work with Drop Tables In-Game
        • Create a Rental Asset
        • Work with Rental Assets In-Game
    • User Generated Content (UGC)
      • How To
        • Create UGC In-Game
    • Twitch Drops
  • 🕹️Game Systems
    • Overview
    • Classes & Heroes
      • How To
        • Base Classes
        • Hero Classes
        • Implement Classes In-Game
        • Implement Heroes In-Game
    • Leaderboards
      • How To
        • Configure Leaderboard in Web Console
        • Use Player Leaderboards
        • Use Generic Leaderboards
        • Use Metadata to Store Additional Information
        • Use Scheduled Reset with Rewards
        • Use Leaderboards for Time Based Rankings
      • Leaderboard FAQ
      • GameMaker References
    • Feedback
      • How To
        • Manage Feedback Categories
        • Create Player Feedback
        • Create UGC Feedback
        • Create Game Feedback
        • View and Manage Feedback
    • Progressions
      • How To
        • Create a Progression
        • Game Progressions
        • Player Progressions
        • Class Progressions
        • Asset Instance Progressions
    • Triggers
      • How To
        • Setup a trigger in the Web Console
        • Invoke trigger from game
  • ⛓️Shared Systems
    • Overview
    • Metadata
      • How To
        • Add Metadata in Console
        • Fetch a Single Metadata In-Game
        • Fetch Metadata In-Game by Tags
        • Fetch Metadata In-Game from Multiple Sources
    • Notifications
      • How To
        • List Notifications and Mark as Read In-Game
  • 🗝️Admin
    • Settings
    • User Settings
    • Organization Settings
    • CORS Allowlist
  • ⭕️ Legacy
    • Deprecations
      • Unity SDK Deprecation Log
        • Version 2.1.5 - Migration to Open UPM
        • Version 2.0.0
      • Unreal SDK Deprecation Log
        • Version 4.0.0
        • Version 3.0.0
    • Legacy Storage
    • Legacy Triggers
      • Activate a trigger
      • Create a trigger
    • Legacy Progressions
      • Create a Progression System
      • Use a Progression System In-Game
Powered by GitBook
On this page
  • What is a Loot Box?
  • Configure Contexts
  • Create the Loot Box Asset
  • Activate the Asset
  1. Content
  2. Assets
  3. How To

Create a Loot Box

PreviousSet up a Game Config AssetNextWork with Loot Boxes In-Game

Last updated 1 month ago

In this guide we will be creating a Loot Box Asset and implementing it in a game. You can find other guides that explain how to create other types of Assets in the section in the How-to guides of the LootLocker documentation.

What is a Loot Box?

A Loot Box is an Asset that has been assigned the Loot Box Complexity. The Loot Box Complexity adds the ability to have LootLocker randomly select an Asset from predefined groups of Assets. The Loot Box Complexity uses rarity groups to randomly select which Asset a player will receive when an Asset with this Complexity is opened. Each rarity group can be populated with Assets and then assigned a weight to define its Rarity. The Assets within a rarity group are selected at random (no weighting) once a rarity group has been selected.

Configure Contexts

Before you create the Asset, you will want to configure a Loot Box Asset Context, so that LootLocker know what and how you plan on using the Asset in your game.

An Asset Context is a way to group and describe Assets. All Assets must be assigned an Asset Context when being created. Defining the Context of an Asset lets your game know what type of Asset it is, and lets LootLocker know what sort of information or logic will be stored in the Asset and any special relationships it should have, for example with and .

The Context Configuration menu can be found in the Context menu by clicking the Content icon on the left bar of the Management Interface. or under Asset overview when creating a new asset.

Click on the Context Configuration tab at the top of the Game Settings menu. You should be taken to a menu that looks like this.

You will notice that there is already one context configured, Feature Unlocks. This is by design as this type of Context needs to exist by default in case it is used to unlock other Contexts.

To create a new Context, click the Create Context button. As we want to create a Loot Box Asset, select Loot Box from the Complexity dropdown menu.

  • Name: Loot Box

  • Detachable?: No

  • User Facing?: Yes

  • Depends On: Independent (No Asset)

Click Save All to save this Context. It should now look like this:

You've now set up the Loot Box Context and are ready to create a Loot Box Asset!

Create the Loot Box Asset

Now lets navigate to the Asset Manager to create the Loot Box Asset. The Asset Manager can be accessed by clicking the Content button of the side bar and selecting Assets.

To create an Asset, click the Add Asset button in the top right corner of the Asset Manager. Fill in an Asset Name and select the Loot Box Context from the drop down menu. Click Create to create the Asset.

Once the Asset has been created, you will be taken to the Asset's page where you can see all of it's stored information and data. The most important fields when setting up a Loot Box are in the Loot Box Contents tab at the top of the Asset's page. This is where we will define the content of the Loot Box by creating rarity groups, and then assign those groups a rarity weight.

To start, we will navigate to the Loot Box Contents tab and click the Add Group button to create our first rarity group.

In the Contents page, click Add Group then click Add Asset to add an Asset to the group. This will display a model where you can search through all of your Assets to select the intended Asset for this group. Groups can have as many or as few Assets as you want - it's up to you and how you want the Loot Box to work. For our Loot Box, we are going to create two groups, with two Assets in each group. Here's how it looks set up:

Now we will set the rarity weight of each group. To do this, enter a number (any number above 1) into the Weight field of each group. As you enter a number you will see the rarity ratio and percentage change. This demonstrates how likely it is that this group will be selected when the Loot Box is opened by the player.

The Assets within a rarity group are selected at random (no weighting) once a rarity group has been selected.

For our Loot Box, we will set the weight of the first group to 9 and the second group to 1 so that the chance of receiving an Asset from the first group is 90% and the chance of receiving an Asset from the second group is 10%.

Activate the Asset

The final step is to activate the Asset so that it is sent to the game and players can access the Asset. To do this, click the Activate button on the right side of the Asset menu. Clicking Activate will automatically Activate and save any changes you have made to the Asset.

Next we will want to fill in the rest of the information about the Context. Click on Advanced Features. A detailed explanation about each of the Context options can be found .

⚔️
Working with Assets
here
Character Classes
Default Loadouts