• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Akari, Red, Kris, May - which Pokémon protagonist is your favorite? Let us know by voting in our semifinal favorite protagonist poll!
  • 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

  • 11
    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