New to posting and to trying out RPG maker MV. Currently working on my first RPG maker MV game(small but mostly narrative driven). I am almost done with the game but my partner had a question that we might to consider in some future game. Not knowing to much if any of the letter keys are bind to anything, is their a way where if I can script something in JS that runs in the background, where it keeps an eye on keystrokes of the letters. If we have a user that spells out something and it matches the name that is held in a variable we can trigger an event.
Example:
code runs in the background checking keystrokes of letters on a keyboard.
Varible in the code aboves SecretVAR="SAM"
Player is in the middle of a gameplay or an auto event.
Player types SAM on the keyboard(no prompt anywhere just types it)
Code takes that key stroke, saves it in variable called input
If statement
If keystokes varible input=SecretVAR
Do EVENT005
Kinda of a version of the konami code. Hopefully that makes sense.
Example:
code runs in the background checking keystrokes of letters on a keyboard.
Varible in the code aboves SecretVAR="SAM"
Player is in the middle of a gameplay or an auto event.
Player types SAM on the keyboard(no prompt anywhere just types it)
Code takes that key stroke, saves it in variable called input
If statement
If keystokes varible input=SecretVAR
Do EVENT005
Kinda of a version of the konami code. Hopefully that makes sense.