public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

Looping with switches randomly not working

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: Looping with switches randomly not working
  • Original author: RastGong
  • Original date: February 11, 2016
  • Source thread: https://forums.rpgmakerweb.com/threads/looping-with-switches-randomly-not-working.56670/
  • Source forum path: Game Development Engines > Activation Issues

Summary

Hello,  I am trying to make a bar tending mini-game which involves a loop that makes one of eight patrons randomly show an explanation point bubble signaling that you need to serve that patron. That part of the program is working fine, but I have it so that whenever one of the patrons randomly shows an exclamation, a switch is triggered so that it is possible to have a variable tipping mechanism. The problem I am encountering is that even though the exclamation shows, the switches seem to randomly decide...

Archived First Post

Hello, 


I am trying to make a bar tending mini-game which involves a loop that makes one of eight patrons randomly show an explanation point bubble signaling that you need to serve that patron. That part of the program is working fine, but I have it so that whenever one of the patrons randomly shows an exclamation, a switch is triggered so that it is possible to have a variable tipping mechanism. The problem I am encountering is that even though the exclamation shows, the switches seem to randomly decide whether or not they want to be triggered. By this I mean that sometimes the switches work, and allow the player to trigger another event that serves as serving the patron and receiving a tip, but, seemingly randomly, there are times when those "serving the patrons" events will not trigger, even though the exclamation bubble shows up and therefore the switch should be switched. I have narrowed it down to the event I have included, but I cannot seem to isolate the error, because of the seemingly randomness of when the switches work and when they do not. There are 8 possible patrons, and a number between 1~8 is randomly assigned to the bartending_control variable, this then leads to the exclamation bubble being shown over the proper patron and should allow for the player to trigger that event to "serve" the patron and collect a tip. Every one of the events can be triggered, as I have discovered through testing, but as I said, seemingly at random, the events do not always work. I assume that there must be an issue with my looping, but I just cannot figure out what it could be. I would greatly appreciate it if another set of eyes could take a look and tell me if there are any obvious errors. It may be a bit sloppy because I tried changing up several different things to see if they might be causing the error, but I have had no luck. Thank you for reading.

Protected download

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download

Referenced Images / Attachments

loopswitcherror.jpeg
loopswitcherror.jpeg
Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#rpg-maker-archive#activation

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar