Character bust change depending on class

Benku

Mecha King
Veteran
Joined
Oct 3, 2012
Messages
90
Reaction score
25
First Language
english
Primarily Uses
RMMV
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

Is there a plugin out there that would let me do this ?
 

Magnus0808

Software Developer
Veteran
Joined
Feb 2, 2019
Messages
147
Reaction score
166
First Language
Danish
Primarily Uses
RMMV
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);
    };
})();
 

Attachments

Benku

Mecha King
Veteran
Joined
Oct 3, 2012
Messages
90
Reaction score
25
First Language
english
Primarily Uses
RMMV
Oh wow thank you so much this is perfect, thank you so much it works.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,551
Members
137,837
Latest member
Dabi
Top