Nemesis/Stalker System

Hello gentle people of the interwebs, I've once again come to pick your collective brains, as players & devs about an idea.

Specifically the use an enemy or enemies that aren't at a fixed location, but rather rotate through locations based upon an internal mechanic of the game. Think The Nemesis of Resident Evil II or the more recent Xenomorph in Alien Isolation.

Now while I certainly don't think I am up to creating an AI of that level of complexity, I don't see why such a mechanic, scaled down in complexity can't be implemented into an RPG Maker game.

Personally as far as my own project/s go I was thinking of integrating it into a reputation system mechanic; where if the player takes actions that makes a faction sufficiently hostile to them, that faction activates a team of NPCs to hunt them down. However, rather than having the NPCs at a fixed location that player learns to seek or avoid, having those NPCs rotating through maps at set intervals.

Primarily I was thinking of operating it off of the time common event system I already use in my projects; via having at each "hour" (in game time) a variable generate a number between one through four, to determine which map the NPCs "move" to; i.e North, South, East, or West of their current location. & if the player happens to be on that map during the "hour" (in game time) the "Nemesis" event then moves directly towards the player character on that map.

Rather like the faction conflict mechanics used in Elder Scrolls & Fallout, were rival factions actively send out teams of enemies to kill you, once you've made them hostile to you. That you encounter at random locations, based upon where you are.

What I am interested in hearing for all of you, is what you think of such systems as both players & devs?

Have you tried implementing a system like this in your own projects before? If so how did you implement your system, & were you satisfied, disappointed, etcetera with your system? Why?

Have you played games that used something like a "Nemesis" system, & if so did you enjoy them? Why?
Doesn't sound much different to having NPCs that operate on a time system, and will be in different locations doing different things at different times. These ones will be like on-map enemies set to approach you.

I am not familiar with any of the games you listed.
@Shaz
Largely yes, however most of the time when I see these systems used in RPGs, they are used for some hidden NPC quest giver or special monster that you hunt. I.e. they are Easter Eggs or keys to special loot.

My intention as far as my own project is to use them as an extension of consequences of player choice. Preferably even have the player be able to speak with those NPCs if the triggering "bar" as it were hasn't be reached.

For example perhaps having an order of religious warriors (standard issue Crusaders, Paladins, & Witch Hunters types) being one of the factions. If the player has a positive relationship with that faction, these potential "Nemesis" NPCs could be interacted with, perhaps even be quest givers, or temporary party members. However, if the player has a sufficiently negative relationship with their faction a "seek & destroy" trigger would activate, & they transition from non-violent NPCs, to more powerful than standard enemies that actively seek out the player in the larger game world.

The main things I need to take a closer look at is potentially having the "move" event factor in the player's current location in the world, & "move" towards the player's location in the larger game world. & have them scale with the player, so that the "Nemesis" NPCs are always a potential threat, that is hunting for the player until the player succeeds in taking them out.

It's why I am curious to see how other people have tried to implement such a system, & how they viewed the end result. As well as what other games people have played were the mechanic was implemented.
You really wouldn't need to have a single event that moves, just create the illusion that a single character/monster is moving. I've found that the best, most stable systems are the ones that only seem complex (but are actually quite simple).

So, the illusion then.... So, create yourself a template event that you can copy, paste, and modify. The event event should have a tree that checks the time (and optionally if the player is on the same map as it currently). Once you have the time checked, make the enemy see if it is the right time to appear on that map, then make the enemy appear via a fade in or something and follow the player. You could even get a bit more complicated and add a second check and do a random number after checking the time so that there is a chance that it wont show up at all, even if the time is right (gives it more of a realistic feel personally). -- So now you have an enemy that checks the time, if the time is right it will show up and chase the player, if the time isnt right it does nothing. Once you have this template, you copy it and place it on the maps you want it to show up, then edit the time per map to create a fake schedule. The idea is it seems like it moving around, but each monster is technically a completely different event. You can then add common event calls to each one to do different things if you want, or add little quirks on and so on, customize it.

Im sure there are easier ways to do it, but that's how I think I would personally go about it.
Perhaps you want to consider a spawn event/clone event plugin. Galv has a good one. Basically every field map has a nemesis spawner parallel process event that checks if the player is hated by a certain faction. If they are(or you might want to add an additional level of randomness or probability to it), the event will spawn a visual encounter event on the map that chases the player (in a logical manner of course, for that I suggest a Yanfly plugin).

Now, as a concept, you have two extremes here. Nemesis was the big bad of RE 3. You can't kill him. He follows you and makes your life harder. In Fallout, making a faction hate you resulted in small troops of their footsoldiers sometimes spawning in your area and attacking you. Enemies scaled with your level in Fallout, so these troops were never pushovers, but they still weren't bossfights or particularly annoying or difficult. Thematically, what you would use is based on the linear nature (or lack thereof) of your game. A more linear game will benefit from a huge constant threat that can only be defeated later. A more open-world game with factions could use the second type.

