oasis-b

Docs / Battle system

LW_ActionScript

Battle system
RPG Maker MV and MZ action sequence plugin

More steps for LW_BattleFlow: values, states, items, sound, moving, jumping, poses, screen effects, camera and zoom.

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.

Move, jump, zoom: action sequences for your skills.

Highlights

Ideas for your game

Works well with

LW_BattleFlowLW_StateVisualsLW_Counters

Introduction

Requires LW_Core and LW_BattleFlow. Put it below LW_BattleFlow.

Every step here can be used in the five step lists of LW_BattleFlow (<LW Start Steps>, <LW Each Target Steps> and so on). The help of LW_BattleFlow lists who a step can work on: user, target, targets, enemies, actor 1 and the rest. Parts in brackets can be left out.

Values and States

hp: target, +50 (, show)          heals 50 HP, show = damage number
hp: user, -10%                    10 percent of max HP
mp: targets, +variable 5          the value of variable 5
tp: user, +20
buff: target, atk (, 3, show)     stats: atk def mat mdf agi luk mhp mmp
debuff: targets, def (, 2)
remove buff: target, agi          remove debuff: targets, luk
add state: target, 4 (, 5, show)  remove state: targets, 4
collapse: target (, force)        force kills even with keep alive on

Party and Game Data

give: item 3 (, 2)       give: weapon 1      give: armor 5, 1
take: item 3 (, 2)
gold: +100               gold: -50
switch: 10, on           switch: 10 to 12, off      (on off toggle,
                         switch 11, or a JavaScript condition)
variable: 5 += 3         (= += -= *= /= %=, right side is JavaScript)

Animations and Sound

play animation: target, 12 (, mirror)
weapon animation: targets         the animation of the user's weapon
bgm: Battle2 (, 90, 100, 0)       bgm: stop / remember / restore
bgs: River                        bgs: stop / remember / restore
me: Victory1                      me: stop
se: Attack3 (, 90, 100, 0)        se: stop
system sound: ok          (cursor, cancel, buzzer, equip, save, load,
       battle start, escape, enemy attack, enemy damage, enemy collapse,
       boss collapse 1, boss collapse 2, actor damage, actor collapse,
       recovery, miss, evasion, magic evasion, reflection, shop,
       use item, use skill)

Moving and Poses (side view)

move: user, home (, 20)                back to the start place
move: user, forward (, 48, 12)         distance, frames
move: user, back (, 48, 12)
move: user, point, 400, 300 (, 20)     a place on the screen
move: user, to target (, front base, 20, -10)
     spot: base, center, head, front base, front center, front head,
     back base, back center, back head. The last number keeps that
     much space.
face: user, forward      face: user, backward     face: user, home
face: user, target       face: user, away from target
face: user, point, 200, 300
float: user, 50 (, 20)   float: user, 150%, 30     float: user, 0, 20
jump: user, 100 (, 30)   jump: user, 200%, 40
fade: user, 50% (, 20)   fade: targets, 255, 10    (sprite opacity)
pose: user, swing (, no weapon)
     poses: walk, wait, chant, guard, damage, evade, attack, thrust,
     swing, missile, skill, spell, item, escape, victory, dying,
     abnormal, sleep, dead. "attack" uses the motion of the weapon.
blink: targets           whiten: targets      (enemies)
wait for float           wait for jump        wait for fade
hide hud                 show hud     (status and command windows)

A hero moved by a step stays where it is until "move: user, home" or the end of the action.

Screen

flash: white (, 30)       flash: 255, 0, 0, 170, 30
     colors: white red orange yellow green blue purple magenta black
tint: dark (, 30)         tint: 0, 0, 0, 0, 30
     tints: normal dark sepia sunset night
shake: 5, 5, 30           power, speed, frames
fade out: 30              fade in: 30

Camera and Zoom

camera: target (, center, 30)       follows a battler, spot as above
camera: top left (, 30)             top left, top, top right, left,
     center, right, bottom left, bottom, bottom right
camera: point, 400, 200 (, 30)
camera pan: right, 100 (, 30)       left, right, up, down
camera shift: left, 50              a fixed offset, until reset
camera inside: on                   camera inside: off
camera reset (: 30)
zoom: 150% (, 30)                   zoom: 1.5, 30
zoom reset (: 30)
wait for camera                     wait for zoom

Example

<LW Each Target Steps>
camera: target, center, 20
zoom: 130%, 20
move: user, to target, front base, 20
wait for movement
jump: user, 80, 20
pose: user, swing
wait 10
play animation: target, 6
apply: target
shake: 4, 8, 15
wait for animation
</LW Each Target Steps>
<LW Finish Steps>
camera reset: 20
zoom reset: 20
move: user, home, 20
wait for movement
</LW Finish Steps>

