Class in reactor_scenes.js

Scene_Battle

74 functions in 7 groups · hide internal

The Reactor One title screen.

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 source
Scene_Battle.prototype.initialize()

Sets up a new instance. (Same as the RPG Maker MZ method of this name.)

create

method source
Scene_Battle.prototype.create()

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

createDisplayObjects

method source
Scene_Battle.prototype.createDisplayObjects()

Creates the display objects. (Same as the RPG Maker MZ method of this name.)

createSpriteset

method source
Scene_Battle.prototype.createSpriteset()

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

createAllWindows

method source
Scene_Battle.prototype.createAllWindows()

Creates the all windows. (Same as the RPG Maker MZ method of this name.)

createLogWindow

method source
Scene_Battle.prototype.createLogWindow()

Creates the log window. (Same as the RPG Maker MZ method of this name.)

createStatusWindow

method source
Scene_Battle.prototype.createStatusWindow()

Creates the status window. (Same as the RPG Maker MZ method of this name.)

createPartyCommandWindow

method source
Scene_Battle.prototype.createPartyCommandWindow()

Creates the party command window. (Same as the RPG Maker MZ method of this name.)

createActorCommandWindow

method source
Scene_Battle.prototype.createActorCommandWindow()

Creates the actor command window. (Same as the RPG Maker MZ method of this name.)

createHelpWindow

method source
Scene_Battle.prototype.createHelpWindow()

Creates the help window. (Same as the RPG Maker MZ method of this name.)

createSkillWindow

method source
Scene_Battle.prototype.createSkillWindow()

Creates the skill window. (Same as the RPG Maker MZ method of this name.)

createItemWindow

method source
Scene_Battle.prototype.createItemWindow()

Creates the item window. (Same as the RPG Maker MZ method of this name.)

createActorWindow

method source
Scene_Battle.prototype.createActorWindow()

Creates the actor window. (Same as the RPG Maker MZ method of this name.)

createEnemyWindow

method source
Scene_Battle.prototype.createEnemyWindow()

Creates the enemy window. (Same as the RPG Maker MZ method of this name.)

createButtons

method source
Scene_Battle.prototype.createButtons()

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

createCancelButton

method source
Scene_Battle.prototype.createCancelButton()

Creates the cancel button. (Same as the RPG Maker MZ method of this name.)

Getting Information

itemWindowRect

method source
Scene_Battle.prototype.itemWindowRect()

Item window rect. (Same as the RPG Maker MZ method of this name.)

Checks (True / False)

isTimeActive

method source
Scene_Battle.prototype.isTimeActive()

Whether it is time active. (Same as the RPG Maker MZ method of this name.)

isAnyInputWindowActive

method source
Scene_Battle.prototype.isAnyInputWindowActive()

Whether it is any input window active. (Same as the RPG Maker MZ method of this name.)

shouldAutosave

method source
Scene_Battle.prototype.shouldAutosave()

Whether it should autosave. (Same as the RPG Maker MZ method of this name.)

needsSlowFadeOut

method source
Scene_Battle.prototype.needsSlowFadeOut()

Whether it needs slow fade out. (Same as the RPG Maker MZ method of this name.)

shouldOpenStatusWindow

method source
Scene_Battle.prototype.shouldOpenStatusWindow()

Whether it should open status window. (Same as the RPG Maker MZ method of this name.)

needsInputWindowChange

method source
Scene_Battle.prototype.needsInputWindowChange()

Whether it needs input window change. (Same as the RPG Maker MZ method of this name.)

Actions

start

method source
Scene_Battle.prototype.start()

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

changeInputWindow

method source
Scene_Battle.prototype.changeInputWindow()

Changes the input window. (Same as the RPG Maker MZ method of this name.)

stop

method source
Scene_Battle.prototype.stop()

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

closeCommandWindows

method source
Scene_Battle.prototype.closeCommandWindows()

Closes the command windows. (Same as the RPG Maker MZ method of this name.)

hideSubInputWindows

method source
Scene_Battle.prototype.hideSubInputWindows()

Hides the sub input windows. (Same as the RPG Maker MZ method of this name.)

startPartyCommandSelection

method source
Scene_Battle.prototype.startPartyCommandSelection()

Starts the party command selection. (Same as the RPG Maker MZ method of this name.)

startActorCommandSelection

method source
Scene_Battle.prototype.startActorCommandSelection()

Starts the actor command selection. (Same as the RPG Maker MZ method of this name.)

selectNextCommand

method source
Scene_Battle.prototype.selectNextCommand()

Selects the next command. (Same as the RPG Maker MZ method of this name.)

selectPreviousCommand

method source
Scene_Battle.prototype.selectPreviousCommand()

Selects the previous command. (Same as the RPG Maker MZ method of this name.)

startActorSelection

method source
Scene_Battle.prototype.startActorSelection()

Starts the actor selection. (Same as the RPG Maker MZ method of this name.)

startEnemySelection

method source
Scene_Battle.prototype.startEnemySelection()

Starts the enemy selection. (Same as the RPG Maker MZ method of this name.)

endCommandSelection

method source
Scene_Battle.prototype.endCommandSelection()

Ends the command selection. (Same as the RPG Maker MZ method of this name.)

Events, Commands & Input

commandFight

method source
Scene_Battle.prototype.commandFight()

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

commandEscape

