Easier Way to Write basic +1 Script

Hi!

Basic script command. Just trying to figure out if there's an easier way or shorter way to write it.

As is now:
$gameVariables.setValue($gameVariables.value(1), $gameVariables.value($gameVariables.value(1)) + 1);

It works, it's just long. There's gotta be an easier way.

I use this within a loop, so I can't just simply use $gameVariables.setValue(1, + 1);
depends on where youre using it. damage formulas have an internal variable v thats corresponds to the array game variable data is held and you would be able to use v[1]++.
you could also use $gameVariables._data[1]++ in general. both come with the caveat that you'd have to make sure the variable is a number before touching them.

edit:
didnt realize you werent trying to increment a variable, but the variable whose id is held within another variable. $gameVariables._data[$gameVariables._data[1]]++should do
The information is for a TextPicture. I'm just trying to simplify things.

Original thread: https://forums.rpgmakerweb.com/threads/easier-way-to-write-basic-1-script.179826/