A Battle Room: a classic battle staged in 3D.

Battle

Action and First Person Battles on the Live Map

reactor_fight_action.js · 4,308 lines · 139 public functions

A Battle Room: a classic battle staged in 3D.

What This Module Does

The real-time driver for the modes "action" and "firstPerson" (docs/BATTLE- MODES.md): no turns and no phases. The player moves as on the map and attacks with the equipped weapon (a gun fires where the crosshair points, a blade chains a short combo); every other unit runs a small state machine (notice, approach or keep its distance, wind up, attack, recover). Units, sides, goals, hooks and outcomes are the fight's own (reactor_fight.js), and every hit is the stock battle math through Game_Action.

Classes & Namespaces

Design Notes from the Source Code

The real-time driver for the modes "action" and "firstPerson" (docs/BATTLE- MODES.md): no turns and no phases. The player moves as on the map and attacks with the equipped weapon (a gun fires where the crosshair points, a blade chains a short combo); every other unit runs a small state machine (notice, approach or keep its distance, wind up, attack, recover). Units, sides, goals, hooks and outcomes are the fight's own (reactor_fight.js), and every hit is the stock battle math through Game_Action.

One driver serves both modes: the rules are the same, the camera and how aiming is shown differ. Each wrapper here falls through unless $gameFight.isAction(), so Tactical and Classic battles read as before.

View reactor_fight_action.js on GitHub · Show internal (_) functions