Common event to automatically change a faceset.

BladeRED

Villager
Member
Joined
Sep 5, 2020
Messages
21
Reaction score
7
First Language
French
Primarily Uses
RMMV
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:
 

Breenogg

Villager
Member
Joined
Oct 23, 2018
Messages
24
Reaction score
4
First Language
English
Primarily Uses
RMMV
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.
 

Breenogg

Villager
Member
Joined
Oct 23, 2018
Messages
24
Reaction score
4
First Language
English
Primarily Uses
RMMV
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.
 

BladeRED

Villager
Member
Joined
Sep 5, 2020
Messages
21
Reaction score
7
First Language
French
Primarily Uses
RMMV
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 ^^' .
 

Breenogg

Villager
Member
Joined
Oct 23, 2018
Messages
24
Reaction score
4
First Language
English
Primarily Uses
RMMV
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.
 

Breenogg

Villager
Member
Joined
Oct 23, 2018
Messages
24
Reaction score
4
First Language
English
Primarily Uses
RMMV
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
 
Last edited:

Breenogg

Villager
Member
Joined
Oct 23, 2018
Messages
24
Reaction score
4
First Language
English
Primarily Uses
RMMV
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.
 

BladeRED

Villager
Member
Joined
Sep 5, 2020
Messages
21
Reaction score
7
First Language
French
Primarily Uses
RMMV
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 ^^'
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,044
Reaction score
1,474
First Language
EN
Primarily Uses
RMMZ
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.
 

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

Latest Threads

Latest Profile Posts

currently listening to Driftwood Gaming streaming some MZ dev time and it's delightful! had no idea they were this entertaining, love it
In quarantine, will be tested soon. This year is really something... special.
I was at another orientation yesterday and I realized I'll be working with an old friend! We met at the local water park a few years back and it was so nice to see her again! We had a chat, and next week when I officially start, I'll see if maybe we can trade our Zoom IDs so we can talk!
I made some sideview closets for MV!
You can find them in my MV resource thread.

Forum statistics

Threads
105,510
Messages
1,014,330
Members
137,197
Latest member
Nicole_cc
Top