Shifting Character Portraits

Hi, i have a problem

I've recently started making a game where you choose the avatar and character portrait based on class, 

how would i make it so that in dialogue the character portrait would be the same as the one in the menu?

Thx, sorry though, i'm new to this site

fixed the problem
either use a script that adds face options (for example yanfly's messaging script or modern algebra's advanced text series), or you have to make conditional branches in every show text in the game (the last is in case of Lite where script access is disabled, I wouldn't do that work if you can add scripts)
An easy fix without a huge nasty script.   Just requires a \F[#] in the text commands, where # is the actor ID.

# Show Actor Face (by Shaz)

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

  end

end
the above scriptlet means you do not need to select ANY face in the Show Text box. Also, it goes into its own script slot under Materials.
Thx
this is my first game though, so how would i implement it, i have already put the script in the materials, but the part about putting \F[#] in the text commands confuses me a bit
monochrome08, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


if you need to add more, just edit your last post 😉


In the Show Text command, you just put \f[id] at the start of your text. If you hover your mouse over the text input box, you'll see the escape codes that Ace allows for by default. You just type those into your text and when it encounters them while displaying a message box, it'll do whatever the escape code stands for. This is just another escape code you can use the same way. But put it at the start of your text.


For example:

Code:
Show Text: \f[5]This text will display with Actor 5s face

Original thread: https://forums.rpgmakerweb.com/threads/shifting-character-portraits.39574/