Class in reactor_objects.js
Game_Message
42 public functions in 6 groups · show internal (_) functions
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 sourceGame_Message.prototype.initialize()
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
Getting Information
positionType
method sourceGame_Message.prototype.positionType()
Position type. (Same as the RPG Maker MZ method of this name.)
itemChoiceVariableId
method sourceGame_Message.prototype.itemChoiceVariableId()
Item choice variable id. (Same as the RPG Maker MZ method of this name.)
itemChoiceItypeId
method sourceGame_Message.prototype.itemChoiceItypeId()
Item choice itype id. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
hasText
method sourceGame_Message.prototype.hasText()
Whether it has the text. (Same as the RPG Maker MZ method of this name.)
isChoice
method sourceGame_Message.prototype.isChoice()
Whether it is choice. (Same as the RPG Maker MZ method of this name.)
isNumberInput
method sourceGame_Message.prototype.isNumberInput()
Whether it is number input. (Same as the RPG Maker MZ method of this name.)
isItemChoice
method sourceGame_Message.prototype.isItemChoice()
Whether it is item choice. (Same as the RPG Maker MZ method of this name.)
isBusy
method sourceGame_Message.prototype.isBusy()
Whether it is busy. (Same as the RPG Maker MZ method of this name.)
isRTL
method sourceGame_Message.prototype.isRTL()
Whether it is rtl. (Same as the RPG Maker MZ method of this name.)
Actions
clear
method sourceGame_Message.prototype.clear()
Clear. (Same as the RPG Maker MZ method of this name.)
add
method sourceGame_Message.prototype.add(text)
Add. (Same as the RPG Maker MZ method of this name.)
setSpeakerName
method sourceGame_Message.prototype.setSpeakerName(speakerName)
Sets the speaker name. (Same as the RPG Maker MZ method of this name.)
setFaceImage
method sourceGame_Message.prototype.setFaceImage(faceName, faceIndex)
Sets the face image. (Same as the RPG Maker MZ method of this name.)
setFacePlay
method sourceGame_Message.prototype.setFacePlay(play)
How this message plays a face set with frames (ImageManager.FACE_PLAYS); anything else is "talk".
setBackground
method sourceGame_Message.prototype.setBackground(background)
Sets the background. (Same as the RPG Maker MZ method of this name.)
setPositionType
method sourceGame_Message.prototype.setPositionType(positionType)
Sets the position type. (Same as the RPG Maker MZ method of this name.)
setChoices
method sourceGame_Message.prototype.setChoices(choices, defaultType, cancelType)
Sets the choices. (Same as the RPG Maker MZ method of this name.)
setChoiceBackground
method sourceGame_Message.prototype.setChoiceBackground(background)
Sets the choice background. (Same as the RPG Maker MZ method of this name.)
setChoicePositionType
method sourceGame_Message.prototype.setChoicePositionType(positionType)
Sets the choice position type. (Same as the RPG Maker MZ method of this name.)
setNumberInput
method sourceGame_Message.prototype.setNumberInput(variableId, maxDigits)
Sets the number input. (Same as the RPG Maker MZ method of this name.)
setItemChoice
method sourceGame_Message.prototype.setItemChoice(variableId, itemType)
Sets the item choice. (Same as the RPG Maker MZ method of this name.)
setScroll
method sourceGame_Message.prototype.setScroll(speed, noFast)
Sets the scroll. (Same as the RPG Maker MZ method of this name.)
setChoiceCallback
method sourceGame_Message.prototype.setChoiceCallback(callback)
Sets the choice callback. (Same as the RPG Maker MZ method of this name.)
Events, Commands & Input
onChoice
method sourceGame_Message.prototype.onChoice(n)
Called when choice happens. (Same as the RPG Maker MZ method of this name.)
Other
choices
method sourceGame_Message.prototype.choices()
Choices. (Same as the RPG Maker MZ method of this name.)
speakerName
method sourceGame_Message.prototype.speakerName()
Speaker name. (Same as the RPG Maker MZ method of this name.)
faceName
method sourceGame_Message.prototype.faceName()
Face name. (Same as the RPG Maker MZ method of this name.)
faceIndex
method sourceGame_Message.prototype.faceIndex()
Face index. (Same as the RPG Maker MZ method of this name.)
background
method sourceGame_Message.prototype.background()
Background. (Same as the RPG Maker MZ method of this name.)
choiceDefaultType
method sourceGame_Message.prototype.choiceDefaultType()
Choice default type. (Same as the RPG Maker MZ method of this name.)
choiceCancelType
method sourceGame_Message.prototype.choiceCancelType()
Choice cancel type. (Same as the RPG Maker MZ method of this name.)
choiceBackground
method sourceGame_Message.prototype.choiceBackground()
Choice background. (Same as the RPG Maker MZ method of this name.)
choicePositionType
method sourceGame_Message.prototype.choicePositionType()
Choice position type. (Same as the RPG Maker MZ method of this name.)
numInputVariableId
method sourceGame_Message.prototype.numInputVariableId()
Num input variable id. (Same as the RPG Maker MZ method of this name.)
numInputMaxDigits
method sourceGame_Message.prototype.numInputMaxDigits()
Num input max digits. (Same as the RPG Maker MZ method of this name.)
scrollMode
method sourceGame_Message.prototype.scrollMode()
Scroll mode. (Same as the RPG Maker MZ method of this name.)
scrollSpeed
method sourceGame_Message.prototype.scrollSpeed()
Scroll speed. (Same as the RPG Maker MZ method of this name.)
scrollNoFast
method sourceGame_Message.prototype.scrollNoFast()
Scroll no fast. (Same as the RPG Maker MZ method of this name.)
facePlay
method sourceGame_Message.prototype.facePlay()
Face play. (Same as the RPG Maker MZ method of this name.)
newPage
method sourceGame_Message.prototype.newPage()
New page. (Same as the RPG Maker MZ method of this name.)
allText
method sourceGame_Message.prototype.allText()
All text. (Same as the RPG Maker MZ method of this name.)