oasis-b

Docs / Battle system

LW_BattleFlow

Battle system
RPG Maker MV and MZ battle core and action sequence plugin

The battle core: actions as step lists in five parts, speed, animations, positions, damage numbers, windows, target picking and the battle log.

Battle Essentials ($9.99)Full Collection ($19.99)

Needs LW_Core (LWZ_Core in MZ) above all Living World plugins in the Plugin Manager. It's included in every pack.

The battle core: every action as a list of steps you can write.

Highlights

Ideas for your game

Works well with

LW_ActionScriptLW_TurnOrderLW_Counters

Introduction

Requires LW_Core. Put it above all other LW battle plugins.

Every skill and item runs as a list of steps in five parts:

start           before anything happens (name, step in, charge)
all targets     once for the whole group, for area attacks
each target     once for every target
follow          after the targets
finish          step back, common event

Without notes an action looks like in plain MV. With notes you can write any part new. LW_ActionScript adds steps for moving, jumping, the camera, poses and more.

Steps (Skill and Item Notes)

<LW Start Steps> ... </LW Start Steps>
<LW All Targets Steps> ... </LW All Targets Steps>
<LW Each Target Steps> ... </LW Each Target Steps>
<LW Follow Steps> ... </LW Follow Steps>
<LW Finish Steps> ... </LW Finish Steps>
<LW Steps From: Skill 12>      uses the steps of skill 12 (or Item 5)

One step per line:

animation: targets, mirror     the animation of the skill
apply: targets                 damage and effects of the skill
charge animation               the charge animation on the user
common event                   the common event of the skill now
common event 5                 common event 5
show name                      icon and name in the log
clear log
keep alive: targets, on        nobody dies before "keep alive: ..., off"
step in      act      step back      poses of the user
wait for pose: user
stop if dead                   ends the steps if the user died
stop                           jumps to the finish steps
wait 20                        frames
wait for animation / effect / movement / log / numbers
refresh status
code: user.gainHp(10)          JavaScript
if v[3] > 2   else if ...   else   end

Who a step works on:

user, target, targets, actors, all actors, dead actors,
actors not user, actor 2, character 5, enemies, all enemies,
dead enemies, enemies not user, enemy 1, friends, all friends,
dead friends, friends not user, friend 1, opponents, all opponents,
dead opponents, opponent 1, all alive, all members, all dead,
all not user, focus (user and targets), not focus

Example, a strike that hits twice:

<LW Each Target Steps>
act
animation: target
apply: target
wait 12
animation: target, mirror
apply: target
</LW Each Target Steps>

Notetags

Skill or item:

<LW Speed: +50>               faster or slower than others this turn
<LW Charge Animation: 10>     animation on the user before the action
<LW Log Name: Fire Rain>      name in the log instead of the real one
<LW Log Icon: 64>

Enemy:

<LW Attack Animation: 7>

Actor, class, enemy, equipment or state:

<LW Anchor X: 0.5>   <LW Anchor Y: 0.9>   where the sprite stands
<LW Stand Still>              the sprite never moves (towers, statues)
<LW Reflect Animation: 50>

State:

<LW Remove After Actions: 2>      gone after 2 own actions
<LW Remove After Actions: 1 to 3>
<LW Remove After Turns: 2>        gone after 2 battle turns

A log line that starts with <CENTER> is centered.

Plugin Commands

LW_BattleSystem rounds        outside of battle
LW_BattleSystem timeline      needs LW_TurnOrder

For Other Plugins

LW.battle.addStep(/^NAME (\d+)$/i, function(match, args, context) {...})

adds a step. Return false to make the steps wait (LW.battle.setWait).

Terms of Use

See TERMS_OF_USE.txt in the download. Short version: use it in as many of your own games as you like, free or commercial. Edit it for your game, but keep this header. Don't share or resell the plugin files on their own. Name oasis-b in the credits of your game.

Changelog

Version 1.0.0 - 2026-11-22 - First release.

Plugin commands in MZ

In MZ these come as Plugin Command in the event editor, with fields to fill in. Old MV text commands from copied events keep working.

