MV My Favorite/Most Useful Script Calls

Hi Everyone! I figured this might be something useful for all users including myself. I will keep track of all my Favorite JavaScript calls used in RPG Maker MV!!

Feel Free to post comments with your favorite also! This is just starting out as I ran out of time today this will be an on going updated post. I will post Plugin specific script calls also that I enjoy using.

Used inside Conditional Branch:
$gamePlayer.x === X && $gamePlayer.y === Y $gameSelfSwitches.setValue([Map, Event, 'Switch'], truefalse) Keys: (Input.isTriggered('ok')) (Input.isRepeated(ok')) (Input.isPressed('ok')) (Input.isLongPressed('ok')) Mouse: (TouchInput.isTriggered()) (TouchInput.isRepeated()) (TouchInput.isPressed()) (TouchInput.isLongPressed()) (TouchInput.isCancelled()) (TouchInput.isMoved()) (TouchInput.isReleased())



I also really love using Galv Button Events plugin and using the script calls he provides to make amazing things! Be Creative and you can make almost anything! 😀
for gameVariable -> script "any text here" (easy to update)
for using \v[n] and show that text.

ideal for nice mechanic like a password door required 3 pieces,
so you can update it, that use in a conditional branch:

if: script: $gameVariable.value(n) == "any password name here"
do stuff
else
search pieces or whater
end

there are more sweet once though, depending on the mechanic,
this can also be random number for keycard that need to be match,
password door, etc etc (as long you can be creative).
Inside RPG MAKER MZ, you can use the the Graphics.app ticker for doing any kind of cool stuff with the game loop. An example, it's to make an event fading to zero opacity within waiting for the transition itself.

Here you are the example:
Spoiler
1626966332524.png

The effect:
Spoiler
ezgif.com-gif-maker.gif
@BlueMoon @ShadowDragon
Awesome stuff!! Thanks for sharing!!!

Both of those are very useful!! Love it!

Original thread: https://forums.rpgmakerweb.com/threads/my-favorite-most-useful-script-calls.138755/