Class in reactor_windows.js

Window_BattleLog

79 functions in 6 groups · hide internal

Windows draw every menu, list and status panel.

Familiar territory. Window_BattleLog 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 4

initialize() Sets up a new instance.
makeHpDamageText() Makes the hp damage text.
makeMpDamageText() Makes the mp damage text.
makeTpDamageText() Makes the tp damage text.

Getting Information 1

maxLines() The maximum lines.

Checks (True / False) 2

isBusy() Whether it is busy.
isFastForward() Whether it is fast forward.

Actions 30

setSpriteset() Sets the spriteset.
setWaitMode() Sets the wait mode.
callNextMethod() Call next method.
push() Push.
clear() Clear.
addText() Adds the text.
pushBaseLine() Push base line.
popBaseLine() Pop base line.
performActionStart() Plays the action start effect.
performAction() Plays the action effect.
performActionEnd() Plays the action end effect.
performDamage() Plays the damage effect.
performMiss() Plays the miss effect.
performRecovery() Plays the recovery effect.
performMpRecovery() Plays the mp recovery effect.
performTpRecovery() Plays the tp recovery effect.
performEvasion() Plays the evasion effect.
performMagicEvasion() Plays the magic evasion effect.
performCounter() Plays the counter effect.
performReflection() Plays the reflection effect.
performSubstitute() Plays the substitute effect.
performCollapse() Plays the collapse effect.
showAttackAnimation() Shows the attack animation.
startTurn() Starts the turn.
startAction() Starts the action.
endAction() Ends the action.
setOutcomeItem() Name the skill whose outcome messages displayActionResults may show.
pushMpRecoverySound() Queue the recovery chime at most once per result display.
pushTpRecoverySound() Push tp recovery sound.
addNotice() Adds the notice.

Updating & Drawing 7

update() Update.
updateWait() Updates the wait each frame.
updateWaitCount() Updates the wait count each frame.
updateWaitMode() Updates the wait mode each frame.
refresh() Refresh.
drawBackground() Draws the background.
drawLineText() Draws the line text.

Other 35

numLines() Num lines.
messageSpeed() Message speed.
wait() Wait.
waitForEffect() Wait for effect.
waitForMovement() Wait for movement.
waitForNewLine() Wait for new line.
popupDamage() Popup damage.
backRect() Back rect.
lineRect() Line rect.
backColor() Back color.
backPaintOpacity() Back paint opacity.
displayCurrentState() Display current state.
displayRegeneration() Display regeneration.
displayAction() Display action.
displayItemMessage() Display item message.
displayCounter() Display counter.
displayReflection() Display reflection.
displaySubstitute() Display substitute.
displayActionResults() Display action results.
displayFailure() Display failure.
displaySkillOutcome() Skill Message 3 and Message 4 - the outcome lines.
displayCritical() Display critical.
displayDamage() Display damage.
displayMiss() Display miss.
displayEvasion() Display evasion.
displayHpDamage() Display hp damage.
displayMpDamage() Display mp damage.
displayTpDamage() Display tp damage.
displayAffectedStatus() Display affected status.
displayAutoAffectedStatus() Display auto affected status.
displayChangedStates() Display changed states.
displayAddedStates() Display added states.
displayRemovedStates() Display removed states.
displayChangedBuffs() Display changed buffs.
displayBuffs() Display buffs.

Setup & Creation

initialize

method source
Window_BattleLog.prototype.initialize(rect)

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

makeHpDamageText

method source
Window_BattleLog.prototype.makeHpDamageText(target)

Makes the hp damage text. (Same as the RPG Maker MZ method of this name.)

makeMpDamageText

method source
Window_BattleLog.prototype.makeMpDamageText(target)

Makes the mp damage text. (Same as the RPG Maker MZ method of this name.)

makeTpDamageText

method source
Window_BattleLog.prototype.makeTpDamageText(target)

Makes the tp damage text. (Same as the RPG Maker MZ method of this name.)

Getting Information

maxLines

method source
Window_BattleLog.prototype.maxLines()

The maximum lines. (Same as the RPG Maker MZ method of this name.)

Checks (True / False)

isBusy

method source
Window_BattleLog.prototype.isBusy()

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

isFastForward

method source
Window_BattleLog.prototype.isFastForward()

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

Actions

setSpriteset

method source
Window_BattleLog.prototype.setSpriteset(spriteset)

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

setWaitMode

method source
Window_BattleLog.prototype.setWaitMode(waitMode)

Sets the wait mode. (Same as the RPG Maker MZ method of this name.)

callNextMethod

method source
Window_BattleLog.prototype.callNextMethod()

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

push

method source
Window_BattleLog.prototype.push(methodName)

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

clear

method source
Window_BattleLog.prototype.clear()

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

addText

