Namespace in reactor_vehicles_mount.js

Game_Fight

19 functions in 5 groups · hide internal

Rideable vehicles from the Prop Builder.

Familiar territory. Game_Fight keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.

Quick Reference

Checks (True / False) 1

isShielded() Whether a unit is kept inside what it rides, and that still stands: the other side's actions land on the vehi…

Actions 2

finish() Finish.
reviveVehicles() The battle is over and the fallen get up: so do the vehicles wrecked in it, as far.

Events, Commands & Input 3

commandVehicleAttack() The vehicle's own attack, aimed at once (a HUD with its own lists; a script).
commandMount() Runs the mount command.
commandDismount() Runs the dismount command.

Updating & Drawing 1

update() Update.

Other 12

mountCommands() What a vehicle adds to a unit's menu: Dismount for one who rides, Mount beside a free one.
mountReason() Why Dismount cannot be chosen, as a term key; "" when it can.
vehicleAttacker() The vehicle a unit rides when it can attack for itself (Attack then asks whose attack it is to be), else null.
rideList() A skill list for the unit: its own skills and then its vehicle's, or (Attack chosen by one who rides) whose a…
vehicleUnits() The party's vehicles on this map that have battlers, as { id, vehicle: true, eventId, team: "ally" }.
vehicleUnit() Vehicle unit.
vehicleBattler() Vehicle battler.
vehicleRider() The unit that rides a vehicle, or null.
pairTarget() Which of a rider and its vehicle an action for one of them lands on when nobody chose: the one with the lesse…
defeat() Defeat.
wreckVehicle() A vehicle's battler fell: it is a wreck where it stands, and whoever rode it is on its feet beside it.
mendVehicle() A wreck brought back stands again.

Checks (True / False)

isShielded

method source
Game_Fight.prototype.isShielded(unit)

Whether a unit is kept inside what it rides, and that still stands: the other side's actions land on the vehicle.

Actions

finish

method source
Game_Fight.prototype.finish()

Finish. (Same as the RPG Maker MZ method of this name.)

reviveVehicles

method source
Game_Fight.prototype.reviveVehicles()

The battle is over and the fallen get up: so do the vehicles wrecked in it, as far.

Events, Commands & Input

commandVehicleAttack

method source
Game_Fight.prototype.commandVehicleAttack()

The vehicle's own attack, aimed at once (a HUD with its own lists; a script).

commandMount

method source
Game_Fight.prototype.commandMount()

Runs the mount command. (Same as the RPG Maker MZ method of this name.)

commandDismount

method source
Game_Fight.prototype.commandDismount()

Runs the dismount command. (Same as the RPG Maker MZ method of this name.)

Updating & Drawing

update

method source
Game_Fight.prototype.update()

Update. (Same as the RPG Maker MZ method of this name.)

Other

mountCommands

method source
Game_Fight.prototype.mountCommands(unit)

What a vehicle adds to a unit's menu: Dismount for one who rides, Mount beside a free one.

Details

What a vehicle adds to a unit's menu: Dismount for one who rides, Mount beside a free one. [{ name, symbol, enabled }].

mountReason

method source
Game_Fight.prototype.mountReason(symbol)

Why Dismount cannot be chosen, as a term key; "" when it can.

vehicleAttacker

method source
Game_Fight.prototype.vehicleAttacker(unit)

The vehicle a unit rides when it can attack for itself (Attack then asks whose attack it is to be), else null.

rideList

method source
Game_Fight.prototype.rideList(win, unit)

A skill list for the unit: its own skills and then its vehicle's, or (Attack chosen by one who rides) whose attack.

vehicleUnits

method source
Game_Fight.prototype.vehicleUnits()

The party's vehicles on this map that have battlers, as { id, vehicle: true, eventId, team: "ally" }.

Details

The party's vehicles on this map that have battlers, as { id, vehicle: true, eventId, team: "ally" }. The same objects for the battle's length.

vehicleUnit

method source
Game_Fight.prototype.vehicleUnit(eventId)

Vehicle unit. (Same as the RPG Maker MZ method of this name.)

vehicleBattler

method source
Game_Fight.prototype.vehicleBattler(unit)

Vehicle battler. (Same as the RPG Maker MZ method of this name.)

vehicleRider

method source
Game_Fight.prototype.vehicleRider(unit)

The unit that rides a vehicle, or null.

pairTarget

method source
Game_Fight.prototype.pairTarget(rider, vehicle)

Which of a rider and its vehicle an action for one of them lands on when nobody chose: the one with the lesser share of its life left (the rider at a tie).

defeat

method source
Game_Fight.prototype.defeat(unit)

Defeat. (Same as the RPG Maker MZ method of this name.)

wreckVehicle

method source
Game_Fight.prototype.wreckVehicle(unit)

A vehicle's battler fell: it is a wreck where it stands, and whoever rode it is on its feet beside it.

mendVehicle

method source
Game_Fight.prototype.mendVehicle(unit)

A wreck brought back stands again.