Class in reactor_windows.js
Window_BattleLog
79 public functions in 6 groups · show internal (_) functions
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 sourceWindow_BattleLog.prototype.initialize(rect)
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
makeHpDamageText
method sourceWindow_BattleLog.prototype.makeHpDamageText(target)
Makes the hp damage text. (Same as the RPG Maker MZ method of this name.)
makeMpDamageText
method sourceWindow_BattleLog.prototype.makeMpDamageText(target)
Makes the mp damage text. (Same as the RPG Maker MZ method of this name.)
makeTpDamageText
method sourceWindow_BattleLog.prototype.makeTpDamageText(target)
Makes the tp damage text. (Same as the RPG Maker MZ method of this name.)
Getting Information
maxLines
method sourceWindow_BattleLog.prototype.maxLines()
The maximum lines. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
isBusy
method sourceWindow_BattleLog.prototype.isBusy()
Whether it is busy. (Same as the RPG Maker MZ method of this name.)
isFastForward
method sourceWindow_BattleLog.prototype.isFastForward()
Whether it is fast forward. (Same as the RPG Maker MZ method of this name.)
Actions
setSpriteset
method sourceWindow_BattleLog.prototype.setSpriteset(spriteset)
Sets the spriteset. (Same as the RPG Maker MZ method of this name.)
setWaitMode
method sourceWindow_BattleLog.prototype.setWaitMode(waitMode)
Sets the wait mode. (Same as the RPG Maker MZ method of this name.)
callNextMethod
method sourceWindow_BattleLog.prototype.callNextMethod()
Call next method. (Same as the RPG Maker MZ method of this name.)
push
method sourceWindow_BattleLog.prototype.push(methodName)
Push. (Same as the RPG Maker MZ method of this name.)
clear
method sourceWindow_BattleLog.prototype.clear()
Clear. (Same as the RPG Maker MZ method of this name.)
addText
method sourceWindow_BattleLog.prototype.addText(text)
Adds the text. (Same as the RPG Maker MZ method of this name.)
pushBaseLine
method sourceWindow_BattleLog.prototype.pushBaseLine()
Push base line. (Same as the RPG Maker MZ method of this name.)
popBaseLine
method sourceWindow_BattleLog.prototype.popBaseLine()
Pop base line. (Same as the RPG Maker MZ method of this name.)
performActionStart
method sourceWindow_BattleLog.prototype.performActionStart(subject, action)
Plays the action start effect. (Same as the RPG Maker MZ method of this name.)
performAction
method sourceWindow_BattleLog.prototype.performAction(subject, action)
Plays the action effect. (Same as the RPG Maker MZ method of this name.)
performActionEnd
method sourceWindow_BattleLog.prototype.performActionEnd(subject)
Plays the action end effect. (Same as the RPG Maker MZ method of this name.)
performDamage
method sourceWindow_BattleLog.prototype.performDamage(target)
Plays the damage effect. (Same as the RPG Maker MZ method of this name.)
performMiss
method sourceWindow_BattleLog.prototype.performMiss(target)
Plays the miss effect. (Same as the RPG Maker MZ method of this name.)
performRecovery
method sourceWindow_BattleLog.prototype.performRecovery(target)
Plays the recovery effect. (Same as the RPG Maker MZ method of this name.)
performMpRecovery
method sourceWindow_BattleLog.prototype.performMpRecovery(target)
Plays the mp recovery effect. (Same as the RPG Maker MZ method of this name.)
performTpRecovery
method sourceWindow_BattleLog.prototype.performTpRecovery(target)
Plays the tp recovery effect. (Same as the RPG Maker MZ method of this name.)
performEvasion
method sourceWindow_BattleLog.prototype.performEvasion(target)
Plays the evasion effect. (Same as the RPG Maker MZ method of this name.)
performMagicEvasion
method sourceWindow_BattleLog.prototype.performMagicEvasion(target)
Plays the magic evasion effect. (Same as the RPG Maker MZ method of this name.)
performCounter
method sourceWindow_BattleLog.prototype.performCounter(target)
Plays the counter effect. (Same as the RPG Maker MZ method of this name.)
performReflection
method sourceWindow_BattleLog.prototype.performReflection(target)
Plays the reflection effect. (Same as the RPG Maker MZ method of this name.)
performSubstitute
method sourceWindow_BattleLog.prototype.performSubstitute(substitute, target)
Plays the substitute effect. (Same as the RPG Maker MZ method of this name.)
performCollapse
method sourceWindow_BattleLog.prototype.performCollapse(target)
Plays the collapse effect. (Same as the RPG Maker MZ method of this name.)
showAttackAnimation
method sourceWindow_BattleLog.prototype.showAttackAnimation(subject, targets)
Shows the attack animation. (Same as the RPG Maker MZ method of this name.)
startTurn
method sourceWindow_BattleLog.prototype.startTurn()
Starts the turn. (Same as the RPG Maker MZ method of this name.)
startAction
method sourceWindow_BattleLog.prototype.startAction(subject, action, targets)
Starts the action. (Same as the RPG Maker MZ method of this name.)
endAction
method sourceWindow_BattleLog.prototype.endAction(subject)
Ends the action. (Same as the RPG Maker MZ method of this name.)
setOutcomeItem
method sourceWindow_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 sourceWindow_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 sourceWindow_BattleLog.prototype.pushTpRecoverySound(target)
Push tp recovery sound. (Same as the RPG Maker MZ method of this name.)
addNotice
method sourceWindow_BattleLog.prototype.addNotice(text)
Adds the notice. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
update
method sourceWindow_BattleLog.prototype.update()
Update. (Same as the RPG Maker MZ method of this name.)
updateWait
method sourceWindow_BattleLog.prototype.updateWait()
Updates the wait each frame. (Same as the RPG Maker MZ method of this name.)
updateWaitCount
method sourceWindow_BattleLog.prototype.updateWaitCount()
Updates the wait count each frame. (Same as the RPG Maker MZ method of this name.)
updateWaitMode
method sourceWindow_BattleLog.prototype.updateWaitMode()
Updates the wait mode each frame. (Same as the RPG Maker MZ method of this name.)
refresh
method sourceWindow_BattleLog.prototype.refresh()
Refresh. (Same as the RPG Maker MZ method of this name.)
drawBackground
method sourceWindow_BattleLog.prototype.drawBackground()
Draws the background. (Same as the RPG Maker MZ method of this name.)
drawLineText
method sourceWindow_BattleLog.prototype.drawLineText(index)
Draws the line text. (Same as the RPG Maker MZ method of this name.)
Other
numLines
method sourceWindow_BattleLog.prototype.numLines()
Num lines. (Same as the RPG Maker MZ method of this name.)
messageSpeed
method sourceWindow_BattleLog.prototype.messageSpeed()
Message speed. (Same as the RPG Maker MZ method of this name.)
wait
method sourceWindow_BattleLog.prototype.wait()
Wait. (Same as the RPG Maker MZ method of this name.)
waitForEffect
method sourceWindow_BattleLog.prototype.waitForEffect()
Wait for effect. (Same as the RPG Maker MZ method of this name.)
waitForMovement
method sourceWindow_BattleLog.prototype.waitForMovement()
Wait for movement. (Same as the RPG Maker MZ method of this name.)
waitForNewLine
method sourceWindow_BattleLog.prototype.waitForNewLine()
Wait for new line. (Same as the RPG Maker MZ method of this name.)
popupDamage
method sourceWindow_BattleLog.prototype.popupDamage(target)
Popup damage. (Same as the RPG Maker MZ method of this name.)
backRect
method sourceWindow_BattleLog.prototype.backRect()
Back rect. (Same as the RPG Maker MZ method of this name.)
lineRect
method sourceWindow_BattleLog.prototype.lineRect(index)
Line rect. (Same as the RPG Maker MZ method of this name.)
backColor
method sourceWindow_BattleLog.prototype.backColor()
Back color. (Same as the RPG Maker MZ method of this name.)
backPaintOpacity
method sourceWindow_BattleLog.prototype.backPaintOpacity()
Back paint opacity. (Same as the RPG Maker MZ method of this name.)
displayCurrentState
method sourceWindow_BattleLog.prototype.displayCurrentState(subject)
Display current state. (Same as the RPG Maker MZ method of this name.)
displayRegeneration
method sourceWindow_BattleLog.prototype.displayRegeneration(subject)
Display regeneration. (Same as the RPG Maker MZ method of this name.)
displayAction
method sourceWindow_BattleLog.prototype.displayAction(subject, item)
Display action. (Same as the RPG Maker MZ method of this name.)
displayItemMessage
method sourceWindow_BattleLog.prototype.displayItemMessage(fmt, subject, item)
Display item message. (Same as the RPG Maker MZ method of this name.)
displayCounter
method sourceWindow_BattleLog.prototype.displayCounter(target)
Display counter. (Same as the RPG Maker MZ method of this name.)
displayReflection
method sourceWindow_BattleLog.prototype.displayReflection(target)
Display reflection. (Same as the RPG Maker MZ method of this name.)
displaySubstitute
method sourceWindow_BattleLog.prototype.displaySubstitute(substitute, target)
Display substitute. (Same as the RPG Maker MZ method of this name.)
displayActionResults
method sourceWindow_BattleLog.prototype.displayActionResults(subject, target)
Display action results. (Same as the RPG Maker MZ method of this name.)
displayFailure
method sourceWindow_BattleLog.prototype.displayFailure(target)
Display failure. (Same as the RPG Maker MZ method of this name.)
displaySkillOutcome
method sourceWindow_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 sourceWindow_BattleLog.prototype.displayCritical(target)
Display critical. (Same as the RPG Maker MZ method of this name.)
displayDamage
method sourceWindow_BattleLog.prototype.displayDamage(target)
Display damage. (Same as the RPG Maker MZ method of this name.)
displayMiss
method sourceWindow_BattleLog.prototype.displayMiss(target)
Display miss. (Same as the RPG Maker MZ method of this name.)
displayEvasion
method sourceWindow_BattleLog.prototype.displayEvasion(target)
Display evasion. (Same as the RPG Maker MZ method of this name.)
displayHpDamage
method sourceWindow_BattleLog.prototype.displayHpDamage(target)
Display hp damage. (Same as the RPG Maker MZ method of this name.)
displayMpDamage
method sourceWindow_BattleLog.prototype.displayMpDamage(target)
Display mp damage. (Same as the RPG Maker MZ method of this name.)
displayTpDamage
method sourceWindow_BattleLog.prototype.displayTpDamage(target)
Display tp damage. (Same as the RPG Maker MZ method of this name.)
displayAffectedStatus
method sourceWindow_BattleLog.prototype.displayAffectedStatus(target)
Display affected status. (Same as the RPG Maker MZ method of this name.)
displayAutoAffectedStatus
method sourceWindow_BattleLog.prototype.displayAutoAffectedStatus(target)
Display auto affected status. (Same as the RPG Maker MZ method of this name.)
displayChangedStates
method sourceWindow_BattleLog.prototype.displayChangedStates(target)
Display changed states. (Same as the RPG Maker MZ method of this name.)
displayAddedStates
method sourceWindow_BattleLog.prototype.displayAddedStates(target)
Display added states. (Same as the RPG Maker MZ method of this name.)
displayRemovedStates
method sourceWindow_BattleLog.prototype.displayRemovedStates(target)
Display removed states. (Same as the RPG Maker MZ method of this name.)
displayChangedBuffs
method sourceWindow_BattleLog.prototype.displayChangedBuffs(target)
Display changed buffs. (Same as the RPG Maker MZ method of this name.)
displayBuffs
method sourceWindow_BattleLog.prototype.displayBuffs(target, buffs, fmt)
Display buffs. (Same as the RPG Maker MZ method of this name.)