Need help altering Galv Event detectors

Hello so I'm using Galv Event detectors for a project where I need my characters to do a stealth mission and avoid being seen, I noticed though while testing that the plugin doesn't detect in a normal line of sight.
Example:
Galv normal line of sight E=Event
x x E x x
x x x x
x x
x
I want it to look like this
E
x
x x x
x x x x x
I hope that makes sense basically the event should see with its LOS spreading outward rather than shrinking.
I looked at the code and think I know where it needs to be changed to alter this, but my math and coding skills suck so I was wondering if anyone else could look at it and see how I could change this.
Thank you
link to plug in
https://galvs-scripts.com/2016/08/01/mv-event-detectors/
Just a side note, instead of posting the whole code you rather just link to the plugin.
That's better because:
  • Maybe there was an update.
  • Copying the code from your post is tedious, because you need to scroll so far.
  • Galv doesn't allow his plugin/script to be re-posted anywhere.
Also, Galv does allow only edits for personal use. Someone is not allowed to share edits in public.
Thank you I wasn't trying to be tedious. I updated to only show the plugin link, but you are saying that you wouldn't be allowed to post a edit to the plugin though?
No problem. 🙂
A friend of mine once posted an edit to a Galv Plugin and it was taken down, because Galv did not allow it.

Maybe you should post your issue here first https://forums.rpgmakerweb.com/index.php?threads/galvs-event-detectors.67977/.
FYI - it'd be better for someone to write a patch plugin that changes the plugin for you and post that instead of posting a modified version of the plugin. Also that will allow you to update the main plugin without needing it to be re-modified for you again.
Hello I am struggling with the same Plugin, I'm starting to fear it's not working due to conflict with other plugins

this is the part I'm having trouble with
from the instruction file
----------------------------------------------------------------------------

You can use the below script call to check if an event can detect the player

at the time the conditional branch is called. (Yes this can be used in a

parallel process event if required)



Galv.DETECT.event(id,dist,los) // id = event ID that is a detector

// dist = tile distance from player

// los = true or false for line of sight



This will return true if the player is in distance range of the event and

if los is true, it will also check if player is in line of sight to it.

----------------------------------------------------------------------------

my patrolling guard's event ID is 012
so do I write: Galv.DETECT.event(012,6,true) ????????

PLEASE HELP
FYI - it'd be better for someone to write a patch plugin that changes the plugin for you and post that instead of posting a modified version of the plugin. Also that will allow you to update the main plugin without needing it to be re-modified for you again.


Hello I am struggling with the same Plugin, I'm starting to fear it's not working due to conflict with other plugins

this is the part I'm having trouble with
from the instruction file
----------------------------------------------------------------------------

You can use the below script call to check if an event can detect the player

at the time the conditional branch is called. (Yes this can be used in a

parallel process event if required)



Galv.DETECT.event(id,dist,los) // id = event ID that is a detector

// dist = tile distance from player

// los = true or false for line of sight



This will return true if the player is in distance range of the event and

if los is true, it will also check if player is in line of sight to it.

----------------------------------------------------------------------------

my patrolling guard's event ID is 012
so do I write: Galv.DETECT.event(012,6,true) ????????

PLEASE HELP

Original thread: https://forums.rpgmakerweb.com/threads/need-help-altering-galv-event-detectors.83568/