set_variable_name
Assign a descriptive name to a game variable in RPG Maker MZ/MV projects, enabling clear identification and management of variables used for game logic, events, and data tracking.
Instructions
Set a variable name
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variableId | Yes | ||
| name | Yes |
Implementation Reference
- src/tools/systemTools.ts:39-49 (handler)The implementation of the setVariableName function which updates the variable name in the system data.
export async function setVariableName( projectPath: string, variableId: number, name: string ): Promise<void> { const system = await getSystem(projectPath); system.variables[variableId] = name; const systemPath = getDataPath(projectPath, 'System.json'); await writeJsonFile(systemPath, system); }