Namespace in reactor_vehicles_mount.js
Game_Fight
19 public functions in 5 groups · show internal (_) functions
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 sourceGame_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 sourceGame_Fight.prototype.finish()
Finish. (Same as the RPG Maker MZ method of this name.)
reviveVehicles
method sourceGame_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 sourceGame_Fight.prototype.commandVehicleAttack()
The vehicle's own attack, aimed at once (a HUD with its own lists; a script).
commandMount
method sourceGame_Fight.prototype.commandMount()
Runs the mount command. (Same as the RPG Maker MZ method of this name.)
commandDismount
method sourceGame_Fight.prototype.commandDismount()
Runs the dismount command. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
update
method sourceGame_Fight.prototype.update()
Update. (Same as the RPG Maker MZ method of this name.)
Other
mountCommands
method sourceGame_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 sourceGame_Fight.prototype.mountReason(symbol)
Why Dismount cannot be chosen, as a term key; "" when it can.
vehicleAttacker
method sourceGame_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 sourceGame_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 sourceGame_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 sourceGame_Fight.prototype.vehicleUnit(eventId)
Vehicle unit. (Same as the RPG Maker MZ method of this name.)
vehicleBattler
method sourceGame_Fight.prototype.vehicleBattler(unit)
Vehicle battler. (Same as the RPG Maker MZ method of this name.)
vehicleRider
method sourceGame_Fight.prototype.vehicleRider(unit)
The unit that rides a vehicle, or null.
pairTarget
method sourceGame_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 sourceGame_Fight.prototype.defeat(unit)
Defeat. (Same as the RPG Maker MZ method of this name.)
wreckVehicle
method sourceGame_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 sourceGame_Fight.prototype.mendVehicle(unit)
A wreck brought back stands again.