Hello, I'm trying to figure out how I can display a specific party members icon in the text box (such as party member 1) so it appears as if the first character in their party is talking.
I'm wondering because I have it so the icon they get for their first character is generated by them when the game starts so it'll never be a specific icon for the entire game.
How to Display Party Member Icon in Text?
● ARCHIVED · READ-ONLY
-
-
When you say "icon", do you mean the picture of their face?
-
You're probably talking about faces, not icons - icons are something else.
You can either do this with branching in pure events (a lot of work), or you can add an advanced messaging script that gives you a text code for this. Yanfly's and Modern Algebra's are the most often used messaging systems, they are both on the master script list. -
Correct, sorry I'm not used to making games so I forgot you could add the item icons into text.When you say "icon", do you mean the picture of their face?
But yes I mean the actor faces to the left of the text box. -
Alright thanks, I figured I could find something like this that Yanfly created but I wanted to make sure it wasn't in the original script first.You're probably talking about faces, not icons - icons are something else.
You can either do this with branching in pure events (a lot of work), or you can add an advanced messaging script that gives you a text code for this. Yanfly's and Modern Algebra's are the most often used messaging systems, they are both on the master script list. -
iskillzi, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.
If you want to respond to several people, just type @ and their name rather than quoting them, or if you MUST quote them (and you usually don't need to), use the MultiQuote button.
Put this in a new script slot:
Code:and in your message box, type \F[1] to show actor 1's face.class Window_Base < Window alias shaz_ffa_convert_escape_characters convert_escape_characters def convert_escape_characters(text) result = shaz_ffa_convert_escape_characters(text) result.gsub!(/\eF\[(\d+)\]/i) { $game_message.face_name = $game_actors[$1.to_i].face_name $game_message.face_index = $game_actors[$1.to_i].face_index '' } result endend