Asset Instance Progressions

Asset instance progressions are progressions that track the progressions of Assets.

Starting an Asset instance on a progression is as easy as just starting to add points to it. That progression will then be listed when retrieving progressions for that Asset.

Retrieving Asset instance progressions

Retrieving a single Asset instance progression using the progression key

int assetInstanceId = 1;
string progressionKey = "mage";

LootLockerSDKManager.GetAssetInstanceProgression(assetInstanceId, progressionKey, response =>
{
    if (!response.success) {
        Debug.Log("Failed: " + response.Error);
    }
    
    // Output the asset instance level and show how much points are needed to progress to the next tier
    Debug.Log($"The asset instance is currently level {response.step}");
    if (response.next_threshold != null)
    {
        Debug.Log($"Points needed to reach next level: {response.next_threshold - response.points}");
    }
});

Retrieving all Asset instance progressions

Retrieving Asset instance progressions using count

Count can be used to limit the number of entries returned.

Paginating through Asset instance progressions

You can use "after" parameter to paginate if the Asset instance is on many progressions.

Interacting with Asset instance progressions

Adding points to an Asset instance progression

Subtracting points from an asset instance progression

Resetting an asset instance progression

Resets the asset instance progression points to 0, effectively returning the asset instance to level 1, if you want to remove the progression from a asset instance see below.

Deleting an asset instance progression

Completely removes an asset instance progression, it will no longer be listed when retrieving asset instance progressions.

Last updated