How do I have a faceset image change in the middle of the game?

TenebrisCrow

The Kelphy Corp
Veteran
Joined
Oct 19, 2015
Messages
93
Reaction score
6
First Language
English
Primarily Uses
RMMZ
Is there a way to replace an entire faceset with another? So if you wanted to change the gender of a character it would use a different faceset but keep the same messages?

Thank you.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,372
Reaction score
8,395
First Language
German
Primarily Uses
RMMV
yes and no.

you can change the images of an actor with the event command, but that does not affect the show text commands.

however there are some message plugins that add new textcodes to the engine, and those often include commands like "use face of actor n".
If you look to find one such plugin with that command and have your show text commands use that instead of manually setting the face, then any change done to the actor face will automatically appear in the text windows.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,711
Reaction score
2,824
First Language
English
Primarily Uses
RMMZ
Actors have a setFaceImage function you can call to do this. It takes two parameters: the filename and the index.

So

$gameActors.actor(1).setFaceImage("Actor4", 7) will change actor 1's face image to the 8th face in the graphic Actor4.png.

Edit: as Andar said, you would need to use a plugin that allows you to show the face of a particular party member rather than a specific one. Otherwise you'd need a conditional branch that differentiates the actor's gender some other way.
 

TenebrisCrow

The Kelphy Corp
Veteran
Joined
Oct 19, 2015
Messages
93
Reaction score
6
First Language
English
Primarily Uses
RMMZ
Actors have a setFaceImage function you can call to do this. It takes two parameters: the filename and the index.

So

$gameActors.actor(1).setFaceImage("Actor4", 7) will change actor 1's face image to the 8th face in the graphic Actor4.png.

Edit: as Andar said, you would need to use a plugin that allows you to show the face of a particular party member rather than a specific one. Otherwise you'd need a conditional branch that differentiates the actor's gender some other way.
Will that just change the actors face in menu's or the message face? Because I'm struggling to understand sorry if it changes message face.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,711
Reaction score
2,824
First Language
English
Primarily Uses
RMMZ
Will that just change the actors face in menu's or the message face? Because I'm struggling to understand sorry if it changes message face.
So by default, in a message, the face graphic used is simply whichever one you chose in the "Show Message" command. It has no link to a particular character if you use it like that.

Some plugins, like VisuStella's Message Core, let you put text codes in messages that override this and use the face graphic of a particular actor or party member.

The code I gave you will change the actor's face in the menu, but won't affect any messages you've specified a graphic for. UNLESS you're using one of those plugins, in which case if you were showing an actor/party member face it'll change in the messages too.
 

TenebrisCrow

The Kelphy Corp
Veteran
Joined
Oct 19, 2015
Messages
93
Reaction score
6
First Language
English
Primarily Uses
RMMZ
So by default, in a message, the face graphic used is simply whichever one you chose in the "Show Message" command. It has no link to a particular character if you use it like that.

Some plugins, like VisuStella's Message Core, let you put text codes in messages that override this and use the face graphic of a particular actor or party member.

The code I gave you will change the actor's face in the menu, but won't affect any messages you've specified a graphic for. UNLESS you're using one of those plugins, in which case if you were showing an actor/party member face it'll change in the messages too.

Ah thank you! I will have a look at that plugin. I appreciate the help!
 

Latest Threads

Latest Posts

Latest Profile Posts

IlluminaughtyStore.jpg
:kaojoy:
Welcome to the Illuminaughty store.
Yes... they are "wearing Illuminati branded everything, reclining on huge Illuminati body pillows. Occasionally they'll "teehee" at each other and have pillow fights with Illuminati branded pillows full of hundred dollar bills."
BCj
Working on Escalia again, feels good. Have this overwhelming urge to map as well, but need to get some extra tiles commissioned first :D
Lee Sang wrote on Bandito's profile.
Hi, I've just tried your plugin "Game is Active" and when I tested it on Android, it gave me an error, something about "Cannot read property 'underfined' of underfined.
With my project, I want the player to have access to all the tools they need to get from New Game to Credits as soon as possible; I want the player's progress to only be impeded by the player not knowing how to use the tools the game provides.
Just a little close up shot...
w2xZocX.jpg

Forum statistics

Threads
113,867
Messages
1,078,025
Members
147,956
Latest member
Haiiroinu
Top