Static space

Cezar Cocias
Preview of Static spacePreview of Static space

About this model

This diagram models a simplified combat system found in role-playing games (RPGs), focusing on player and enemy hit points (HP), healing, and progressing to the next level. At the core, it includes mechanisms for healing the player, dealing damage to the enemy, and transitioning between levels based on the outcome of combat interactions.

The system starts with fixed HP values for both the player and the enemy. The player can receive healing, modeled by a source node, which adds a fixed amount of HP to the player's total, thus allowing recovery during or after combat. Enemy HP decreases through a combat mechanism where the enemy encounters damage until depleted. Progression is handled through a level system where defeating an enemy by reducing their HP to 0 triggers the transition to the next level, incrementally increasing the current level count by one. This sequential process represents the player's journey through the game, facing enemies, sustaining and recovering from damage, and advancing upon victory. The health management and leveling system interact to simulate the fundamental RPG experience of combat, recovery, and progression.

“Static space” is a public Machinations diagram by Cezar Cocias, shared in the Machinations Community.

You can open the original diagram in the Machinations app, press Play to watch how resources move through it, and change its values to see how the system responds. Machinations is a visual tool for designing, simulating and balancing game economies and other systems, where resources flow through sources, pools, drains, converters and gates. In a diagram, a source creates resources, a pool stores them, a drain removes them, a converter changes one resource into another and a gate decides where they go next.