set_variable_name
Assign a descriptive name to a variable ID in RPG Maker MZ, growing the variable list as needed so newly claimed variables remain visible in future sessions.
Instructions
Set a variable name. Grows the project's variable list if the id is past the end (padded to the editor's 20-slot block), so an id from next_free_id can always be labelled. Naming a variable as soon as you claim it is what makes it visible to the next session — see list_allocated_ids.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name to assign | |
| dryRun | No | Preview only: return a diff of what would change without writing to disk. | |
| variableId | Yes | The 1-based variable ID |