Back to All Systems
🪙

Resource System

Manages in-game resources like Biomass, Plasma, and Crystals. Leverages ERC20 tokens, and supports deploying new tokens, minting, burning, and balance checks.

System Functions

deployToken
Launch a new ERC20 token for a resource. This is a one-time action.
mint
Mint a new resource token for a player.
burn
Burn a resource token from a player.

Implementation Example

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

// Initialize the system
const resourcesSystem = new Resources();

// Configure using helper functions
deployToken();

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