I don't know if this is the right place to post this. If I was wrong I apologize and that the moderators move it to the correct place.
A few months ago I was looking to solve a problem that seemed quite simple to me and I was confident that it would be easy to find help, but I saw that many people asked to solve this problem and no one answered and they were left without answers.
The problem was that when using an item or ability from the menu that leads to a common event the menu closes automatically because the common event requires the execution of an interpreter, and the interpreter only works on the map, not in the menu. .
After testing and experimenting with different ways to solve this problem, I was able to solve it. My intention with this thread is not to seek help but to contribute my idea to solve this problem for others who have exactly the same problem.
The solution is when creating the common event at the end of everything you should put this script "SceneManager.push(Scene_Item)" without the quotes, this will force you to go back to the item window when the common event ends, but this doesn't solve everything the problem itself because from the item menu when touching the cancel button it will not go to the menu window but it will go directly to the map (which seems a bit annoying to me). For this reason, before putting the script at the end of the common event, you must activate a switch that will activate another common event in parallel process and there place the command "if cancel button is pressed" and place this script "SceneManager.push(Scene_Menu)" without the quotes, this will make it go to the menu window. After this script remember to turn off that switch to turn off that common event.
I will provide screenshots (which are in Spanish which is my natural language) so that you can guide yourself.
The only problem I found with this way is that it produces a small delay when pressing the cancel button returns to the menu window with the common event. Without the common event of menu and item windows entering and exiting there is no delay. If anyone knows a better way to solve this, I would like you to tell me that, by the way, help me also to correct this delay.
I hope I have been of help to others. Greetings to all.
A few months ago I was looking to solve a problem that seemed quite simple to me and I was confident that it would be easy to find help, but I saw that many people asked to solve this problem and no one answered and they were left without answers.
The problem was that when using an item or ability from the menu that leads to a common event the menu closes automatically because the common event requires the execution of an interpreter, and the interpreter only works on the map, not in the menu. .
After testing and experimenting with different ways to solve this problem, I was able to solve it. My intention with this thread is not to seek help but to contribute my idea to solve this problem for others who have exactly the same problem.
The solution is when creating the common event at the end of everything you should put this script "SceneManager.push(Scene_Item)" without the quotes, this will force you to go back to the item window when the common event ends, but this doesn't solve everything the problem itself because from the item menu when touching the cancel button it will not go to the menu window but it will go directly to the map (which seems a bit annoying to me). For this reason, before putting the script at the end of the common event, you must activate a switch that will activate another common event in parallel process and there place the command "if cancel button is pressed" and place this script "SceneManager.push(Scene_Menu)" without the quotes, this will make it go to the menu window. After this script remember to turn off that switch to turn off that common event.
I will provide screenshots (which are in Spanish which is my natural language) so that you can guide yourself.
The only problem I found with this way is that it produces a small delay when pressing the cancel button returns to the menu window with the common event. Without the common event of menu and item windows entering and exiting there is no delay. If anyone knows a better way to solve this, I would like you to tell me that, by the way, help me also to correct this delay.
I hope I have been of help to others. Greetings to all.