• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Question] Checking Event coordinates with scripts

  • 9
    Posts
    9
    Years
    Hello!

    In Essentials v20.1 I want, by clicking on event #1, to check event #2's x-coordinate and compare it to the player's, same for the y-coordinate. I want something to happen when one of the coordinates matches with the player's using conditional branches. So I thought I could use something like ??? == $game_player.x. Unfortunately I can't figure out how to call event coordinates or if I need an entirely different approach. Basically I want to move an event at some distance to the player if it is north, west, south or east of them, nothing in between.
     
    Last edited:
    Back
    Top