MV Triacontane MenuCommonEvent.js and PictureCallCommon.js: I can't make the picture change when the mouse hover in or out of the picture more than once.

Hi everyone, I'm a beginner in RPG Maker.
I'm in the process of making custom menu and need help with a problem inside a common event using the following plugin.
-----------------------------------------------------------------------
The plugin in question: MenuCommonEvent and PictureCallCommon. (author: Triacontane)
-----------------------------------------------------------------------
So, I tried to get picture to change when the mouse is hovering within the picture and revert back when the mouse is outside of the picture.
The picture shows up inside the Item_Scene with no problem.
But I only managed to do each command to activate once, and it can't be triggered again.
I figured it's because I can't figure out how to turn switch 41 off when the other switch 51 is on and vice versa.
Here's the common event in question:
1698469025144.png


Maybe this is a beginner mistake please guide me on how to solve this problem!
I briefly used this plugin. The plugin command P_CALL_SWITCH turns on the switch when the mouse is inside the picture, right? But is it supposed to turn the switch off automatically after you go outside? Also, is this common event being run just once when called? The plugin had a script call that you could use:
JavaScript:
$gameScreen.isPointerInnerPicture([ID])
This could be used to see if the mouse is hovering inside the picture at any give time. So you can manipulate the switches depending on that. But it will need to be checked constantly so calling this common event once won't do, I guess.
I briefly used this plugin. The plugin command P_CALL_SWITCH turns on the switch when the mouse is inside the picture, right? But is it supposed to turn the switch off automatically after you go outside? Also, is this common event being run just once when called? The plugin had a script call that you could use:
JavaScript:
$gameScreen.isPointerInnerPicture([ID])
This could be used to see if the mouse is hovering inside the picture at any give time. So you can manipulate the switches depending on that. But it will need to be checked constantly so calling this common event once won't do, I guess.
Hello, the P_CALL_SWITCH event only turn on the switch when it's triggered. It doesn't automatically turn itself off. From what I've read around I think the common event was run as parallel even without being set as such, since the MenuCommonEvent already function as a switch and automatically triggered the common event when you opened a Scene.
I tried using the
JavaScript:
$gameScreen.isPointerInnerPicture(ID)
script and it works if you're within the picture(id) but I still can't figure out the solution of my problem of having it revert back to picture 5 after you went out of the picture 11 hovering.
I think that the first picture kept triggering P_CALL_SWITCH 5 41 4 as soon as it reverts making it stuck as picture 11.
I will continue trying to make this work tomorrow, thanks!
Triacontane's MenuCommonEvent is really not a plugin for a beginner; It requires you to understand the logic in parallel common events since the event page acts like one even if you don't set it to parallel AND it's in Japanese. You basically need to encapsulate the entire page in conditional statements because it runs parallel (over and over again) while the menu is open.

Every command on that event page is going to run top to bottom repeatedly; You need to stop it by putting it inside an if statement so it only runs when you want it to.

is this common event being run just once when called?
Not when using MenuCommonEvents. It will run repeatedly.
I managed to make it work! I can even assign another picture to indicate it was selected if you click on that item category. Turns out you need to use
JavaScript:
$gameScreen.isPointerInnerPicture(ID)
on both of the pictures you want.
picture change.gif

And here's how I've done it in common event.
Picture CHange.jpg

Hope this will help people that want to do the same thing.
Thanks for all the people trying to help. 👋

Original thread: https://forums.rpgmakerweb.com/threads/triacontane-menucommonevent-js-and-picturecallcommon-js-i-cant-make-the-picture-change-when-the-mouse-hover-in-or-out-of-the-picture-more-than-once.162460/