Cooking system

I've seen people have cooking systems where you have set recipes to choose from that require different ingredients to make, but I'm looking for something a little different. Basically, you can toss in up to 3 ingredients and they will make a meal depending on what you chose, rather than picking from specific recipes.

For example, if you tossed in a bass and a hot pepper, you'd make a spicy fish fry. Does that make sense?

How would I execute something like this?
Plugin. Not sure if there is one that does specifically what you're asking for tho.
You could do this without plugins as well, depending on how many ingredients/recipes you wanted to use.

https://forums.rpgmakerweb.com/index.php?threads/eventing-a-place-able-crafting-system.83283/
@doodlebound, here Shg Recipe Book/Cooking Mini Game: https://forums.rpgmakerweb.com/index.php?threads/shg-recipe-book-cooking-mini-game.77571/

Try it if you like.
What you're asking for can be done with eventing alone!
So when you toss things in the pot, let's say a bass and hot pepper, you just add them individually as strings to a variable.
For the bass, do a control variable, set operation to add and operand to script. Type in "bass ". Do the same when you add the pepper, but with "pepper " naturally. Keep the quotation marks and the space, which is there to separate the words in the variable.

Then you do conditional branches for every successful combination, with conditional branch set to script $gameVariables.value(id of variable with the ingredients).includes("ingredient 1" && "ingredient 2"); and this returns true if both ingredients are in the mix. You might want to reset the variable to 0 after.

So as an example event, if bass has item id 3, and hot pepper 4:
Spoiler
Select item : #0020, Regular Item

If : #0020 = 3

Control variables : #0021 += "bass "
End

If : #0020 = 4
Control variables : #0021 += "hot pepper "
End

If : Script : $gameVariables.value(21).includes("bass" && "hot pepper");
Change Items : Spicy fish fry + 1
Change Items : Bass - 1
Change Items : Hot pepper - 1
Control variables : #0021 = 0

End

You can check for larger combinations by adding more &&'s to a conditional:
Spoiler
If : Script : $gameVariables.value(21).includes("milk" && "butter" && "egg" && "flour");
Change Items : Pancakes + 1
Change Items : Milk jug - 1
Change Items : Slab of butter - 1
Change Items : Egg - 1
Change Items : Cup of flour - 1
Control variables : #0021 = 0

End
What you're asking for can be done with eventing alone!
So when you toss things in the pot, let's say a bass and hot pepper, you just add them individually as strings to a variable.
For the bass, do a control variable, set operation to add and operand to script. Type in "bass ". Do the same when you add the pepper, but with "pepper " naturally. Keep the quotation marks and the space, which is there to separate the words in the variable.

Then you do conditional branches for every successful combination, with conditional branch set to script $gameVariables.value(id of variable with the ingredients).includes("ingredient 1" && "ingredient 2"); and this returns true if both ingredients are in the mix. You might want to reset the variable to 0 after.

So as an example event, if bass has item id 3, and hot pepper 4:
Spoiler
Select item : #0020, Regular Item

If : #0020 = 3

Control variables : #0021 += "bass "
End

If : #0020 = 4
Control variables : #0021 += "hot pepper "
End

If : Script : $gameVariables.value(21).includes("bass" && "hot pepper");
Change Items : Spicy fish fry + 1
Change Items : Bass - 1
Change Items : Hot pepper - 1
Control variables : #0021 = 0

End

You can check for larger combinations by adding more &&'s to a conditional:
Spoiler
If : Script : $gameVariables.value(21).includes("milk" && "butter" && "egg" && "flour");
Change Items : Pancakes + 1
Change Items : Milk jug - 1
Change Items : Slab of butter - 1
Change Items : Egg - 1
Change Items : Cup of flour - 1
Control variables : #0021 = 0

End
Ohh! Thank you so much! This is very helpful, I think this is exactly what I was looking for.
What you're asking for can be done with eventing alone!
So when you toss things in the pot, let's say a bass and hot pepper, you just add them individually as strings to a variable.
For the bass, do a control variable, set operation to add and operand to script. Type in "bass ". Do the same when you add the pepper, but with "pepper " naturally. Keep the quotation marks and the space, which is there to separate the words in the variable.

Then you do conditional branches for every successful combination, with conditional branch set to script $gameVariables.value(id of variable with the ingredients).includes("ingredient 1" && "ingredient 2"); and this returns true if both ingredients are in the mix. You might want to reset the variable to 0 after.

So as an example event, if bass has item id 3, and hot pepper 4:
Spoiler
Select item : #0020, Regular Item

If : #0020 = 3
Control variables : #0021 += "bass "
End

If : #0020 = 4

Control variables : #0021 += "hot pepper "
End

If : Script : $gameVariables.value(21).includes("bass" && "hot pepper");

Change Items : Spicy fish fry + 1
Change Items : Bass - 1
Change Items : Hot pepper - 1
Control variables : #0021 = 0

End

You can check for larger combinations by adding more &&'s to a conditional:
Spoiler
If : Script : $gameVariables.value(21).includes("milk" && "butter" && "egg" && "flour");
Change Items : Pancakes + 1
Change Items : Milk jug - 1
Change Items : Slab of butter - 1
Change Items : Egg - 1
Change Items : Cup of flour - 1
Control variables : #0021 = 0

End

Forgive the necro post, but I was searching for this today - I'm a total noob - I tried the 2 ingredient version of what you have written above but, when tested, the recipe got "made" after I added only one ingredient...

could you tell me what I did wrong? Thanks 🙂
1601323124860.png

Original thread: https://forums.rpgmakerweb.com/threads/cooking-system.104086/