MV BF_caras (faces) (control faces in messages via plugin commands)

BF_caras v.1.0
by FriKitty / CeciDibujera


A small plugin to control faces in message windows via plugin commands. This can be useful if you let your players have variations (alternate outfits, for example) that affect faces, but you don't want to copy and paste every message for every variation.

Changing player's face and sprite is very easy with default event commands, and some plugins let you select this specific actor face (the one used in the menu) for messages. But this plugin lets you manually select which file and which face, which I needed for my project because I use different emotions for all characters, not just their menu face.

Features
Plugin commands to override next messages' faces, selecting filename and index (specific face in the sheet).

How to use
Before a text message you want to be affected by this, you would use a plugin command like so:

Code:
BFface filename number

>filename: the filename of the face sheet you want to use. Without including .png. Filename must not contain spaces.
>number: the position of the specific face (also called index). You have to start counting from the upper left, which would be 0.

Example, if I want Harold's face, I'd type:

Code:
BFface Actor1 0

This will affect every message after this command, even those that originally have no face. So if you want to go back to RPG Maker default, you have to add this plugin command:

Code:
BFface clear

One could think, "what is the point of this? I'd still need to set up conditional branches for this and type the full command. Example, if variable is 0, BFface Actor1 1. If variable is 2, BFface Actor1 2. This is basically the same work as putting the whole messages in the conditional branches".

And that's a good point! If you're not super against copy-pasting messages, this doesn't save you that much time. But for one you don't have to copy all messages again if you decide to edit them later on, and it's also convenient for me because I use a translation plugin and I've had to copy and paste messages in all translations. This is manageable if it's just 3 messages, but the variations will increase and... I really don't want to do this 10 times each, lol.

Download on Github
Terms and Credits
  • You can use this plugin for any project, commercial or not.
  • You must credit me as CeciDibujera (or FriKitty and CeciDibujera, both of them, never "FriKitty" only. But it's shorter with just the one, haha)
  • You must also credit "BF Project".
  • You can edit this plugin as much as you like, as long as you add in the description somewhere that you did.
  • You can also look at the code and see how I did some things to make your own plugin that does things differently. In that case, there is no need to credit me. This is how people learn!

Also, I hope it's okay to mention that this is a plugin I made because I will be using it in my project, B&F! Which is a free game(s) and I invite you to take a look.
I checked the code, as well for the other plugins.
but how you made it would be a bit bad practice (no offend here)

its smarter to alias the function (less code to add what you change).
this way, it give also a higher compatible through other plugins.

if you override the function, you break lots of plugin using that function
that are aliased.

just be careful on that, for personal use, its fine if its works for you,
but try to alias it to be safer =)
The only reason I barely use aliases is that I often don't know how they work x'D And I prefer to not do stuff I don't understand. I know I'm not the best coder, but welp, I do what I need to do (?). I'm not offended and I appreciate the advice but like, I'm afraid my limits are what they are haha

Original thread: https://forums.rpgmakerweb.com/threads/bf_caras-faces-control-faces-in-messages-via-plugin-commands.183267/