Character bust change depending on class

I have know scripting knowledge so i wouldn't know how this would be done. im useing galv's bust menu,im working on this mech game that threats a class as if it was it was a mech depending on what class/mech the person has it changes the bust image in the window like this
Uv3qbf3.png

Is there a plugin out there that would let me do this ?
Made you a plugin for this. Just place it after GALV_BustMenu.
The bust images should be saved at the same locations but named like this: YOUR CLASS NAME_1.png
E.g Hero_1.png
I also added a note tag to actors <BustIndex:x>
This enables you to have the actor use another index than the default 1.
E.g <BustIndex:2> makes an actor with the class Hero use the bust image Hero_2.png (no idea if you have any use for that)

Code:
//=============================================================================
// Bust By Class
// MRP_BustByClass.js
// By Magnus0808 || Magnus Rubin Peterson
//=============================================================================

/*:
 * @plugindesc Extension to GAVL_BustMenu. This changes the bust image to be of
 * the actors class instead of their face image.
 * @author Magnus0808
 *
 * @help This requires GAVL_BustMenu(v1.7). This also needs to be placed after
 * GAVL_BustMenu.
 *
 * Just like for GAVL_BustMenu the bust images still need to be placed in
 * the /img/pictures/ folder. However, they now need to be named in the
 * following maner: YOUR CLASS NAME_1.png
 * E.g. Hero_1.png (/img/pictures/Hero_1.png)
 *
 * I even added a note tag to actors so they can choose to different image for
 * the class: <BustIndex:x>
 * E.g. An actor with the class Hero and note tag <BustIndex:2> uses the image
 * Hero_2.png
 */
 
(function(){
    Window_MenuStatus.prototype.drawActorFace = function(actor, x, y, width, height) {
        var index = 0;
        if(actor.actor().meta.BustIndex) index = actor.actor().meta.BustIndex - 1;
        this.drawFace(actor.currentClass().name, index, x, y, width, height);
    };
})();
Oh wow thank you so much this is perfect, thank you so much it works.

Original thread: https://forums.rpgmakerweb.com/threads/character-bust-change-depending-on-class.105774/