Help with Battle Image Script

Hi!
I'm trying to write up a script that displays a larger image (actor bust) while in combat, but if you attack - then the bust will change to an image that shows the player actually attacking! 

Here is what I have so far: 


//=============================================================================
// battleImage.js
//=============================================================================

(function() {
  
  Scene_Battle.prototype.commandSkill = function(){
      var action = BattleManager.inputtingAction();
      var picName = action.skillId.meta.picture_name;
      var picX = action.skillId.meta.picture_x;
      var picY = action.skillId.meta.picture_y;
      // code to show image...
  };
})();


I'm trying to set it up so that I can use note tags within the skills to change the actor's image. Am I doing this correctly? Also, how do I show an image on the screen given the name of the picture and the X + Y coordinates?
use the bitmap's x and y functions to change the x and y coordinates of it. 


like:


var bitmap = new Sprite();
bitmap.bitmap = ImageManager.loadPicture("Sample");
bitmap.x = 10;
bitmap.y = 20;


The meta tag sounds legit though. But I suggest you go to the BattleLog to change the sprites you have instead. Are you requesting for a script that does so, or do you want to get help for you doing it yourself? I noticed this is under Script Request instead of Learning JavaScript.
use the bitmap's x and y functions to change the x and y coordinates of it. 


like:



var bitmap = new Sprite();
bitmap.bitmap = ImageManager.loadPicture("Sample");
bitmap.x = 10;
bitmap.y = 20;


The meta tag sounds legit though. But I suggest you go to the BattleLog to change the sprites you have instead. Are you requesting for a script that does so, or do you want to get help for you doing it yourself? I noticed this is under Script Request instead of Learning JavaScript.



If someone else knows how to do this, I would be incredibly happy if they could write it. I'm struggling trying to figure this out myself.
I saw one that shows an image of you really attacking when you attack, etc.
I saw one that shows an image of you really attacking when you attack, etc.








Oh sweet, That's exactly what I'm looking for - minus that weird slide animation it does for some of them. When the blonde dude attacks with his gun, that is exactly what I wanted to do!

Original thread: https://forums.rpgmakerweb.com/threads/help-with-battle-image-script.55501/