Common event to automatically change a faceset.

BladeRED

Villager
Member
Joined
Sep 5, 2020
Messages
17
Reaction score
6
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
17
Reaction score
6
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
17
Reaction score
6
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
1,938
Reaction score
1,386
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 Posts

Latest Profile Posts

I always told my DA fans how much I hate slot machines. They're fine in games as a risk-and-reward system. But when you're spending REAL MONEY in a Vegas casino to try and hit the jackpot (which very, very few people will), it can really hurt your budget. Gambling is a bad habit, and I don't like wasting my money on a slim chance. Go to Vegas for the experience, not the jackpot.
Took the kids to a corn maze. They gave us a map and had lights at certain points in the maze. Not overwhelming... or underwhelming... just... whelming.
Okay, vacuuming fruit flies out of the air is surprisingly effective.
Finally finished my menu redesign after like a month of coding! I hate designing menus... Good news though - I thought of a complete redesign for it now, so yay...
Still no scam calls all day... also I got a quick gig designing a mascot drawing for a small business, so I might actually make some green of my own after all. That would be a perfect job for me, since I love art and digital design.

Forum statistics

Threads
104,388
Messages
1,006,029
Members
135,917
Latest member
kingrifer
Top