Namespace in reactor_vehicles_mount.js

M

24 public functions in 4 groups · show internal (_) functions

Rideable vehicles from the Prop Builder.

Quick Reference

Getting Information 2

of() The vehicle event a unit rides, or null.
list() What a skill list shows from its next refresh: actor alone (vehicle null), or with the vehicle it rides.

Actions 4

moveOf() Tiles a turn for a unit on this vehicle.
begin() The battle has begun with the party aboard: who rides what, and nobody is driven from here on.
end() The battle is over: who still rides is driven again, and the others' vehicles stay where they were left.
recover() Every vehicle of the party's on this map is whole again (Recover All).

Updating & Drawing 2

sync() Once a frame of a battle on the grid: each ridden vehicle goes with its rider.
updateRoom() Each frame of a Battle Room: who rides has its vehicle's model under it; who does not has none.

Other 16

keeps() Whether a battle with these options keeps the party aboard: one fought on the grid, from a vehicle that rides…
skillsOf() A vehicle battler's skills, less its plain attack and its guard.
gap() How far a unit standing at (x, y) is from a vehicle, in tiles: from the nearest tile its body covers (a motor…
near() The free vehicle a unit on foot could get on from where it stands: the nearest in reach.
mount() A unit gets on a vehicle, at once.
dismount() A unit gets off its vehicle onto a cell; the vehicle stays where it stood, parked.
wreck() A vehicle lies wrecked (on), or stands again: one that leans goes over onto its stand's side.
armed() Whether a vehicle has an attack of its own to offer: a weapon, or an attack skill other than the stock one (a…
viaAt() Who uses row index of a list: "vehicle", or "" for the one who rides.
rowEnabled() Whether a row can be chosen: its user can use it, and in a battle on the grid an attack has somebody in its r…
rideOf() The vehicle an actor rides while the party is aboard on the map: the leader's, or a follower's own.
battlerOf() That vehicle's battler while it can act: null on foot, for a vehicle with none, and for a wreck.
vehicleOf() The battler of the vehicle an actor rides, standing or wrecked; null on foot and for a vehicle with none.
withVehicles() The targets of an action on the battle screen, with the vehicles the party rides among them.
afterClassic() After a battle on the battle screen: wrecks mended (won, and the game lets the fallen get up), and nobody rid…
attackerOf() The vehicle an actor rides when it can attack for itself, else null.

Getting Information

of

static source
M.of(unit)

The vehicle event a unit rides, or null.

list

static source
M.list(win, actor, vehicle, mode, rider)

What a skill list shows from its next refresh: actor alone (vehicle null), or with the vehicle it rides.

Details

What a skill list shows from its next refresh: actor alone (vehicle null), or with the vehicle it rides. mode: "skills", "attack", or "whom" (an action aimed where a rider and its vehicle both are: rider and vehicle are those two, and the list asks which of them it is for).

Actions

moveOf

static source
M.moveOf(event)

Tiles a turn for a unit on this vehicle.

begin

static source
M.begin(fight)

The battle has begun with the party aboard: who rides what, and nobody is driven from here on.

end

static source
M.end()

The battle is over: who still rides is driven again, and the others' vehicles stay where they were left.

recover

static source
M.recover()

Every vehicle of the party's on this map is whole again (Recover All).

Updating & Drawing

sync

static source
M.sync(fight)

Once a frame of a battle on the grid: each ridden vehicle goes with its rider.

updateRoom

static source
M.updateRoom(room)

Each frame of a Battle Room: who rides has its vehicle's model under it; who does not has none.

Other

keeps

static source
M.keeps(options)

Whether a battle with these options keeps the party aboard: one fought on the grid, from a vehicle that rides on land.

skillsOf

static source
M.skillsOf(battler)

A vehicle battler's skills, less its plain attack and its guard.

gap

static source
M.gap(event, x, y)

How far a unit standing at (x, y) is from a vehicle, in tiles: from the nearest tile its body covers (a motorcycle lies five tiles long, and read from its middle only the three tiles beside that were in reach, often taken by another vehicle: no Mount was ever offered beside one).

near

static source
M.near(fight, unit)

The free vehicle a unit on foot could get on from where it stands: the nearest in reach.

mount

static source
M.mount(fight, unit, event)

A unit gets on a vehicle, at once.

Details

A unit gets on a vehicle, at once. False when it cannot.

dismount

static source
M.dismount(fight, unit, x, y)

A unit gets off its vehicle onto a cell; the vehicle stays where it stood, parked.

Details

A unit gets off its vehicle onto a cell; the vehicle stays where it stood, parked. False when it rides none.

wreck

static source
M.wreck(event, on)

A vehicle lies wrecked (on), or stands again: one that leans goes over onto its stand's side.

armed

static source
M.armed(battler)

Whether a vehicle has an attack of its own to offer: a weapon, or an attack skill other than the stock one (an Attack Skill trait).

Details

Whether a vehicle has an attack of its own to offer: a weapon, or an attack skill other than the stock one (an Attack Skill trait). One with neither would strike bare, the same Attack its rider has, and the menu asked "whose attack" between two rows that did the same thing (the Demo's motorcycle, the owner, 2026-11-15).

viaAt

static source
M.viaAt(win, index)

Who uses row index of a list: "vehicle", or "" for the one who rides.

rowEnabled

static source
M.rowEnabled(win, index)

Whether a row can be chosen: its user can use it, and in a battle on the grid an attack has somebody in its reach.

rideOf

static source
M.rideOf(actor)

The vehicle an actor rides while the party is aboard on the map: the leader's, or a follower's own.

Details

The vehicle an actor rides while the party is aboard on the map: the leader's, or a follower's own. Null on foot.

battlerOf

static source
M.battlerOf(actor)

That vehicle's battler while it can act: null on foot, for a vehicle with none, and for a wreck.

vehicleOf

static source
M.vehicleOf(actor)

The battler of the vehicle an actor rides, standing or wrecked; null on foot and for a vehicle with none.

withVehicles

static source
M.withVehicles(action, targets)

The targets of an action on the battle screen, with the vehicles the party rides among them.

Details

The targets of an action on the battle screen, with the vehicles the party rides among them. An action for one: the vehicle in its rider's place when the player chose it (_rrVehicleTarget), when the rider is kept inside it and the other side strikes, or when the other side strikes and it has the lesser share of its life left. An action for all: each rider's vehicle with its rider, and in place of one kept inside when the other side strikes.

afterClassic

static source
M.afterClassic(won)

After a battle on the battle screen: wrecks mended (won, and the game lets the fallen get up), and nobody rides a wreck out of it.

attackerOf

static source
M.attackerOf(actor)

The vehicle an actor rides when it can attack for itself, else null.