Monsters appearing and disappearing

Okay, so I've got a sidequest where a certain type of monster that wasn't on the map suddenly appears in random encounters holding an item you need to get. Once you get one of that type of item, I want it to be impossible for that monster to appear again. How can I do that? There's a way to do this without scripting, right? 
yes, with simple basic eventing and conditions - either as switches or as "item exists".


I suggest you follow the first link in my signature to the tutorials - you need to learn how to use switches and variables if you ever want to make a game or quest more compley than "go there"...
 I know how to use switches and variables. You didn't answer my question, though. You just told me what I needed, not what to do. That's like asking someone who makes houses how to make a house and the house maker saying,"Yes, you can make a house with bricks." I know that, but where do I put this switch or "item exists" in this menu? The encounters menu is what I used for monsters, so where do I put the "item exists" condition?

q8QgbX.png
No, that option only exists in evented encounters on the event page - because the map's random encounter table is fixed, you'll need scripts to change that.


And that is NOT easy, because the mapfile is read-only.


Tsukihime has made a script that can add new encounters to the table and remove them again later - but it can only remove added troops, it cannot remove the original troops.


You can try to use that script (it's on her blog, I don't have the link) in combination with events that add and remove your additional troop based on whatever conditions you want.


However as I said it's not easy to do that, the random encounter table is more or less fixed by default.
Oh, bummer. Well, is there a way to do this in a different menu? Like Battle Processing?
Have you considered making the monsters with the item an event based battle instead of random?
Have you considered making the monsters with the item an event based battle instead of random?
That would be the easiest solution, just have a condition check the quest flag to pick which battle processing command to use. (And I prefer having enemies that are visible on the map.)

If you're determined to use random encounters, then the simplest way would probably be to make a copy of the map and change the encounters table for the second one. Then have all the transition events leading to the map check the quest flag to see which version to send the player to. Leaving the map without getting duplicate items is a bit trickier, you'll probably need a common event to watch for the item, and once obtained that event will store the player's X and Y in variables and use them to transfer the player to that spot on the normal map.

Wait a sec... battle events can trigger off global switches. So for every troop on this map (and these troops should not be used on any other map), have a turn 0 event that transforms one of the monsters into your quest monster. You may still need a common event to turn off the switch.

Original thread: https://forums.rpgmakerweb.com/threads/monsters-appearing-and-disappearing.43312/