Class in reactor_objects_interpreter.js
Game_Interpreter
153 public functions in 6 groups · show internal (_) functions
Familiar territory. Game_Interpreter 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 8
| initialize() | Sets up a new instance. |
| setup() | Setup. |
| loadImages() | Loads the images. |
| setupReservedCommonEvent() | Setup reserved common event. |
| setupChoices() | Setup choices. |
| setupNumInput() | Setup num input. |
| setupItemChoice() | Setup item choice. |
| setupChild() | Setup child. |
Getting Information 1
| currentCommand() | The current command. |
Checks (True / False) 2
| isOnCurrentMap() | Whether it is on current map. |
| isRunning() | Whether it is running. |
Actions 6
| clear() | Clear. |
| setWaitMode() | Sets the wait mode. |
| fadeSpeed() | Fade speed. |
| executeCommand() | Runs the command. |
| changeHp() | Changes the hp. |
| jumpTo() | Jump to. |
Updating & Drawing 5
| update() | Update. |
| updateChild() | Updates the child each frame. |
| updateWait() | Updates the wait each frame. |
| updateWaitCount() | Updates the wait count each frame. |
| updateWaitMode() | Updates the wait mode each frame. |
Other 131
| checkOverflow() | Check overflow. |
| eventId() | Event id. |
| wait() | Wait. |
| checkFreeze() | Check freeze. |
| terminate() | Terminate. |
| skipBranch() | Skip branch. |
| nextEventCode() | Next event code. |
| iterateActorId() | Iterate actor id. |
| iterateActorEx() | Iterate actor ex. |
| iterateActorIndex() | Iterate actor index. |
| iterateEnemyIndex() | Iterate enemy index. |
| iterateBattler() | Iterate battler. |
| character() | Character. |
| command101() | Show Text |
| command102() | Show Choices |
| command402() | When [] |
| command403() | When Cancel |
| command103() | Input Number |
| command104() | Select Item |
| command105() | Show Scrolling Text |
| command108() | Comment |
| command109() | Skip |
| command111() | Conditional Branch |
| command411() | Else |
| command112() | Loop |
| command413() | Repeat Above |
| command113() | Break Loop |
| command115() | Exit Event Processing |
| command117() | Common Event |
| command118() | Label |
| command119() | Jump to Label |
| command121() | Control Switches |
| command122() | Control Variables |
| gameDataOperand() | Game data operand. |
| command123() | Control Self Switch |
| command124() | Control Timer |
| command125() | Change Gold |
| command126() | Change Items |
| command127() | Change Weapons |
| command128() | Change Armors |
| command129() | Change Party Member |
| command132() | Change Battle BGM |
| command133() | Change Victory ME |
| command134() | Change Save Access |
| command135() | Change Menu Access |
| command136() | Change Encounter |
| command137() | Change Formation Access |
| command138() | Change Window Color |
| command139() | Change Defeat ME |
| command140() | Change Vehicle BGM |
| command201() | Transfer Player |
| command202() | Set Vehicle Location |
| command203() | Set Event Location |
| command204() | Scroll Map |
| command205() | Set Movement Route |
| command206() | Get on/off Vehicle |
| command211() | Change Transparency |
| command212() | Show Animation |
| command213() | Show Balloon Icon |
| command214() | Erase Event |
| command216() | Change Player Followers |
| command217() | Gather Followers |
| command221() | Fadeout Screen |
| command222() | Fadein Screen |
| command223() | Tint Screen |
| command224() | Flash Screen |
| command225() | Shake Screen |
| command230() | Wait |
| command231() | Show Picture |
| command232() | Move Picture |
| picturePoint() | Picture point. |
| command233() | Rotate Picture |
| command234() | Tint Picture |
| command235() | Erase Picture |
| command236() | Set Weather Effect |
| command241() | Play BGM |
| command242() | Fadeout BGM |
| command243() | Save BGM |
| command244() | Resume BGM |
| command245() | Play BGS |
| command246() | Fadeout BGS |
| command249() | Play ME |
| command250() | Play SE |
| command251() | Stop SE |
| command261() | Play Movie |
| videoFileExt() | The game plays the movie the project has. |
| command281() | Change Map Name Display |
| command282() | Change Tileset |
| command283() | Change Battle Background |
| command284() | Change Parallax |
| command285() | Get Location Info |
| command301() | Battle Processing |
| command601() | If Win |
| command602() | If Escape |
| command603() | If Lose |
| command302() | Shop Processing |
| command303() | Name Input Processing |
| command311() | Change HP |
| command312() | Change MP |
| command326() | Change TP |
| command313() | Change State |
| command314() | Recover All |
| command315() | Change EXP |
| command316() | Change Level |
| command317() | Change Parameter |
| command318() | Change Skill |
| command319() | Change Equipment |
| command320() | Change Name |
| command321() | Change Class |
| command322() | Change Actor Images |
| command323() | Change Vehicle Image |
| command324() | Change Nickname |
| command325() | Change Profile |
| command331() | Change Enemy HP |
| command332() | Change Enemy MP |
| command342() | Change Enemy TP |
| command333() | Change Enemy State |
| command334() | Enemy Recover All |
| command335() | Enemy Appear |
| command336() | Enemy Transform |
| command337() | Show Battle Animation |
| command339() | Force Action |
| command340() | Abort Battle |
| command351() | Open Menu Screen |
| command352() | Open Save Screen |
| command353() | Game Over |
| command354() | Return to Title Screen |
| command355() | Script |
| command356() | Plugin Command MV (deprecated) |
| pluginCommand() | Plugin command. |
| command357() | Plugin Command |
Setup & Creation
initialize
method sourceGame_Interpreter.prototype.initialize(depth)
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
setup
method sourceGame_Interpreter.prototype.setup(list, eventId)
Setup. (Same as the RPG Maker MZ method of this name.)
loadImages
method sourceGame_Interpreter.prototype.loadImages()
Loads the images. (Same as the RPG Maker MZ method of this name.)
setupReservedCommonEvent
method sourceGame_Interpreter.prototype.setupReservedCommonEvent()
Setup reserved common event. (Same as the RPG Maker MZ method of this name.)
setupChoices
method sourceGame_Interpreter.prototype.setupChoices(params)
Setup choices. (Same as the RPG Maker MZ method of this name.)
setupNumInput
method sourceGame_Interpreter.prototype.setupNumInput(params)
Setup num input. (Same as the RPG Maker MZ method of this name.)
setupItemChoice
method sourceGame_Interpreter.prototype.setupItemChoice(params)
Setup item choice. (Same as the RPG Maker MZ method of this name.)
setupChild
method sourceGame_Interpreter.prototype.setupChild(list, eventId)
Setup child. (Same as the RPG Maker MZ method of this name.)
Getting Information
currentCommand
method sourceGame_Interpreter.prototype.currentCommand()
The current command. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
isOnCurrentMap
method sourceGame_Interpreter.prototype.isOnCurrentMap()
Whether it is on current map. (Same as the RPG Maker MZ method of this name.)
isRunning
method sourceGame_Interpreter.prototype.isRunning()
Whether it is running. (Same as the RPG Maker MZ method of this name.)
Actions
clear
method sourceGame_Interpreter.prototype.clear()
Clear. (Same as the RPG Maker MZ method of this name.)
setWaitMode
method sourceGame_Interpreter.prototype.setWaitMode(waitMode)
Sets the wait mode. (Same as the RPG Maker MZ method of this name.)
fadeSpeed
method sourceGame_Interpreter.prototype.fadeSpeed()
Fade speed. (Same as the RPG Maker MZ method of this name.)
executeCommand
method sourceGame_Interpreter.prototype.executeCommand()
Runs the command. (Same as the RPG Maker MZ method of this name.)
changeHp
method sourceGame_Interpreter.prototype.changeHp(target, value, allowDeath)
Changes the hp. (Same as the RPG Maker MZ method of this name.)
jumpTo
method sourceGame_Interpreter.prototype.jumpTo(index)
Jump to. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
update
method sourceGame_Interpreter.prototype.update()
Update. (Same as the RPG Maker MZ method of this name.)
updateChild
method sourceGame_Interpreter.prototype.updateChild()
Updates the child each frame. (Same as the RPG Maker MZ method of this name.)
updateWait
method sourceGame_Interpreter.prototype.updateWait()
Updates the wait each frame. (Same as the RPG Maker MZ method of this name.)
updateWaitCount
method sourceGame_Interpreter.prototype.updateWaitCount()
Updates the wait count each frame. (Same as the RPG Maker MZ method of this name.)
updateWaitMode
method sourceGame_Interpreter.prototype.updateWaitMode()
Updates the wait mode each frame. (Same as the RPG Maker MZ method of this name.)
Other
checkOverflow
method sourceGame_Interpreter.prototype.checkOverflow()
Check overflow. (Same as the RPG Maker MZ method of this name.)
eventId
method sourceGame_Interpreter.prototype.eventId()
Event id. (Same as the RPG Maker MZ method of this name.)
wait
method sourceGame_Interpreter.prototype.wait(duration)
Wait. (Same as the RPG Maker MZ method of this name.)
checkFreeze
method sourceGame_Interpreter.prototype.checkFreeze()
Check freeze. (Same as the RPG Maker MZ method of this name.)
terminate
method sourceGame_Interpreter.prototype.terminate()
Terminate. (Same as the RPG Maker MZ method of this name.)
skipBranch
method sourceGame_Interpreter.prototype.skipBranch()
Skip branch. (Same as the RPG Maker MZ method of this name.)
nextEventCode
method sourceGame_Interpreter.prototype.nextEventCode()
Next event code. (Same as the RPG Maker MZ method of this name.)
iterateActorId
method sourceGame_Interpreter.prototype.iterateActorId(param, callback)
Iterate actor id. (Same as the RPG Maker MZ method of this name.)
iterateActorEx
method sourceGame_Interpreter.prototype.iterateActorEx(param1, param2, callback)
Iterate actor ex. (Same as the RPG Maker MZ method of this name.)
iterateActorIndex
method sourceGame_Interpreter.prototype.iterateActorIndex(param, callback)
Iterate actor index. (Same as the RPG Maker MZ method of this name.)
iterateEnemyIndex
method sourceGame_Interpreter.prototype.iterateEnemyIndex(param, callback)
Iterate enemy index. (Same as the RPG Maker MZ method of this name.)
iterateBattler
method sourceGame_Interpreter.prototype.iterateBattler(param1, param2, callback)
Iterate battler. (Same as the RPG Maker MZ method of this name.)
character
method sourceGame_Interpreter.prototype.character(param)
Character. (Same as the RPG Maker MZ method of this name.)
command101
method sourceGame_Interpreter.prototype.command101(params)
Show Text
command102
method sourceGame_Interpreter.prototype.command102(params)
Show Choices
command402
method sourceGame_Interpreter.prototype.command402(params)
When []
command403
method sourceGame_Interpreter.prototype.command403()
When Cancel
command103
method sourceGame_Interpreter.prototype.command103(params)
Input Number
command104
method sourceGame_Interpreter.prototype.command104(params)
Select Item
command105
method sourceGame_Interpreter.prototype.command105(params)
Show Scrolling Text
command108
method sourceGame_Interpreter.prototype.command108(params)
Comment
command109
method sourceGame_Interpreter.prototype.command109()
Skip
command111
method sourceGame_Interpreter.prototype.command111(params)
Conditional Branch
command411
method sourceGame_Interpreter.prototype.command411()
Else
command112
method sourceGame_Interpreter.prototype.command112()
Loop
command413
method sourceGame_Interpreter.prototype.command413()
Repeat Above
command113
method sourceGame_Interpreter.prototype.command113()
Break Loop
command115
method sourceGame_Interpreter.prototype.command115()
Exit Event Processing
command117
method sourceGame_Interpreter.prototype.command117(params)
Common Event
command118
method sourceGame_Interpreter.prototype.command118()
Label
command119
method sourceGame_Interpreter.prototype.command119(params)
Jump to Label
command121
method sourceGame_Interpreter.prototype.command121(params)
Control Switches
command122
method sourceGame_Interpreter.prototype.command122(params)
Control Variables
gameDataOperand
method sourceGame_Interpreter.prototype.gameDataOperand(type, param1, param2)
Game data operand. (Same as the RPG Maker MZ method of this name.)
command123
method sourceGame_Interpreter.prototype.command123(params)
Control Self Switch
command124
method sourceGame_Interpreter.prototype.command124(params)
Control Timer
command125
method sourceGame_Interpreter.prototype.command125(params)
Change Gold
command126
method sourceGame_Interpreter.prototype.command126(params)
Change Items
command127
method sourceGame_Interpreter.prototype.command127(params)
Change Weapons
command128
method sourceGame_Interpreter.prototype.command128(params)
Change Armors
command129
method sourceGame_Interpreter.prototype.command129(params)
Change Party Member
command132
method sourceGame_Interpreter.prototype.command132(params)
Change Battle BGM
command133
method sourceGame_Interpreter.prototype.command133(params)
Change Victory ME
command134
method sourceGame_Interpreter.prototype.command134(params)
Change Save Access
command135
method sourceGame_Interpreter.prototype.command135(params)
Change Menu Access
command136
method sourceGame_Interpreter.prototype.command136(params)
Change Encounter
command137
method sourceGame_Interpreter.prototype.command137(params)
Change Formation Access
command138
method sourceGame_Interpreter.prototype.command138(params)
Change Window Color
command139
method sourceGame_Interpreter.prototype.command139(params)
Change Defeat ME
command140
method sourceGame_Interpreter.prototype.command140(params)
Change Vehicle BGM
command201
method sourceGame_Interpreter.prototype.command201(params)
Transfer Player
command202
method sourceGame_Interpreter.prototype.command202(params)
Set Vehicle Location
command203
method sourceGame_Interpreter.prototype.command203(params)
Set Event Location
command204
method sourceGame_Interpreter.prototype.command204(params)
Scroll Map
command205
method sourceGame_Interpreter.prototype.command205(params)
Set Movement Route
command206
method sourceGame_Interpreter.prototype.command206()
Get on/off Vehicle
command211
method sourceGame_Interpreter.prototype.command211(params)
Change Transparency
command212
method sourceGame_Interpreter.prototype.command212(params)
Show Animation
command213
method sourceGame_Interpreter.prototype.command213(params)
Show Balloon Icon
command214
method sourceGame_Interpreter.prototype.command214()
Erase Event
command216
method sourceGame_Interpreter.prototype.command216(params)
Change Player Followers
command217
method sourceGame_Interpreter.prototype.command217()
Gather Followers
command221
method sourceGame_Interpreter.prototype.command221()
Fadeout Screen
command222
method sourceGame_Interpreter.prototype.command222()
Fadein Screen
command223
method sourceGame_Interpreter.prototype.command223(params)
Tint Screen
command224
method sourceGame_Interpreter.prototype.command224(params)
Flash Screen
command225
method sourceGame_Interpreter.prototype.command225(params)
Shake Screen
command230
method sourceGame_Interpreter.prototype.command230(params)
Wait
command231
method sourceGame_Interpreter.prototype.command231(params)
Show Picture
command232
method sourceGame_Interpreter.prototype.command232(params)
Move Picture
picturePoint
method sourceGame_Interpreter.prototype.picturePoint(params)
Picture point. (Same as the RPG Maker MZ method of this name.)
command233
method sourceGame_Interpreter.prototype.command233(params)
Rotate Picture
command234
method sourceGame_Interpreter.prototype.command234(params)
Tint Picture
command235
method sourceGame_Interpreter.prototype.command235(params)
Erase Picture
command236
method sourceGame_Interpreter.prototype.command236(params)
Set Weather Effect
command241
method sourceGame_Interpreter.prototype.command241(params)
Play BGM
command242
method sourceGame_Interpreter.prototype.command242(params)
Fadeout BGM
command243
method sourceGame_Interpreter.prototype.command243()
Save BGM
command244
method sourceGame_Interpreter.prototype.command244()
Resume BGM
command245
method sourceGame_Interpreter.prototype.command245(params)
Play BGS
command246
method sourceGame_Interpreter.prototype.command246(params)
Fadeout BGS
command249
method sourceGame_Interpreter.prototype.command249(params)
Play ME
command250
method sourceGame_Interpreter.prototype.command250(params)
Play SE
command251
method sourceGame_Interpreter.prototype.command251()
Stop SE
command261
method sourceGame_Interpreter.prototype.command261(params)
Play Movie
videoFileExt
method sourceGame_Interpreter.prototype.videoFileExt(name)
The game plays the movie the project has.
Details
The game plays the movie the project has. The stock rule asks for .webm wherever webm can play, which is everywhere here, so a project's .mp4 stopped on the load error screen. With the files known (on disk under NW.js, the file index of a web build) the extension is the one the file has, and a name written with its extension plays as written. Unknown, or called without a name as a plugin does, it is the stock rule.
command281
method sourceGame_Interpreter.prototype.command281(params)
Change Map Name Display
command282
method sourceGame_Interpreter.prototype.command282(params)
Change Tileset
command283
method sourceGame_Interpreter.prototype.command283(params)
Change Battle Background
command284
method sourceGame_Interpreter.prototype.command284(params)
Change Parallax
command285
method sourceGame_Interpreter.prototype.command285(params)
Get Location Info
command301
method sourceGame_Interpreter.prototype.command301(params)
Battle Processing
command601
method sourceGame_Interpreter.prototype.command601()
If Win
command602
method sourceGame_Interpreter.prototype.command602()
If Escape
command603
method sourceGame_Interpreter.prototype.command603()
If Lose
command302
method sourceGame_Interpreter.prototype.command302(params)
Shop Processing
command303
method sourceGame_Interpreter.prototype.command303(params)
Name Input Processing
command311
method sourceGame_Interpreter.prototype.command311(params)
Change HP
command312
method sourceGame_Interpreter.prototype.command312(params)
Change MP
command326
method sourceGame_Interpreter.prototype.command326(params)
Change TP
command313
method sourceGame_Interpreter.prototype.command313(params)
Change State
command314
method sourceGame_Interpreter.prototype.command314(params)
Recover All
command315
method sourceGame_Interpreter.prototype.command315(params)
Change EXP
command316
method sourceGame_Interpreter.prototype.command316(params)
Change Level
command317
method sourceGame_Interpreter.prototype.command317(params)
Change Parameter
command318
method sourceGame_Interpreter.prototype.command318(params)
Change Skill
command319
method sourceGame_Interpreter.prototype.command319(params)
Change Equipment
command320
method sourceGame_Interpreter.prototype.command320(params)
Change Name
command321
method sourceGame_Interpreter.prototype.command321(params)
Change Class
command322
method sourceGame_Interpreter.prototype.command322(params)
Change Actor Images
command323
method sourceGame_Interpreter.prototype.command323(params)
Change Vehicle Image
command324
method sourceGame_Interpreter.prototype.command324(params)
Change Nickname
command325
method sourceGame_Interpreter.prototype.command325(params)
Change Profile
command331
method sourceGame_Interpreter.prototype.command331(params)
Change Enemy HP
command332
method sourceGame_Interpreter.prototype.command332(params)
Change Enemy MP
command342
method sourceGame_Interpreter.prototype.command342(params)
Change Enemy TP
command333
method sourceGame_Interpreter.prototype.command333(params)
Change Enemy State
command334
method sourceGame_Interpreter.prototype.command334(params)
Enemy Recover All
command335
method sourceGame_Interpreter.prototype.command335(params)
Enemy Appear
command336
method sourceGame_Interpreter.prototype.command336(params)
Enemy Transform
command337
method sourceGame_Interpreter.prototype.command337(params)
Show Battle Animation
command339
method sourceGame_Interpreter.prototype.command339(params)
Force Action
command340
method sourceGame_Interpreter.prototype.command340()
Abort Battle
command351
method sourceGame_Interpreter.prototype.command351()
Open Menu Screen
command352
method sourceGame_Interpreter.prototype.command352()
Open Save Screen
command353
method sourceGame_Interpreter.prototype.command353()
Game Over
command354
method sourceGame_Interpreter.prototype.command354()
Return to Title Screen
command355
method sourceGame_Interpreter.prototype.command355()
Script
command356
method sourceGame_Interpreter.prototype.command356(params)
Plugin Command MV (deprecated)
pluginCommand
method sourceGame_Interpreter.prototype.pluginCommand()
Plugin command. (Same as the RPG Maker MZ method of this name.)
command357
method sourceGame_Interpreter.prototype.command357(params)
Plugin Command