Persistent Player Statistics in Unreal Editor for Fortnite
Many experiences use player stats to track player experience data over time. Statistics like high score, total games won, total play time and collected items give players a sense of progression and are all great ways to encourage players to return to your experience.
Verse Persistence is a powerful tool that allows you to add persistable data to your Verse scripts. Persistable data is saved on a per-player, per-island basis, and stays the same between gameplay sessions. Persistable data will allow you to track player progress between play sessions and will open up a variety of unique and interesting play experiences previously unavailable in UEFN.
This tutorial will show you how to create a custom table of player stats using Verse and set them up to be persistent across multiple plays of your experience. After finishing this tutorial, check out Make Your Own In-Game Leaderboard in Verse to learn how to use persistence to build in-game leaderboards!
Verse Language Features Used
- Class: This example creates a Verse class that manages a single stat as well as a persistable class that tracks a group of stats for a single player.
- Constructor: A constructor is a special function that creates an instance of the class it is associated with.
- Weak_map: A weak_map is a simple map that cannot be iterated over. Verse persistable data is required to be stored in a weak_map.
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.