Good point,
@Bex 🙂 The code on page 1 of Event 3 seems to be flawed in that Complaint1 will never equal 3 (unless it already does when the page starts with switch Complaint OFF...or starts at a value of 2 if switch Complaint is ON...both seeming highly unlikely since there's code to handle Complaint1 = 1). Follow me here: The switch Complaint is either ON or OFF when this page runs. If it's OFF (Case 1), then Complaint1 has to equal 1 or 3, or else nothing on this page runs except the first script line. If Complaint1 = 1 (Case 1a), then you add 1 to it, making it Complaint1 = 2...but since this case began with the notion that Complaint is OFF...and because it doesn't get turned back ON anywhere...Complaint1 will be stuck at 2...which again means nothing will run but the first script line. If Complaint1 = 3 (Case 1b), then the self switch changes the page...but it seems unlikely you would have that be the case...because otherwise...why the preceding code? Now consider case 2, where Complaint is ON. Here you add 1 to Complaint1, then turn Complaint OFF. Complaint1 at this point needs to equal 1 or 3 or else we're back to the same problem as Case 1. If Complaint1 =1 (Case 2a), then you add 1, making it Complaint1 = 2...but now we end up like Case 1a anyway because the condition Complaint1 = 3 won't run, the switch is OFF, and Complaint1 is not 1 anymore. If, on the first pass, Complaint1 was equal to 3 (Case 2b), then we get the same result as Case 1b...and the same question.
It might help if i give some context to what I'm trying to do. as
@Bex is probably aware of due to an earlier post, I am basically trying to make a barista simulator, where the player makes coffees and people come in to order them, and form a line. Should the player take to long to get through the line, it will take away one of three total lives until the player loses.
Now I was interested in having two different mechanisms running per customer. 1. A way of setting up an event page so that the customer at the counter has a set time until he complains the player is taking too long, and then walks away which then reduces the players' life by one. There is also number 2. a way of setting of an event page so that as the customer waits in line, he complains (as a warning) then once he complains again he leaves and the player loses a life. I was quite interested in having both of these, but as there will be SEVERAL customers, and it seems as though Galv's event spawn plugin cannot have two timers work separate in one event, I have resigned to just figuring out the mechanism for the customers in line (as they will be the ones who will probably end up killing the player the most anyway)
So what I have so far is this:
The pictures go from lower pages to higher pages(1,2,3,4), sorry that I had the description in the way.
Anyway, what I was planning to do was this:
in the movement, it should activate the 5 second timer for the Complaint switch. In the first event page, it supposed to run the mechanism where given a certain amount of time waiting, Complaint will be turned on then add one value to Complaint1, then turn off Complaint switch. This should allow the first warning complaint in "If complaint1 = 1", as well as add a second value in order to lead to the customer leaving if he continues to wait (Which is what that "If complain1 = 3" and self switch c is for)
Event page 2 is when the player will be informed of the type of coffee, and then run the mechanism of leaving when he gets his coffee (Event page 3). And Event page 4 is the "Walking away angry" mechanism.
I am pretty new to RPG maker mv, so I probably have something pretty obvious wrong. I cant quite wrap my head around to how this timer stuff works. Every time I would put the this.setSpawn(x,x,x) in the movement route and it would show an error in the game.


