Link Search Menu Expand Document

Game_Interpreter.d overview


Table of contents


utils

Game_Interpreter (class)

Game_Interpreter

The interpreter for running event commands.

Signature

export declare class Game_Interpreter {
  constructor(depth?: number)
}

checkOverflow (method)

Signature

checkOverflow(): void

clear (method)

Signature

clear(): void

setup (method)

Signature

setup(list: DataCommand[], eventId?: EventID): void

loadImages (method)

Signature

loadImages(): void

eventId (method)

Signature

eventId(): number

isOnCurrentMap (method)

Signature

isOnCurrentMap(): boolean

setupReservedCommonEvent (method)

Signature

setupReservedCommonEvent(): boolean

isRunning (method)

Signature

isRunning(): boolean

update (method)

Signature

update(): void

updateChild (method)

Signature

updateChild(): boolean

updateWait (method)

Signature

updateWait(): boolean | null

updateWaitCount (method)

Signature

updateWaitCount(): boolean

updateWaitMode (method)

Signature

updateWaitMode(): boolean | null

setWaitMode (method)

Signature

setWaitMode(waitMode: WaitMode): void

wait (method)

Signature

wait(duration: number): void

fadeSpeed (method)

Signature

fadeSpeed(): number

executeCommand (method)

Signature

executeCommand(): boolean

checkFreeze (method)

Signature

checkFreeze(): boolean

terminate (method)

Signature

terminate(): void

skipBranch (method)

Signature

skipBranch(): void

currentCommand (method)

Signature

currentCommand<T extends CommandCode>(): ExtractDataCommand<T>

nextEventCode (method)

Signature

nextEventCode():
    | 0
    | 1
    | 16
    | 2
    | 3
    | 4
    | 5
    | 113
    | 115
    | 12
    | 15
    | 20
    | 30
    | 128
    | 8
    | 7
    | 6
    | 10
    | 9
    | 24
    | 40
    | 32
    | 26
    | 13
    | 17
    | 18
    | 27
    | 33
    | 34
    | 37
    | 38
    | 39
    | 45
    | 102
    | 104
    | 14
    | 36
    | 11
    | 21
    | 22
    | 23
    | 31
    | 35
    | 41
    | 42
    | 43
    | 44
    | 19
    | 25
    | 28
    | 29
    | 101
    | 401
    | 402
    | 403
    | 103
    | 105
    | 405
    | 108
    | 408
    | 109
    | 111
    | 411
    | 112
    | 413
    | 117
    | 118
    | 119
    | 121
    | 122
    | 123
    | 124
    | 125
    | 126
    | 127
    | 129
    | 132
    | 133
    | 134
    | 135
    | 136
    | 137
    | 138
    | 139
    | 140
    | 201
    | 202
    | 203
    | 204
    | 205
    | 505
    | 206
    | 211
    | 212
    | 213
    | 214
    | 216
    | 217
    | 221
    | 222
    | 223
    | 224
    | 225
    | 230
    | 231
    | 232
    | 233
    | 234
    | 235
    | 236
    | 241
    | 242
    | 243
    | 244
    | 245
    | 246
    | 249
    | 250
    | 251
    | 261
    | 281
    | 282
    | 283
    | 284
    | 285
    | 301
    | 601
    | 602
    | 603
    | 302
    | 605
    | 303
    | 311
    | 312
    | 326
    | 313
    | 314
    | 315
    | 316
    | 317
    | 318
    | 319
    | 320
    | 321
    | 322
    | 323
    | 324
    | 325
    | 331
    | 332
    | 342
    | 333
    | 334
    | 335
    | 336
    | 337
    | 339
    | 340
    | 351
    | 352
    | 353
    | 354
    | 355
    | 655
    | 356
    | 357

iterateActorId (method)

Signature

iterateActorId(param: ActorID, callback: (actor: Game_Actor) => void): void

iterateActorEx (method)

Signature

iterateActorEx(param1: 0 | 1, param2: ActorID | VariableID, callback: (actor: Game_Actor) => void): void

iterateActorIndex (method)

Signature

iterateActorIndex(param: number, callback: (actor: Game_Actor) => void): void

iterateEnemyIndex (method)

Signature

iterateEnemyIndex(param: number, callback: (enemy: Game_Enemy) => void): void

iterateBattler (method)

Signature

iterateBattler(param1: 0 | 1, param2: EnemyID | ActorID, callback: (battler: ActionTarget) => void): void

character (method)

Signature

character(param: CharacterID): Game_Character | null

operateValue (method)

Signature

operateValue(operation: ValueOperation, operandType: 0 | 1, operand: number | VariableID): number

changeHp (method)

Signature

