Position of a event on the map

Hello

I have a event on the map thats a chicken. This chicken is walking random around.
Now, I need at a certain moment the position of this chicken event. I want to do this in the chicken event itself.
Is it possible to get the position of the chicken event on the map in this event?
I need this position to let the chicken spawn a egg event one tile beneath him.
Is this possible?

Thnx Solvius
upload_2018-11-29_4-55-55.png

This is a basic version, you'll need to add conditional branches to check direction and of course, set up a wait before it actually spawns the egg. But this will move the event egg behind the event chicken.
Hi

I found how you did that. But I don't understand how to do the conditional branches to check the direction. Also I don't understand this Set Event Location in the last line.
@Solvius I suggest you follow the link to the starting point in my signature, it leads to a large number of tutorials - including tutorials on eventing and how to use the event commands.
You'll need that understanding of all the event commands to complete your game, so it will be much more effective and faster for you to stop now to work through the tutorials than having to wait for explanations whenever someone uses an event command in a try to help you later.

Original thread: https://forums.rpgmakerweb.com/threads/position-of-a-event-on-the-map.102710/