Common event to automatically change a faceset.

Hello there !

I'm doing the event making for my game, and I need a common event that can change the face of my hero automatically according to a variable.

As my hero changes shape and therefore never has the same face throughout the adventure, it would be very useful rather than making "if variable1 = x then..." at each dialogue event. :hhappy:

So I would have liked to know if a script command would allow me to verify that I'm dialoguing with an event. If you know one, it would be very useful for me !!!

Thanks in advance !:LZSproud:
Hey there. I'm not sure if there's a plugin for this, but with some setup you can do this through variables, switches, and common events. The setup will take a little time depending on how many faces you want, but once the setup is done it's just a matter calling common events for your text. I'm not at home, but I'll try to knock up a demo for you. I did a more convoluted system like this to animate the mouths of my characters busts so it looked like they were talking.
Oh yeah, there will be some basic scripting which I'll show you. I figured it out and I know nothing about scripting so I'm confident you can handle it.
Thank you very much for your help!
For now, I only managed to make an event that calls an image at the place where the faceet is displayed, but the image is displayed under the dialog box ^^' .
With this method, you can put the face graphic anywhere you want (except inside the text box) I find it looks best right above the left corner of the text box.
Hello there !

I'm doing the event making for my game, and I need a common event that can change the face of my hero automatically according to a variable.

As my hero changes shape and therefore never has the same face throughout the adventure, it would be very useful rather than making "if variable1 = x then..." at each dialogue event. :hhappy:

So I would have liked to know if a script command would allow me to verify that I'm dialoguing with an event. If you know one, it would be very useful for me !!!

Thanks in advance !:LZSproud:

Okay, I made a tutorial for you.
Hopefully, this is what you're after. This is literally the first tutorial I've done, and I didn't take the time to edit the video (super strapped for time, sorry.). There's some dead air while I collect my thoughts. but stay until the end. There's some good stuff if you use Yanfly's Message Core that'll make the implementation of my tips much faster.

Link to Demo https://1drv.ms/u/s!AuUPEO-oPlHLge4JsjuS2v9RNYJ3Nw?e=KFCilB
Okay, after recording that video I was dissatisfied. I dug around the MV script commands master list and found a super simple way to do what you want on the fly. You can change the face set, the character sprite, and the side view battler with this. All you need is this script:


$gameActors.actor(ActorID).setCharacterImage("Name", Index);

$gameActors.actor(ActorID).setFaceImage("Name", Index);

$gameActors.actor(ActorID).setBattlerImage("Name");

$gamePlayer.refresh();

ActorID = ID number of the Actor you want to change
Name = Name of the FaceSet or Sprite Sheet or SideView Battler without the file extension.
Index = The Index number of the sprite or face counting top left to right 0,1,2,3,4,5,6,7

So, if you want to change the graphics for Actor 1 to the sprites for Actor 2you would use the following code:

$gameActors.actor(001).setCharacterImage("Actor1", 1);

$gameActors.actor(001).setFaceImage("Actor1", 1);

$gameActors.actor(001).setBattlerImage("Actor1_2");

$gamePlayer.refresh();

Set up a common event for each change you want, then just call it when you need it. I hope this helps more than that convoluted mess I gave you last time. If you don't want to change all the graphics, just leave out the line you don't need.
Wow, thanks for your help ! I'm gonna check this as soon as possible ! I've also made my way and i just want to try something in event that could be used without script, i just need to fix some details ^^'
Just so you know, there exist plugins that can help with this. A couple of examples:
  • Shaz's More Escape Codes:
    Use \f[actorId, index] to change face in a message, e.g. \f[1,0]Hello!.

  • Himeworks Placeholder Message Faces:
    Use a face image representing actor 1: in-game it will be replaced by actor 1's current face.

Original thread: https://forums.rpgmakerweb.com/threads/common-event-to-automatically-change-a-faceset.128052/