Original Source
- Original title: MV Line of Sight detection for On-Map Encounters
- Original author: Cxero
- Original date: February 5, 2023
- Source thread: https://forums.rpgmakerweb.com/threads/line-of-sight-detection-for-on-map-encounters.154700/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > JS Plugin Requests
Summary
I'm working on a game in RMMV that uses on-map encounters. Recently, I finished a level that stealth mechanics, which is to say it was populated with enemies that follow patrol routes that can be avoided by staying out of their line of sight. I really like idea and it tested well, although most plugins I've tried have problems that I have some trouble working around. What I want to do is to list off all the ones I've tried (as a resource for anyone else reading this) and so...
Archived First Post
What I want to do is to list off all the ones I've tried (as a resource for anyone else reading this) and so I can solicit advice and plugin suggestions and hopefully figure something out.
Event Chase Player (YEP)
This is the first one I used. I was fairly happy with it, but I quickly realized that enemies can see through walls. Event Chase Stealth allows you to define region IDs that will hide the player from detection, unless you're both inside the same region. Stealth regions do not obstruct line of sight like I was hoping. Also, any event chasing you will immediately give up if you enter a stealth region.
While using this plugin, I set up enemy events such that they initiate a battle on event touch. They would patrol around and chase you when they spotted you. If you defeat them, they're gone forever. If you escape, they will become transparent and just stand still for a few seconds, giving you enough time to run away before they spot you again.
All of this is handled on one event which makes it very easy to add new encounters or change existing ones.
Galv's Event Detectors
This one seems really promising, except it isn't really compatible with movement routes. Which is a shame, because this plugin allows you to define exactly what types of terrain will obstruct line of sight or not. So I didn't mess with it much after realizing that.
Bomblord's "Line Of Sight" plugin
Extremely basic. Any non-passable tile will obstruct line of sight, which can lead to some weirdness like hiding behind a non-passable fence. I would be more than happy to work around that but I can't figure out a simple way to allow players to flee without immediately starting the battle all over again. I'm sure it's possible, but I don't know if it's possible to solve that issue and still keep things simple.
caethyril's Line of Sight
Very configurable. This one appears to be directly compatible with EventChasePlayer — in that it can replace that plugin's sight checks system with its own — which is promising. I tested it briefly, not entirely sure if it works right and neither is the author from the looks of it. Will try again when I have more time.
Gimmer_SpottingPlayers
Haven't tried this one. Looks like it might specifically be geared for something not unlike that scene in OoT where you have to sneak into the castle, but it might be usable. I fear it might have similar problems to Bomblord's plugin. Again will try to test when I have a bit more time.
So that's all I know. If anyone knows any other plugins for me to try, or any suggestions, or maybe even just useful
threads to point me and others in the right direction I'd be very grateful. But for now I have to go.
Downloads / Referenced Files
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadCreator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
Topic Summary
Loading summary...