- Joined
- Jan 22, 2016
- Messages
- 3
- Reaction score
- 0
- First Language
- english
- Primarily Uses
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.

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.











