CMCharacter Modules 0.1.0

Stamina

Kind: Modifier · Add Component: Character Modules > Gameplay > Stamina

Spends a bar on sprinting and dodging that refills at rest. Every burst becomes a decision.

A bar that sprinting and dodging spend, and that refills when resting. Bursts become decisions: run now, or keep enough to roll away.

Inspector
▼Stamina⋮
CharacterCharacter (Character Motor)
Max Stamina120
Refill Rate45
Refill Delay0.7
Lowest-60
The Stamina component in the Inspector, with its defaults.
Origin. Dark Souls (2011).

How it works

Changes no state: it only reports or reacts.

Stamina: one bar that every costly move draws on (Sprint, a dodge, a jump), as in melee action role-playing games. Moves spend it; it refills at refillRate once nothing has spent any for refillDelay. A move may start with any stamina left above zero, and a move's full cost can take the bar below zero, down to lowest: the bar must then refill past zero before anything costly starts again. Without this module nothing costs stamina.

Combine it

  • Used by the presets: Action RPG.

Properties

PropertyDescriptionRangeDefault
CharacterThe character this module belongs to. Drag its Character Motor here.None
Max StaminaStamina when full, in stamina points.1 or more120
Refill RateStamina points refilled per second.0 or more45
Refill DelaySeconds after the last spending before stamina refills.0 or more0.7
LowestLowest the bar can go when a move costs more than is left, in stamina points (0 or below).-200 to 0-60

Additional resources