Battle System

Changes the battle system from the next battle on. Not during a battle.

  • System (select): database = turn based or time progress as in the database. timeline needs LWZ_TurnOrder. Default: database.

Introduction

Requires LWZ_Core. Put it above all other LW battle plugins.

Every skill and item runs as a list of steps in five parts:

start           before anything happens (name, step in, charge)
all targets     once for the whole group, for area attacks
each target     once for every target
follow          after the targets
finish          step back, common event

Without notes an action looks like in a new project. With notes you can write any part new. LWZ_ActionScript adds steps for moving, jumping, the camera, poses and more.

Steps (Skill and Item Notes)

<LW Start Steps> ... </LW Start Steps>
<LW All Targets Steps> ... </LW All Targets Steps>
<LW Each Target Steps> ... </LW Each Target Steps>
<LW Follow Steps> ... </LW Follow Steps>
<LW Finish Steps> ... </LW Finish Steps>
<LW Steps From: Skill 12>      uses the steps of skill 12 (or Item 5)

One step per line:

animation: targets, mirror     the animation of the skill
apply: targets                 damage and effects of the skill
charge animation               the charge animation on the user
common event                   the common event of the skill now
common event 5                 common event 5
show name                      icon and name in the log
clear log
keep alive: targets, on        nobody dies before "keep alive: ..., off"
step in      act      step back      poses of the user
wait for pose: user
stop if dead                   ends the steps if the user died
stop                           jumps to the finish steps
wait 20                        frames
wait for animation / effect / movement / log / numbers
refresh status
code: user.gainHp(10)          JavaScript
if v[3] > 2   else if ...   else   end

Who a step works on:

user, target, targets, actors, all actors, dead actors,
actors not user, actor 2, character 5, enemies, all enemies,
dead enemies, enemies not user, enemy 1, friends, all friends,
dead friends, friends not user, friend 1, opponents, all opponents,
dead opponents, opponent 1, all alive, all members, all dead,
all not user, focus (user and targets), not focus

Example, a strike that hits twice:

<LW Each Target Steps>
act
animation: target
apply: target
wait 12
animation: target, mirror
apply: target
</LW Each Target Steps>

Notetags

Skill or item:

<LW Speed: +50>               faster or slower than others this turn
<LW Charge Animation: 10>     animation on the user before the action
<LW Log Name: Fire Rain>      name in the log instead of the real one
<LW Log Icon: 64>

Enemy:

<LW Attack Animation: 7>

Actor, class, enemy, equipment or state:

<LW Anchor X: 0.5>   <LW Anchor Y: 0.9>   where the sprite stands
<LW Stand Still>              the sprite never moves (towers, statues)
<LW Reflect Animation: 50>

State:

<LW Remove After Actions: 2>      gone after 2 own actions
<LW Remove After Actions: 1 to 3>
<LW Remove After Turns: 2>        gone after 2 battle turns

A log line that starts with <CENTER> is centered.

Plugin Commands

Battle System    database or timeline, outside of battle. timeline
                 needs LWZ_TurnOrder. database means turn based or
                 time progress, as set in the database.

Events copied from MV keep working: LW_BattleSystem rounds (rounds is the same as database), LW_BattleSystem timeline.

For Other Plugins

LW.battle.addStep(/^NAME (\d+)$/i, function(match, args, context) {...})

adds a step. Return false to make the steps wait (LW.battle.setWait).

Terms of Use

See TERMS_OF_USE.txt in the download. Short version: use it in as many of your own games as you like, free or commercial. Edit it for your game, but keep this header. Don't share or resell the plugin files on their own. Name oasis-b in the credits of your game.

Changelog

Version 1.0.0 - First release for MZ.

Get it

LW_BattleFlow is in these packs. Every pack comes as an MV and an MZ download at the same price and needs no other plugin collection. Tested in RPG Maker MV 1.6.2 and MZ 1.10.0 games on Windows, macOS and Linux and in current browsers.

Battle Essentials ($9.99)Full Collection ($19.99)
LW_TurnOrder →