Common Eventing a Picture Based Password

I'm sure there's a method to accomplish this, but I'm just not proficient enough in the engine yet...
I want to accomplish a system like the number input system, but instead you either use the custom buttons i did myself to input the numbers or press the buttons on your device to make it register?

I'm not too certain on how to store it as a variable. Any advice or walkthrough would be greatly appreciated ^^

Screenshot 2024-04-05 002338.png
You would use a picture common event plugin like Triacontane's PictureCallCommon
It's a Japanese plugin but there are English instructions if you scroll down.

https://raw.githubusercontent.com/triacontane/RPGMakerMV/master/PictureCallCommon.js
You would use a picture common event plugin like Triacontane's PictureCallCommon
It's a Japanese plugin but there are English instructions if you scroll down.

https://raw.githubusercontent.com/triacontane/RPGMakerMV/master/PictureCallCommon.js
i think i'm roughly familiar how to use picture common event plugins.. i'm just not too sure how to register and store player input?
i think i'm roughly familiar how to use picture common event plugins.. i'm just not too sure how to register and store player input?
Either make the input variable a string and concatenate the string with every new input, e.g.
'a' + 'b' + 'c'
or make it an array, push every new value into the array, and join the array on answer submission, e.g.
['a', 'b', 'c'].join('')
just check if the value is equal than the input.
you can go in various way for this, if 1 is pressed.

I had a sample somewhere where it, that uses a plugin of Burning Orca.
which check the array if the numbers match to activate a page.

$gameVariables.setValue(5) = []

than best use scriptcalls:
let digit = $gameVariables.value(5).
digit.push(5)
so you push 5 into the array. you can than check if \v[5] = [5,7,3,6] and see if its correct.
I dont know what plugin it was of burning orca, but its pretty useful ^^
There's really no need for arrays if you just want to check if the code is correct. Set a variable to 0 at the start, then each time a button is pressed multiply that variable by 10 and add the value of the button.
If the variable is now larger than 100000, check if it's equal to what you need it to be.

(Note that this wouldn't work if there was a 0 button)
oh that's genius! honestly great for me delaying to learn arrays for this one time thing!! but yeah thanks a lot ^^
There's really no need for arrays if you just want to check if the code is correct. Set a variable to 0 at the start, then each time a button is pressed multiply that variable by 10 and add the value of the button.
If the variable is now larger than 100000, check if it's equal to what you need it to be.

(Note that this wouldn't work if there was a 0 button)

Original thread: https://forums.rpgmakerweb.com/threads/common-eventing-a-picture-based-password.167497/