method source
Window_BattleLog.prototype.addText(text)

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

pushBaseLine

method source
Window_BattleLog.prototype.pushBaseLine()

Push base line. (Same as the RPG Maker MZ method of this name.)

popBaseLine

method source
Window_BattleLog.prototype.popBaseLine()

Pop base line. (Same as the RPG Maker MZ method of this name.)

performActionStart

method source
Window_BattleLog.prototype.performActionStart(subject, action)

Plays the action start effect. (Same as the RPG Maker MZ method of this name.)

performAction

method source
Window_BattleLog.prototype.performAction(subject, action)

Plays the action effect. (Same as the RPG Maker MZ method of this name.)

performActionEnd

method source
Window_BattleLog.prototype.performActionEnd(subject)

Plays the action end effect. (Same as the RPG Maker MZ method of this name.)

performDamage

method source
Window_BattleLog.prototype.performDamage(target)

Plays the damage effect. (Same as the RPG Maker MZ method of this name.)

performMiss

method source
Window_BattleLog.prototype.performMiss(target)

Plays the miss effect. (Same as the RPG Maker MZ method of this name.)

performRecovery

method source
Window_BattleLog.prototype.performRecovery(target)

Plays the recovery effect. (Same as the RPG Maker MZ method of this name.)

performMpRecovery

method source
Window_BattleLog.prototype.performMpRecovery(target)

Plays the mp recovery effect. (Same as the RPG Maker MZ method of this name.)

performTpRecovery

method source
Window_BattleLog.prototype.performTpRecovery(target)

Plays the tp recovery effect. (Same as the RPG Maker MZ method of this name.)

performEvasion

method source
Window_BattleLog.prototype.performEvasion(target)

Plays the evasion effect. (Same as the RPG Maker MZ method of this name.)

performMagicEvasion

method source
Window_BattleLog.prototype.performMagicEvasion(target)

Plays the magic evasion effect. (Same as the RPG Maker MZ method of this name.)

performCounter

method source
Window_BattleLog.prototype.performCounter(target)

Plays the counter effect. (Same as the RPG Maker MZ method of this name.)

performReflection

method source
Window_BattleLog.prototype.performReflection(target)

Plays the reflection effect. (Same as the RPG Maker MZ method of this name.)

performSubstitute

method source
Window_BattleLog.prototype.performSubstitute(substitute, target)

Plays the substitute effect. (Same as the RPG Maker MZ method of this name.)

performCollapse

method source
Window_BattleLog.prototype.performCollapse(target)

Plays the collapse effect. (Same as the RPG Maker MZ method of this name.)

showAttackAnimation

method source
Window_BattleLog.prototype.showAttackAnimation(subject, targets)

Shows the attack animation. (Same as the RPG Maker MZ method of this name.)

startTurn

method source
Window_BattleLog.prototype.startTurn()

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

startAction

method source
Window_BattleLog.prototype.startAction(subject, action, targets)

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

endAction

method source
Window_BattleLog.prototype.endAction(subject)

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

setOutcomeItem

method source
Window_BattleLog.prototype.setOutcomeItem(item)

Name the skill whose outcome messages displayActionResults may show.

Details

Name the skill whose outcome messages displayActionResults may show.

The item travels on the window rather than as a third argument because displayActionResults is one of the most-aliased methods in the engine, and the wrappers in the wild call through with exactly two parameters - a third would be dropped silently. BattleManager sets this for the normal action path only and clears it afterwards, so a counterattack (which applies a Game_Action of its own) and a reflection (which reverses subject and target) cannot attribute the original skill's outcome line to the wrong battler.

pushMpRecoverySound

method source
Window_BattleLog.prototype.pushMpRecoverySound(target)

Queue the recovery chime at most once per result display.

Details

Queue the recovery chime at most once per result display. Both the line method above and displayDamage's backstop call these, and whichever gets there first wins; a plugin that replaces the line method wholesale and pushes the command itself would get a second chime from the backstop, so it should call this instead of pushing directly.

pushTpRecoverySound

method source
Window_BattleLog.prototype.pushTpRecoverySound(target)

Push tp recovery sound. (Same as the RPG Maker MZ method of this name.)

addNotice

method source
Window_BattleLog.prototype.addNotice(text)

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

Updating & Drawing

update

method source
Window_BattleLog.prototype.update()

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

updateWait

method source
Window_BattleLog.prototype.updateWait()

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

updateWaitCount

method source
Window_BattleLog.prototype.updateWaitCount()

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

updateWaitMode

method source
Window_BattleLog.prototype.updateWaitMode()

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

refresh

method source
Window_BattleLog.prototype.refresh()

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

drawBackground

method source
Window_BattleLog.prototype.drawBackground()

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

drawLineText

method source
Window_BattleLog.prototype.drawLineText(index)

