Item finder event like in Pokemon

Thought I try making a key item that can let the player know if there is an item(s) on the current map they are in. But once they find them all the key item can tell them there is nothing in the room.

As of right now, I'll be trying to make my own in Rpg Maker MV but if anyone knows of a tutorial that would be appreciated.

I will update when I succeed in making my own. If anyway.

Update Edit: I created a Key Item that calls a Common Event. I created a variable for the areas that I want items. On the areas I created an event on map that ran parallel to set the values of the hidden items (Ex:if there are only 3) Then I turned on a self switch.

With each hidden item I include subtracting the value of the total hidden items. The common event has a conditional branch that how many items are left each with a message.

Thanks anyway. This can be closed unless someone else has a better idea. (Like a more interesting one, this is just basic)
you can try to check for items with CondtionalBranch+ to see if switches or variables
are equal (or use an array in a variabl) 1 variable for each map)
so use a scriptcall around this.

so you have something like:
let items = [1, 2, 3, 4], varID = [1, 2];
for (let i = 0; i < varID.lenght; i++) {
if items.lenght === 0) break; //when no more items on the map
let item = Math.randomInt(items.length);
$gameVariables.setValue(varID, items.splice(item, 1)[0]);


so you need a work around for drawing that number is random taken
or use random that the items have different spot each gameplay on that map,
so the 4 items can be on the 4 spots, but draw a random number.

when you array of numbers can be counted in some way, you have an easy
time 🙂

if you need to know how to draw the item in front of you, (I got a work around for it)
because I use that 😀, but how many are left on the map is a nice idea as well.

just not exacly sure how you do that ^^
@evmaster In the future if you want to close your help topic, Report it and say in the report that it's been solved. That way a mod is guaranteed to see it.

Thread closed a

P.S. Never run a Parallel Process event for this kind of thing (unless you are erasing the event at the end of one cycle). You will cause a lot of lag in your game. Just set the value as soon as the player enters the room/map/whatever, and update it whenever the player finds a hidden item. No reason to keep setting it every frame.

Original thread: https://forums.rpgmakerweb.com/threads/item-finder-event-like-in-pokemon.123110/