How to Display Party Member Icon in Text?

iskillzi

Veteran
Veteran
Joined
Jul 17, 2014
Messages
33
Reaction score
2
First Language
English
Primarily Uses
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.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
When you say "icon", do you mean the picture of their face?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
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

Veteran
Veteran
Joined
Jul 17, 2014
Messages
33
Reaction score
2
First Language
English
Primarily Uses
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.
 

iskillzi

Veteran
Veteran
Joined
Jul 17, 2014
Messages
33
Reaction score
2
First Language
English
Primarily Uses
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.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,868
Messages
1,017,066
Members
137,576
Latest member
SadaSoda
Top