Draws the line text. (Same as the RPG Maker MZ method of this name.)

Other

numLines

method source
Window_BattleLog.prototype.numLines()

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

messageSpeed

method source
Window_BattleLog.prototype.messageSpeed()

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

wait

method source
Window_BattleLog.prototype.wait()

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

waitForEffect

method source
Window_BattleLog.prototype.waitForEffect()

Wait for effect. (Same as the RPG Maker MZ method of this name.)

waitForMovement

method source
Window_BattleLog.prototype.waitForMovement()

Wait for movement. (Same as the RPG Maker MZ method of this name.)

waitForNewLine

method source
Window_BattleLog.prototype.waitForNewLine()

Wait for new line. (Same as the RPG Maker MZ method of this name.)

popupDamage

method source
Window_BattleLog.prototype.popupDamage(target)

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

backRect

method source
Window_BattleLog.prototype.backRect()

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

lineRect

method source
Window_BattleLog.prototype.lineRect(index)

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

backColor

method source
Window_BattleLog.prototype.backColor()

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

backPaintOpacity

method source
Window_BattleLog.prototype.backPaintOpacity()

Back paint opacity. (Same as the RPG Maker MZ method of this name.)

displayCurrentState

method source
Window_BattleLog.prototype.displayCurrentState(subject)

Display current state. (Same as the RPG Maker MZ method of this name.)

displayRegeneration

method source
Window_BattleLog.prototype.displayRegeneration(subject)

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

displayAction

method source
Window_BattleLog.prototype.displayAction(subject, item)

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

displayItemMessage

method source
Window_BattleLog.prototype.displayItemMessage(fmt, subject, item)

Display item message. (Same as the RPG Maker MZ method of this name.)

displayCounter

method source
Window_BattleLog.prototype.displayCounter(target)

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

displayReflection

method source
Window_BattleLog.prototype.displayReflection(target)

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

displaySubstitute

method source
Window_BattleLog.prototype.displaySubstitute(substitute, target)

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

displayActionResults

method source
Window_BattleLog.prototype.displayActionResults(subject, target)

Display action results. (Same as the RPG Maker MZ method of this name.)

displayFailure

method source
Window_BattleLog.prototype.displayFailure(target)

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

displaySkillOutcome

method source
Window_BattleLog.prototype.displaySkillOutcome(subject, target)

Skill Message 3 and Message 4 - the outcome lines.

Details

Skill Message 3 and Message 4 - the outcome lines.

Message 1 and 2 announce the action before it resolves, in displayAction. These two report what it did, once per target, exactly as displayCritical and displayFailure already do: Message 3 when the action connected and had an effect, Message 4 when it missed, was evaded, or did nothing. Both take the same %1 user / %2 skill arguments Message 1 and 2 take.

A skill that sets neither shows neither - displayItemMessage ignores an empty or absent string, which is every skill authored before these fields did anything.

displayCritical

method source
Window_BattleLog.prototype.displayCritical(target)

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

displayDamage

method source
Window_BattleLog.prototype.displayDamage(target)

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

displayMiss

method source
Window_BattleLog.prototype.displayMiss(target)

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

displayEvasion

method source
Window_BattleLog.prototype.displayEvasion(target)

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

displayHpDamage

method source
Window_BattleLog.prototype.displayHpDamage(target)

Display hp damage. (Same as the RPG Maker MZ method of this name.)

displayMpDamage

method source
Window_BattleLog.prototype.displayMpDamage(target)

Display mp damage. (Same as the RPG Maker MZ method of this name.)

displayTpDamage

method source
Window_BattleLog.prototype.displayTpDamage(target)

Display tp damage. (Same as the RPG Maker MZ method of this name.)

displayAffectedStatus

method source
Window_BattleLog.prototype.displayAffectedStatus(target)

Display affected status. (Same as the RPG Maker MZ method of this name.)

displayAutoAffectedStatus

method source
Window_BattleLog.prototype.displayAutoAffectedStatus(target)

Display auto affected status. (Same as the RPG Maker MZ method of this name.)

displayChangedStates

method source
Window_BattleLog.prototype.displayChangedStates(target)

Display changed states. (Same as the RPG Maker MZ method of this name.)

displayAddedStates

method source
Window_BattleLog.prototype.displayAddedStates(target)

Display added states. (Same as the RPG Maker MZ method of this name.)

displayRemovedStates

method source
Window_BattleLog.prototype.displayRemovedStates(target)

Display removed states. (Same as the RPG Maker MZ method of this name.)

displayChangedBuffs

method source
Window_BattleLog.prototype.displayChangedBuffs(target)

Display changed buffs. (Same as the RPG Maker MZ method of this name.)

displayBuffs

method source
Window_BattleLog.prototype.displayBuffs(target, buffs, fmt)

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