Class: Game_Interpreter

Game_Interpreter(depth)

new Game_Interpreter(depth)

The interpreter for running event commands.
Parameters:
Name Type Description
depth Number

Methods

(static) requestImages(list, commonList)

Parameters:
Name Type Description
list Array.<RPG.EventCommand>
commonList Array.<*>

changeHp(target, value, allowDeath)

Parameters:
Name Type Description
target Number
value Number
allowDeath Number

character(param) → {Game_Character}

Parameters:
Name Type Description
param Number
Returns:
Type
Game_Character

checkFreeze() → {Boolean}

Checks if the interpreter has frozen.
Returns:
Type
Boolean

checkOverflow()

clear()

Clears the interpreter.

command101() → {Boolean}

Show Text
Returns:
Type
Boolean

command102() → {Boolean}

Show Choices
Returns:
Type
Boolean

command103() → {Boolean}

Input Number
Returns:
Type
Boolean

command104() → {Boolean}

Select Item
Returns:
Type
Boolean

command105() → {Boolean}

Show Scrolling Text
Returns:
Type
Boolean

command108() → {Boolean}

Comment
Returns:
Type
Boolean

command111() → {Boolean}

Conditional Branch
Returns:
Type
Boolean

command112() → {Boolean}

Loop
Returns:
Type
Boolean

command113() → {Boolean}

Break Loop
Returns:
Type
Boolean

command115() → {Boolean}

Exit Event Processing
Returns:
Type
Boolean

command117() → {Boolean}

Common Event
Returns:
Type
Boolean

command118() → {Boolean}

Label
Returns:
Type
Boolean

command119() → {Boolean}

Jump to Label
Returns:
Type
Boolean

command121() → {Boolean}

Control Switches
Returns:
Type
Boolean

command122() → {Boolean}

Control Variables
Returns:
Type
Boolean

command123() → {Boolean}

Control Self Switch
Returns:
Type
Boolean

command124() → {Boolean}

Control Timer
Returns:
Type
Boolean

command125() → {Boolean}

Change Gold
Returns:
Type
Boolean

command126() → {Boolean}

Change Items
Returns:
Type
Boolean

command127() → {Boolean}

Change Weapons
Returns:
Type
Boolean

command128() → {Boolean}

Change Armors
Returns:
Type
Boolean

command129() → {Boolean}

Change Party Member
Returns:
Type
Boolean

command132() → {Boolean}

Change Battle BGM
Returns:
Type
Boolean

command133() → {Boolean}

Change Victory ME
Returns:
Type
Boolean

command134() → {Boolean}

Change Save Access
Returns:
Type
Boolean

command135() → {Boolean}

Change Menu Access
Returns:
Type
Boolean

command136() → {Boolean}

Change Encounter Disable
Returns:
Type
Boolean

command137() → {Boolean}

Change Formation Access
Returns:
Type
Boolean

command138() → {Boolean}

Change Window Color
Returns:
Type
Boolean

command139() → {Boolean}

Change Defeat ME
Returns:
Type
Boolean

command140() → {Boolean}

Change Vehicle BGM
Returns:
Type
Boolean

command201() → {Boolean}

Transfer Player
Returns:
Type
Boolean

command202() → {Boolean}

Set Vehicle Location
Returns:
Type
Boolean

command203() → {Boolean}

Set Event Location
Returns:
Type
Boolean

command204() → {Boolean}

Set Scroll Map
Returns:
Type
Boolean

command205() → {Boolean}

Set Movement Route
Returns:
Type
Boolean

command206() → {Boolean}

Getting On and Off Vehicles
Returns:
Type
Boolean

command211() → {Boolean}

Change Transparency
Returns:
Type
Boolean

command212() → {Boolean}

Show Animation
Returns:
Type
Boolean

command213() → {Boolean}

Show Balloon Icon
Returns:
Type
Boolean

command214() → {Boolean}

Erase Event
Returns:
Type
Boolean

command216() → {Boolean}

Change Player Followers
Returns:
Type
Boolean

command217() → {Boolean}

Gather Followers
Returns:
Type
Boolean

command221() → {Boolean}

Fadeout Screen
Returns:
Type
Boolean

