Unlockables #
The Unlockables system manages items players can unlock, purchase, and claim based on game progression. Learn more in the Unlockables concept guide.
Overview #
The Unlockables system enables your game to:
- Create random unlockables.
- Track unlockable items in progress.
- Start timers and handle purchases to unlock items.
- Claim unlockable items after completion.
Before You Start #
Make sure you have:
- Python project configured with Hiro SDK.
- Nakama system integrated (guide).
Working with Unlockables #
Creating a Random Unlockable #
Create and assign a random unlockable item:
|
|
Retrieving In-progress Unlockables #
List unlockable items currently in progress:
|
|
Starting an Unlock #
Begin the unlock timer for a specified unlockable:
|
|
Purchasing an Unlockable #
Use soft currency to purchase an unlockable based on remaining time:
|
|
Purchasing a New Unlockable Slot #
Buy an additional slot for unlockable items:
|
|
Claiming an Unlockable #
Claim an unlockable item after completion:
|
|