Back to All Systems
📊

Stats System

Define character attributes like Strength, Intelligence, and Dexterity to determine character capabilities. Supports multiple named stat sets (e.g. stats, skills).

System Functions

createStatSet
Create a new stat set with a unique name and hardcoded starting values.
createGatchaStatSet
Create a new stat set with a unique name and randomized starting values.
setStatSetRarityOdds
Set the odds of how many stat points a statSet will have when using the gatcha system.
checkSkill
Perform a Skill Check for the player on a Stat within a StatSet.
boostSkill
Increase a player's skill in a stat set. This is a permanent change.

Implementation Example

// Example code for Stats System
import { Stats } from 'rpg-maker-studio';

// Initialize the system
const statsSystem = new Stats();

// Configure using helper functions
createStatSet();

// Add to your game
game.addSystem(statsSystem);