command222() → {Boolean}

Fadein Screen
Returns:
Type
Boolean

command223() → {Boolean}

Tint Screen
Returns:
Type
Boolean

command224() → {Boolean}

Flash Screen
Returns:
Type
Boolean

command225() → {Boolean}

Shake Screen
Returns:
Type
Boolean

command230() → {Boolean}

Wait
Returns:
Type
Boolean

command231() → {Boolean}

Show Picture
Returns:
Type
Boolean

command232() → {Boolean}

Move Picture
Returns:
Type
Boolean

command233() → {Boolean}

Rotate Picture
Returns:
Type
Boolean

command234() → {Boolean}

Tint Picture
Returns:
Type
Boolean

command235() → {Boolean}

Erase Picture
Returns:
Type
Boolean

command236() → {Boolean}

Set Weather Effect
Returns:
Type
Boolean

command241() → {Boolean}

Play BGM
Returns:
Type
Boolean

command242() → {Boolean}

Fadeout BGM
Returns:
Type
Boolean

command243() → {Boolean}

Save BGM
Returns:
Type
Boolean

command244() → {Boolean}

Resume BGM
Returns:
Type
Boolean

command245() → {Boolean}

Play BGS
Returns:
Type
Boolean

command246() → {Boolean}

Fadeout BGS
Returns:
Type
Boolean

command249() → {Boolean}

Play ME
Returns:
Type
Boolean

command250() → {Boolean}

Play SE
Returns:
Type
Boolean

command251() → {Boolean}

Stop SE
Returns:
Type
Boolean

command261() → {Boolean}

Play Movie
Returns:
Type
Boolean

command281() → {Boolean}

Change Map Name Display
Returns:
Type
Boolean

command282() → {Boolean}

Change Tileset
Returns:
Type
Boolean

command283() → {Boolean}

Change Battle Back
Returns:
Type
Boolean

command284() → {Boolean}

Change Parallax
Returns:
Type
Boolean

command285() → {Boolean}

Get Location Info
Returns:
Type
Boolean

command301() → {Boolean}

Battle Processing
Returns:
Type
Boolean

command302() → {Boolean}

Shop Processing
Returns:
Type
Boolean

command303() → {Boolean}

Name Input Processing
Returns:
Type
Boolean

command311() → {Boolean}

Change HP
Returns:
Type
Boolean

command312() → {Boolean}

Change MP
Returns:
Type
Boolean

command313() → {Boolean}

Change State
Returns:
Type
Boolean

command314() → {Boolean}

Recover All
Returns:
Type
Boolean

command315() → {Boolean}

Change EXP
Returns:
Type
Boolean

command316() → {Boolean}

Change Level
Returns:
Type
Boolean

command317() → {Boolean}

Change Parameter
Returns:
Type
Boolean

command318() → {Boolean}

Change Skill
Returns:
Type
Boolean

command319() → {Boolean}

Change Equipment
Returns:
Type
Boolean

command320() → {Boolean}

Change Name
Returns:
Type
Boolean

command321() → {Boolean}

Change Class
Returns:
Type
Boolean

command322() → {Boolean}

Change Actor Images
Returns:
Type
Boolean

command323() → {Boolean}

Change Vehicle Image
Returns:
Type
Boolean

command324() → {Boolean}

Change Nickname
Returns:
Type
Boolean

command325() → {Boolean}

Change Profile
Returns:
Type
Boolean

command326() → {Boolean}

Change TP
Returns:
Type
Boolean

command331() → {Boolean}

Change Enemy HP
Returns:
Type
Boolean

command332() → {Boolean}

Change Enemy MP
Returns:
Type
Boolean

command333() → {Boolean}

Change Enemy State
Returns:
Type
Boolean

command334() → {Boolean}

Enemy Recover All
Returns:
Type
Boolean

command335() → {Boolean}

Enemy Appear
Returns:
Type
Boolean

command336() → {Boolean}

Enemy Transform
Returns:
Type
Boolean

command337() → {Boolean}

Show Battle Animation
Returns:
Type
Boolean

command339() → {Boolean}

Force Action
Returns:
Type
Boolean

command340() → {Boolean}

