[RMXP] How do I set # of items as a condition?

Strangely enough, like the title says, there is no such feature in the conditional branch - it is only set to 1 item.

1713928668536.png


How do I work around this? Let's say, I'll need (5) potions to trigger the next quest, how do I set up the event? Thanks in advance! >.<
Variables, in some way, shape, or form!

If you're counting key items rather than general items--if you needed five specific potions--you can use a variable to count them as you pick them up. (Shameless self-promotion: if you haven't experimented with variables yet, I go step by step on this exact type of "collect # of this item" quest in my eventing tutorial! XD)

I'm not at my dev computer right now so I can't check for sure, but I think you can set a variable = to the number of an item in the inventory. If that's the case, you would set a variable ("Potion Count") equal to that, then add your conditional branch as "If [Variable] "Potion Count" is greater than or equal to 5." If that's the sort of thing you're looking for, check in the Change Variables menu for now--I can take a look tomorrow when I'm at the correct computer!
Hi Tei! Thank you for this! I'm a visual learner, so yes, I'd very much love to watch your tutorials! (Switches and Variables are still hits and misses for me - sometimes they're God-sent, sometimes I want to rip my hair out xD)

Edit: I've just gone through your tutorial in Google Docs, and I just gotta say... after following step-by-step, I've finally gotten it to work! It was the Variables (as expected!) giving me problems because I wasn't setting the right triggers. Thank you so much Tei ;_; You're definitely credited! <3
I don't know if it existed in XP, but all later makers have an option in control variable : game data to count items in inventory.
If that does not exist you'll have to count on picking up

in both cases this is followed by a conditional branch of the variable value.
Actually, I'd have depended on a script call on the 4th tab of the conditional branch event command to achieve that.

Ruby:
$game_party.item_number(TypeYourItemIDHere) >= YourMinimumAmount

Original thread: https://forums.rpgmakerweb.com/threads/rmxp-how-do-i-set-of-items-as-a-condition.168030/