I'd love a nemesis system, but as always, it has to make sense and be logical within the game. It's what made Resident Evil 3 great. It was used well in Clock Tower too. I also loved it in Fallout, it gave you a sense of consequence to your actions. Not only could you not enter their territory, they had hunting parties out for you too. With that, I can see it being used in a horror game or an open-world rpg. In a more linear rpg, I imagine you'd have more of an Ultros from FFVI than the hunting parties of Fallout.

EDIT: Not quite the Nemesis system started by Clock Tower (or did someone do it first?) and done amazingly by Resi 3, but I just realised that FFX's Seymour during the second half of FFX is kind of a nemesis/stalker, too. A better example than Ultros, because Seymour was a huge character during the first half (he even became a guest at one point and was hugely OP) who eventually turns into a persistent boss who keeps reanimating and getting progressively insane as he keeps coming back to life. A well-written "nemesis" in a linear rpg could work and could make a game very memorable.
I don't think I've ever played a game which used such a system, but some games do kind of weave the "feel" of it into their narrative; for example the way your Rival in Pokemon occasionally seems to show up for no specific reason at some of the places you go, or the way your party occasionally runs into the game's big bad (V...) putting his plans in motion in Tales of the Abyss, which are nonviolent (if tense) meetings since neither side sees a pressing need yet to get rid of the other.

I do think that the idea of several true "travelling" antagonists would be awesome, and I'd probably go out of my way as a player to seek them out and see what it looks like if I find them in X town or Y dungeon. But it would also require a lot of (potentially clumsy) gymnastics from the game designer to ensure that it makes sense to find an antagonist in X town at Z time in the game, and to provide dialogue that fits what has been happening at Z time in the game (as well as a level of challenge that fits Z time in the game, if a battle ensues)!
@hyde9318
It's an idea that could work with other projects, but I see two problems with it in regards to my own project.

First, I want the characters that would comprise the "hit squad" or "Nemesis Team" to be ones that the player can interact with even if the player doesn't trigger the prerequisite hostility level with their faction. I.e. if the player is friendly with that faction, they would be friendly with those NPCs. Perhaps even have them as quest givers or temporary party members, depending upon quests & faction relationship.

So with a time based setting on each map, you have the potential to trigger the event, then have the "Nemesis Team" effectively appear almost instantly on the trigger being switched to on, even though they are on the other side of the sandbox. Which is honestly rather immersion breaking.

Second, having a set time for the different maps removes the pursuit & randomness element, making it easy to understand when & where the "Nemesis Team" will appear.

However, if I can program the event to understand the player's position in the game world (the map they are on within the sandbox), relative to the events own position, I can teach the game to have the "Nemesis Team" to actually pursue the player. So if the player were to run from the "Nemesis Team", they would actually follow the player to the next map.

I am thinking of trying an X/Y coordinate system tracked via variable that change based on where the event is & where the player is. Then compare the player's X/Y coordinate value, with the event's X/Y coordinate value, & have the event move based upon that value. The idea being that if the player were to spend a fair amount of time grinding on a field map, the "Nemesis Team" will track them there; if the player spends a good amount of time in a particular town, the "Nemesis Team" will track them there.

@jmike
Personally, I don't see myself using parallel processes for the initial check in my own project; though it would probably work just fine with other projects.

With multiple factions to potentially generate a "Nemesis Team", that is a great deal of potential lag. Far easier to just have events that alter the variable that is evaluated to determine hostility level, run a check on the variable level in coordination with adjusting the variable, & if the correct level is reached, turn the trigger to "on". That way the only parallel processes involved are the events specifically.

It probably wouldn't be necessary if it was a singular Nemesis, like in Resident Evil. However, I am intending for something closer to Fallout New Vegas, where someone can potentially trigger hostile reactions from multiple factions at the same time.

@Wavelength
I like the idea of a Rival System, & it was actually recently watching some youtube videos about Shadows of Mordor & Shadows of War that got me thinking about trying something similar in one of my projects.

However, I am aiming for a more decentralized narrative based on player choice, rather than a more linear story structure for my own project. So creating an actual "Rival System" would potentially be even more complicated, than having one or more free roaming "Nemesis Squads".

Having an active "Rival System" could be interesting with a more centralized story though. Perhaps having the "Rival" character being shaped by player choices, both at the character creation stage, & by certain "watershed" moments in the narrative. Either making them an antithesis of the player character, or a mirror image. There is also the question of a potential sexual partner/romantic interest as a corrupting influence; to better justify a "heel turn"/"Evil Ending".
Kinda a late reply but my solution to eliminating parallel process lag is to have the event erase itself after checking once. Won't work for parallel process events that can trigger any time (like a time system related check event) but it will work for you, since an enemy spawning on a blank tile while the player walking is immersion breaking and you probably want to have the visual troops only spawn upon map entry.

Original thread: https://forums.rpgmakerweb.com/threads/nemesis-stalker-system.87011/