changeHp(target: ActionTarget, value: number, allowDeath: boolean): void

command101 (method)

Signature

command101(params: CommandParams<101>): boolean

command102 (method)

Signature

command102(params: CommandParams<102>): boolean

setupChoices (method)

Signature

setupChoices(params: CommandParams<102>): void

command402 (method)

Signature

command402(params: CommandParams<402>): boolean

command403 (method)

Signature

command403(): boolean

command103 (method)

Signature

command103(params: CommandParams<103>): boolean

setupNumInput (method)

Signature

setupNumInput(params: CommandParams<103>): void

command104 (method)

Signature

command104(params: CommandParams<104>): boolean

setupItemChoice (method)

Signature

setupItemChoice(params: CommandParams<104>): void

command105 (method)

Signature

command105(params: CommandParams<105>): boolean

command108 (method)

Signature

command108(params: CommandParams<108>): boolean

command109 (method)

Signature

command109(): boolean

command111 (method)

Signature

command111(params: CommandParams<111>): boolean

command411 (method)

Signature

command411(): boolean

command112 (method)

Signature

command112(): boolean

command413 (method)

Signature

command413(): boolean

command113 (method)

Signature

command113(): boolean

command115 (method)

Signature

command115(): boolean

command117 (method)

Signature

command117(params: CommandParams<117>): boolean

setupChild (method)

Signature

setupChild(list: DataCommand[], eventId: EventID): void

command118 (method)

Signature

command118(): boolean

command119 (method)

Signature

command119(params: CommandParams<119>): boolean

jumpTo (method)

Signature

jumpTo(index: number): void

command121 (method)

Signature

command121(params: CommandParams<121>): boolean

command122 (method)

Signature

command122(params: CommandParams<122>): boolean

gameDataOperand (method)

Signature

gameDataOperand(type: number, param1: number, param2?: number): number

operateVariable (method)

Signature

operateVariable(variableId: VariableID, operationType: VariableOperationType, value: number): void

command123 (method)

Signature

command123(params: CommandParams<123>): boolean

command124 (method)

Signature

command124(params: CommandParams<124>): boolean

command125 (method)

Signature

command125(params: CommandParams<125>): boolean

command126 (method)

Signature

command126(params: CommandParams<126>): boolean

command127 (method)

Signature

command127(params: CommandParams<127>): boolean

command128 (method)

Signature

command128(params: CommandParams<128>): boolean

command129 (method)

Signature

command129(params: CommandParams<129>): boolean

command132 (method)

Signature

command132(params: CommandParams<132>): boolean

command133 (method)

Signature

command133(params: CommandParams<133>): boolean

command134 (method)

Signature

command134(params: CommandParams<134>): boolean

command135 (method)

Signature

command135(params: CommandParams<135>): boolean

command136 (method)

Signature

command136(params: CommandParams<136>): boolean

command137 (method)

Signature

command137(params: CommandParams<137>): boolean

command138 (method)

Signature

command138(params: CommandParams<138>): boolean

command139 (method)

Signature

command139(params: CommandParams<139>): boolean

command140 (method)

Signature

command140(params: CommandParams<140>): boolean

command201 (method)

Signature

command201(params: CommandParams<201>): boolean

command202 (method)

Signature

command202(params: CommandParams<202>): boolean

command203 (method)

Signature

command203(params: CommandParams<203>): boolean

command204 (method)

Signature

command204(params: CommandParams<204>): boolean

command205 (method)

Signature

command205(params: CommandParams<205>): boolean

command206 (method)

Signature

command206(): boolean

command211 (method)

Signature

command211(params: CommandParams<211>): boolean

command212 (method)

Signature

command212(params: CommandParams<212>): boolean

command213 (method)

Signature

command213(params: CommandParams<213>): boolean

command214 (method)

Signature

command214(): boolean

command216 (method)

Signature

command216(params: CommandParams<216>): boolean

command217 (method)

Signature

command217(): boolean

command221 (method)

Signature

command221(): boolean

command222 (method)

Signature

command222(): boolean

command223 (method)

Signature

command223(params: CommandParams<223>): boolean

command224 (method)

Signature

command224(params: CommandParams<224>): boolean

command225 (method)

Signature

command225(params: CommandParams<225>): boolean

command230 (method)

Signature

command230(params: CommandParams<230>): boolean

command231 (method)

Signature

command231(params: CommandParams<231>): boolean

command232 (method)

Signature

command232(params: CommandParams<232>): boolean

picturePoint (method)

Signature

picturePoint(params: CommandParams<231 | 232>): Point

command233 (method)

Signature

command233(params: CommandParams<233>): boolean

command234 (method)

Signature

command234(params: CommandParams<234>): boolean

command235 (method)

Signature

