How do I make common events stop repeating? More info inside. please.

I feel like I'm doing something wrong, and it's probably simple. I have been at this for a bit, trying to figure out what the heck I'm doing wrong.

The idea is for the common event is to send a warning when a variable is lower than 30, in this case, Hunger.

1616077506756.png


Even if I turn on the switch inside a certain map, the text appears and keeps appearing. I want to make this common event happen anywhere, but I'll be grateful for any solutions!

I do have an event that turns on the switch. I just need some guidance on what to do after that.

1616077689604.png



Thank you!
turn the Switch OFF, and when Food is -> 30, turn Switch ON, so once
but other than that, this only 1 methode out of a couple that can be used.
turn the Switch OFF, and when Food is -> 30, turn Switch ON, so once
but other than that, this only 1 methode out of a couple that can be used.
Thank you for your reply. Maybe I misunderstood?

1616079022554.png


It still repeats. The SE and Text appear and keep appearing as if it was an autorun situation if that makes sense.
Your common event loops because its condition keeps being valid.

Turn off the switch, maybe just at the end of the common event, and it won't loop.
If you're aiming for a looping effect where it'll continuously ping you annoyingly, but not literally instantly, you can try adding a wait for like 180 frames (~3 seconds). For flavor type text like that though, you may want to look into a non-disruptive messaging system for the message (like visuStella's gabs or something). Unless your goal is to disrupt the player.
Your common event loops because its condition keeps being valid.

Turn off the switch, maybe just at the end of the common event, and it won't loop.
I totally understand what you are saying and that makes sense. I tried putting a turn-off switch. It didn't work.
If you're aiming for a looping effect where it'll continuously ping you annoyingly, but not literally instantly, you can try adding a wait for like 180 frames (~3 seconds). For flavor type text like that though, you may want to look into a non-disruptive messaging system for the message (like visuStella's gabs or something). Unless your goal is to disrupt the player.
I am actually just trying to give a quick heads-up you know? like "watch out! your hunger is low" and then vanish.

Hold on! I have Visustella's gabs. Would this do what I am looking for? I am still fairly new and still learning all the visustella plugins lol. I think I need to look more into gabwindow if that is that case.
Hold on! I have Visustella's gabs. Would this do what I am looking for? I am still fairly new and still learning all the visustella plugins lol. I think I need to look more into gabwindow if that is that case.

Well, the idea behind gabs is that they don't interrupt the on-the-map interactions like a message does (which requires user-input). If you left the design to me based on what it sounds like you're trying to accomplish, a quick gab would suffice. Fortunately, visu gabs are pretty straight-forward to do, its a quick plugin command, add the text, and the rest of the defaults work just fine (feel free to explore though, there is A LOT of options to fiddle with if you're aiming for personalization).

As far as the switch management is concerned, yeah, I'd think flipping it to OFF would work, but you may need to calculate a little more than that, because having a thousand events with the sole purpose of OFF-ing your hunger monitor switch would get pretty tedious (in my opinion), and may not solve the underlying problem of "alerting the player reliably that they are actually about to enter starvation mode".
Well, the idea behind gabs is that they don't interrupt the on-the-map interactions like a message does (which requires user-input). If you left the design to me based on what it sounds like you're trying to accomplish, a quick gab would suffice. Fortunately, visu gabs are pretty straight-forward to do, its a quick plugin command, add the text, and the rest of the defaults work just fine (feel free to explore though, there is A LOT of options to fiddle with if you're aiming for personalization).

As far as the switch management is concerned, yeah, I'd think flipping it to OFF would work, but you may need to calculate a little more than that, because having a thousand events with the sole purpose of OFF-ing your hunger monitor switch would get pretty tedious (in my opinion), and may not solve the underlying problem of "alerting the player reliably that they are actually about to enter starvation mode".

Thank you so much! Yeah, it seems easy to use, and I agree it would be more tedious, lol.

For now, though what worked out, I just set the wait time to 999. I'm not going to make it hard to get food within 16 minutes, lol.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-common-events-stop-repeating-more-info-inside-please.134535/