Unique Item Collection Quest

Hi Guys, I did have a look around to see if I could find anything similar to help me, but I came up empty handed.
Anyway, as the title says, I want to make a quest where when I collect 5 unique items an event triggers.

I have the idea of when I collect a specific key item, it activates a switch (the items would be used to trigger other events so not sure about using the same items on repeat for events) and once all 5 switches are activated, an event occurs.

Problem is I dont know how to do that it at all possible.

If anyone is able to help, I would be most grateful...
you can do this by creating a common event and use variables and conditional branches.

if player possessed item 1
variable x = 1
turn switch on
end

repeat this 5 time, each to its own item, call this common event on each of those item.
below the 5, use this:

if: variable x >= 5
trigger the events or switches you want.
else
x more items to go
end

there might be other ways as well, but it really depends what events get triggered,
one of their own, one in general.

there a couple of ways in order to do this, but it also require YEP_MergeCommonEvent
to make it better and possible complex event trigger.

the exact way is something you need to figure out, but this is only a base which can
be used, but you can create it in other ways as well, depending on your needs.
I would just +1 to a variable each time one of the items is collected.

Does the triggered event only happen on a particular map? If so, just put the variable >= 5 in the event page conditions.

If it can happen on every map, then also create a common event with NO trigger, do a conditional branch to see if the variable > 5, and do what's needed when the 5 are collected. Then on each item, after the +1, do a Common Event call.

All that's required then is one variable, and maybe one common event (or maybe not).

Original thread: https://forums.rpgmakerweb.com/threads/unique-item-collection-quest.130298/