command235(params: CommandParams<235>): boolean

command236 (method)

Signature

command236(params: CommandParams<236>): boolean

command241 (method)

Signature

command241(params: CommandParams<241>): boolean

command242 (method)

Signature

command242(params: CommandParams<242>): boolean

command243 (method)

Signature

command243(): boolean

command244 (method)

Signature

command244(): boolean

command245 (method)

Signature

command245(params: CommandParams<245>): boolean

command246 (method)

Signature

command246(params: CommandParams<246>): boolean

command249 (method)

Signature

command249(params: CommandParams<249>): boolean

command250 (method)

Signature

command250(params: CommandParams<250>): boolean

command251 (method)

Signature

command251(): boolean

command261 (method)

Signature

command261(params: CommandParams<261>): boolean

videoFileExt (method)

Signature

videoFileExt(): ".webm" | ".mp4"

command281 (method)

Signature

command281(params: CommandParams<281>): boolean

command282 (method)

Signature

command282(params: CommandParams<282>): boolean

command283 (method)

Signature

command283(params: CommandParams<283>): boolean

command284 (method)

Signature

command284(params: CommandParams<284>): boolean

command285 (method)

Signature

command285(params: CommandParams<285>): boolean

command301 (method)

Signature

command301(params: CommandParams<301>): boolean

command601 (method)

Signature

command601(): boolean

command602 (method)

Signature

command602(): boolean

command603 (method)

Signature

command603(): boolean

command302 (method)

Signature

command302(params: CommandParams<302>): boolean

command303 (method)

Signature

command303(params: CommandParams<303>): boolean

command311 (method)

Signature

command311(params: CommandParams<311>): boolean

command312 (method)

Signature

command312(params: CommandParams<312>): boolean

command326 (method)

Signature

command326(params: CommandParams<326>): boolean

command313 (method)

Signature

command313(params: CommandParams<313>): boolean

command314 (method)

Signature

command314(params: CommandParams<314>): boolean

command315 (method)

Signature

command315(params: CommandParams<315>): boolean

command316 (method)

Signature

command316(params: CommandParams<316>): boolean

command317 (method)

Signature

command317(params: CommandParams<317>): boolean

command318 (method)

Signature

command318(params: CommandParams<318>): boolean

command319 (method)

Signature

command319(params: CommandParams<319>): boolean

command320 (method)

Signature

command320(params: CommandParams<320>): boolean

command321 (method)

Signature

command321(params: CommandParams<321>): boolean

command322 (method)

Signature

command322(params: CommandParams<322>): boolean

command323 (method)

Signature

command323(params: CommandParams<323>): boolean

command324 (method)

Signature

command324(params: CommandParams<324>): boolean

command325 (method)

Signature

command325(params: CommandParams<325>): boolean

command331 (method)

Signature

command331(params: CommandParams<331>): boolean

command332 (method)

Signature

command332(params: CommandParams<332>): boolean

command342 (method)

Signature

command342(params: CommandParams<342>): boolean

command333 (method)

Signature

command333(params: CommandParams<333>): boolean

command334 (method)

Signature

command334(params: CommandParams<334>): boolean

command335 (method)

Signature

command335(params: CommandParams<335>): boolean

command336 (method)

Signature

command336(params: CommandParams<336>): boolean

command337 (method)

Signature

command337(params: CommandParams<337>): boolean

command339 (method)

Signature

command339(params: CommandParams<339>): boolean

command340 (method)

Signature

command340(): boolean

command351 (method)

Signature

command351(): boolean

command352 (method)

Signature

command352(): boolean

command353 (method)

Signature

command353(): boolean

command354 (method)

Signature

command354(): boolean

command355 (method)

Signature

command355(): boolean

command356 (method)

Signature

command356(params: CommandParams<356>): boolean

pluginCommand (method)

Signature

pluginCommand(_command: string, _args: string[]): void

command357 (method)

Signature

command357(params: CommandParams<357>): boolean

_depth (property)

Signature

_depth: number

_branch (property)

Signature

_branch: Record<number, number | boolean | null>

_indent (property)

Signature

_indent: number

_frameCount (property)

Signature

_frameCount: number

_freezeChecker (property)

Signature

_freezeChecker: number

_mapId (property)

Signature

_mapId: number

_eventId (property)

Signature

_eventId: number

_list (property)

Signature

_list: DataCommand[] | null

_index (property)

Signature

_index: number

_waitCount (property)

Signature

_waitCount: number

_waitMode (property)

Signature

_waitMode: WaitMode

_comments (property)

Signature

_comments: string | string[]

_characterId (property)

Signature

_characterId: number

_childInterpreter (property)

Signature

_childInterpreter: Game_Interpreter | null