Hello, I have a doubt
I want to make the actor face is displayed halfway in a dialogue box, for example, in the start of the text box it starts with a face in the text box, but I want to change it in the course of the dialogue, I want the face is showed changes itself, is there a way to make that? Thank you
Change actor face in a text box
● ARCHIVED · READ-ONLY
-
-
Normally, you would select the actor's face graphic for the current message box.
If you want to change the actor's face, you would have to start a new 'show text' command. -
Is there a way to change the face without making a new text box?
-
Not without a custom script AFAIK.
I don't know of one, sorry. -
script.
I have either written one of these, or thought enough times that it was needed that I've "as good as" written it. If nobody else responds I'll see if I can get something for you.
I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you. -
BUMP
-
quick question ... are you using any scripts that modify the message system? If so, what additional escape codes do they use?
-
I'm using Yanfly message system script (https://yanflychannel.wordpress.com/rmvxa/core-scripts/ace-message-system/) and well, are codes this script uses are showed there
-
Oh, look ... I did have it here already. Couldn't find it when searching, but I had it in my 'scripts' project, so knew I'd written it for someone here.
Post 4 in this thread
Use ONE of the scripts, not both of them. Use the first one if all the faces for the character will be in the same faceset image. Use the second one if you want to be able to change the faceset image the face is pulled from.
Now, this won't be compatible with Yanfly's message system, because they both rely on \f as the escape code. So in the script, where you see when 'F', change it to when 'M' and use \m as the escape code (m stands for mood).
If it doesn't work when you put it below Yanfly's message system, try putting it above it instead. -
Using the Second and it's not working
Let's see, If I understand properly, I have to change the 6th line of the script from:
when 'F'
To
when 'M'
And then when I make the text box it'd be something like this:
Happy Jake,\m[Jake,2] Sad Jake
(Dull example, but hey, it's an example!)
It's not working, the next error is showed

I even changed to \e and other random letters, but it does not work, it doesn't matter if it's above or below Yanfly's message system -
Try this:
Happy Jake,\m["Jake",2] Sad Jake
It's probably not that though.
What's on line 833 of Message_system?
When you say "it'd be something like this", do you mean that's EXACTLY what you've got in the text box? I need to see EXACTLY what you have there - it could be something about the name you've used, and if you say you used Jake and you really didn't use Jake, then you're not giving me enough information to troubleshoot. -
Yeah, it was exactly like this
Well, I did it as you said and then the error is showed in your script

Which is this one
text.slice!(/^\[\w+,\d+\]/)[/\w+,\d+/]
And the line the previous mistake (which it's showed still if I put the name without the quotation marks)
#--------------------------------------------------------------------------
# new method: change_face
#--------------------------------------------------------------------------
def change_face(actor_id)
actor_id = $game_party.members[actor_id.abs].id if actor_id <= 0
actor = $game_actors[actor_id]
return "" if actor.nil?
$game_message.face_name = actor.face_name
$game_message.face_index = actor.face_index
return ""
end
The mistake is showed in this line
actor_id = $game_party.members[actor_id.abs].id if actor_id <= 0
-
Can you please provide a screenshot of your Show Text command?
-
Well Shaz, when I put it with the quotation marks as you said

The mistake is showed in your script, but if I put it without the quotation marks

Like this, the mistake is showed in Yanfly's script -
I think you're better off ditching my script and getting a mod done to Yanfly's.
As you can see, my script isn't really complicated - it shouldn't be too difficult to just add in the extra codes to Yanfly's script and overcome the error. Hopefully someone will be able to do this for you - I prefer not to work with other people's scripts - I just don't have the time to spend to understand them fully and would probably end up giving you something else that crashes. -
Alright Shaz, thanks
Well, anyone can help me with this predicament? -
BUMP
-
BUMP
-
BUMP
-
BUMP