Notes written for older battle plugins are read as well.

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.

Introduction

Requires LWZ_Core and LWZ_BattleFlow. Put it below LWZ_BattleFlow.

Every step here can be used in the five step lists of LWZ_BattleFlow (<LW Start Steps>, <LW Each Target Steps> and so on). The help of LWZ_BattleFlow lists who a step can work on: user, target, targets, enemies, actor 1 and the rest. Parts in brackets can be left out.

Values and States

hp: target, +50 (, show)          heals 50 HP, show = damage number
hp: user, -10%                    10 percent of max HP
mp: targets, +variable 5          the value of variable 5
tp: user, +20
buff: target, atk (, 3, show)     stats: atk def mat mdf agi luk mhp mmp
debuff: targets, def (, 2)
remove buff: target, agi          remove debuff: targets, luk
add state: target, 4 (, 5, show)  remove state: targets, 4
collapse: target (, force)        force kills even with keep alive on

Party and Game Data

give: item 3 (, 2)       give: weapon 1      give: armor 5, 1
take: item 3 (, 2)
gold: +100               gold: -50
switch: 10, on           switch: 10 to 12, off      (on off toggle,
                         switch 11, or a JavaScript condition)
variable: 5 += 3         (= += -= *= /= %=, right side is JavaScript)

Animations and Sound

play animation: target, 12 (, mirror)
weapon animation: targets         the animation of the user's weapon
bgm: Battle2 (, 90, 100, 0)       bgm: stop / remember / restore
bgs: River                        bgs: stop / remember / restore
me: Victory1                      me: stop
se: Attack3 (, 90, 100, 0)        se: stop
system sound: ok          (cursor, cancel, buzzer, equip, save, load,
       battle start, escape, enemy attack, enemy damage, enemy collapse,
       boss collapse 1, boss collapse 2, actor damage, actor collapse,
       recovery, miss, evasion, magic evasion, reflection, shop,
       use item, use skill)

Moving and Poses (side view)

move: user, home (, 20)                back to the start place
move: user, forward (, 48, 12)         distance, frames
move: user, back (, 48, 12)
move: user, point, 400, 300 (, 20)     a place on the screen
move: user, to target (, front base, 20, -10)
     spot: base, center, head, front base, front center, front head,
     back base, back center, back head. The last number keeps that
     much space.
face: user, forward      face: user, backward     face: user, home
face: user, target       face: user, away from target
face: user, point, 200, 300
float: user, 50 (, 20)   float: user, 150%, 30     float: user, 0, 20
jump: user, 100 (, 30)   jump: user, 200%, 40
fade: user, 50% (, 20)   fade: targets, 255, 10    (sprite opacity)
pose: user, swing (, no weapon)
     poses: walk, wait, chant, guard, damage, evade, attack, thrust,
     swing, missile, skill, spell, item, escape, victory, dying,
     abnormal, sleep, dead. "attack" uses the motion of the weapon.
blink: targets           whiten: targets      (enemies)
wait for float           wait for jump        wait for fade
hide hud                 show hud     (status and command windows)

A hero moved by a step stays where it is until "move: user, home" or the end of the action.

Screen

flash: white (, 30)       flash: 255, 0, 0, 170, 30
     colors: white red orange yellow green blue purple magenta black
tint: dark (, 30)         tint: 0, 0, 0, 0, 30
     tints: normal dark sepia sunset night
shake: 5, 5, 30           power, speed, frames
fade out: 30              fade in: 30

Camera and Zoom

camera: target (, center, 30)       follows a battler, spot as above
camera: top left (, 30)             top left, top, top right, left,
     center, right, bottom left, bottom, bottom right
camera: point, 400, 200 (, 30)
camera pan: right, 100 (, 30)       left, right, up, down
camera shift: left, 50              a fixed offset, until reset
camera inside: on                   camera inside: off
camera reset (: 30)
zoom: 150% (, 30)                   zoom: 1.5, 30
zoom reset (: 30)
wait for camera                     wait for zoom

Example

<LW Each Target Steps>
camera: target, center, 20
zoom: 130%, 20
move: user, to target, front base, 20
wait for movement
jump: user, 80, 20
pose: user, swing
wait 10
play animation: target, 6
apply: target
shake: 4, 8, 15
wait for animation
</LW Each Target Steps>
<LW Finish Steps>
camera reset: 20
zoom reset: 20
move: user, home, 20
wait for movement
</LW Finish Steps>

Notes written for older battle plugins are read as well.

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_ActionScript 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_TurnOrderLW_BattleRules →