Details

Last Updated
3 years ago
First Uploaded
3 years ago
Downloads
52K
Likes
2
Size
178KB
Dependency string
BossSloth-Statistics-1.0.0
Dependants

Statistics mod

A mod that adds statistics to the game like how many times you blocked or what was your highest damage dealt.

Adding extra stats

You can add your own stats to the stat menu by adding a void to the action extraStatsMenu in Stats like this:

public void Start() {
    Stats.extraStatsMenu += MyStats;
}


public void MyStats(GameObject menu) {
{
    var MyStatsMenu = Stats.CreateMenu("MyStats", menu);
    var myCustomStats = Stats.CreateStat("My custom stat", "MyStats", MyStatsMenu);
}

and then you can update the stat like this:

void MyUpdateMethod() {
    // add's 1 or the given amount to the stat
    Stats.AddValue("My custom stat");
    
    // or you could 
    
    // set's the stat to the given amount
    Stats.SetValue("My custom stat", 10);
}

note: stats only update when you're not in sandbox, build this project in DEBUG mode to allow update in sandbox for testing.

Patch notes

  • 1.0.0 (Initial release)
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.