rpgmaker-mz-mcp 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +425 -0
  3. package/dist/events/commandBuilders.d.ts +405 -0
  4. package/dist/events/commandBuilders.d.ts.map +1 -0
  5. package/dist/events/commandBuilders.js +554 -0
  6. package/dist/events/commandBuilders.js.map +1 -0
  7. package/dist/index.d.ts +3 -0
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +105 -0
  10. package/dist/index.js.map +1 -0
  11. package/dist/registry.d.ts +81 -0
  12. package/dist/registry.d.ts.map +1 -0
  13. package/dist/registry.js +49 -0
  14. package/dist/registry.js.map +1 -0
  15. package/dist/tiles/autotile.d.ts +65 -0
  16. package/dist/tiles/autotile.d.ts.map +1 -0
  17. package/dist/tiles/autotile.js +201 -0
  18. package/dist/tiles/autotile.js.map +1 -0
  19. package/dist/tiles/catalog/dungeon.d.ts +16 -0
  20. package/dist/tiles/catalog/dungeon.d.ts.map +1 -0
  21. package/dist/tiles/catalog/dungeon.js +765 -0
  22. package/dist/tiles/catalog/dungeon.js.map +1 -0
  23. package/dist/tiles/catalog/index.d.ts +78 -0
  24. package/dist/tiles/catalog/index.d.ts.map +1 -0
  25. package/dist/tiles/catalog/index.js +115 -0
  26. package/dist/tiles/catalog/index.js.map +1 -0
  27. package/dist/tiles/catalog/inside.d.ts +16 -0
  28. package/dist/tiles/catalog/inside.d.ts.map +1 -0
  29. package/dist/tiles/catalog/inside.js +765 -0
  30. package/dist/tiles/catalog/inside.js.map +1 -0
  31. package/dist/tiles/catalog/outside.d.ts +16 -0
  32. package/dist/tiles/catalog/outside.d.ts.map +1 -0
  33. package/dist/tiles/catalog/outside.js +799 -0
  34. package/dist/tiles/catalog/outside.js.map +1 -0
  35. package/dist/tiles/catalog/overworld.d.ts +16 -0
  36. package/dist/tiles/catalog/overworld.d.ts.map +1 -0
  37. package/dist/tiles/catalog/overworld.js +585 -0
  38. package/dist/tiles/catalog/overworld.js.map +1 -0
  39. package/dist/tiles/catalog/sf.d.ts +16 -0
  40. package/dist/tiles/catalog/sf.d.ts.map +1 -0
  41. package/dist/tiles/catalog/sf.js +1313 -0
  42. package/dist/tiles/catalog/sf.js.map +1 -0
  43. package/dist/tiles/paint.d.ts +20 -0
  44. package/dist/tiles/paint.d.ts.map +1 -0
  45. package/dist/tiles/paint.js +65 -0
  46. package/dist/tiles/paint.js.map +1 -0
  47. package/dist/tiles/png.d.ts +11 -0
  48. package/dist/tiles/png.d.ts.map +1 -0
  49. package/dist/tiles/png.js +180 -0
  50. package/dist/tiles/png.js.map +1 -0
  51. package/dist/tiles/tileCodec.d.ts +95 -0
  52. package/dist/tiles/tileCodec.d.ts.map +1 -0
  53. package/dist/tiles/tileCodec.js +186 -0
  54. package/dist/tiles/tileCodec.js.map +1 -0
  55. package/dist/tiles/tileFlags.d.ts +98 -0
  56. package/dist/tiles/tileFlags.d.ts.map +1 -0
  57. package/dist/tiles/tileFlags.js +129 -0
  58. package/dist/tiles/tileFlags.js.map +1 -0
  59. package/dist/tiles/tilegeom.d.ts +29 -0
  60. package/dist/tiles/tilegeom.d.ts.map +1 -0
  61. package/dist/tiles/tilegeom.js +111 -0
  62. package/dist/tiles/tilegeom.js.map +1 -0
  63. package/dist/tiles/transparency.d.ts +22 -0
  64. package/dist/tiles/transparency.d.ts.map +1 -0
  65. package/dist/tiles/transparency.js +59 -0
  66. package/dist/tiles/transparency.js.map +1 -0
  67. package/dist/tools/actorTools.d.ts +48 -0
  68. package/dist/tools/actorTools.d.ts.map +1 -0
  69. package/dist/tools/actorTools.js +154 -0
  70. package/dist/tools/actorTools.js.map +1 -0
  71. package/dist/tools/allTools.d.ts +8 -0
  72. package/dist/tools/allTools.d.ts.map +1 -0
  73. package/dist/tools/allTools.js +56 -0
  74. package/dist/tools/allTools.js.map +1 -0
  75. package/dist/tools/assetTools.d.ts +113 -0
  76. package/dist/tools/assetTools.d.ts.map +1 -0
  77. package/dist/tools/assetTools.js +97 -0
  78. package/dist/tools/assetTools.js.map +1 -0
  79. package/dist/tools/batchTools.d.ts +3 -0
  80. package/dist/tools/batchTools.d.ts.map +1 -0
  81. package/dist/tools/batchTools.js +138 -0
  82. package/dist/tools/batchTools.js.map +1 -0
  83. package/dist/tools/battleTools.d.ts +72 -0
  84. package/dist/tools/battleTools.d.ts.map +1 -0
  85. package/dist/tools/battleTools.js +322 -0
  86. package/dist/tools/battleTools.js.map +1 -0
  87. package/dist/tools/catalogTools.d.ts +3 -0
  88. package/dist/tools/catalogTools.d.ts.map +1 -0
  89. package/dist/tools/catalogTools.js +134 -0
  90. package/dist/tools/catalogTools.js.map +1 -0
  91. package/dist/tools/classTools.d.ts +85 -0
  92. package/dist/tools/classTools.d.ts.map +1 -0
  93. package/dist/tools/classTools.js +279 -0
  94. package/dist/tools/classTools.js.map +1 -0
  95. package/dist/tools/commonEventTools.d.ts +32 -0
  96. package/dist/tools/commonEventTools.d.ts.map +1 -0
  97. package/dist/tools/commonEventTools.js +150 -0
  98. package/dist/tools/commonEventTools.js.map +1 -0
  99. package/dist/tools/eventCommandTools.d.ts +37 -0
  100. package/dist/tools/eventCommandTools.d.ts.map +1 -0
  101. package/dist/tools/eventCommandTools.js +893 -0
  102. package/dist/tools/eventCommandTools.js.map +1 -0
  103. package/dist/tools/eventPageTools.d.ts +112 -0
  104. package/dist/tools/eventPageTools.d.ts.map +1 -0
  105. package/dist/tools/eventPageTools.js +597 -0
  106. package/dist/tools/eventPageTools.js.map +1 -0
  107. package/dist/tools/itemTools.d.ts +82 -0
  108. package/dist/tools/itemTools.d.ts.map +1 -0
  109. package/dist/tools/itemTools.js +380 -0
  110. package/dist/tools/itemTools.js.map +1 -0
  111. package/dist/tools/listTools.d.ts +58 -0
  112. package/dist/tools/listTools.d.ts.map +1 -0
  113. package/dist/tools/listTools.js +99 -0
  114. package/dist/tools/listTools.js.map +1 -0
  115. package/dist/tools/mapTools.d.ts +270 -0
  116. package/dist/tools/mapTools.d.ts.map +1 -0
  117. package/dist/tools/mapTools.js +1066 -0
  118. package/dist/tools/mapTools.js.map +1 -0
  119. package/dist/tools/moveTools.d.ts +43 -0
  120. package/dist/tools/moveTools.d.ts.map +1 -0
  121. package/dist/tools/moveTools.js +240 -0
  122. package/dist/tools/moveTools.js.map +1 -0
  123. package/dist/tools/objectTools.d.ts +12 -0
  124. package/dist/tools/objectTools.d.ts.map +1 -0
  125. package/dist/tools/objectTools.js +221 -0
  126. package/dist/tools/objectTools.js.map +1 -0
  127. package/dist/tools/paintTools.d.ts +3 -0
  128. package/dist/tools/paintTools.d.ts.map +1 -0
  129. package/dist/tools/paintTools.js +134 -0
  130. package/dist/tools/paintTools.js.map +1 -0
  131. package/dist/tools/pluginScanTools.d.ts +22 -0
  132. package/dist/tools/pluginScanTools.d.ts.map +1 -0
  133. package/dist/tools/pluginScanTools.js +119 -0
  134. package/dist/tools/pluginScanTools.js.map +1 -0
  135. package/dist/tools/pluginTools.d.ts +11 -0
  136. package/dist/tools/pluginTools.d.ts.map +1 -0
  137. package/dist/tools/pluginTools.js +63 -0
  138. package/dist/tools/pluginTools.js.map +1 -0
  139. package/dist/tools/projectTools.d.ts +11 -0
  140. package/dist/tools/projectTools.d.ts.map +1 -0
  141. package/dist/tools/projectTools.js +74 -0
  142. package/dist/tools/projectTools.js.map +1 -0
  143. package/dist/tools/skillTools.d.ts +83 -0
  144. package/dist/tools/skillTools.d.ts.map +1 -0
  145. package/dist/tools/skillTools.js +369 -0
  146. package/dist/tools/skillTools.js.map +1 -0
  147. package/dist/tools/stateTools.d.ts +28 -0
  148. package/dist/tools/stateTools.d.ts.map +1 -0
  149. package/dist/tools/stateTools.js +161 -0
  150. package/dist/tools/stateTools.js.map +1 -0
  151. package/dist/tools/systemTools.d.ts +86 -0
  152. package/dist/tools/systemTools.d.ts.map +1 -0
  153. package/dist/tools/systemTools.js +342 -0
  154. package/dist/tools/systemTools.js.map +1 -0
  155. package/dist/tools/tileTools.d.ts +9 -0
  156. package/dist/tools/tileTools.d.ts.map +1 -0
  157. package/dist/tools/tileTools.js +34 -0
  158. package/dist/tools/tileTools.js.map +1 -0
  159. package/dist/tools/tileTransparency.d.ts +40 -0
  160. package/dist/tools/tileTransparency.d.ts.map +1 -0
  161. package/dist/tools/tileTransparency.js +156 -0
  162. package/dist/tools/tileTransparency.js.map +1 -0
  163. package/dist/tools/tilesetTools.d.ts +23 -0
  164. package/dist/tools/tilesetTools.d.ts.map +1 -0
  165. package/dist/tools/tilesetTools.js +209 -0
  166. package/dist/tools/tilesetTools.js.map +1 -0
  167. package/dist/tools/validationTools.d.ts +50 -0
  168. package/dist/tools/validationTools.d.ts.map +1 -0
  169. package/dist/tools/validationTools.js +229 -0
  170. package/dist/tools/validationTools.js.map +1 -0
  171. package/dist/utils/commit.d.ts +62 -0
  172. package/dist/utils/commit.d.ts.map +1 -0
  173. package/dist/utils/commit.js +119 -0
  174. package/dist/utils/commit.js.map +1 -0
  175. package/dist/utils/fileHandler.d.ts +49 -0
  176. package/dist/utils/fileHandler.d.ts.map +1 -0
  177. package/dist/utils/fileHandler.js +137 -0
  178. package/dist/utils/fileHandler.js.map +1 -0
  179. package/dist/utils/records.d.ts +8 -0
  180. package/dist/utils/records.d.ts.map +1 -0
  181. package/dist/utils/records.js +10 -0
  182. package/dist/utils/records.js.map +1 -0
  183. package/dist/utils/types.d.ts +465 -0
  184. package/dist/utils/types.d.ts.map +1 -0
  185. package/dist/utils/types.js +5 -0
  186. package/dist/utils/types.js.map +1 -0
  187. package/dist/validation/assets.d.ts +53 -0
  188. package/dist/validation/assets.d.ts.map +1 -0
  189. package/dist/validation/assets.js +198 -0
  190. package/dist/validation/assets.js.map +1 -0
  191. package/dist/validation/createRefs.d.ts +37 -0
  192. package/dist/validation/createRefs.d.ts.map +1 -0
  193. package/dist/validation/createRefs.js +89 -0
  194. package/dist/validation/createRefs.js.map +1 -0
  195. package/dist/validation/eventCommands.d.ts +70 -0
  196. package/dist/validation/eventCommands.d.ts.map +1 -0
  197. package/dist/validation/eventCommands.js +273 -0
  198. package/dist/validation/eventCommands.js.map +1 -0
  199. package/dist/validation/gate.d.ts +56 -0
  200. package/dist/validation/gate.d.ts.map +1 -0
  201. package/dist/validation/gate.js +50 -0
  202. package/dist/validation/gate.js.map +1 -0
  203. package/dist/validation/moveCommands.d.ts +31 -0
  204. package/dist/validation/moveCommands.d.ts.map +1 -0
  205. package/dist/validation/moveCommands.js +123 -0
  206. package/dist/validation/moveCommands.js.map +1 -0
  207. package/dist/validation/pluginCommands.d.ts +83 -0
  208. package/dist/validation/pluginCommands.d.ts.map +1 -0
  209. package/dist/validation/pluginCommands.js +134 -0
  210. package/dist/validation/pluginCommands.js.map +1 -0
  211. package/dist/validation/pluginManifest.d.ts +67 -0
  212. package/dist/validation/pluginManifest.d.ts.map +1 -0
  213. package/dist/validation/pluginManifest.js +199 -0
  214. package/dist/validation/pluginManifest.js.map +1 -0
  215. package/dist/validation/references.d.ts +57 -0
  216. package/dist/validation/references.d.ts.map +1 -0
  217. package/dist/validation/references.js +314 -0
  218. package/dist/validation/references.js.map +1 -0
  219. package/package.json +67 -0
