How Do I get the Player's X and Y Postion.

I would like to get the X and Y position for the player. I’m sure it’s possible with any plugin’s.
 

This is what I’m trying to do.

[IMG]http://i63.tinypic.com/e97zp1.png[/IMG]

Player picks up a boulder, this changes it’s sprite and then shows a picture like so.

[IMG]http://i63.tinypic.com/2rmwavr.png[/IMG]

Changing Sprite and showing a picture is easy. I need to get the Picture’s designation with variables.
 

How do I make the player’s X and Y position into a variable called X and Y?
 

Now after I have done that I what to move the boulder only on the circles.  This isn’t hard just run around. 

[IMG]http://i68.tinypic.com/23jqstw.png[/IMG]

If the Player moves here and press X, It will check the player’s position and if it does not equal event position + 2 then, don’t do anything.
(It would be nice If I could prevent the player from going there, in the first place.)

[IMG]http://i65.tinypic.com/f1l7r5.png[/IMG]

If Player goes here then move the event there and change event and player sprite.

Cheer's, to whoever knows what I need to do.
You can use Control Variables > Game Data > Character's (Player's) > Map X / Map Y to put the player's coordinates into variables.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-get-the-players-x-and-y-postion.50480/