Conditional branch help

Hello, so for my game I'm working on atm, I want to have it so that there is a button the player carries around that is omnipresent on their screen (like this, using the 3D plugin for RPG Maker MZ)
Capture.JPG

I've made two sprites for it, one where its pushed, and one where its not. (most likely these are not final but I just wanna use them for testing)
button.png
buttonpressed.png

I want to make it so its tied to the "c" key.
How I want it to be programmed is when the c-key is pressed, the button switches to the pressed sprite for 1-2 seconds, then switches back to the un-pressed sprite. I'm hoping to have it be the player picks it up from an event that triggers a parallel process to occur for the whole game where you have this with you always, through the rest of the game.
But my trouble I'm having atm is with how there's no way to tie this to any key other than the ones already used of literally anything else in the game
conditionalbranchbuttons.JPG

I've been trying to use plugins that allow things to be tied to any keyboard button but the one I've been using, Hakuen Studio's button common events, only seems to tie the button press to common events. This is useful for most other things but not what I want. Is there anyway to be able to work around this problem, whether that be with or without plugins? Any help would be appreciated I'm a noob at this stuff and its been driving me crazy.
the one I've been using, Hakuen Studio's button common events, only seems to tie the button press to common events. This is useful for most other things but not what I want.
Why not? There are other ways to do it, for sure, but that's one of the suggestions I would've made.

You've used some initial event command to display the image on the screen. Have C call a common event that replaces the image with the button press version, has a wait command for a second, then switches it back.
Why not? There are other ways to do it, for sure, but that's one of the suggestions I would've made.

You've used some initial event command to display the image on the screen. Have C call a common event that replaces the image with the button press version, has a wait command for a second, then switches it back.
Ah that's... a lot more simpler than any of my solutions thus far maybe I was overthinking it but I'm gonna try this now
Why not? There are other ways to do it, for sure, but that's one of the suggestions I would've made.

You've used some initial event command to display the image on the screen. Have C call a common event that replaces the image with the button press version, has a wait command for a second, then switches it back.
ok I tried this solution but all I ended up with is what's show in this video I recorded:
First time I boot up the game and get the button from the NPC, but once the switch is flipped without me pressing C it just does what is shown in gameplay.
On the second playthrough I pressed C and it did the same thing as it would if I had announced to flip the switch.
ok I tried this solution but all I ended up with is what's show in this video I recorded:
First time I boot up the game and get the button from the NPC, but once the switch is flipped without me pressing C it just does what is shown in gameplay.
On the second playthrough I pressed C and it did the same thing as it would if I had announced to flip the switch.

actually never mind this I figured out I just had to add a thing to end the command at the end :LZYdizzy:
For future reference, instead of going through all that to record and link videos, just post screenshots of your events. We can't tell what's going on with the game from just watching.

Glad you got it working 🙂
For future reference, instead of going through all that to record and link videos, just post screenshots of your events. We can't tell what's going on with the game from just watching.

Glad you got it working 🙂
Ok I'll make sure to keep this in mind when I keep on posting. And thanks!

Original thread: https://forums.rpgmakerweb.com/threads/conditional-branch-help.154258/