Storing/Calling Face Graphics and Index using variables?

Geetings, developers!

Meet Brenda, the Swordmaiden:

1648251808858.png

As you may see, Brenda has multiple face indexes in the same file, that chance according to her class.
To make dialogs dynamic, I'm creating a "Update Character's Assets" common event that will run before them, and I'd like to know how could I store in a variable the Face File and Face Index, and then call it in the message box. I tried checking the RPG Maker MZ Script Call Reference file, but to be honest I got very confused with that and couldn't find fruitful results.

I'd prefer not using plugins, but if is the only case, I'd appreciate suggestions.
Thanks for all the attention, and have a nice weekend!
how could I store in a variable the Face File and Face Index, and then call it in the message box.
Can you clarify what this means? Are you asking to put the filename/image index into variables so that your message box will say "Brenda_Warrior" or "3"? Because if you actually change the actor's portrait, it should automatically display correctly when you reference it in your message box.

Do you mean something else?
W-what? Is it now possible to make the Message Window reference directly an Actor's face? I didn't know that!
I'm sorry, I don't understand. If you're using some plugin that would let you use variables to display a face, surely it provides an escape code to just reference an actor for their portrait.

For example, the VisuStella Message Core has \ActorFace[x]

You didn't really answer my question about what you were hoping/trying to do with the variables. But that is how I do it in my game...
Oh, my bad, I'm not currently using any plugins.
What I'm trying to do is use something like Visustella's Message Core, but without the need of a plugin. A script call that reads a variable I set up manually and sets the returned value as the FaceIndex should be enough.
What I'm trying to do is use something like Visustella's Message Core, but without the need of a plugin.
I'm not sure why you're trying to avoid plugins for this - if it's because of conflicts, the odds of a message box plugin conflicting with anything else you're using are very low.
A script call that reads a variable I set up manually and sets the returned value as the FaceIndex should be enough.
Sure, but there's no way to execute JavaScript from within a message box without...a plugin. That's exactly what the Message Core gives you 😛 And it's less convoluted than the method you were trying to design.
Yeah, you're right. I was trying to achieve as much as possible without plugins because I still don't know how to make my own, and I'd like to have at least some knowledge before using other people's work. Thanks for all the attention anyway!

Original thread: https://forums.rpgmakerweb.com/threads/storing-calling-face-graphics-and-index-using-variables.146121/