A Sudoku puzzle problem

Hey everyone, how are you doing ?
So i'm working on my senior project and i wanted to create a sudoku puzzle 👋 so i did one but without using any code which is by listing the numbers on the floor and when the players click on the zeros (only the zeros) they can change the number. I used set movement then change image to change the number.
p_1185525py1.png

p_1185g6d1v2.png


The problem is, i want a chest to appear after they finish the puzzle in the right way but i have no idea how to write a code that will check the answers 😐does anyone have an idea on how to do this ?

Thanks in Advance.
'Tech Support' is for when you cannot get the engine to run. "How do I...?" (implementation) questions belong in the Support forum for the engine you are using. You have not included that in the info under your avatar, but looking at the floor tile you've used, I am assuming it is MV.

Moved to: RPG Maker MV
Just a heads up. With RPG Maker, writing code = writing a plugin (or script in older versions). What you are doing here is writing event commands. I'm only mentioning it because using the right term helps avoid confusions.
Increase a variable by one each time a n event whose value is incorrect changes to be correct and decrease it if its value changes from the correct one to an incorrect one. This way you can have your chest event appear once that said variable is equal to 81 (9*9).

Edit: the said variable should be initialized to be equal to the number of known sudoku tiles when the sudoku puzzle starts.
Increase a variable by one each time a n event whose value is incorrect changes to be correct and decrease it if its value changes from the correct one to an incorrect one. This way you can have your chest event appear once that said variable is equal to 81 (9*9).

Edit: the said variable should be initialized to be equal to the number of known sudoku tiles when the sudoku puzzle starts.
Thank you so much 😂 this really helped me.

Original thread: https://forums.rpgmakerweb.com/threads/a-sudoku-puzzle-problem.107453/