Using Eventing to configure a Life system

Okay so for my game right now, I'm making a mini game where you act as a barista and give people coffees. A big part of that is having the customers who are waiting too long affect the player and eventually cause a game over. The concept I have in mind is a zelda like health hud where the lives would be reduced by one after a customer storms off if the player takes too long to get them their coffee. Preferably, I'd like a warning before the life loss, such as the customer complaining about it taking too long.

Heres the kicker though, I can't have them all working on the same timer. Customers will be walking into the coffee shop at different rates, and I need their internal timers to start as soon as they get in line, so basically they wont be working on the same time. Is there anyway I can do this through eventing only? Or perhaps using a script? Just warning I am not well versed in scripting at all, so a detailed explanation, or perhaps a video would really help! 😀
The life system itself is simple. You just have a variable for lives that decreases by one every time a customer is unhappy. As far as what happens before that, I think you can just do a wait command for each, and then a conditional branch that checks if the conditions are satisfied for the customer to be happy and get the correct order, and otherwise you trigger the unhappy sequence. Set it to parallel process, so it doesn't interfere with anyone else.
The life system itself is simple. You just have a variable for lives that decreases by one every time a customer is unhappy. As far as what happens before that, I think you can just do a wait command for each, and then a conditional branch that checks if the conditions are satisfied for the customer to be happy and get the correct order, and otherwise you trigger the unhappy sequence. Set it to parallel process, so it doesn't interfere with anyone else.

I dont think I understand what you mean by the conditional branch that checks for happiness? I'm aware of how to use conditional branches and I have tried to brainstorm a solution using this, but I am going to have a lot of customers, and using variables seems to make certain things not work. Maybe I am just doing it wrong
If you want each event to have their own timer then I suggest using Galv's Event Respawner Plugin. This will allow each event to have their own timer and when it runs off you can have it switch to another page, tick off a variable or activate another switch.
Paralell Event:

If Timer Variable for Event1 "is more than" 0
- Do Timer Variable for Event1 sub 1
- If Timer Variable for Event1 is equal to 0
-- Do Activate Switch or Self Switch(With Scriptline) for Event1, to activate Eventpage for leaving the Shop because it took too long.

If Timer Variable for Event2 "is more than" 0
- Do Timer Variable for Event2 sub 1
- If Timer Variable for Event2 is equal to 0
-- Do Activate Switch or Self Switch(With Scriptline) for Event2

And the next Event ids...
Than maybe a 60 Frames wait.


There are other Ways to solve this, but aslong it works, why not.
If you want each event to have their own timer then I suggest using Galv's Event Respawner Plugin. This will allow each event to have their own timer and when it runs off you can have it switch to another page, tick off a variable or activate another switch.

Do you know if, using that plug in, there is a way to assign more than one timer to one event? The ideal would be to have a timer go off before the customer has even gotten to the counter, and one when he is already at the counter.
I thought about eventing this. You make the customer event happen in parallel process, with a timer, maybe some balloons like the spiderweb one to show that they're unhappy. And once the timer is up, you activate some self switch to start the next part of the customer behavior. The problem being that you can't interract with the event if he's in parallel process. But maybe with HIME's event triggers plugin?
Do you know if, using that plug in, there is a way to assign more than one timer to one event? The ideal would be to have a timer go off before the customer has even gotten to the counter, and one when he is already at the counter.

Not at the same time, but individually yes. You would have one page countdown the when they're not at the counter, then when the player interacts with them you can stop the event's current timer, turn it to another page and start a new one.
I edited a possible Solution for your Timer which could safe some work in your other Thread.
One Question, do the Customers give there Order and than go into Line? Or are they waiting in Line to give there Order?
Just wondering if this is a 1 after 1 single customer gameplay. than the timers would not make much sense,
but if you can make different coffees and give them to different customers, that could be cooler but more work.
Depending on such details, the afterall solution could be more or less different each time.
https://forums.rpgmakerweb.com/index.php?threads/galvs-event-spawn-timers-help.110084/#post-978215
Okay folks I've figured out the issue of the thread.
Spoiler
Screen Shot 2019-06-20 at 3.38.02 PM.png

For those of you interested, I simply used the Wait Event Command twice, and after every command, I added a show text command which expressed the complaint and eventual storming off. This worked particularly well considering the event page it was on had a move route where at the end it switched to another event page which was specific to what I wanted to happen once the customer reached the counter.

As for the life system, i haven't done that yet but as @HexMozart88 has said, I'll just use the variable tool to figure it out, and tie it to the complaint eventing.

Now all I have to figure out is finding a plugin that I can use to show the text of the complaint without it interfering with the flow of the game. If anyone knows of a way to show pop up dialogue that you don't need to use the action button to continue, please let me know!

Thank you all very much for your help!

Original thread: https://forums.rpgmakerweb.com/threads/using-eventing-to-configure-a-life-system.110050/