In the map, we can show battle animations anywhere using Show Animation on the event commands. Can we do it during a battle without an actor using a skill? For example, giving the function an x and y values to know where the animation will be.
Is this possible?
I thought he gave me two ways: targeting an invisible enemy and by pure scripts. I thought I'll go first with scripts and if I can't do that then I'll do the invisible enemy.
I apologize because I wasn't clear. I will also try the invisible enemy.
It's all good. If you want the animation to directly target a set of coordinates, without using the invisible enemy workaround, then you're going to have to create a plugin for it. That would require some core functions to be altered, so it's not something that can be accomplished with built-in script calls. There are already some plugins that do this, but AFAIK, they actually use the invisible target workaround.
But if you're interested in pursuing this route, then I'd recommend that you take a look in rrmz_objects, at the Game_Temp.prototype.requestAnimation method. Try to understand how it operates, and then just follow the trail. From there, it'll lead you to rmmz_sprites.js, to the Spriteset_Base.prototype.createAnimation method. Continue following the trail, while understanding everything along the way, and you'll eventually wind up at the Sprite_Animation.prototype.targetPosition method.
If you can get that far, and understand everything along the way, then you'll probably be able to create a plugin that allows you to play an animation at a specified point without using the invisible person workaround.