common event through item not working.

Thank you very much for the attention given to my problem.

So.. as the title says, calling a common event through an item is not working for some reason. It used to work however.

Fortunately, I have two versions of my project, one with this problem, that is the modern one, and an older version (more than a year old) where calling a common event by the use of an item still works. The new version uses 720p as default resolution and the older one uses standard MV resolution, for some reason I decided to maintain the folder of this older version because I thought I could need it in the future...

Stuff I tried:

1- I have disabled every new plugin that the newer version has in comparison to the older one (it was only three), but the problem continues.

2- I do go a lot into the .js files in the js folder and change stuff by my own (mainly the rpg_windows.js file, like everyone else I guess that is not versed into coding). I don't know where "common events by item" should be, but, by looking at both folders (old and new one), the "rpg_core.js" and the "rpg_windows.js" were the only two with a different "last modified" date... I replaced both in the folder of the newer version and tested it, but the problem do continue...

Thank you already for reading my problem;
I've done lots of item-common-event related things in my game! I think I can help you.

When you created your item, and it's respective common event, did you make sure the item under the item database was linked to your common event? Sometimes I found that I had forgotten to link the actual common event itself to the item, hence why nothing happens.

If it IS linked, then it certainly has to do with how you coded your common event, which I have no detail about.
As mentioned above, make sure the item calls the common event. If that's not the problem, the common event is, so if you're still struggling, post a screenshot of it to us and we'll diagnose. Good luck!
If you set a condition for the common event, that may be why it's not triggering. Make sure there is no trigger for the common event
and if none of the tips above helped, show us screenshots of both the item in the database and the common event, then we might be able to find out what went wrong with the item.
Hii

Sorry for the late response.
Yes, everything is correct linked. All the common events in the itens used to work since they worked in the older project how I wanted them to work. The common events are also rather simple; one in particular is just +1 of an item... the item is a bottle, after used, the player gains 1 of the item "empty bottle".. so, it is literally just one line the common event.

I found out the problem, it is another common event. After using an item that has a common event in it the game throws us imediatelly out of the menu window and into the game. I made another common event that prevents that (because it is strange for the player perspective to use an item and return to the game, and use other itens and stays in the item window). With this other common event you use an item that has a common event and you stays in the item menu (it just opens the item window again)... but it turns out that the common event in the item won't work if the game doesn't force the entire menu window to go out first and have the player call the menu again...

I made this common event a long time ago and didn't thought that it would turn something else into a problem... so I made it and immediately returned to redone my assets to fit 720p, forgetting about it.

Thank you very much for responding me.
@Kissa
one tip for the next time: when trying to fix something, it is very important to find the cause instead of just applying a surface fix. If you don't do that, the result is exactly what your current problem was.
after all, if there is a red warning light on your car, you should remove that light by having the car repaired, not by painting the light cover black...

in this case the items with common events force the map because the map interpreter is needed to process the common event. ONLY the map and the battlescreen have interpreters by default, all other screens don't have them.
As such the better solution would have been to install a menu interpreter plugin to allow the common events to be processed while on the item screen.
If I remember correctly, tsukihime wrote such a plugin for MV.

Original thread: https://forums.rpgmakerweb.com/threads/common-event-through-item-not-working.146284/