Command to change the picture when is actived

hey! I need a little help, I wanted to know if there is a way when the player keeps repeating the OK button on the keyboard, it causes an Easter egg type event, I already tried using the condition but it didn't work. [ More exemple: when you press a right/left button change the picture. ]
A word of advice: it's easier to help a man who posts a screenshot of their event.
You could use a button common events plugin that increments a variable every time ok is pressed and checks if that variable is > x, do something.

Presumably you want them to have to press ok x times in y seconds though and not just count up every time they press it ever which will complicate the logic because then youd have to add a loop or switch on another parallel common event counting down a number of frames and when that loop reaches 0, reset the ok button presses variable to 0.

Something like this if no plugin
1713811118772.png
You could use a button common events plugin that increments a variable every time ok is pressed and checks if that variable is > x, do something.

Presumably you want them to have to press ok x times in y seconds though and not just count up every time they press it ever which will complicate the logic because then youd have to add a loop or switch on another parallel common event counting down a number of frames and when that loop reaches 0, reset the ok button presses variable to 0.

Something like this if no plugin
aah I understand now, thank you very much! I'll see if there is, but if not I'll use this tutorial, thank you very much!

Original thread: https://forums.rpgmakerweb.com/threads/command-to-change-the-picture-when-is-actived.167932/