Unique Item Collection Quest

fusserhi

Warper
Member
Joined
Dec 1, 2018
Messages
3
Reaction score
0
First Language
English
Primarily Uses
RMMV
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...
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
3,194
Reaction score
1,190
First Language
Dutch
Primarily Uses
RMMV
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.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
40,851
Reaction score
14,041
First Language
English
Primarily Uses
RMMV
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).
 

Latest Threads

Latest Posts

Latest Profile Posts

Today I drove through my city of 100,000+ people during rush hour and the streets were nearly empty. Just so I could go get my favorite burger. There a dental assistant (she said that's her other job, even though I didn't ask) took my order and handed me a burger. I know it's bad out there... But wow, she's either atrocious with her money, or "it really be like that".
Chilling out while toodling around someone's painstaking Minecraft recreation of Disneyland. It is mind-boggling and probably as close as I'll ever be to going.
>Testing with fonts change.
>Tries installing a plugin. Doesn't work.
>Tries changing the plugin commands. Doesn't work.
>Tries installing another plugin. Doesn't work.
>Changes a few more plugin commands. Doesn't work.
>Goes directly to the gamefont file and changes the src. Works.

YYEEEAAAAHHHAAAA

Perseverance is key, bois and girls.
What Reviews say on RPG Maker MZ?

Forum statistics

Threads
107,813
Messages
1,032,396
Members
139,958
Latest member
geekor
Top