MZ Change character bust based on character/gender selected

So, I have a feature in my current project where the player can select their gender [M/F/NB] at the beginning of the game; is there any way [outside of plugins, if possible] to have the right character image show up for any player dialog?

Edit: Could this work with a clever use of the show image command and variables? On the outside of the problem, I would think timing the image change would be the biggest PitA.

Additionally, I have it so that PLayers can set their character name, is there an easy way for that to be properly populated as well, without just adding it to the main part of the text box, that is.

Again, I would prefer a non-plugin solution to this, I know plugins could probably do this all easily, but I am using this project to learn the main engine itself.

Thank you for your help in advance.
Yes and no
actor names are default text codes, just let the mouse hover over the show text input window and read the tooltip text, or go to the help section and the description of the show text command.
Either \N[n] or \P[n] should do what you want.

the face pictures do not have a default text code, but a text code for an actor-based face selection has been standard in messaging type plugins (or scripts pre-MV) for many decades.
Yes and no
actor names are default text codes, just let the mouse hover over the show text input window and read the tooltip text, or go to the help section and the description of the show text command.
Either \N[n] or \P[n] should do what you want.

the face pictures do not have a default text code, but a text code for an actor-based face selection has been standard in messaging type plugins (or scripts pre-MV) for many decades.
So, I know that the \N[n] and \P[n] work in the text box itself, but do they work in the name box also?

As far as what you are saying, there is no way to have the correct face selected without plug-ins. is that about right?
Assuming all three use the same actor, what you could do is to change the actor images based on which gender is selected during character creation:
1752676896158.png


As for the name of the protagonist, if you do a name input processing event, the name will be changed for that particular actor:
1752677001285.png


EDIT: apologies, reading comprehension failed me. You're asking for the portraits shown in the message boxes. And no, it's not possible to have those reflected automatically without a plugin.

You can always have the name reflected in messages by choosing the appropriate text code. For example if it's actor 1, simply type \N[1] in the name box or text box to automatically fill in the name of actor 1. Hope that helps!

So, I know that the \N[n] and \P[n] work in the text box itself, but do they work in the name box also?
Yes. You can use them in the name box as well.
Assuming all three use the same actor, what you could do is to change the actor images based on which gender is selected during character creation:
View attachment 345197

As for the name of the protagonist, if you do a name input processing event, the name will be changed for that particular actor:
View attachment 345198

You can always have the name reflected in messages by choosing the appropriate text code. For example if it's actor 1, simply type \N[1] in the name box or text box to automatically fill in the name of actor 1. Hope that helps!


Yes. You can use them in the name box as well.
Re: Image; This is more for when I have the player talking, as you set the image within the show text function. I have all of the images/sprites set for the choices, what I am looking for is SPECIFICALLY for when I want the protagonist to talk.
RE: Name, I know how to make it so the player can set the name, I already have that functionality. As I mentioned in a previous comment, I didn'rt realize you could use the name "code" also worked in the name box. Thank you for confirming that it does.

Also; Could this be accomplished with a show image command?
I have all of the images/sprites set for the choices, what I am looking for is SPECIFICALLY for when I want the protagonist to talk.
My bad, wasn't paying attention. So... no. There is no way to do that without a plugin (or by scripting the show messages command), unless you want to make three branches for all messages.
My bad, wasn't paying attention. So... no. There is no way to do that without a plugin (or by scripting the show messages command), unless you want to make three branches for all messages.
How about if I just ignored the image thing for the text box, and used a show image command that used a variable based on the selected gender, could that be an effective workaround? that way I wouldn't have to duplicate the text, and could just copy that bit of code to each bit of text.
How about if I just ignored the image thing for the text box, and used a show image command
Yes, that'd probably be more practical than trying to do it through message box scripting, although in this case, too, you'd have to use the script call as the event command only allows for direct designation of a picture file.

$gameScreen.showPicture(pictureId, name, origin, x, y, scaleX, scaleY, opacity, blendMode);

... but, to be quite frank, at this point it's probably simpler to use a small plugin that does what you want automatically.
... but, to be quite frank, at this point it's probably simpler to use a small plugin that does what you want automatically.

I get that; but as I said in the OP I am doing this to try and learn the limitations of the engine and I am trying to do it without plugins, if possible.

I already know that there are plugins out there that can do basically anything I want.

Original thread: https://forums.rpgmakerweb.com/threads/change-character-bust-based-on-character-gender-selected.178960/