Unwanted Loop in Common Event when Counting Items for Quest

Hello, internet! I thought I'd drop my conundrum here in the forums while I took a break from RPG Maker. My brain is fried and I'm thinking that's why I can't figure out a solution to this issue.

In my game, the player is given a very simple collect items fetch quest. She must retrieve 10 Essences of the Rain that drop from monsters in the wilderness. I am currently using a Quest Journal script and a Hover Graphic script (both by modern algebra if I'm not mistaken) and I wanted to take advantage of their functionality.

So, I set up this Common Event that counts the player's Essences and gives a notification (with the hover graphic script) of how far along they are in the quest. Then, when the player reaches 10/10, I put in the script call for having completed the quest, flip a switch, then the player may return to the quest giver for their reward.

The problem I'm having is whenever the player loots an Essence, the hover alert spams over and over without going away. It's because the game sees that I have 1 Essence in my inventory, and therefore doesn't stop with the conditional branch. I have tried putting "time = 120" in the hover comment (as described in the hover alert script), but that does not help. The notification pops up, fades, then pops up again, fades, and pops up again - again and again.

But I digress - this isn't a problem with the script. It's problem with my event. And my brain is too tired to figure it out.

I can't change the variable to 0 because it'll simply set it again from the top "Control," and I don't want to turn off the Switch because I need it to continue counting until 10/10 Essences are gathered. I simply need the hover alert to give me the notification once and then go away.

Thanks for the help!

Quest7Help.png
You can disable else, and do conditional checks for each value, one after another with a logical sequence, lik e ==1, ==2, ==3 and so on.

Don't need to encapulate conditional branches in THIS case. Will make eventing cleaner and easier to read. 🙂

Maybe you should use a switch so after the first warning it would turn on preventing (with a conditional branch) to show message again.

But it needs to be set OFF the switch too in a way and in a condition it makes sense to repeat this event if needed.
You can disable else, and do conditional checks for each value, one after another with a logical sequence, lik e ==1, ==2, ==3 and so on.

Don't need to encapulate conditional branches in THIS case. Will make eventing cleaner and easier to read. 🙂

Maybe you should use a switch so after the first warning it would turn on preventing (with a conditional branch) to show message again.

But it needs to be set OFF the switch too in a way and in a condition it makes sense to repeat this event if needed.
Yes, thank you! I needed to stare at your response for a few minutes before RPGesus struck me with the answer.

I changed the conditional branches, like you said, and added a single switch to each one. Awesome. Thanks guy!

Quest7Help2.png

Original thread: https://forums.rpgmakerweb.com/threads/unwanted-loop-in-common-event-when-counting-items-for-quest.42369/