Class in reactor_scenes.js
Scene_Battle
74 public functions in 7 groups · show internal (_) functions
Familiar territory. Scene_Battle 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 16
| initialize() | Sets up a new instance. |
| create() | Create. |
| createDisplayObjects() | Creates the display objects. |
| createSpriteset() | Creates the spriteset. |
| createAllWindows() | Creates the all windows. |
| createLogWindow() | Creates the log window. |
| createStatusWindow() | Creates the status window. |
| createPartyCommandWindow() | Creates the party command window. |
| createActorCommandWindow() | Creates the actor command window. |
| createHelpWindow() | Creates the help window. |
| createSkillWindow() | Creates the skill window. |
| createItemWindow() | Creates the item window. |
| createActorWindow() | Creates the actor window. |
| createEnemyWindow() | Creates the enemy window. |
| createButtons() | Creates the buttons. |
| createCancelButton() | Creates the cancel button. |
Getting Information 1
| itemWindowRect() | Item window rect. |
Checks (True / False) 6
| isTimeActive() | Whether it is time active. |
| isAnyInputWindowActive() | Whether it is any input window active. |
| shouldAutosave() | Whether it should autosave. |
| needsSlowFadeOut() | Whether it needs slow fade out. |
| shouldOpenStatusWindow() | Whether it should open status window. |
| needsInputWindowChange() | Whether it needs input window change. |
Actions 12
| start() | Start. |
| changeInputWindow() | Changes the input window. |
| stop() | Stop. |
| closeCommandWindows() | Closes the command windows. |
| hideSubInputWindows() | Hides the sub input windows. |
| startPartyCommandSelection() | Starts the party command selection. |
| startActorCommandSelection() | Starts the actor command selection. |
| selectNextCommand() | Selects the next command. |
| selectPreviousCommand() | Selects the previous command. |
| startActorSelection() | Starts the actor selection. |
| startEnemySelection() | Starts the enemy selection. |
| endCommandSelection() | Ends the command selection. |
Events, Commands & Input 16
| commandFight() | Runs the fight command. |
| commandEscape() | Runs the escape command. |
| commandAttack() | Runs the attack command. |
| commandSkill() | Runs the skill command. |
| commandGuard() | Runs the guard command. |
| commandItem() | Runs the item command. |
| commandCancel() | Runs the cancel command. |
| onActorOk() | Called when actor ok happens. |
| onActorCancel() | Called when actor cancel happens. |
| onEnemyOk() | Called when enemy ok happens. |
| onEnemyCancel() | Called when enemy cancel happens. |
| onSkillOk() | Called when skill ok happens. |
| onSkillCancel() | Called when skill cancel happens. |
| onItemOk() | Called when item ok happens. |
| onItemCancel() | Called when item cancel happens. |
| onSelectAction() | Called when select action happens. |
Updating & Drawing 8
| update() | Update. |
| updateVisibility() | Updates the visibility each frame. |
| updateBattleProcess() | Updates the battle process each frame. |
| updateLogWindowVisibility() | Updates the log window visibility each frame. |
| updateStatusWindowVisibility() | Updates the status window visibility each frame. |
| updateStatusWindowPosition() | Updates the status window position each frame. |
| updateInputWindowVisibility() | Updates the input window visibility each frame. |
| updateCancelButton() | Updates the cancel button each frame. |
Other 15
| terminate() | Terminate. |
| statusWindowX() | Status window x. |
| logWindowRect() | Log window rect. |
| statusWindowRect() | Status window rect. |
| partyCommandWindowRect() | Party command window rect. |
| actorCommandWindowRect() | Actor command window rect. |
| helpWindowRect() | Help window rect. |
| skillWindowRect() | Skill window rect. |
| actorWindowRect() | Actor window rect. |
| enemyWindowRect() | Enemy window rect. |
| helpAreaTop() | Help area top. |
| helpAreaBottom() | Help area bottom. |
| helpAreaHeight() | Help area height. |
| buttonAreaTop() | Button area top. |
| windowAreaHeight() | Window area height. |
Setup & Creation
initialize
method sourceScene_Battle.prototype.initialize()
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
create
method sourceScene_Battle.prototype.create()
Create. (Same as the RPG Maker MZ method of this name.)
createDisplayObjects
method sourceScene_Battle.prototype.createDisplayObjects()
Creates the display objects. (Same as the RPG Maker MZ method of this name.)
createSpriteset
method sourceScene_Battle.prototype.createSpriteset()
Creates the spriteset. (Same as the RPG Maker MZ method of this name.)
createAllWindows
method sourceScene_Battle.prototype.createAllWindows()
Creates the all windows. (Same as the RPG Maker MZ method of this name.)
createLogWindow
method sourceScene_Battle.prototype.createLogWindow()
Creates the log window. (Same as the RPG Maker MZ method of this name.)
createStatusWindow
method sourceScene_Battle.prototype.createStatusWindow()
Creates the status window. (Same as the RPG Maker MZ method of this name.)
createPartyCommandWindow
method sourceScene_Battle.prototype.createPartyCommandWindow()
Creates the party command window. (Same as the RPG Maker MZ method of this name.)
createActorCommandWindow
method sourceScene_Battle.prototype.createActorCommandWindow()
Creates the actor command window. (Same as the RPG Maker MZ method of this name.)
createHelpWindow
method sourceScene_Battle.prototype.createHelpWindow()
Creates the help window. (Same as the RPG Maker MZ method of this name.)
createSkillWindow
method sourceScene_Battle.prototype.createSkillWindow()
Creates the skill window. (Same as the RPG Maker MZ method of this name.)
createItemWindow
method sourceScene_Battle.prototype.createItemWindow()
Creates the item window. (Same as the RPG Maker MZ method of this name.)
createActorWindow
method sourceScene_Battle.prototype.createActorWindow()
Creates the actor window. (Same as the RPG Maker MZ method of this name.)
createEnemyWindow
method sourceScene_Battle.prototype.createEnemyWindow()
Creates the enemy window. (Same as the RPG Maker MZ method of this name.)
createButtons
method sourceScene_Battle.prototype.createButtons()
Creates the buttons. (Same as the RPG Maker MZ method of this name.)
createCancelButton
method sourceScene_Battle.prototype.createCancelButton()
Creates the cancel button. (Same as the RPG Maker MZ method of this name.)
Getting Information
itemWindowRect
method sourceScene_Battle.prototype.itemWindowRect()
Item window rect. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
isTimeActive
method sourceScene_Battle.prototype.isTimeActive()
Whether it is time active. (Same as the RPG Maker MZ method of this name.)
isAnyInputWindowActive
method sourceScene_Battle.prototype.isAnyInputWindowActive()
Whether it is any input window active. (Same as the RPG Maker MZ method of this name.)
shouldAutosave
method sourceScene_Battle.prototype.shouldAutosave()
Whether it should autosave. (Same as the RPG Maker MZ method of this name.)
needsSlowFadeOut
method sourceScene_Battle.prototype.needsSlowFadeOut()
Whether it needs slow fade out. (Same as the RPG Maker MZ method of this name.)
shouldOpenStatusWindow
method sourceScene_Battle.prototype.shouldOpenStatusWindow()
Whether it should open status window. (Same as the RPG Maker MZ method of this name.)
needsInputWindowChange
method sourceScene_Battle.prototype.needsInputWindowChange()
Whether it needs input window change. (Same as the RPG Maker MZ method of this name.)
Actions
start
method sourceScene_Battle.prototype.start()
Start. (Same as the RPG Maker MZ method of this name.)
changeInputWindow
method sourceScene_Battle.prototype.changeInputWindow()
Changes the input window. (Same as the RPG Maker MZ method of this name.)
stop
method sourceScene_Battle.prototype.stop()
Stop. (Same as the RPG Maker MZ method of this name.)
closeCommandWindows
method sourceScene_Battle.prototype.closeCommandWindows()
Closes the command windows. (Same as the RPG Maker MZ method of this name.)
hideSubInputWindows
method sourceScene_Battle.prototype.hideSubInputWindows()
Hides the sub input windows. (Same as the RPG Maker MZ method of this name.)
startPartyCommandSelection
method sourceScene_Battle.prototype.startPartyCommandSelection()
Starts the party command selection. (Same as the RPG Maker MZ method of this name.)
startActorCommandSelection
method sourceScene_Battle.prototype.startActorCommandSelection()
Starts the actor command selection. (Same as the RPG Maker MZ method of this name.)
selectNextCommand
method sourceScene_Battle.prototype.selectNextCommand()
Selects the next command. (Same as the RPG Maker MZ method of this name.)
selectPreviousCommand
method sourceScene_Battle.prototype.selectPreviousCommand()
Selects the previous command. (Same as the RPG Maker MZ method of this name.)
startActorSelection
method sourceScene_Battle.prototype.startActorSelection()
Starts the actor selection. (Same as the RPG Maker MZ method of this name.)
startEnemySelection
method sourceScene_Battle.prototype.startEnemySelection()
Starts the enemy selection. (Same as the RPG Maker MZ method of this name.)
endCommandSelection
method sourceScene_Battle.prototype.endCommandSelection()
Ends the command selection. (Same as the RPG Maker MZ method of this name.)
Events, Commands & Input
commandFight
method sourceScene_Battle.prototype.commandFight()
Runs the fight command. (Same as the RPG Maker MZ method of this name.)
commandEscape
method sourceScene_Battle.prototype.commandEscape()
Runs the escape command. (Same as the RPG Maker MZ method of this name.)
commandAttack
method sourceScene_Battle.prototype.commandAttack()
Runs the attack command. (Same as the RPG Maker MZ method of this name.)
commandSkill
method sourceScene_Battle.prototype.commandSkill()
Runs the skill command. (Same as the RPG Maker MZ method of this name.)
commandGuard
method sourceScene_Battle.prototype.commandGuard()
Runs the guard command. (Same as the RPG Maker MZ method of this name.)
commandItem
method sourceScene_Battle.prototype.commandItem()
Runs the item command. (Same as the RPG Maker MZ method of this name.)
commandCancel
method sourceScene_Battle.prototype.commandCancel()
Runs the cancel command. (Same as the RPG Maker MZ method of this name.)
onActorOk
method sourceScene_Battle.prototype.onActorOk()
Called when actor ok happens. (Same as the RPG Maker MZ method of this name.)
onActorCancel
method sourceScene_Battle.prototype.onActorCancel()
Called when actor cancel happens. (Same as the RPG Maker MZ method of this name.)
onEnemyOk
method sourceScene_Battle.prototype.onEnemyOk()
Called when enemy ok happens. (Same as the RPG Maker MZ method of this name.)
onEnemyCancel
method sourceScene_Battle.prototype.onEnemyCancel()
Called when enemy cancel happens. (Same as the RPG Maker MZ method of this name.)
onSkillOk
method sourceScene_Battle.prototype.onSkillOk()
Called when skill ok happens. (Same as the RPG Maker MZ method of this name.)
onSkillCancel
method sourceScene_Battle.prototype.onSkillCancel()
Called when skill cancel happens. (Same as the RPG Maker MZ method of this name.)
onItemOk
method sourceScene_Battle.prototype.onItemOk()
Called when item ok happens. (Same as the RPG Maker MZ method of this name.)
onItemCancel
method sourceScene_Battle.prototype.onItemCancel()
Called when item cancel happens. (Same as the RPG Maker MZ method of this name.)
onSelectAction
method sourceScene_Battle.prototype.onSelectAction()
Called when select action happens. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
update
method sourceScene_Battle.prototype.update()
Update. (Same as the RPG Maker MZ method of this name.)
updateVisibility
method sourceScene_Battle.prototype.updateVisibility()
Updates the visibility each frame. (Same as the RPG Maker MZ method of this name.)
updateBattleProcess
method sourceScene_Battle.prototype.updateBattleProcess()
Updates the battle process each frame. (Same as the RPG Maker MZ method of this name.)
updateLogWindowVisibility
method sourceScene_Battle.prototype.updateLogWindowVisibility()
Updates the log window visibility each frame. (Same as the RPG Maker MZ method of this name.)
updateStatusWindowVisibility
method sourceScene_Battle.prototype.updateStatusWindowVisibility()
Updates the status window visibility each frame. (Same as the RPG Maker MZ method of this name.)
updateStatusWindowPosition
method sourceScene_Battle.prototype.updateStatusWindowPosition()
Updates the status window position each frame. (Same as the RPG Maker MZ method of this name.)
updateInputWindowVisibility
method sourceScene_Battle.prototype.updateInputWindowVisibility()
Updates the input window visibility each frame. (Same as the RPG Maker MZ method of this name.)
updateCancelButton
method sourceScene_Battle.prototype.updateCancelButton()
Updates the cancel button each frame. (Same as the RPG Maker MZ method of this name.)
Other
terminate
method sourceScene_Battle.prototype.terminate()
Terminate. (Same as the RPG Maker MZ method of this name.)
statusWindowX
method sourceScene_Battle.prototype.statusWindowX()
Status window x. (Same as the RPG Maker MZ method of this name.)
logWindowRect
method sourceScene_Battle.prototype.logWindowRect()
Log window rect. (Same as the RPG Maker MZ method of this name.)
statusWindowRect
method sourceScene_Battle.prototype.statusWindowRect()
Status window rect. (Same as the RPG Maker MZ method of this name.)
partyCommandWindowRect
method sourceScene_Battle.prototype.partyCommandWindowRect()
Party command window rect. (Same as the RPG Maker MZ method of this name.)
actorCommandWindowRect
method sourceScene_Battle.prototype.actorCommandWindowRect()
Actor command window rect. (Same as the RPG Maker MZ method of this name.)
helpWindowRect
method sourceScene_Battle.prototype.helpWindowRect()
Help window rect. (Same as the RPG Maker MZ method of this name.)
skillWindowRect
method sourceScene_Battle.prototype.skillWindowRect()
Skill window rect. (Same as the RPG Maker MZ method of this name.)
actorWindowRect
method sourceScene_Battle.prototype.actorWindowRect()
Actor window rect. (Same as the RPG Maker MZ method of this name.)
enemyWindowRect
method sourceScene_Battle.prototype.enemyWindowRect()
Enemy window rect. (Same as the RPG Maker MZ method of this name.)
helpAreaTop
method sourceScene_Battle.prototype.helpAreaTop()
Help area top. (Same as the RPG Maker MZ method of this name.)
helpAreaBottom
method sourceScene_Battle.prototype.helpAreaBottom()
Help area bottom. (Same as the RPG Maker MZ method of this name.)
helpAreaHeight
method sourceScene_Battle.prototype.helpAreaHeight()
Help area height. (Same as the RPG Maker MZ method of this name.)
buttonAreaTop
method sourceScene_Battle.prototype.buttonAreaTop()
Button area top. (Same as the RPG Maker MZ method of this name.)
windowAreaHeight
method sourceScene_Battle.prototype.windowAreaHeight()
Window area height. (Same as the RPG Maker MZ method of this name.)