set_switch_name
Assign descriptive names to RPG Maker switches to improve event organization and readability in game development projects.
Instructions
Set a switch name
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| switchId | Yes | ||
| name | Yes |
Implementation Reference
- src/tools/systemTools.ts:62-72 (handler)The handler function that sets the name of a switch in the System.json file.
export async function setSwitchName( projectPath: string, switchId: number, name: string ): Promise<void> { const system = await getSystem(projectPath); system.switches[switchId] = name; const systemPath = getDataPath(projectPath, 'System.json'); await writeJsonFile(systemPath, system); }