Show Picture on Actors in battle

Hey everybody!


I'm now implementing a 'Reaction Command' system in my game,  I'd like to create a button mashing event to release an actor from a trap etc. in battle.


Now I'm wondering,  how can we store actor the sprite's X value and Y value in a variable? I'd like to show a 'Press A' Button on the trapped actor, so maybe if I can grab the actor sprite's X value and Y value based on the Actor ID, it would be  possible to do this.


I'm using Yanfly Battle Engine to show the Actor's Sprite (I'm sure this info is gonna be  useful).


Thanks in advance!
I've moved this thread to Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


The script forum itself is for presenting finished scripts you wrote yourself


And please give a link to yanfly's battlescript, that info is absolutely neccessary because in default, there are no actor sprites in battle.
Here: https://dl.dropboxusercontent.com/u/17078211/Scripts/YEA/Ace_Battle_Engine.rb

Original thread: https://forums.rpgmakerweb.com/threads/show-picture-on-actors-in-battle.69144/