Hi I'm trying to change variable names (rather than the values) via js but I don't know the method for it.
Using the google doc with RMMV script calls I get this: $gameVariables.setValue(var, value); but nothing for how to change the name of the variable itself. Anyone know if this is possible?
Thanks
variable 001 = to a name?
as in the database you place name and you get variable 001 name = x?
or the value name as in script? $gameVariable.setValue(1, "name")
so it wont be a number?
The names for variables of the editor are not handled inside the engine itself, they are only handled on the editor for display.
you can probably edit that file to read and change it, but you'll have to write those functions on your own as nothing in the engine itself ever touches that file (not to my knowledge).
Just to be over explicit: that doesn't change the name of an existing gamevariable but adds a new variable to the gamevariable object with the given value. But I think you understood that! Just like normal javascript variables like I said :')