Yanfly's Gabwindow freezing on me when a switch is switched

Hi, I'm really new to this, and this is actually the first plugin I tried using.

What I'm trying to do is use Yanfly's gab window to show when I get an item, mostly to just practice what I can do with it, but if it looks good I'm planning on using it going forward.

So the scenario I have is that my character talks to an NPC, who asks him to mail a letter for her. I'm trying to use a switch and a Conditional branch to handle this. If the switch is off, the player gets a specific text message, the item, and the gab window appears to tell us he got the letter. if the switch is on, it's supposed to just show a text message asking if he mailed it yet tp ensure you can't go back to get more letters.

But this isn't working, either it freezes just as the gab window plays. It still fades, but I can no longer move, or use the action button, or the switch doesn't flip. From what I can tell it's me trying to turn the switch on that is freezing it, as it works (other than the fact the else branch doesn't play) when I take it out.

I've also tried using the GabSwitch, but it just doesn't seem to actually turn the switch on.

does anyone know why this may be happening and how to fix it?

My plugins that are active are: Community_basic, MadewithMV, YEP_CoreEngine, and YEP_GabWindow in that order

And my code at the moment looks like (with the exception I removed the ClearGab as it just meant the gab didn't show up but I still froze):

GabWindowNoWork.PNG
So I managed to fix it by changing the switch to a variable, which is fine, though I do wonder why a variable is okay but a switch isn't.
Does the plugin have any switches and variables that it uses, and what are they set to by default? I can't view it because it's a paid plugin and I haven't purchased it.

When you add a plugin, you should look for this, and make sure you are not using those switches/variables for something else. If you are, you need to change the plugin parameters to use switches/variables that you're not using. And in either case, you should go into an event and do a Control Switches/Control Variables and put a name on the ones the plugin is using, so you don't accidentally use them for something else, which is what I suspect you've done.

The other possibility is that it's not the plugin at all, but you might have another event (map event OR common event) set to autorun that is triggered by that switch.
Looks like it was a common event. I was playing around with that just before I tried this little "quest" and forgot to get rid of it. Thanks!

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/yanflys-gabwindow-freezing-on-me-when-a-switch-is-switched.117628/