Galv's MV Event Detectors JS Plugin: Store original x y

Discussion in 'Javascript/Plugin Support' started by Vetmora, Sep 16, 2017.

  1. Vetmora

    Vetmora Villager Member

    Messages:
    17
    Likes Received:
    2
    First Language:
    English
    Primarily Uses:
    RMMV
    I'm using one of Galv's plugins here: https://galvs-scripts.com/2016/08/01/mv-event-detectors/?blogsub=confirming#subscribe-blog

    I'm setting up guards that chase the player and then go back to their "post" (original position) if they lose sight of the player. This plugin pretty much does what I need, but I'm wondering if there is there a way to make the guard event store its original x and y only once at the start of the game as it seems to reset when teleporting through doors. Or even if there was a way to set it somewhere manually? Perhaps in a comment?

    I did ask Galv on his site, however he is very busy and can't look into it at the moment. He said to try asking here to see if someone can help me. From what I can gather when looking at the script, the very last events under //GAME EVENTS seems to be where it stores x and y? But I'm not sure as I'm a little rusty with JS.

    Would appreciate any help! Thanks in advance.
     
    #1
  2. Vetmora

    Vetmora Villager Member

    Messages:
    17
    Likes Received:
    2
    First Language:
    English
    Primarily Uses:
    RMMV
    Anyone? Would appreciate any help at all.
     
    #2
  3. Vetmora

    Vetmora Villager Member

    Messages:
    17
    Likes Received:
    2
    First Language:
    English
    Primarily Uses:
    RMMV
    Thanks for all the help guys, much appreciated! ...
     
    #3

Share This Page