MV YEP_ButtonCommonEvents issue [SOLVED]

Hello there,

I'm having some trouble with YEP_ButtonCommonEvents

I've set up the item menu on my "i" key.
When I'm using this shortcut, items using common events don't work anymore (or not every time). But these items work perfectly when I'm opening the item menu normally (main menu > item menu)

Here's the key event
1646424068006.png



here's the item config
1646424126220.png



And here's the common event it's calling
1646424167886.png



If anyone knows why it's not working and has a solution, I'd be really happy to hear it.

See ya 🙂
most of all, most "comments" are on the top in order to work,
not below or in between (unless it's coded like that.

2nd, is your plugins in the correct order? if they are out of
place, it will cause bugs or work incorrectly, (if you have alot of YEPS plugins).

further on your events, it looks fine, but I dont reconize the comments though.
most of all, most "comments" are on the top in order to work,
not below or in between (unless it's coded like that.
...
further on your events, it looks fine, but I dont reconize the comments though.
What does this mean? Comments don't "work," they're just...comments. This looks like the OP is keeping track of how this common event gets called.
@ATT_Turan comments work, but most between < and > are executed.
most comments below text/scriptcalls dont work unless they are on
the top unless it is written to use it anywhere in the event.

for example, a conditional branch and a comment in it, and another
comment in the else branch doesn't work unless it is coded like that
to work.

Himes have a plugin to execute a page between 2 comments.
but most comments are ignored if placed lower.

correct me if im wrong on that part. Chaucer have alot a comment
placement on the pick&throw plugin to have an item to carry.
as it's coded like that.

but if comments can work anywhere in the event between < and > or [ and ].
than correct me, I know normal comment or what some people do with //
and comment in what it does which ignore automatically.
@ATT_Turan comments work, but most between < and > are executed.
most comments below text/scriptcalls dont work unless they are on
the top unless it is written to use it anywhere in the event.
My point was that most comments are not a hidden code, it requires a plugin that does it specifically. But I was mistaken, and you were right, Googling it shows these are for the Keyboard Config plugin (which @PLUEVNR didn't mention).

The instructions don't say the comments need to be in a specific place in the event, but it would be very odd if that had anything to do with the OP's problem.
Good point, I forgot to mention that I'm using YEP_Keyboard config plugin

Anyway, it didn't do anything to change the order of the comment or the plugin.
Hi there!

I didn't take a look at the code, but it doesn't seem to me that this is a problem with the plugin itself. Maybe something related to how the RPG Maker code handle this without the player need to go into the menu...

But. besides of that, why you are calling the the Scene Item, and right after that, you are calling the default menu?
1646430544641.png

can you try remove the "Open menu screen" command to see if it works?
Ok... that was the issue... Just simple as that...

To answer your question, I have a plugin that check a common event when you close the menu. This event checks what's equiped on the character and change the sprite according to it.
So opening the menu was just a way to refresh that because it doesn't work when it's opened with a shortcut. But I just realized how stupid it is, I just have to call the said event after closing the menu with the shortcut...

Thank you for your help, problem solved.
Thread can be closed.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/yep_buttoncommonevents-issue-solved.145433/