Cafeteria minigame help

(Sorry for long thread!!)

So we want to add a cafeteria minigame to our project, where you have to serve drinks and food to certain clients in a specific amount of time. By watching a few tutorials, we wrote down how the game will work:

Spoiler
1. Main Mechanic: The player is responsible for serving customer orders. Each customer will sit at one of the available tables and, upon doing so, an exclamation mark (“!”) will appear above their head to indicate they want to place an order.


2. Customer Interaction: The player must approach the customer and press to interact with them. When they do so, the customer will show an icon corresponding to their order, which can be one of the following:

* Coffee
* Cupcake

3. Order Delivery: After the customer indicates their order:

A timer will start (for example, 100 seconds).

The player must go to the appropriate area to pick up the item:

Coffee machine (for coffee)

Counter or tray (for cupcakes)

Once picked up, the item will be automatically stored in the inventory or in a temporary variable.

When the player returns to the customer, if they serve the delivers the correct order within the time limit:

The customer will be happy ''😀'', pay, and leave.

If they don't make it in time:

The customer will show an angry icon ''>:('' and leave without paying.

Note: If the player delivers the wrong item, the customer will complain and ask where their real order is.

4. End of the Minigame: At the end of the shift (once a set number of customers have been served or after a certain amount of time), the total amount of money the player has collected in the register will be calculated. Based on the total, a different line of dialogue will appear between Amy (the protagonist) and Chengbo, her assistant.

So we tried to code this and it just didn't work. For starters, we wanted to try our idea with only one costumer, but the sprite of the costumer just disappears, and it all works very weird and not correctly. I attach some screenshots of how we programmed it, and I would appreciate it if someone could bring me a solution to this 🙂.

Spoiler
(Since it's just a test, my friend programmed it in Spanish, I'll translate it for you if it helps)

Pedido --> Order
''Coges una magdalena'' --> ''You take a cupcake''
''No hay pedidos ahora'' --> ''There's currently no orders''
''Coges un café'' --> ''You take a coffee''
Captura_de_pantalla_2025-04-22_210854.png

Captura_de_pantalla_2025-04-22_210905.png


Pedido cliente --> Client's order
*Note: The sprite is different in this screenshot than in the other because we thought that maybe the fact that it didn't appeared it was because of the sprite itself, but the code is the same, so this shouldn't matter

Captura_de_pantalla_2025-04-22_210812.png


Lleva pedido --> Deliver order
Producto actual --> Actual object
Perfecto! Gracias! --> Perfect! Thank you!
Cliente satisfecho --> Satisfied client
Eso no es lo que pedí! --> That's not what I ordered!
Mi pedido?... --> My order?...

Captura_de_pantalla_2025-04-22_210818.png


Pedido 1 hecho --> Order 1 done
Captura_de_pantalla_2025-04-22_210836.png


Me voy, esta tardando mucho --> I'll leave, this is taking too long

Captura_de_pantalla_2025-04-22_210844.png


Captura_de_pantalla_2025-04-22_210923.png

Captura_de_pantalla_2025-04-22_210915.png
Ah when you said code I thought you meant JS but it's all evented?

So when does the sprite disappear? When you serve them the requested item or when you talk to him?
Ah when you said code I thought you meant JS but it's all evented?

So when does the sprite disappear? When you serve them the requested item or when you talk to him?
Yeah, sorry, I meant evented lol

And the sprite just doesn't appear. When we run the game, it's just not there. I don't know why that happens
Yeah, sorry, I meant evented lol

And the sprite just doesn't appear. When we run the game, it's just not there. I don't know why that happens


Page 1 isn't showing up for Belle.

Does it have any conditions for it?

Also Page 4 for Belle has no conditions, so it will be active over, 1,2 and 3.

Event pages priory works is that the higher the event page will have the higher priority.

So if you had 6 Pages for 1 event with no conditions for anyone of them then Page 6 will be active.
Page 1 isn't showing up for Belle.

Does it have any conditions for it?

Also Page 4 for Belle has no conditions, so it will be active over, 1,2 and 3.

Event pages priory works is that the higher the event page will have the higher priority.

So if you had 6 Pages for 1 event with no conditions for anyone of them then Page 6 will be active.
Okayy thank you, I'll ask my friend to check this out
Post related to --> Cafeteria minigame help

So by far we manage to make it work with only one client. The problem is that we don't know what conditions should we use to make appear more clients that can order stuff too. Could someone show me how to do it? I attach a video of how it goes with only one client to give a reference.



Some translations:

''Magd'' -> It should be ''Magdalena'' which means ''cupcake'' but my friend wrote it down quickly since it's just a test.
''Mi pedido?...'' --> My order?...
''Coges un café'' --> ''You take a coffee''
Eso no es lo que pedí! --> That's not what I ordered!
''Coges una magdalena'' --> ''You take a cupcake''
Perfecto! Gracias! --> Perfect! Thank you!

Here are also the conditions we used + translations ⇾

Spoiler
Pedido --> Order
Producto acrual --> Actual object
''Coges un café'' --> ''You take a coffee''
Ya has cogido un producto --> You already have an object
''No hay pedidos ahora'' --> ''There's currently no orders''

Captura_de_pantalla_2025-04-25_165234.png


Magd (Magdalena) -> Cupcake
Captura_de_pantalla_2025-04-25_165144.png


Lleva pedido --> Deliver order

Captura_de_pantalla_2025-04-25_165150.png


Captura_de_pantalla_2025-04-25_165157.png


Me voy, esta tardando mucho --> I'll leave, this is taking too long
Captura_de_pantalla_2025-04-25_165203.png

If you have any questions about anything I attached, feel free to ask

@Theponidraws I've merged your threads.

Please don't make multiple threads for help with the same minigame, since it's quite likely that the problems are all related.

Original thread: https://forums.rpgmakerweb.com/threads/cafeteria-minigame-help.177174/