How to Display Party Member Icon in Text?

● ARCHIVED · READ-ONLY
Started by iskillzi 6 posts View original ↗
  1. 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.
  2. When you say "icon", do you mean the picture of their face?
  3. 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.
  4. ksjp17 said:
    When you say "icon", do you mean the picture of their face?
    Correct, sorry I'm not used to making games so I forgot you could add the item icons into text.

    But yes I mean the actor faces to the left of the text box.
  5. Andar said:
    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.
    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.
  6. 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:
    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
    and in your message box, type \F[1] to show actor 1's face.