Scripting shorthands - various utilities to make simple scripts easier

I'm glad it worked!
Though this is also an interesting way to realise that this plugin had some changes that were never uploaded to the forum 😛 I should probably fix that.

Version 1.1.1 is now available!
No new options were added, so replacing the file is enough to update.

Bugfixes:
- Fixed some potential issues with $es that could occur when multiple different saves were loaded over a single session
- Fixed some $window functions not working properly on lower nwjs versions
- Fixed most shorthands being created too early in MZ (so the workaround described in the posts above is no longer needed). Note that MZ is still not officially supported, but I will try to make these kind of fixes if they're reasonably simple.
I didn't test it yet, but curious:

if $gameVariable.setValue(3, $gameVariable.value(3) +3) is the same as $gv += 3
are checks comparison like $gv[3] == "string" or $gv[3] === "3" (or just 3 )
also possible to make like normal checks?

as in my side game, I use conditional branch for check_any(varId, result, result, result)

so it similar the same?
I didn't test it yet, but curious:

if $gameVariable.setValue(3, $gameVariable.value(3) +3) is the same as $gv += 3
are checks comparison like $gv[3] == "string" or $gv[3] === "3" (or just 3 )
also possible to make like normal checks?

as in my side game, I use conditional branch for check_any(varId, result, result, result)

so it similar the same?
Of course, $gameVariable.value() will be called whenever JavaScript needs the value of a shorthand, and that includes comparisons. So they'll all work how you'd expect them to - you can treat them as any other JavaScript variable.

as in my side game, I use conditional branch for check_any(varId, result, result, result)
I'm assuming that's checking if a variable has a value that's one of those results? To do that you could use this: [result1, result2, result3].includes($gv[varId])
I might try that, if that works, that I swap to this one,
as the variable keep starting empty before checking, so it has to work
correctly, and the better it works, the better I say ^^

maybe update helpfile with this example as well for easy access for
a bit non JS savvi as I keep learning, I find it easier to have access to
possibilities).

Original thread: https://forums.rpgmakerweb.com/threads/scripting-shorthands-various-utilities-to-make-simple-scripts-easier.166955/