Acquiring Player's Position on the map

So what I want to do is summon by the player a small flying familiar and have the  character take control of it as long as it endures.
My problem is that I don't know how to acquire the player's position in the map in order to select an adjacent empty tile next to him in order to do the summon.

So how do I get the player's Position on a map for my script ?. 
Are you talking about script or event?

Because there is an event command to get that (and a lot more) data:

Just use control variable command with the game-data option on eventing to load the X and Y corrodinates into two variables.

During scripts it's even easier as x and y are directly accessable for the player or any map object.
So In a Common Event (called when I cast the spell that summons the Familiar), I Have 2 lines , One with control Variable 1 that gets Player's Map X. 
In the second Line I have Variable 2 that gets Player' Map Y and then I continue with what I want to do?
I've moved this thread to Ace Support. Please be sure to post your threads in the correct forum next time. Thank you.

This is eventing, not scripting, and therefore doesn't belong in 'Learning Ruby/RGSS'.

As for your question, yes, those two lines store the player position. And if you want a position next to the player, just count up/down by one with another control variable. You should just make sure by conditional branches that there is a position in that direction and not map border or blocked.
Thanks, I didn't know it was eventing, I thought I had to acquire the location through scripting...

Seems to be working.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/acquiring-players-position-on-the-map.40574/