How to Create Multi-Item Switches?

I'm finally at my final area and the first quest will be DONE! One problem, I know how to make switches for having AN item, but not multiple. How do I make the event require FIVE mushrooms? And not only one?

I only want this switch to trigger after the player has collected everything they need.
How do I make the event require FIVE mushrooms?
Multi-switch...new word.
I think in the trade we call those variables, but may need to consult with the experts on that one.
Add item, item variable +1.
Conditional:
If variable = > 5
Do stuff.
Multi-switch...new word.
I think in the trade we call those variables, but may need to consult with the experts on that one.
Add item, item variable +1.
Conditional:
If variable = > 5
Do stuff.
Sorry, not the best with lingo! Thanks!
1695960287108.png

1695960307508.png

1695960327615.png


This is better than what @TheAM-Dol described. You don't need to manually count up a variable whenever you pick up a mushroom. Just check how many mushroom the player has directly and put that value into a variable. Check if variable is desired number>do stuff.
(This prevents the value from ever being wrong. If you added +1 when picking up a mushroom, you'd also need to -1 the variable in case your player can use the mushrooms for other things too. Extra work, not good.)
Multi-switch...new word.
I think in the trade we call those variables, but may need to consult with the experts on that one.
Add item, item variable +1.
Conditional:
If variable = > 5
Do stuff.

Hold up, where is Add Item? It's not under conditional branch, I have "If party has Blue Mushroom" and then the conditional branch furthers. Do I need to add the item as a variable under the conditions menu?
Lol, just look at the screenshot Mr. Orc posted.
Hold up, where is Add Item? It's not under conditional branch, I have "If party has Blue Mushroom" and then the conditional branch furthers. Do I need to add the item as a variable under the conditions menu?
As I explained, you do not check for the item. You add the number of items you have to a variable, then check if the variable has the desired amount.
View attachment 278299
View attachment 278300
View attachment 278301

This is better than what @TheAM-Dol described. You don't need to manually count up a variable whenever you pick up a mushroom. Just check how many mushroom the player has directly and put that value into a variable. Check if variable is desired number>do stuff.
(This prevents the value from ever being wrong. If you added +1 when picking up a mushroom, you'd also need to -1 the variable in case your player can use the mushrooms for other things too. Extra work, not good.)
Lol as you were typing that I replied all confused to the other post
:')
I did it no problem with the visual guide, thanks!
This thread is being closed due to being solved. If you need it reopened, report it to let is know why. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-create-multi-item-switches.161569/