public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

Need help blocking event line of sight!

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: Need help blocking event line of sight!
  • Original author: Anti Bow-Tie
  • Original date: February 23, 2014
  • Source thread: https://forums.rpgmakerweb.com/threads/need-help-blocking-event-line-of-sight.24061/
  • Source forum path: Game Development Engines > Ruby Game System (RGSS) Scripts > RGSSx Script Support

Summary

Hi there, first post here. I'm working on a project featuring a line of sight-function for events. I tried going about this with switches and variables and ended up with lots of parallel processes containing lengths upon lengths of conditional branches, causing lag as well as general madness on my part. So I stumbled upon this: http://forums.rpgmakerweb.com/index.php?/topic/3452-direction-based-line-of-sight-events/ , and applied 2) Basic Line of Sight Event to the monsters roaming my maps. It's so simple and it works like a charm, kudos to The Infamous Bon Bon! This is my Event (script is written out...

Archived First Post

Hi there, first post here.

I'm working on a project featuring a line of sight-function for events. I tried going about this with switches and variables and ended up with lots of parallel processes containing lengths upon lengths of conditional branches, causing lag as well as general madness on my part.

So I stumbled upon this: http://forums.rpgmakerweb.com/index.php?/topic/3452-direction-based-line-of-sight-events/ , and applied 2) Basic Line of Sight Event to the monsters roaming my maps. It's so simple and it works like a charm, kudos to The Infamous Bon Bon!

This is my Event (script is written out in comments): 

Protected download

Self Switch A activates pg.2, the event's chase mode.

I'm looking for a similarly intuitive way to block the line of sight of an event if there's a certain region ID assigned to one of the tiles in between the player and the event.

Explanatory graphics: 

Protected download Protected download

I've tried rifling through some advanced stealth scripts available online, but I can't seem to make sense out of the relevant parts of them.

Grateful for any tips or pointers toward older topics regarding this problem, or corrections if I'm somehow misbehaving in accordance to the forum rules.

Peace out!

EDIT: swapped the first image (event page) for a better one.

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download

Referenced Images / Attachments

HelpTopic1 - 3.jpg
HelpTopic1 - 3.jpg
HelpTopic1 - 1.jpg
HelpTopic1 - 1.jpg
HelpTopic1 - 2.jpg
HelpTopic1 - 2.jpg
Creator 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.

#039#rpg-maker-archive#rgss-support

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar