NPC finding body reaction

Hi,

So I'm building a stealth game and I want to be able to have NPC react when one of their friend is in a different state.
What I mean, is that my character has the ability to stun an ennemy, but if one of the other NPCs find the body I want them to be able to react.
This is the current situation :
NoReaction.gif




Also I would need to find a scalable solution idealy because I'm gonna have hundreds of NPC and it would be hard to input each of their individual event ID. So if there is an other solution it'd be awesome 🙂 Maybe a plugin ?
I don't have much time to explain, but checking directions and distances between events is what you need for general stealth mechanics, to check whetter enemy has state, then method isStateAffected(id) is best to do
Hm if you have some time later, would you be able to give me a bit more details ?
Sure, I'm almost done with my project for today, so I can help you with it later, but I'm not promissing anything, because some unexpected events occurs in my life, recently very often.
Sure thing, I mean just when you have the time, because I'm really not sure how to go about it. And I hope everything is alright for you !

Original thread: https://forums.rpgmakerweb.com/threads/npc-finding-body-reaction.124927/