Abort Battle
Returns:
Type
Boolean

command342() → {Boolean}

Change Enemy TP
Returns:
Type
Boolean

command351() → {Boolean}

Open Menu Screen
Returns:
Type
Boolean

command352() → {Boolean}

Open Save Screen
Returns:
Type
Boolean

command353() → {Boolean}

Game Over
Returns:
Type
Boolean

command354() → {Boolean}

Return to Title Screen
Returns:
Type
Boolean

command355() → {Boolean}

Script
Returns:
Type
Boolean

command356() → {Boolean}

Plugin Command
Returns:
Type
Boolean

command402() → {Boolean}

When [**]
Returns:
Type
Boolean

command403() → {Boolean}

When Cancel
Returns:
Type
Boolean

command411() → {Boolean}

Else
Returns:
Type
Boolean

command413() → {Boolean}

Repeat Above
Returns:
Type
Boolean

command601() → {Boolean}

If Win
Returns:
Type
Boolean

command602() → {Boolean}

If Escape
Returns:
Type
Boolean

command603() → {Boolean}

If Lose
Returns:
Type
Boolean

currentCommand() → {RPG.EventCommand}

Returns the current event command.
Returns:
Type
RPG.EventCommand

eventId() → {Number}

Returns the currrent eventId.
Returns:
Type
Number

executeCommand() → {Boolean}

Executes the event command; returns true or false based on execution.
Returns:
Type
Boolean

fadeSpeed() → {Number}

Returns:
Type
Number

gameDataOperand(type, param1, param2) → {Number}

Parameters:
Name Type Description
type Number
param1 Number
param2 Number
Returns:
Type
Number

initialize()

isRunning() → {Boolean}

Returns true if the interpreter is running.
Returns:
Type
Boolean

iterateActorEx(param1, param2, callback)

Parameters:
Name Type Description
param1 Number
param2 Number
callback function

iterateActorId(param, callback)

Parameters:
Name Type Description
param Number
callback function

iterateActorIndex(param, callback)

Parameters:
Name Type Description
param Number
callback function

iterateBattler(param1, param2, callback)

Parameters:
Name Type Description
param1 Number
param2 Number
callback function

iterateEnemyIndex(param, callback)

Parameters:
Name Type Description
param Number
callback function

jumpTo(index)

Parameters:
Name Type Description
index Number

nextEventCode() → {Number}

Returns the next event code.
Returns:
Type
Number

operateValue(operation, operandType, operand) → {Number}

Parameters:
Name Type Description
operation Number
operandType Number
operand Number
Returns:
Type
Number

operateVariable(variableId, operationType, value)

Parameters:
Name Type Description
variableId Number
operationType Number
value Number

pluginCommand(command, args)

to be overridden by plugins
Parameters:
Name Type Description
command String
args Array.<string>

setup(list, eventId)

Sets up the interpreter with the list of event commands, and the given event Id.
Parameters:
Name Type Description
list Array.<RPG.EventCommand>
eventId Number

setupChild(list, eventId)

Parameters:
Name Type Description
list Array.<RPG.EventCommand>
eventId Number

setupChoices(params)

Parameters:
Name Type Description
params Array.<*>

setupItemChoice(params)

Parameters:
Name Type Description
params Array.<number>

setupNumInput(params)

Parameters:
Name Type Description
params Array.<number>

setupReservedCommonEvent() → {Boolean}

Returns true if the event is on the current map.
Returns:
Type
Boolean

setWaitMode(waitMode)

Sets the wait mode of the interpreter.
Parameters:
Name Type Description
waitMode String

skipBranch()

Skips a conditional branch on the interpreter.

terminate()

Terminates the game interpreter.

update()

updateChild() → {Boolean}

Updates the child game interpreter.
Returns:
Type
Boolean

updateWait() → {Boolean}

Updates the wait of the game interpreter.
Returns:
Type
Boolean

updateWaitCount() → {Boolean}

Returns:
Type
Boolean

updateWaitMode() → {Boolean}

Returns:
Type
Boolean

videoFileExt() → {String}

Returns:
Type
String

wait(duration)

sets a specified wait duration for the interpreter.
Parameters:
Name Type Description
duration Number