method source
Scene_Battle.prototype.commandEscape()

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

commandAttack

method source
Scene_Battle.prototype.commandAttack()

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

commandSkill

method source
Scene_Battle.prototype.commandSkill()

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

commandGuard

method source
Scene_Battle.prototype.commandGuard()

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

commandItem

method source
Scene_Battle.prototype.commandItem()

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

commandCancel

method source
Scene_Battle.prototype.commandCancel()

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

onActorOk

method source
Scene_Battle.prototype.onActorOk()

Called when actor ok happens. (Same as the RPG Maker MZ method of this name.)

onActorCancel

method source
Scene_Battle.prototype.onActorCancel()

Called when actor cancel happens. (Same as the RPG Maker MZ method of this name.)

onEnemyOk

method source
Scene_Battle.prototype.onEnemyOk()

Called when enemy ok happens. (Same as the RPG Maker MZ method of this name.)

onEnemyCancel

method source
Scene_Battle.prototype.onEnemyCancel()

Called when enemy cancel happens. (Same as the RPG Maker MZ method of this name.)

onSkillOk

method source
Scene_Battle.prototype.onSkillOk()

Called when skill ok happens. (Same as the RPG Maker MZ method of this name.)

onSkillCancel

method source
Scene_Battle.prototype.onSkillCancel()

Called when skill cancel happens. (Same as the RPG Maker MZ method of this name.)

onItemOk

method source
Scene_Battle.prototype.onItemOk()

Called when item ok happens. (Same as the RPG Maker MZ method of this name.)

onItemCancel

method source
Scene_Battle.prototype.onItemCancel()

Called when item cancel happens. (Same as the RPG Maker MZ method of this name.)

onSelectAction

method source
Scene_Battle.prototype.onSelectAction()

Called when select action happens. (Same as the RPG Maker MZ method of this name.)

Updating & Drawing

update

method source
Scene_Battle.prototype.update()

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

updateVisibility

method source
Scene_Battle.prototype.updateVisibility()

Updates the visibility each frame. (Same as the RPG Maker MZ method of this name.)

updateBattleProcess

method source
Scene_Battle.prototype.updateBattleProcess()

Updates the battle process each frame. (Same as the RPG Maker MZ method of this name.)

updateLogWindowVisibility

method source
Scene_Battle.prototype.updateLogWindowVisibility()

Updates the log window visibility each frame. (Same as the RPG Maker MZ method of this name.)

updateStatusWindowVisibility

method source
Scene_Battle.prototype.updateStatusWindowVisibility()

Updates the status window visibility each frame. (Same as the RPG Maker MZ method of this name.)

updateStatusWindowPosition

method source
Scene_Battle.prototype.updateStatusWindowPosition()

Updates the status window position each frame. (Same as the RPG Maker MZ method of this name.)

updateInputWindowVisibility

method source
Scene_Battle.prototype.updateInputWindowVisibility()

Updates the input window visibility each frame. (Same as the RPG Maker MZ method of this name.)

updateCancelButton

method source
Scene_Battle.prototype.updateCancelButton()

Updates the cancel button each frame. (Same as the RPG Maker MZ method of this name.)

Other

terminate

method source
Scene_Battle.prototype.terminate()

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

statusWindowX

method source
Scene_Battle.prototype.statusWindowX()

Status window x. (Same as the RPG Maker MZ method of this name.)

logWindowRect

method source
Scene_Battle.prototype.logWindowRect()

Log window rect. (Same as the RPG Maker MZ method of this name.)

statusWindowRect

method source
Scene_Battle.prototype.statusWindowRect()

Status window rect. (Same as the RPG Maker MZ method of this name.)

partyCommandWindowRect

method source
Scene_Battle.prototype.partyCommandWindowRect()

Party command window rect. (Same as the RPG Maker MZ method of this name.)

actorCommandWindowRect

method source
Scene_Battle.prototype.actorCommandWindowRect()

Actor command window rect. (Same as the RPG Maker MZ method of this name.)

helpWindowRect

method source
Scene_Battle.prototype.helpWindowRect()

Help window rect. (Same as the RPG Maker MZ method of this name.)

skillWindowRect

method source
Scene_Battle.prototype.skillWindowRect()

Skill window rect. (Same as the RPG Maker MZ method of this name.)

actorWindowRect

method source
Scene_Battle.prototype.actorWindowRect()

Actor window rect. (Same as the RPG Maker MZ method of this name.)

enemyWindowRect

method source
Scene_Battle.prototype.enemyWindowRect()

Enemy window rect. (Same as the RPG Maker MZ method of this name.)

helpAreaTop

method source
Scene_Battle.prototype.helpAreaTop()

Help area top. (Same as the RPG Maker MZ method of this name.)

helpAreaBottom

method source
Scene_Battle.prototype.helpAreaBottom()

Help area bottom. (Same as the RPG Maker MZ method of this name.)

helpAreaHeight

method source
Scene_Battle.prototype.helpAreaHeight()

Help area height. (Same as the RPG Maker MZ method of this name.)

buttonAreaTop

method source
Scene_Battle.prototype.buttonAreaTop()

Button area top. (Same as the RPG Maker MZ method of this name.)

windowAreaHeight

method source
Scene_Battle.prototype.windowAreaHeight()

Window area height. (Same as the RPG Maker MZ method of this name.)