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

^_^
Global Mod
Joined
Feb 21, 2018
Messages
2,764
Reaction score
2,114
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.
 

Latest Threads

Latest Profile Posts

Another comic with Backstage Malak...
If you want to ask him anything, you can ask on my DeviantArt page! I'm not sure if you're allowed to do it here.
Forum tip of the day ...
If you get a temporary suspension for being a jerk to people who are trying to help you, and arguing with mods and admins, don't go making new accounts. Chances are, if you p**s us off enough to suspend you for a week, we're not going to hesitate giving you a permanent ban when you give us a reason.
E_6fAErVkAQILXu.png
I'm so close to releasing my game on steam! :blush::blush::blush:
Us:
"This game is awesome! I wish there are more games like this in the future."
Also us:
"I hate how games stopped being original and start copying other successful games."
Should've done this a few days ago but...
PRI_200136808.jpg
Rest in Peace, Sir Clive Sinclair
1940 - 2021
Entrepreneur, Technologist, Father of the Modern British Computing Industry, and protagonist of Legend of ZUN.

Without you, England's games and tech industry wouldn't be where it is.

Forum statistics

Threads
115,292
Messages
1,088,691
Members
149,927
Latest member
antodi
Top