Need help altering Galv Event detectors

Discussion in 'Javascript/Plugin Support' started by wickednick, Sep 3, 2017.

  1. wickednick

    wickednick Veteran Veteran

    Messages:
    55
    Likes Received:
    1
    First Language:
    Nick
    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/
     
    Last edited: Sep 3, 2017
    #1
  2. waynee95

    waynee95 Lunatic Coder Veteran

    Messages:
    626
    Likes Received:
    511
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    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.
     
    #2
  3. wickednick

    wickednick Veteran Veteran

    Messages:
    55
    Likes Received:
    1
    First Language:
    Nick
    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?
     
    #3
  4. waynee95

    waynee95 Lunatic Coder Veteran

    Messages:
    626
    Likes Received:
    511
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    #4
  5. Galv

    Galv Veteran Veteran

    Messages:
    1,173
    Likes Received:
    1,110
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    N/A
    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.
     
    #5
  6. Unknown2001

    Unknown2001 Veteran Veteran

    Messages:
    31
    Likes Received:
    3
    First Language:
    English
    Primarily Uses:
    RMVXA
    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
     
    #6
  7. Unknown2001

    Unknown2001 Veteran Veteran

    Messages:
    31
    Likes Received:
    3
    First Language:
    English
    Primarily Uses:
    RMVXA

    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
     
    #7

Share This Page