I'm trying to find a way to show the actor's face graphic depending on what is put in the message box. I've found some scripts that allow you to type something like \fc[1] to show the face, but I'm looking for a specific line.
I have most of my message boxes coded as \C[1]Name]\C[0], so what I'd like is something akin to:
If \C[1]Name1\C[0] Show Actor 1 Face
If \C[1]Name2\C[0] Show Actor 2 Face
etc...
I hope that makes sense. The idea for this is that I don't want to go back through thousands of events and manually add a face graphic to each character. With a script like this it would easily draw the actor's face graphic depending on the above input.
That is not as easy as you think, because scripts don't work that way.
All actors are based on IDs, and any sequence that goes through names will require loops for checking names and so on.
Why did you even use the names that way? one of the default textcodes (without any script) is \N[1] for the name of actor 1 and so forth.
If you had done it that way, it would have been much easier to redirect because the \N[1] would already have the ID of the actor, and with that the face could have been directly identified.
I'll approve it - perhaps you find someone who codes such a specific case for you. But handling it the way you have set it up will most probably require a custom (name-based) script instead of a general (id-based) one, and most scripters have moved on to MV
Right, I should have used \N[1] in hindsight. I use \C[1] for the color tag. I see what you're saying about checking names specifically but I do wonder if it's possible. I'm currently looking into doing it myself, but I'm a beginner scripter. If anyone thinks it's doable that would be awesome.
As I said, it is doable that way - it "just" (ironic word) needs to cycle through the names to identify which actor is mentioned in the text, then change the face of that show text based on the found ID.
If you had used MV (where the data is stored in json files) it would have been possible to solve this with an advanced text editor using multifile autoreplace, but unfortunately the data for VXA is not stored in that way, you'll need a script for your problem.
I'll have to consider switching to MV. I have exported my project and gotten most of what I need to work, I was just waiting for the plugins to catch up because at the time it was fairly limited. Thanks for your input.