Class in reactor_objects.js

Game_Message

42 functions in 6 groups · hide internal

Everything here is tracked by Game Objects: the party, the map, its events.

Familiar territory. Game_Message 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 1

initialize() Sets up a new instance.

Getting Information 3

positionType() Position type.
itemChoiceVariableId() Item choice variable id.
itemChoiceItypeId() Item choice itype id.

Checks (True / False) 6

hasText() Whether it has the text.
isChoice() Whether it is choice.
isNumberInput() Whether it is number input.
isItemChoice() Whether it is item choice.
isBusy() Whether it is busy.
isRTL() Whether it is rtl.

Actions 14

clear() Clear.
add() Add.
setSpeakerName() Sets the speaker name.
setFaceImage() Sets the face image.
setFacePlay() How this message plays a face set with frames (ImageManager.FACE_PLAYS); anything else is "talk".
setBackground() Sets the background.
setPositionType() Sets the position type.
setChoices() Sets the choices.
setChoiceBackground() Sets the choice background.
setChoicePositionType() Sets the choice position type.
setNumberInput() Sets the number input.
setItemChoice() Sets the item choice.
setScroll() Sets the scroll.
setChoiceCallback() Sets the choice callback.

Events, Commands & Input 1

onChoice() Called when choice happens.

Other 17

choices() Choices.
speakerName() Speaker name.
faceName() Face name.
faceIndex() Face index.
background() Background.
choiceDefaultType() Choice default type.
choiceCancelType() Choice cancel type.
choiceBackground() Choice background.
choicePositionType() Choice position type.
numInputVariableId() Num input variable id.
numInputMaxDigits() Num input max digits.
scrollMode() Scroll mode.
scrollSpeed() Scroll speed.
scrollNoFast() Scroll no fast.
facePlay() Face play.
newPage() New page.
allText() All text.

Setup & Creation

initialize

method source
Game_Message.prototype.initialize()

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

Getting Information

positionType

method source
Game_Message.prototype.positionType()

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

itemChoiceVariableId

method source
Game_Message.prototype.itemChoiceVariableId()

Item choice variable id. (Same as the RPG Maker MZ method of this name.)

itemChoiceItypeId

method source
Game_Message.prototype.itemChoiceItypeId()

Item choice itype id. (Same as the RPG Maker MZ method of this name.)

Checks (True / False)

hasText

method source
Game_Message.prototype.hasText()

Whether it has the text. (Same as the RPG Maker MZ method of this name.)

isChoice

method source
Game_Message.prototype.isChoice()

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

isNumberInput

method source
Game_Message.prototype.isNumberInput()

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

isItemChoice

method source
Game_Message.prototype.isItemChoice()

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

isBusy

method source
Game_Message.prototype.isBusy()

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

isRTL

method source
Game_Message.prototype.isRTL()

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

Actions

clear

method source
Game_Message.prototype.clear()

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

add

method source
Game_Message.prototype.add(text)

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

setSpeakerName

method source
Game_Message.prototype.setSpeakerName(speakerName)

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

setFaceImage

method source
Game_Message.prototype.setFaceImage(faceName, faceIndex)

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

setFacePlay

method source
Game_Message.prototype.setFacePlay(play)

How this message plays a face set with frames (ImageManager.FACE_PLAYS); anything else is "talk".

setBackground

method source
Game_Message.prototype.setBackground(background)

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

setPositionType

method source
Game_Message.prototype.setPositionType(positionType)

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

setChoices

method source
Game_Message.prototype.setChoices(choices, defaultType, cancelType)

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

setChoiceBackground

method source
Game_Message.prototype.setChoiceBackground(background)

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

setChoicePositionType

method source
Game_Message.prototype.setChoicePositionType(positionType)

Sets the choice position type. (Same as the RPG Maker MZ method of this name.)

setNumberInput

method source
Game_Message.prototype.setNumberInput(variableId, maxDigits)

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

setItemChoice

method source
Game_Message.prototype.setItemChoice(variableId, itemType)

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

setScroll

method source
Game_Message.prototype.setScroll(speed, noFast)

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

setChoiceCallback

method source
Game_Message.prototype.setChoiceCallback(callback)

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

Events, Commands & Input

onChoice

method source
Game_Message.prototype.onChoice(n)

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

Other

choices

method source
Game_Message.prototype.choices()

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

speakerName

method source
Game_Message.prototype.speakerName()

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

faceName

method source
Game_Message.prototype.faceName()

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

faceIndex

method source
Game_Message.prototype.faceIndex()

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

background

method source
Game_Message.prototype.background()

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

choiceDefaultType

method source
Game_Message.prototype.choiceDefaultType()

Choice default type. (Same as the RPG Maker MZ method of this name.)

choiceCancelType

method source
Game_Message.prototype.choiceCancelType()

Choice cancel type. (Same as the RPG Maker MZ method of this name.)

choiceBackground

method source
Game_Message.prototype.choiceBackground()

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

choicePositionType

method source
Game_Message.prototype.choicePositionType()

Choice position type. (Same as the RPG Maker MZ method of this name.)

numInputVariableId

method source
Game_Message.prototype.numInputVariableId()

Num input variable id. (Same as the RPG Maker MZ method of this name.)

numInputMaxDigits

method source
Game_Message.prototype.numInputMaxDigits()

Num input max digits. (Same as the RPG Maker MZ method of this name.)

scrollMode

method source
Game_Message.prototype.scrollMode()

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

scrollSpeed

method source
Game_Message.prototype.scrollSpeed()

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

scrollNoFast

method source
Game_Message.prototype.scrollNoFast()

Scroll no fast. (Same as the RPG Maker MZ method of this name.)

facePlay

method source
Game_Message.prototype.facePlay()

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

newPage

method source
Game_Message.prototype.newPage()

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

allText

method source
Game_Message.prototype.allText()

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