Shiny Stats
Attributes, Stats, Level and Experience System for Unity
Currently v1.3.1 New !
Attributes, Stats, Level and Experience System for Unity
Currently v1.3.1 New !
Shiny Stats brings Attributes, Stats, Classes, Level & Experience and more into your game!
Easy to use and flexible, Shiny Stats helps you to create a lot of games from Tower Defense to complex RPG stats mechanisms without coding from scratch all the mechanism it involves.
Shiny Stats is 100% configurable using its own user-friendly editor window and can integrate seamlessly with your existing project using a very simple C# API.
// Get the ShinyStatsEntity reference of the entity.
var sse = GetComponent<ShinyStatsEntity>();
// Get Strength attribute.
var str = sse.EvaluateAttribute("Strength");
// Get the ShinyStatsEntity reference of the entity.
var sse = GetComponent<ShinyStatsEntity>();
// Evaluate the Attack power stat (at current level).
var atk = sse.EvaluateStat("Attack power");
// Evaluate the Attack power stat (at a specific level).
var atkLvl12 = sse.EvaluateStat("Attack power", 12);
// Get the ShinyStatsEntity reference.
var sse = GetComponent<ShinyStatsEntity>();
// Add experience points. Level-up is automatically handled.
var newExpPts = sse.AddExp(1200);
var expression = "45 * log(5, 10)";
// Evaluate the expression.
var val = ShinyStats.Evaluate(expression);