🧩 Zion Stats
Health, Stamina, Mana & XP Module for ZionTPS
Zion Stats — Stats & Presets
Zion Stats starts with Health and Stamina, then enables Mana and XP only when the selected preset requires them. This keeps the basic setup lightweight while allowing RPG-style projects to start with a broader stat layout.
Health
- Tracks the player's current and maximum health.
- Use damage and healing helpers to change the value.
- Health events can update HUDs, VFX, audio, death logic or other gameplay systems.
Stamina
- Sprinting drains Stamina.
- Jumping and rolling can consume configured stamina costs.
- Stamina regenerates when the player is not sprinting and the regeneration delay has elapsed.
- Exhaustion can prevent sprinting until enough stamina has recovered.
Mana
Mana is enabled by the Health + Stamina + Mana and RPG Starter presets. Use it for spells, abilities, scanner energy, tools or other consumable player resources.
TrySpendManachecks and spends Mana for an action.RestoreManarestores Mana up to its configured maximum.
XP
XP is enabled by the Health + Stamina + XP and RPG Starter presets. Use it as a foundation for progression, quest rewards, unlocks or your own level-up logic.
GainXPadds XP.SetXPsets XP directly.
Configuration
StatsConfig is a ScriptableObject asset. Adjust maximum values, regeneration,
sprint drain, action costs and exhaustion rules without modifying runtime code.