[SOLVED]Event Causes Stalling on Encounter

Hi,
I'm making a game that has an random ally summon system. You spend an orb, you get a random permanent ally. This works through a common event. Interact with an event, then it prompts a yes or no option. Yes calls a common event with the random summoning, no exits the event. Now, before I interact with this event, enemy encounters load quick, but after I interact with the event, even if I don't call the common event, enemy encounters start stalling for a few seconds. The common event code is in the file included. Any help?
1) events are more than just their content - and the other properties are very important to determine how they work.
that is why your textfile is only of limited value, it's missing the other informations like te trigger or how exactly the event is called.

2) best guess based on your description is that something in the process activated either a parallel process or a plugin-code-loop that is now eating away your computers resources.
This usually happens if a switch or a variable has been used for multiple different things while you forgot or ignored previous uses.
There is only one way to really prevent that: to always name evbery variable and switch on first use (so that you don't use it again) and to always configure every plugin as soon as it is placed in your project, and name any variable that is configured in the plugin to mark it as used by that plugin.
1) events are more than just their content - and the other properties are very important to determine how they work.
that is why your textfile is only of limited value, it's missing the other informations like te trigger or how exactly the event is called.

2) best guess based on your description is that something in the process activated either a parallel process or a plugin-code-loop that is now eating away your computers resources.
This usually happens if a switch or a variable has been used for multiple different things while you forgot or ignored previous uses.
There is only one way to really prevent that: to always name evbery variable and switch on first use (so that you don't use it again) and to always configure every plugin as soon as it is placed in your project, and name any variable that is configured in the plugin to mark it as used by that plugin.

Thank you so much for your response! I tried disabling all plugins to see if it would still stall, and it didn't. So I'll try to find which one is causing it.

Also for my future reference, what would the best way to give all the information that would enable people like yourself to better help? Like How can I include everything like the trigger and such? Would screenshots suffice? Thanks!
yes, screenshots with the full event pages (best done with [alt]-[prtscrn], that way no need to crop things away) are the best option.

as for the plugins - you should only add plugins one at a time and always completely configure them before adding the next one.
so you add a plugin, then open its properties. First read its help section, then check every single option of what can be set for it.
If there is something in the help file that you do not understand or if you don't know what a given option and its value does, then learn that before adding a different plugin.
Not understanding what is changed by a plugin is the quickest way to unidentifiable bugs in your game, and then you have to go through learning about dozens of plugins at the same time instead of one after another.
yes, screenshots with the full event pages (best done with [alt]-[prtscrn], that way no need to crop things away) are the best option.

as for the plugins - you should only add plugins one at a time and always completely configure them before adding the next one.
so you add a plugin, then open its properties. First read its help section, then check every single option of what can be set for it.
If there is something in the help file that you do not understand or if you don't know what a given option and its value does, then learn that before adding a different plugin.
Not understanding what is changed by a plugin is the quickest way to unidentifiable bugs in your game, and then you have to go through learning about dozens of plugins at the same time instead of one after another.

Thank you so much for your help and the tips about plugins. I totally just added a bunch at once. Not going to do that again lol.
Thanks again!

Original thread: https://forums.rpgmakerweb.com/threads/solved-event-causes-stalling-on-encounter.108352/