Do you have the yanfly plugins? There are a plugins that can permanently or temporarily show an icon above their head.
- YEP_IconsOnEvents.js
- YEP_IconBalloons.js
- YEP_EventMiniLabel.js
I personally like the last one best, and just show \i[314] instead of text in the label to show icon for gold, which in my case is icon 314.
Place an event that represents a costumer
- 1. On the first page of the event, make only the next command: "Control variable: var#0001 = random 1~3"
- 2. On the second page, you put "var#0001 ≥ 1" in the condition.
- 3. On the third page, you put "var#0001 ≥ 2" in the condition.
- 4. On the fourth page, you put "var#0001 ≥ 3" in the condition.
Now on the second page, you put the first possible item in the minilabel, like "\i[265]" for an apple, if the first option is an apple.
Repeat this for page 2 and 3 with different items.
Now you can event what happens when the player interacts. Here you can split the event in 2 with a conditional branche: "Party has item: Apple" (make sure you activate the "Or else" option in the bottom"
Now in the upper half of the event you write what happens if you come to the table with an apple (succeed), and in the bottom half you write what happens if you come with any other item (failed).
Do the same thing with page 3 and 4, but with different items.
At the end of the succesful part, you can change var#0001 back to 0, and the whole thing will start over, or you can flip self-switch A after bringing the item and make a new, 5th page in the event:
- 5. On the last page, "self switch A is on" in the condition
you write what happens if you approach a costumer again after giving them the right dish. Here you could ask if the costumer wants something else. Then turn off the self switch and set var#0001 to 0. This will reset the whole thing.
To work this way, you should use a different variable to for each costumer. That could be annoying if you have many costumers in the restaurant at the same time. Yanfly has a plugin to solve this too:
In above example, put a "control variable: var#000
2 + 1" every time you deliver the right dish and "control variable: var#000
2 = 0" when brought the wrong dish. Make sure to do this for all dishes.
Then make a new last page:
- 6. On the sixth page, you put "var#0002 ≥ 3" in the condition.
On this page you can write what happens when you have brought the 3× the right dishes to that table in a row. (I added the in a row part...) At the end of this eventpage, make the customer leave the restaurant, so you can't interact with it this round no more. Because on this page, you collect your reward for completing this events order.
Also on the 6th page, when collecting the rewards, put: "control variable: var#000
3 + 1"
Now make a new event without image somewhere in the corner of your map, where the player can't reach, with one page:
- 1. On the first page, you put "var#0003 ≥ 5" in the condition.
Here you can write what happens when 5 happy costumers left the restaurant, probably game complete.
I hope my idea above would be of any help. I just made it up while writing, so I hope I didn't miss an essential step, but I am quite confident this would work quite well.
Bonus idea:
Put: "control variable: var#000
4 = playtime" and right after put: "control variable: var#000
4 * -1" in the event that starts the whole mini game. (multiplying by -1 makes the value negative)
And when completing the whole mini game put: "control variable: var#000
4 + playtime" in the event that closes the minigame.
Now, var#000
4 + contains the seconds it took to complete the minigame. Great to make a score board with high scores.
(Ps. Sorry for talking to you as if you're a noob. I just want to explain it as clear as possible. It's not because I think you're a noob.)