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.
Features
Attributes to characterize your characters
Classes, sets of attributes, for high reusability
A Level system
Stats to be calculated against the level or not
Define your stats values manually by level or using a math formula
A complete Experience system to use with levels
A Modifier system to reproduce buffs, de-buffs, wearable effects
Add ShinyStats script to the ShinyStats GameObject
Open Shiny Stats Window
Create an Attack Power Stat
Setup Attack Power stat
Create a GameObject Player
Add ShinyStatsEntity script to the Player GameObject
It's over!
Review Attack power value in the ShinyStatsEntity inspector with current entity level:
Review Attack power chart in ShinyStats window:
See more in the Manual section.
Code Example
Get Strength attribute value
// Get the ShinyStatsEntity reference of the entity.varsse=GetComponent<ShinyStatsEntity>();// Get Strength attribute.varstr=sse.EvaluateAttribute("Strength");
Evaluate the Attack power stat value
// Get the ShinyStatsEntity reference of the entity.varsse=GetComponent<ShinyStatsEntity>();// Evaluate the Attack power stat (at current level).varatk=sse.EvaluateStat("Attack power");// Evaluate the Attack power stat (at a specific level).varatkLvl12=sse.EvaluateStat("Attack power",12);
Add experience points
// Get the ShinyStatsEntity reference.varsse=GetComponent<ShinyStatsEntity>();// Add experience points. Level-up is automatically handled.varnewExpPts=sse.AddExp(1200);
Use the math expression engine
varexpression="45 * log(5, 10)";// Evaluate the expression.varval=ShinyStats.Evaluate(expression);