@@ -0,0 +1,405 @@
1
+ import { EventCommand } from '../utils/types.js';
2
+ /**
3
+ * Splice built commands into a command list before its code-0 end marker (or at
4
+ * `position` when it's a valid in-range index). Shared by every insert path
5
+ * (map event page, common event, troop page, single-command add) so the "insert
6
+ * before the terminator" rule lives in one place. Mutates `list` in place.
7
+ */
8
+ export declare function spliceIntoList(list: EventCommand[], commands: EventCommand[], position?: number): void;
9
+ /** Message window position (top/middle/bottom) as the engine's positionType code. */
10
+ export type TextPosition = 'top' | 'middle' | 'bottom';
11
+ /** Message window background (window/dim/transparent) as the engine's code. */
12
+ export type TextBackground = 'window' | 'dim' | 'transparent';
13
+ export interface ShowTextOptions {
14
+ /** Face image basename (from list_assets('faces')); '' = no face. Default ''. */
15
+ faceName?: string;
16
+ /** Face index 0–7 within the face sheet. Default 0. */
17
+ faceIndex?: number;
18
+ /** Window background. Default 'window'. */
19
+ background?: TextBackground;
20
+ /** Window position on screen. Default 'bottom'. */
21
+ position?: TextPosition;
22
+ /** MZ name-box speaker name (may include \C[n] color codes). Default ''. */
23
+ speakerName?: string;
24
+ /** Indentation level in the target list. Default 0. */
25
+ indent?: number;
26
+ }
27
+ /**
28
+ * Show Text (command 101 setup + one 401 line per text line). `lines` are the
29
+ * message lines; the engine word-wraps within a window, so pass one entry per
30
+ * visual line you intend. Face/background/position/speaker match the editor's
31
+ * Show Text dialog.
32
+ */
33
+ export declare function showText(lines: string[], options?: ShowTextOptions): EventCommand[];
34
+ /** Choice list window position (left/middle/right). */
35
+ export type ChoicePosition = 'left' | 'middle' | 'right';
36
+ export interface ShowChoicesOptions {
37
+ /** Command body per choice (same order as `choices`); omitted/short = empty branches. */
38
+ branches?: EventCommand[][];
39
+ /** When present, adds a "When Cancel" (403) branch and marks cancel = branch. */
40
+ cancelBranch?: EventCommand[];
41
+ /**
42
+ * Which choice the Cancel button maps to when there's no cancelBranch: a 0-based
43
+ * choice index, or -1 for "Disallow" (cancel does nothing). Default -1. Ignored
44
+ * when `cancelBranch` is given (cancel then routes to that branch).
45
+ */
46
+ cancelType?: number;
47
+ /** 0-based default (highlighted) choice, or -1 for none. Default 0. */
48
+ defaultType?: number;
49
+ /** Choice window position. Default 'right'. */
50
+ position?: ChoicePosition;
51
+ /** Choice window background. Default 'window'. */
52
+ background?: TextBackground;
53
+ /** Indentation level of the block opener. Default 0. */
54
+ indent?: number;
55
+ }
56
+ /**
57
+ * Show Choices — the 102 opener + a 402 "When [choice]" branch per choice
58
+ * (optionally a 403 "When Cancel" branch) + the 404 "End Choices" closer. Each
59
+ * branch body is placed at indent+1 and terminated with a code-0 marker, matching
60
+ * the editor. The engine reads cancelType via `params[1] < choices.length ? … : -2`,
61
+ * so a cancel branch is encoded as cancelType = choices.length.
62
+ */
63
+ export declare function showChoices(choices: string[], options?: ShowChoicesOptions): EventCommand[];
64
+ /** A comparison operator for the Variable conditional-branch condition. */
65
+ export type Comparison = '==' | '>=' | '<=' | '>' | '<' | '!=';
66
+ /** A comparison operator for the Gold conditional-branch condition. */
67
+ export type GoldCompare = '>=' | '<=' | '<';
68
+ /**
69
+ * A Conditional Branch condition. Covers the common vanilla condition types
70
+ * (switch, variable, self switch, actor-in-party, gold, item). Each maps to the
71
+ * engine's `command111` parameter layout.
72
+ */
73
+ export type BranchCondition = {
74
+ type: 'switch';
75
+ switchId: number;
76
+ value?: 'on' | 'off';
77
+ } | {
78
+ type: 'self_switch';
79
+ name: 'A' | 'B' | 'C' | 'D';
80
+ value?: 'on' | 'off';
81
+ } | {
82
+ type: 'variable';
83
+ variableId: number;
84
+ comparison: Comparison;
85
+ /** Compare against this constant (default 0) unless `variableOperand` is set. */
86
+ constant?: number;
87
+ /** Compare against the value of this variable id (takes precedence over constant). */
88
+ variableOperand?: number;
89
+ } | {
90
+ type: 'actor_in_party';
91
+ actorId: number;
92
+ } | {
93
+ type: 'gold';
94
+ value: number;
95
+ compare?: GoldCompare;
96
+ } | {
97
+ type: 'item';
98
+ itemId: number;
99
+ };
100
+ /** Turn a {@link BranchCondition} into the code-111 parameters array. */
101
+ export declare function conditionParameters(condition: BranchCondition): unknown[];
102
+ export interface ConditionalBranchOptions {
103
+ /** Commands to run when the condition is true. Default empty. */
104
+ thenBranch?: EventCommand[];
105
+ /** Commands for the Else branch. Presence (even if empty) adds the 411 Else block. */
106
+ elseBranch?: EventCommand[];
107
+ /** Indentation level of the block opener. Default 0. */
108
+ indent?: number;
109
+ }
110
+ /**
111
+ * Conditional Branch — the 111 opener (condition), the then-branch body, an
112
+ * optional 411 "Else" branch, and the 412 "End" closer. Each branch body is
113
+ * placed at indent+1 and terminated with a code-0 marker, matching the editor.
114
+ * The Else block is emitted only when `elseBranch` is provided.
115
+ */
116
+ export declare function conditionalBranch(condition: BranchCondition, options?: ConditionalBranchOptions): EventCommand[];
117
+ /** Wait a number of frames (command 230; 60 frames = 1 second). */
118
+ export declare function wait(frames: number, indent?: number): EventCommand;
119
+ /** Exit Event Processing (command 115) — stops the current event's list early. */
120
+ export declare function exitEvent(indent?: number): EventCommand;
121
+ /** Label (command 118) — a named jump target within the same command list. */
122
+ export declare function label(name: string, indent?: number): EventCommand;
123
+ /** Jump to Label (command 119) — jumps to the matching {@link label} by name. */
124
+ export declare function jumpToLabel(name: string, indent?: number): EventCommand;
125
+ /**
126
+ * Control Switches (command 121) — turn a switch (or an inclusive range of
127
+ * switches `startId..endId`) on or off. Pass the same id for `endId` to set a
128
+ * single switch. On disk: `[startId, endId, value]` where value 0 = ON, 1 = OFF.
129
+ */
130
+ export declare function controlSwitches(startId: number, endId: number, value?: 'on' | 'off', indent?: number): EventCommand;
131
+ /**
132
+ * Control Self Switch (command 123) — turn one of the current event's self
133
+ * switches (A–D) on or off. On disk: `[name, value]` (value 0 = ON, 1 = OFF).
134
+ */
135
+ export declare function controlSelfSwitch(name: 'A' | 'B' | 'C' | 'D', value?: 'on' | 'off', indent?: number): EventCommand;
136
+ /** The arithmetic applied to the target variable(s) by Control Variables. */
137
+ export type VariableOperation = 'set' | 'add' | 'sub' | 'mul' | 'div' | 'mod';
138
+ /**
139
+ * The right-hand operand of a Control Variables command. `game_data` reaches the
140
+ * engine's `gameDataOperand(dataType, param1, param2)` table (dataType 0 item /
141
+ * 1 weapon / 2 armor count, 3 actor, 4 enemy, 5 character, 6 party, 7 other,
142
+ * 8 last — see the corescript for each type's param1/param2 meanings).
143
+ */
144
+ export type VariableOperand = {
145
+ type: 'constant';
146
+ value: number;
147
+ } | {
148
+ type: 'variable';
149
+ variableId: number;
150
+ } | {
151
+ type: 'random';
152
+ min: number;
153
+ max: number;
154
+ } | {
155
+ type: 'game_data';
156
+ dataType: number;
157
+ param1?: number;
158
+ param2?: number;
159
+ };
160
+ export interface ControlVariablesOptions {
161
+ /** Range end id (inclusive); defaults to `variableId` (a single variable). */
162
+ endId?: number;
163
+ /** Indentation level. Default 0. */
164
+ indent?: number;
165
+ }
166
+ /**
167
+ * Control Variables (command 122) — apply `operation` to a variable (or an
168
+ * inclusive `variableId..endId` range) using `operand`. On disk:
169
+ * `[startId, endId, operationType, operandType, ...operandParams]`.
170
+ */
171
+ export declare function controlVariables(variableId: number, operation: VariableOperation, operand: VariableOperand, options?: ControlVariablesOptions): EventCommand;
172
+ /** Increase or decrease, shared by Change Gold/Items/Weapons/Armors. */
173
+ export type GainOperation = 'increase' | 'decrease';
174
+ /** A constant or variable amount, shared by the Change Gold/Items/Weapons/Armors commands. */
175
+ export type GainOperand = {
176
+ type: 'constant';
177
+ value: number;
178
+ } | {
179
+ type: 'variable';
180
+ variableId: number;
181
+ };
182
+ /** Change Gold (command 125) — gain or lose gold by a constant or variable amount. */
183
+ export declare function changeGold(operation: GainOperation, operand: GainOperand, indent?: number): EventCommand;
184
+ /**
185
+ * Change Items (command 126) — gain or lose `itemId` from the party inventory by
186
+ * a constant or variable amount. On disk: `[itemId, operation, operandType, operand]`.
187
+ */
188
+ export declare function changeItems(itemId: number, operation: GainOperation, operand: GainOperand, indent?: number): EventCommand;
189
+ /**
190
+ * Change Weapons (command 127) — gain or lose `weaponId`. `includeEquip` (default
191
+ * false) also counts weapons currently equipped by party members when removing.
192
+ * On disk: `[weaponId, operation, operandType, operand, includeEquip]`.
193
+ */
194
+ export declare function changeWeapons(weaponId: number, operation: GainOperation, operand: GainOperand, includeEquip?: boolean, indent?: number): EventCommand;
195
+ /**
196
+ * Change Armors (command 128) — gain or lose `armorId`. `includeEquip` (default
197
+ * false) also counts armors currently equipped when removing.
198
+ * On disk: `[armorId, operation, operandType, operand, includeEquip]`.
199
+ */
200
+ export declare function changeArmors(armorId: number, operation: GainOperation, operand: GainOperand, includeEquip?: boolean, indent?: number): EventCommand;
201
+ /** Add an actor to, or remove one from, the party (Change Party Member). */
202
+ export type PartyMemberOperation = 'add' | 'remove';
203
+ /**
204
+ * Change Party Member (command 129) — add or remove `actorId`. `initialize`
205
+ * (default false, add only) resets the actor to their initial state on add.
206
+ * On disk: `[actorId, operation(0 add/1 remove), initialize]`.
207
+ */
208
+ export declare function changePartyMember(actorId: number, operation: PartyMemberOperation, initialize?: boolean, indent?: number): EventCommand;
209
+ /** The direction the player faces after a Transfer Player (retain = keep current). */
210
+ export type TransferDirection = 'retain' | 'down' | 'left' | 'right' | 'up';
211
+ /** The screen fade used by Transfer Player. */
212
+ export type TransferFade = 'black' | 'white' | 'none';
213
+ export interface TransferPlayerOptions {
214
+ /** Facing after transfer. Default 'retain'. */
215
+ direction?: TransferDirection;
216
+ /** Fade style. Default 'black'. */
217
+ fade?: TransferFade;
218
+ /**
219
+ * When 'variable', `mapId`/`x`/`y` are read as *variable ids* holding the real
220
+ * destination at runtime (Designation with variables). Default 'direct'.
221
+ */
222
+ designation?: 'direct' | 'variable';
223
+ /** Indentation level. Default 0. */
224
+ indent?: number;
225
+ }
226
+ /**
227
+ * Transfer Player (command 201) — move the party to `(x, y)` on map `mapId`. On
228
+ * disk: `[designation(0 direct/1 variable), mapId, x, y, direction, fade]`. With
229
+ * `designation: 'variable'`, `mapId`/`x`/`y` are variable ids resolved at runtime.
230
+ */
231
+ export declare function transferPlayer(mapId: number, x: number, y: number, options?: TransferPlayerOptions): EventCommand;
232
+ /** An audio track reference — the `{ name, volume, pitch, pan }` object the editor writes. */
233
+ export interface AudioTrack {
234
+ /** Audio basename (from list_assets, extension stripped). */
235
+ name: string;
236
+ /** Volume 0–100. Default 90. */
237
+ volume?: number;
238
+ /** Pitch 50–150. Default 100. */
239
+ pitch?: number;
240
+ /** Pan -100–100. Default 0. */
241
+ pan?: number;
242
+ }
243
+ /** Which audio channel to play on — maps to the play command code. */
244
+ export type AudioKind = 'bgm' | 'bgs' | 'me' | 'se';
245
+ /**
246
+ * Play BGM/BGS/ME/SE (commands 241/245/249/250) — start a track on the given audio
247
+ * channel. On disk: `[{ name, volume, pitch, pan }]` (a single audio object).
248
+ */
249
+ export declare function playAudio(kind: AudioKind, track: AudioTrack, indent?: number): EventCommand;
250
+ /** Fade the screen out (to a colour) or back in. */
251
+ export type ScreenFade = 'out' | 'in';
252
+ /**
253
+ * Fadeout/Fadein Screen (commands 221/222) — no parameters; the fade colour is the
254
+ * one last set by a Tint Screen (defaults to black).
255
+ */
256
+ export declare function fadeScreen(direction: ScreenFade, indent?: number): EventCommand;
257
+ /** An `[r, g, b, a]` tuple — RGB plus a fourth channel (gray for tint, intensity for flash). */
258
+ export type ColorTone = [number, number, number, number];
259
+ /**
260
+ * Tint Screen (command 223) — shift the screen tone over `duration` frames. `tone`
261
+ * is `[red, green, blue, gray]`, each −255…255 (0,0,0,0 = normal). On disk:
262
+ * `[tone, duration, wait]`.
263
+ */
264
+ export declare function tintScreen(tone: ColorTone, duration?: number, wait?: boolean, indent?: number): EventCommand;
265
+ /**
266
+ * Flash Screen (command 224) — flash a colour over `duration` frames. `color` is
267
+ * `[red, green, blue, intensity]`, each 0…255. On disk: `[color, duration, wait]`.
268
+ */
269
+ export declare function flashScreen(color: ColorTone, duration?: number, wait?: boolean, indent?: number): EventCommand;
270
+ /**
271
+ * Shake Screen (command 225) — shake for `duration` frames. On disk:
272
+ * `[power(1–9), speed(1–9), duration, wait]`.
273
+ */
274
+ export declare function shakeScreen(power?: number, speed?: number, duration?: number, wait?: boolean, indent?: number): EventCommand;
275
+ /** Where a picture is anchored: its upper-left corner or its center. */
276
+ export type PictureOrigin = 'upper_left' | 'center';
277
+ /** How a picture blends with what's behind it. */
278
+ export type BlendMode = 'normal' | 'additive' | 'multiply' | 'screen';
279
+ export interface ShowPictureOptions {
280
+ /** Anchor point. Default 'upper_left'. */
281
+ origin?: PictureOrigin;
282
+ /** Screen x (pixels). Default 0. */
283
+ x?: number;
284
+ /** Screen y (pixels). Default 0. */
285
+ y?: number;
286
+ /** Horizontal scale (%). Default 100. */
287
+ scaleX?: number;
288
+ /** Vertical scale (%). Default 100. */
289
+ scaleY?: number;
290
+ /** Opacity 0–255. Default 255. */
291
+ opacity?: number;
292
+ /** Blend mode. Default 'normal'. */
293
+ blend?: BlendMode;
294
+ /** Indentation level. Default 0. */
295
+ indent?: number;
296
+ }
297
+ /**
298
+ * Show Picture (command 231) — display picture `name` in slot `pictureId` (1–100).
299
+ * On disk: `[pictureId, name, origin, 0 (direct position), x, y, scaleX, scaleY,
300
+ * opacity, blend]` — the position is always a direct designation here (variable
301
+ * positioning isn't exposed).
302
+ */
303
+ export declare function showPicture(pictureId: number, name: string, options?: ShowPictureOptions): EventCommand;
304
+ /** Erase Picture (command 235) — remove the picture in slot `pictureId`. */
305
+ export declare function erasePicture(pictureId: number, indent?: number): EventCommand;
306
+ /**
307
+ * A character reference for Show Animation / Show Balloon: -1 = player, 0 = this
308
+ * event, N = event id N on the current map (same convention as move routes).
309
+ */
310
+ export type CharacterTarget = number;
311
+ /**
312
+ * Show Animation (command 212) — play animation `animationId` on `characterId`.
313
+ * `wait` holds event execution until it finishes. On disk: `[characterId,
314
+ * animationId, wait]`.
315
+ */
316
+ export declare function showAnimation(characterId: CharacterTarget, animationId: number, wait?: boolean, indent?: number): EventCommand;
317
+ /**
318
+ * Show Balloon Icon (command 213) — show balloon `balloonId` (1 exclamation, 2
319
+ * question, …) over `characterId`. On disk: `[characterId, balloonId, wait]`.
320
+ */
321
+ export declare function showBalloon(characterId: CharacterTarget, balloonId: number, wait?: boolean, indent?: number): EventCommand;
322
+ /**
323
+ * Which troop a Battle Processing command fights: a `direct` troop id, a `variable`
324
+ * holding the troop id at runtime, or `random` (same as the map's random encounters).
325
+ */
326
+ export type BattleTroop = {
327
+ type: 'direct';
328
+ troopId: number;
329
+ } | {
330
+ type: 'variable';
331
+ variableId: number;
332
+ } | {
333
+ type: 'random';
334
+ };
335
+ /**
336
+ * Battle Processing (command 301) — start a battle against a troop. On disk:
337
+ * `[designation(0 direct/1 variable/2 random), troopId, canEscape, canLose]`. With
338
+ * `variable`, param[1] is a variable id; with `random` it is ignored. `canEscape`
339
+ * / `canLose` are engine-truthy JS booleans on disk.
340
+ */
341
+ export declare function battleProcessing(troop: BattleTroop, canEscape?: boolean, canLose?: boolean, indent?: number): EventCommand;
342
+ /** A single item offered in a shop. `price` set = Specify price; omitted = the database's standard price. */
343
+ export interface ShopGood {
344
+ /** What kind of thing is for sale. */
345
+ kind: 'item' | 'weapon' | 'armor';
346
+ /** The item/weapon/armor id. */
347
+ id: number;
348
+ /** Override price. When set, priceType = Specify; when omitted, the database price is used. */
349
+ price?: number;
350
+ }
351
+ /**
352
+ * Shop Processing (command 302 + one 605 continuation row per extra good) — open a
353
+ * shop selling `goods`. The 302 carries the first good plus `purchaseOnly` as a 5th
354
+ * param `[kind, id, priceType, price, purchaseOnly]`; each additional good is a 605
355
+ * row `[kind, id, priceType, price]` — exactly as the editor serializes them.
356
+ */
357
+ export declare function shopProcessing(goods: ShopGood[], purchaseOnly?: boolean, indent?: number): EventCommand[];
358
+ /**
359
+ * Name Input Processing (command 303) — open the name-entry screen for `actorId`.
360
+ * `maxLength` (default 8) caps the entered name. On disk: `[actorId, maxLength]`.
361
+ */
362
+ export declare function nameInput(actorId: number, maxLength?: number, indent?: number): EventCommand;
363
+ /**
364
+ * Which actor(s) a Change HP/MP/State/EXP/Level/Recover-All command targets:
365
+ * a `fixed` actor id (0 = the entire party), or a `variable` holding the actor id.
366
+ * On disk this is the leading `[designation(0 fixed/1 variable), actorId]` pair.
367
+ */
368
+ export type ActorTarget = {
369
+ type: 'fixed';
370
+ actorId: number;
371
+ } | {
372
+ type: 'variable';
373
+ variableId: number;
374
+ };
375
+ /**
376
+ * Change HP (command 311) — gain or lose HP on the target actor(s) by a constant or
377
+ * variable amount. `allowKnockout` (default false) permits the change to reduce HP to
378
+ * 0 (death). On disk: `[designation, actorId, operation, operandType, operand, allowKnockout]`.
379
+ */
380
+ export declare function changeHp(target: ActorTarget, operation: GainOperation, operand: GainOperand, allowKnockout?: boolean, indent?: number): EventCommand;
381
+ /**
382
+ * Change MP (command 312) — gain or lose MP on the target actor(s). On disk:
383
+ * `[designation, actorId, operation, operandType, operand]`.
384
+ */
385
+ export declare function changeMp(target: ActorTarget, operation: GainOperation, operand: GainOperand, indent?: number): EventCommand;
386
+ /**
387
+ * Change State (command 313) — add or remove a state on the target actor(s). On disk:
388
+ * `[designation, actorId, operation(0 add/1 remove), stateId]`.
389
+ */
390
+ export declare function changeState(target: ActorTarget, operation: 'add' | 'remove', stateId: number, indent?: number): EventCommand;
391
+ /** Recover All (command 314) — fully restore HP/MP and clear states on the target actor(s). */
392
+ export declare function recoverAll(target: ActorTarget, indent?: number): EventCommand;
393
+ /**
394
+ * Change EXP (command 315) — gain or lose experience on the target actor(s).
395
+ * `showLevelUp` (default false) shows the level-up message. On disk:
396
+ * `[designation, actorId, operation, operandType, operand, showLevelUp]`.
397
+ */
398
+ export declare function changeExp(target: ActorTarget, operation: GainOperation, operand: GainOperand, showLevelUp?: boolean, indent?: number): EventCommand;
399
+ /**
400
+ * Change Level (command 316) — raise or lower level on the target actor(s).
401
+ * `showLevelUp` (default false) shows the level-up message. On disk:
402
+ * `[designation, actorId, operation, operandType, operand, showLevelUp]`.
403
+ */
404
+ export declare function changeLevel(target: ActorTarget, operation: GainOperation, operand: GainOperand, showLevelUp?: boolean, indent?: number): EventCommand;
405
+ //# sourceMappingURL=commandBuilders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commandBuilders.d.ts","sourceRoot":"","sources":["../../src/events/commandBuilders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,YAAY,EAAE,EACpB,QAAQ,EAAE,YAAY,EAAE,EACxB,QAAQ,CAAC,EAAE,MAAM,GAChB,IAAI,CAMN;AA8FD,qFAAqF;AACrF,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AACvD,+EAA+E;AAC/E,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,KAAK,GAAG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