Ao Oni/Nemesis/Mr X type of enemy. How do I make a stalker enemy in RPG Maker?

So, I want to make a survival horror game where the player can be pursued by a stalker enemy throughout the game while doing the usual survival horror type things (puzzles, keys, exploring, etc).

The rest is easy enough for me to figure out, but I can't quite figure out how to have such a stalker enemy within RPG Maker.

I should also mention that the game will have turn based combat (both player and enemies are easily killable), in case that helps the discussion.

I hope this is the right forum to ask this sort of question in .
download.gif
well, in MV at least, you can set an event's movement route to approach the player, and then probably make them a stage slower than the player. That's a very plain method, but it'd work on some level.
That doesn't really answer the person's question, since the NPC would only chase the player for one room.

The answer sort of depends on how complicated (and thusly how accurate) you want to be with this.
Events cannot transfer between maps. Once a map unloads, that event disappears, so you have to set up logic to make it appear like the event is chasing you between rooms.
You can either just set up a simple timer and make it appear after x amount of time, or you could set up some math to check the event's distance from the player at transfer, then multiply that by the number of frames it moves per grid, and set that value as the timer.
the player can be pursued by a stalker enemy
This part is fairly easy, make an event of the enemy and have it move towards the player with Event Touch. Then when the event is activated, it calls for a battle. On victory you probably move the event somewhere hidden or erase it.

throughout the game
This is the harder part. On the surface you're just copying the above event. However, what happens when you want to make a change (such as appearance or what happens after combat)? Without plugins probably the best way to do this is have a walking sprite with a generic name (such as Stalker) so you don't have to remember an old name if you change the enemy's name. Then have the event in question call up a common event so that all the Stalker events function the same when you need to change them.

If you specifically have MV and Yanfly's plugins, you can use Event Copier to achieve the same result a little easier. You have a 'master' event on a template map, then all the events you actually use are copied from that event to act exactly like it. There's likely other plugins or scripts (especially if you aren't using MV) that I just don't know about.

I don't know the other options that well, but for Nemesis in particular, I think there's a hidden variable that ticks up over time and from certain actions. Once the number is high enough, Nemesis shows up. He'll chase you through rooms, so you'd need to make sure the event that represents him is easy to identify for room transitions or whatever event you use to put him at the entrance the player came from. And to fully escape, you'd need to decrease that hidden variable enough, which is usually done through room transitions.

This reminds me of making a follower system way back in rm2k. I would make sure the follower events were always the first three events on a map so the master event would just call events 1-3 without having to manually make sure it's the right event. You could make sure event #1 is always the Stalker. To do this on a map that already has events, you'd look for the event with ID 1, copy it to another map, delete it, copy the Stalker event onto the map, and finally copy the original event back. Mind, this requires checking to see if any event was referencing that event previously, which can be a long road of bug hunting...

(both player and enemies are easily killable)
If the stalker is easily killable, that sounds like it's just a regular encounter. Enemies like this are usually used as a "run away from the threat you can't beat" kind of thing. If you're not using it that way, cool. If you are using it that way, I'd look into how the Escape mechanic works in your game since that's the primary action set for 'victory'.

Original thread: https://forums.rpgmakerweb.com/threads/ao-oni-nemesis-mr-x-type-of-enemy-how-do-i-make-a-stalker-enemy-in-rpg-maker.173065/