help with a music puzzle

Hey everyone! I'm making a game and I would like to ask you all for some help please. The puzzle I'm having trouble with consists of playing a piano and then it triggers an event. I have already downloaded Eli's button common events and i associated the notes with the keys on the keyboard via common events, but i want the event to trigger only when the notes are played in a certain order (in other words, only when the common events are called in this specific order). If anyone has any idea of how to do it i'd be glad to listen to your advice! Thank you in advance :3
I had a music puzzle in my RMVXA game with 4 crystals that had unique tones you had to play in a particular order. I created a variable called something like correctCount or successCount or something like that, then each crystal had conditional branches like:

Conditional branch: correctCount = 2
correctCount += 1;
else
Conditional branch: correctCount = 5
correctCount += 1;
else
correctCount = 0;

The idea being that, for that crystal, it was supposed to be played as the second and fifth tone, so if you played it at any other time, it reset the counter back to 0.

Then, whatever the last one was, I flipped a switch that revealed a hidden chest instead of incrementing the counter.

You could do something similar - if the next note played is in the correct order, increment your "played in the right order" counter, then just reset it to 0 every time the wrong one is played.

Here's what it looked like in the end:
I had a music puzzle in my RMVXA game with 4 crystals that had unique tones you had to play in a particular order. I created a variable called something like correctCount or successCount or something like that, then each crystal had conditional branches like:

Conditional branch: correctCount = 2
correctCount += 1;
else
Conditional branch: correctCount = 5
correctCount += 1;
else
correctCount = 0;

The idea being that, for that crystal, it was supposed to be played as the second and fifth tone, so if you played it at any other time, it reset the counter back to 0.

Then, whatever the last one was, I flipped a switch that revealed a hidden chest instead of incrementing the counter.

You could do something similar - if the next note played is in the correct order, increment your "played in the right order" counter, then just reset it to 0 every time the wrong one is played.

Here's what it looked like in the end:

I had a music puzzle in my RMVXA game with 4 crystals that had unique tones you had to play in a particular order. I created a variable called something like correctCount or successCount or something like that, then each crystal had conditional branches like:

Conditional branch: correctCount = 2
correctCount += 1;
else
Conditional branch: correctCount = 5
correctCount += 1;
else
correctCount = 0;

The idea being that, for that crystal, it was supposed to be played as the second and fifth tone, so if you played it at any other time, it reset the counter back to 0.

Then, whatever the last one was, I flipped a switch that revealed a hidden chest instead of incrementing the counter.

You could do something similar - if the next note played is in the correct order, increment your "played in the right order" counter, then just reset it to 0 every time the wrong one is played.

Here's what it looked like in the end:

Oh i see! I'll definitely try it when i get home, thank you!! :3

Original thread: https://forums.rpgmakerweb.com/threads/help-with-a-music-puzzle.139354/