
Tiny StatForge - Effortless Stat & Modifier Control
Key17 interactive
$9.85
(no ratings)
Jump AssetStore
Manage stats and stat modifiers for any kind of stat-driven game, without writing a single line of code. Configure item effects, buffs, etc. in the inspector and apply them with a simple method call.When running the package examples in a Unity 6 Built-in project, make sure ‘Active Input Handling’ is set to ‘Both’ under Project Settings > Player > Other Settings > Configuration to avoid errors related to the input system.Whether you're building an RPG, roguelike, survival sim, or resource management game, this system gives you full control over how stats are calculated, modified, and scaled. Easy and fast setup — start designing your stats and modifiers in just a few clicks.Configurable Stat and Modifier PanelsIncluded in the package are configurable UI prefabs that display current active stats and modifiers of a selected entity.Basic Combat Starter KitThe package comes with an example scene with basic combat mechanics - attacking and killing enemies for XP, that you can easily extend and modify to suite your needs for your own game.Advanced ExamplesMore advanced examples showhow to apply stat modifiers from hero items, buffs, debuffs, and similar sourceshow to observe and display global player stats using a stat observerhow to persist stat data through a practical save game exampleKey concepts:Stat DefinitionsConfigure each stat with a set of properties:stat typedefault valueoptional Min/Max limitsdisplay namedisplay format (number, percentage, time)decimal precision (0 for integers)Base StatsOptionally define a set of starting stats for an entity and their initial values.Stat TypesPools represent resources like health, mana, and stamina and are freely modifiable from outside; modifiers apply directly and are discarded.Attributes represent traits like strength, agility, intelligence; modifiers are stored and attributes are recalculated whenever modifiers change.Modifier TypesAddToBase: Modify the base value before scalingAdditiveMultiplier: Add percentage-based bonuses that stack linearlyAddFixed: Flat bonuses added after scalingGlobalMultiplier: A final global multiplier on the resultOverride: Force the stat to a specific value, ignoring all other modifierswhich cover the vast majority of stat mechanics found in modern stat-driven games.Stat CenterThe central place for managing and instantiating stats for an entity with a comprehensive set of methods for manipulating stats and modifiers.Dynamic Stat ManagementApply modifiers even before the target stats exist—stats are lazily instantiated with a configurable default and immediately updated.Event HandlingSubscribe to an exhaustive set of events triggered when stats or modifiers change.This package uses the 'Albert Sans' font under the SIL Open Font License (OFL). The license is included in the package.