MV a listner plugin? Rpg Maker MV

i am looking for a special plugin to listen to choices in an event in my game i am making the player has to play a specific melody to recive a reward i have the piano that they play it on working but i can't find a way for it to listen to the choices i was hoping someone could write me a plugin that can listen to the choices the player picks or if there is another way to do it
then you need to show us how that piano works.

Usually puzzles like this are done by storing the check and results in the event that plays, not with an external listener - but even if asomeone is going to write such a plugin he needs to know what he is listening for.
You can do that just by storing a string in a variable and whenever the player makes a choice append it to the string. Or an array, but the string is simpler.
it is just a simple piano i don't know how to make it store the string the melody it is supposed to be listening for is c4 d4 e4 f4 d4 c4 b4
why not making the piano listen to button you press, its far easier than
a choice by pressing enter, choose note, press enter and repeat.

your setup does work though. but its not logical at all.
why not making the piano listen to button you press, its far easier than
a choice by pressing enter, choose note, press enter and repeat.

your setup does work though. but its not logical at all.
i have no clue how to do that it seems like it would be easier though
here is a link that made a piano event, but I have the [data here] how it works.
its a few keys, but I have an extended version as this was a setup I used.

so extend it on your own.
No matter how you decide to handle the key presses, the way to store the result is by placing the storage commands inside the branches that play the sound.

adding to a string is one way to handle it, but it is probably easier to count a variable up if the correct key is presset and resetting to zero if the wrong key is pressed.
Have you tried Googling it? There are a number of existing threads on here and, I believe, YouTube tutorials about how to make piano-playing puzzles.
OP, I'll write this event for you but need to know:
1. How many correct answers are there?
2. Does the listening stop as soon as the player enters a wrong key? If not how many keys does the player need to press before the listening stops?

No plugins are needed.
OP, I'll write this event for you but need to know:
1. How many correct answers are there?
2. Does the listening stop as soon as the player enters a wrong key? If not how many keys does the player need to press before the listening stops?

No plugins are needed.
1 correct melody c4 d4 e4 f4 d4 c4 b4 it stops listening right after the player gets it wrong or right and they are awarded with a special item my problem with a variable count is c4 is played twice but it needs to be in that order if possible
y problem with a variable count is c4 is played twice
then you count in the wrong way, because with the correct counting duplicates do not matter, you could easily make a code with six times the same key.
Here you go OP. Just set variable 59 to whatever string of letters you want. You can even randomize the string every game so players can't cheat and look up the answer (although the way this puzzle is designed the player can just brute force the answer since it kicks them out every time they press the wrong key)
Here you go OP. Just set variable 59 to whatever string of letters you want. You can even randomize the string every game so players can't cheat and look up the answer (although the way this puzzle is designed the player can just brute force the answer since it kicks them out every time they press the wrong key)
brute forcing it is fine in the game their is a person that tells the melody anyways but how do you set a string of characters as the variable. I only know how to set the m to numbers
You select script and type in the letters in quotation marks
You select script and type in the letters in quotation marks
that will work however for some reason i am getting an error when testing here are some screenshots am i missing somethinng?
As the error mentions, there's no such thing as $gameVariable. You'll need to replace it with $gameVariables (note the "s" at the end).
As the error mentions, there's no such thing as $gameVariable. You'll need to replace it with $gameVariables (note the "s" at the end).
wow i can't believe i over sighted that thanks for the help it is working now
that will work however for some reason i am getting an error when testing here are some screenshots am i missing somethinng?
Aside from the $gameVariables thing, you have a few errors here. The second line should be Control Variable 7 pianoPuzzle. That holds the answer. Control Variable 8 holds the key the player pressed. You need to copy what I typed exactly and not change things (using variable 7 and 8 instead of 59 and 60 is ok as long as you update all their references).

You also changed $gameVariables.value(7).length>0 to put parentheses around the 0, which it shouldn't have but apparently the code still works with the parentheses.
if you want to recognize the songs on the piano, check my Ocarina of Time
tutorial.

it works similar to the piano but slightly different, as I remake them in my up coming
demo how to create them and how to set it up fully into your own game.

Original thread: https://forums.rpgmakerweb.com/threads/a-listner-plugin-rpg-maker-mv.167912/