Familiar territory. BattleManager 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
Setup & Creation 5
| setup() | Setup. |
| initMembers() | Initializes the members. |
| makeEscapeRatio() | Makes the escape ratio. |
| makeActionOrders() | Makes the action orders. |
| makeRewards() | Makes the rewards. |
Getting Information 1
| getNextSubject() | Gets the next subject. |
Checks (True / False) 16
| isTpb() | Whether it is tpb. |
| isActiveTpb() | Whether it is active tpb. |
| isBattleTest() | Whether it is battle test. |
| isBusy() | Whether it is busy. |
| isPartyTpbInputtable() | Whether it is party tpb inputtable. |
| needsActorInputCancel() | Whether it needs actor input cancel. |
| isTpbMainPhase() | Whether it is tpb main phase. |
| isInputting() | Whether it is inputting. |
| isInTurn() | Whether it is in turn. |
| isTurnEnd() | Whether it is turn end. |
| isAborting() | Whether it is aborting. |
| isBattleEnd() | Whether it is battle end. |
| canEscape() | Whether it can escape. |
| canLose() | Whether it can lose. |
| isEscaped() | Whether it is escaped. |
| isActionForced() | Whether it is action forced. |
Actions 30
| setBattleTest() | Sets the battle test. |
| setEventCallback() | Sets the event callback. |
| setLogWindow() | Sets the log window. |
| setSpriteset() | Sets the spriteset. |
| saveBgmAndBgs() | Saves the bgm and bgs. |
| playBattleBgm() | Plays the battle bgm. |
| playVictoryMe() | Plays the victory me. |
| playDefeatMe() | Plays the defeat me. |
| startBattle() | Starts the battle. |
| startInput() | Starts the input. |
| selectNextCommand() | Selects the next command. |
| selectNextActor() | Selects the next actor. |
| selectPreviousCommand() | Selects the previous command. |
| selectPreviousActor() | Selects the previous actor. |
| changeCurrentActor() | Changes the current actor. |
| startActorInput() | Starts the actor input. |
| finishActorInput() | Finish actor input. |
| startTurn() | Starts the turn. |
| endBattlerActions() | Ends the battler actions. |
| endTurn() | Ends the turn. |
| endAllBattlersTurn() | Ends the all battlers turn. |
| startAction() | Starts the action. |
| endAction() | Ends the action. |
| applySubstitute() | Applies the substitute. |
| showVictoryInterface() | Hands the rewards to the project's Victory interface; false where there is none in use (or a plugin words the… |
| endBattle() | Ends the battle. |
| gainRewards() | Gains the rewards. |
| gainExp() | Gains the exp. |
| gainGold() | Gains the gold. |
| gainDropItems() | Gains the drop items. |
Events, Commands & Input 10
| onEncounter() | Called when encounter happens. |
| processTurn() | Handles the turn. |
| processForcedAction() | Handles the forced action. |
| processVictory() | Handles the victory. |
| processEscape() | Handles the escape. |
| onEscapeSuccess() | Called when escape success happens. |
| onEscapeFailure() | Called when escape failure happens. |
| processPartyEscape() | Handles the party escape. |
| processAbort() | Handles the abort. |
| processDefeat() | Handles the defeat. |
Updating & Drawing 13
| update() | Update. |
| updatePhase() | Updates the phase each frame. |
| updateEvent() | Updates the event each frame. |
| updateEventMain() | Updates the event main each frame. |
| updateTpbInput() | Updates the tpb input each frame. |
| updateStart() | Updates the start each frame. |
| updateTurn() | Updates the turn each frame. |
| updateTpb() | Updates the tpb each frame. |
| updateAllTpbBattlers() | Updates the all tpb battlers each frame. |
| updateTpbBattler() | Updates the tpb battler each frame. |
| updateTurnEnd() | Updates the turn end each frame. |
| updateAction() | Updates the action each frame. |
| updateBattleEnd() | Updates the battle end each frame. |
Other 29
| ratePreemptive() | Rate preemptive. |
| rateSurprise() | Rate surprise. |
| replayBgmAndBgs() | Replay bgm and bgs. |
| checkTpbInputClose() | Check tpb input close. |
| checkTpbInputOpen() | Check tpb input open. |
| actor() | Actor. |
| displayStartMessages() | Display start messages. |
| inputtingAction() | Inputting action. |
| cancelActorInput() | Cancel actor input. |
| checkTpbTurnEnd() | Check tpb turn end. |
| displayBattlerStatus() | Display battler status. |
| allBattleMembers() | All battle members. |
| invokeAction() | Invoke action. |
| invokeNormalAction() | Invoke normal action. |
| invokeCounterAttack() | Invoke counter attack. |
| invokeMagicReflection() | Invoke magic reflection. |
| checkSubstitute() | Check substitute. |
| forceAction() | Force action. |
| abort() | Abort. |
| checkBattleEnd() | Check battle end. |
| checkAbort() | Check abort. |
| displayVictoryMessage() | Display victory message. |
| displayDefeatMessage() | Display defeat message. |
| displayEscapeSuccessMessage() | Display escape success message. |
| displayEscapeFailureMessage() | Display escape failure message. |
| displayRewards() | Display rewards. |
| displayExp() | Display exp. |
| displayGold() | Display gold. |
| displayDropItems() | Display drop items. |
Setup & Creation
setup
static sourceBattleManager.setup(troopId, canEscape, canLose)
Setup. (Same as the RPG Maker MZ method of this name.)
initMembers
static sourceBattleManager.initMembers()
Initializes the members. (Same as the RPG Maker MZ method of this name.)
makeEscapeRatio
static sourceBattleManager.makeEscapeRatio()
Makes the escape ratio. (Same as the RPG Maker MZ method of this name.)
makeActionOrders
static sourceBattleManager.makeActionOrders()
Makes the action orders. (Same as the RPG Maker MZ method of this name.)
makeRewards
static sourceBattleManager.makeRewards()
Makes the rewards. (Same as the RPG Maker MZ method of this name.)
Getting Information
getNextSubject
static sourceBattleManager.getNextSubject()
Gets the next subject. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
isTpb
static sourceBattleManager.isTpb()
Whether it is tpb. (Same as the RPG Maker MZ method of this name.)
isActiveTpb
static sourceBattleManager.isActiveTpb()
Whether it is active tpb. (Same as the RPG Maker MZ method of this name.)
isBattleTest
static sourceBattleManager.isBattleTest()
Whether it is battle test. (Same as the RPG Maker MZ method of this name.)
isBusy
static sourceBattleManager.isBusy()
Whether it is busy. (Same as the RPG Maker MZ method of this name.)
isPartyTpbInputtable
static sourceBattleManager.isPartyTpbInputtable()
Whether it is party tpb inputtable. (Same as the RPG Maker MZ method of this name.)
needsActorInputCancel
static sourceBattleManager.needsActorInputCancel()
Whether it needs actor input cancel. (Same as the RPG Maker MZ method of this name.)
isTpbMainPhase
static sourceBattleManager.isTpbMainPhase()
Whether it is tpb main phase. (Same as the RPG Maker MZ method of this name.)
isInputting
static sourceBattleManager.isInputting()
Whether it is inputting. (Same as the RPG Maker MZ method of this name.)
isInTurn
static sourceBattleManager.isInTurn()
Whether it is in turn. (Same as the RPG Maker MZ method of this name.)
isTurnEnd
static sourceBattleManager.isTurnEnd()
Whether it is turn end. (Same as the RPG Maker MZ method of this name.)
isAborting
static sourceBattleManager.isAborting()
Whether it is aborting. (Same as the RPG Maker MZ method of this name.)
isBattleEnd
static sourceBattleManager.isBattleEnd()
Whether it is battle end. (Same as the RPG Maker MZ method of this name.)
canEscape
static sourceBattleManager.canEscape()
Whether it can escape. (Same as the RPG Maker MZ method of this name.)
canLose
static sourceBattleManager.canLose()
Whether it can lose. (Same as the RPG Maker MZ method of this name.)
isEscaped
static sourceBattleManager.isEscaped()
Whether it is escaped. (Same as the RPG Maker MZ method of this name.)
isActionForced
static sourceBattleManager.isActionForced()
Whether it is action forced. (Same as the RPG Maker MZ method of this name.)
Actions
setBattleTest
static sourceBattleManager.setBattleTest(battleTest)
Sets the battle test. (Same as the RPG Maker MZ method of this name.)
setEventCallback
static sourceBattleManager.setEventCallback(callback)
Sets the event callback. (Same as the RPG Maker MZ method of this name.)
setLogWindow
static sourceBattleManager.setLogWindow(logWindow)
Sets the log window. (Same as the RPG Maker MZ method of this name.)
setSpriteset
static sourceBattleManager.setSpriteset(spriteset)
Sets the spriteset. (Same as the RPG Maker MZ method of this name.)
saveBgmAndBgs
static sourceBattleManager.saveBgmAndBgs()
Saves the bgm and bgs. (Same as the RPG Maker MZ method of this name.)
playBattleBgm
static sourceBattleManager.playBattleBgm()
Plays the battle bgm. (Same as the RPG Maker MZ method of this name.)
playVictoryMe
static sourceBattleManager.playVictoryMe()
Plays the victory me. (Same as the RPG Maker MZ method of this name.)
playDefeatMe
static sourceBattleManager.playDefeatMe()
Plays the defeat me. (Same as the RPG Maker MZ method of this name.)
startBattle
static sourceBattleManager.startBattle()
Starts the battle. (Same as the RPG Maker MZ method of this name.)
startInput
static sourceBattleManager.startInput()
Starts the input. (Same as the RPG Maker MZ method of this name.)
selectNextCommand
static sourceBattleManager.selectNextCommand()
Selects the next command. (Same as the RPG Maker MZ method of this name.)
selectNextActor
static sourceBattleManager.selectNextActor()
Selects the next actor. (Same as the RPG Maker MZ method of this name.)
selectPreviousCommand
static sourceBattleManager.selectPreviousCommand()
Selects the previous command. (Same as the RPG Maker MZ method of this name.)
selectPreviousActor
static sourceBattleManager.selectPreviousActor()
Selects the previous actor. (Same as the RPG Maker MZ method of this name.)
changeCurrentActor
static sourceBattleManager.changeCurrentActor(forward)
Changes the current actor. (Same as the RPG Maker MZ method of this name.)
startActorInput
static sourceBattleManager.startActorInput()
Starts the actor input. (Same as the RPG Maker MZ method of this name.)
finishActorInput
static sourceBattleManager.finishActorInput()
Finish actor input. (Same as the RPG Maker MZ method of this name.)
startTurn
static sourceBattleManager.startTurn()
Starts the turn. (Same as the RPG Maker MZ method of this name.)
endBattlerActions
static sourceBattleManager.endBattlerActions(battler)
Ends the battler actions. (Same as the RPG Maker MZ method of this name.)
endTurn
static sourceBattleManager.endTurn()
Ends the turn. (Same as the RPG Maker MZ method of this name.)
endAllBattlersTurn
static sourceBattleManager.endAllBattlersTurn()
Ends the all battlers turn. (Same as the RPG Maker MZ method of this name.)
startAction
static sourceBattleManager.startAction()
Starts the action. (Same as the RPG Maker MZ method of this name.)
endAction
static sourceBattleManager.endAction()
Ends the action. (Same as the RPG Maker MZ method of this name.)
applySubstitute
static sourceBattleManager.applySubstitute(target)
Applies the substitute. (Same as the RPG Maker MZ method of this name.)
showVictoryInterface
static sourceBattleManager.showVictoryInterface()
Hands the rewards to the project's Victory interface; false where there is none in use (or a plugin words the rewards its own way).
endBattle
static sourceBattleManager.endBattle(result)
Ends the battle. (Same as the RPG Maker MZ method of this name.)
gainRewards
static sourceBattleManager.gainRewards()
Gains the rewards. (Same as the RPG Maker MZ method of this name.)
gainExp
static sourceBattleManager.gainExp()
Gains the exp. (Same as the RPG Maker MZ method of this name.)
gainGold
static sourceBattleManager.gainGold()
Gains the gold. (Same as the RPG Maker MZ method of this name.)
gainDropItems
static sourceBattleManager.gainDropItems()
Gains the drop items. (Same as the RPG Maker MZ method of this name.)
Events, Commands & Input
onEncounter
static sourceBattleManager.onEncounter()
Called when encounter happens. (Same as the RPG Maker MZ method of this name.)
processTurn
static sourceBattleManager.processTurn()
Handles the turn. (Same as the RPG Maker MZ method of this name.)
processForcedAction
static sourceBattleManager.processForcedAction()
Handles the forced action. (Same as the RPG Maker MZ method of this name.)
processVictory
static sourceBattleManager.processVictory()
Handles the victory. (Same as the RPG Maker MZ method of this name.)
processEscape
static sourceBattleManager.processEscape()
Handles the escape. (Same as the RPG Maker MZ method of this name.)
onEscapeSuccess
static sourceBattleManager.onEscapeSuccess()
Called when escape success happens. (Same as the RPG Maker MZ method of this name.)
onEscapeFailure
static sourceBattleManager.onEscapeFailure()
Called when escape failure happens. (Same as the RPG Maker MZ method of this name.)
processPartyEscape
static sourceBattleManager.processPartyEscape()
Handles the party escape. (Same as the RPG Maker MZ method of this name.)
processAbort
static sourceBattleManager.processAbort()
Handles the abort. (Same as the RPG Maker MZ method of this name.)
processDefeat
static sourceBattleManager.processDefeat()
Handles the defeat. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
update
static sourceBattleManager.update(timeActive)
Update. (Same as the RPG Maker MZ method of this name.)
updatePhase
static sourceBattleManager.updatePhase(timeActive)
Updates the phase each frame. (Same as the RPG Maker MZ method of this name.)
updateEvent
static sourceBattleManager.updateEvent()
Updates the event each frame. (Same as the RPG Maker MZ method of this name.)
updateEventMain
static sourceBattleManager.updateEventMain()
Updates the event main each frame. (Same as the RPG Maker MZ method of this name.)
updateTpbInput
static sourceBattleManager.updateTpbInput()
Updates the tpb input each frame. (Same as the RPG Maker MZ method of this name.)
updateStart
static sourceBattleManager.updateStart()
Updates the start each frame. (Same as the RPG Maker MZ method of this name.)
updateTurn
static sourceBattleManager.updateTurn(timeActive)
Updates the turn each frame. (Same as the RPG Maker MZ method of this name.)
updateTpb
static sourceBattleManager.updateTpb()
Updates the tpb each frame. (Same as the RPG Maker MZ method of this name.)
updateAllTpbBattlers
static sourceBattleManager.updateAllTpbBattlers()
Updates the all tpb battlers each frame. (Same as the RPG Maker MZ method of this name.)
updateTpbBattler
static sourceBattleManager.updateTpbBattler(battler)
Updates the tpb battler each frame. (Same as the RPG Maker MZ method of this name.)
updateTurnEnd
static sourceBattleManager.updateTurnEnd()
Updates the turn end each frame. (Same as the RPG Maker MZ method of this name.)
updateAction
static sourceBattleManager.updateAction()
Updates the action each frame. (Same as the RPG Maker MZ method of this name.)
updateBattleEnd
static sourceBattleManager.updateBattleEnd()
Updates the battle end each frame. (Same as the RPG Maker MZ method of this name.)
Other
ratePreemptive
static sourceBattleManager.ratePreemptive()
Rate preemptive. (Same as the RPG Maker MZ method of this name.)
rateSurprise
static sourceBattleManager.rateSurprise()
Rate surprise. (Same as the RPG Maker MZ method of this name.)
replayBgmAndBgs
static sourceBattleManager.replayBgmAndBgs()
Replay bgm and bgs. (Same as the RPG Maker MZ method of this name.)
checkTpbInputClose
static sourceBattleManager.checkTpbInputClose()
Check tpb input close. (Same as the RPG Maker MZ method of this name.)
checkTpbInputOpen
static sourceBattleManager.checkTpbInputOpen()
Check tpb input open. (Same as the RPG Maker MZ method of this name.)
actor
static sourceBattleManager.actor()
Actor. (Same as the RPG Maker MZ method of this name.)
displayStartMessages
static sourceBattleManager.displayStartMessages()
Display start messages. (Same as the RPG Maker MZ method of this name.)
inputtingAction
static sourceBattleManager.inputtingAction()
Inputting action. (Same as the RPG Maker MZ method of this name.)
cancelActorInput
static sourceBattleManager.cancelActorInput()
Cancel actor input. (Same as the RPG Maker MZ method of this name.)
checkTpbTurnEnd
static sourceBattleManager.checkTpbTurnEnd()
Check tpb turn end. (Same as the RPG Maker MZ method of this name.)
displayBattlerStatus
static sourceBattleManager.displayBattlerStatus(battler, current)
Display battler status. (Same as the RPG Maker MZ method of this name.)
allBattleMembers
static sourceBattleManager.allBattleMembers()
All battle members. (Same as the RPG Maker MZ method of this name.)
invokeAction
static sourceBattleManager.invokeAction(subject, target)
Invoke action. (Same as the RPG Maker MZ method of this name.)
invokeNormalAction
static sourceBattleManager.invokeNormalAction(subject, target)
Invoke normal action. (Same as the RPG Maker MZ method of this name.)
invokeCounterAttack
static sourceBattleManager.invokeCounterAttack(subject, target)
Invoke counter attack. (Same as the RPG Maker MZ method of this name.)
invokeMagicReflection
static sourceBattleManager.invokeMagicReflection(subject, target)
Invoke magic reflection. (Same as the RPG Maker MZ method of this name.)
checkSubstitute
static sourceBattleManager.checkSubstitute(target)
Check substitute. (Same as the RPG Maker MZ method of this name.)
forceAction
static sourceBattleManager.forceAction(battler)
Force action. (Same as the RPG Maker MZ method of this name.)
abort
static sourceBattleManager.abort()
Abort. (Same as the RPG Maker MZ method of this name.)
checkBattleEnd
static sourceBattleManager.checkBattleEnd()
Check battle end. (Same as the RPG Maker MZ method of this name.)
checkAbort
static sourceBattleManager.checkAbort()
Check abort. (Same as the RPG Maker MZ method of this name.)
displayVictoryMessage
static sourceBattleManager.displayVictoryMessage()
Display victory message. (Same as the RPG Maker MZ method of this name.)
displayDefeatMessage
static sourceBattleManager.displayDefeatMessage()
Display defeat message. (Same as the RPG Maker MZ method of this name.)
displayEscapeSuccessMessage
static sourceBattleManager.displayEscapeSuccessMessage()
Display escape success message. (Same as the RPG Maker MZ method of this name.)
displayEscapeFailureMessage
static sourceBattleManager.displayEscapeFailureMessage()
Display escape failure message. (Same as the RPG Maker MZ method of this name.)
displayRewards
static sourceBattleManager.displayRewards()
Display rewards. (Same as the RPG Maker MZ method of this name.)
displayExp
static sourceBattleManager.displayExp()
Display exp. (Same as the RPG Maker MZ method of this name.)
displayGold
static sourceBattleManager.displayGold()
Display gold. (Same as the RPG Maker MZ method of this name.)
displayDropItems
static sourceBattleManager.displayDropItems()
Display drop items. (Same as the RPG Maker MZ method of this name.)