Need help with options for textbox face graphics.

Status
Not open for further replies.

kogunenjou

Well-Meaning Amateur
Member
Joined
Sep 3, 2013
Messages
22
Reaction score
0
First Language
English
Primarily Uses
I have two selectable main characters. I've worked out all the issues with that with the exception of face graphics in textboxes. Creating two event pages and using a switch to activate the male character or female character's face graphic for every conversation is the only way I can think of to alternate between the two characters, but that seems rather messy. Is there an easier way, perhaps a script, to deal with this?
 

DRS

Veteran
Veteran
Joined
Aug 10, 2014
Messages
67
Reaction score
6
First Language
English
Primarily Uses
I have two selectable main characters. I've worked out all the issues with that with the exception of face graphics in textboxes. Creating two event pages and using a switch to activate the male character or female character's face graphic for every conversation is the only way I can think of to alternate between the two characters, but that seems rather messy. Is there an easier way, perhaps a script, to deal with this?
What engine are you using?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Since he posted in VX Ace support and his profile says he's using VX Ace, I think we're safe to assume he's using Ace ;)

Have ONE actor, not two. When the player selects the gender and whatever else needs to be changed, use the Change Actor Name / Change Actor Graphics / Change Actor Class ... whatever else commands to customize that one actor as necessary.

Then use this script to show the face of the actor:

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 put \f[1] in the text box (don't choose a face at all) to make it show actor 1's face.
 
Last edited by a moderator:

kogunenjou

Well-Meaning Amateur
Member
Joined
Sep 3, 2013
Messages
22
Reaction score
0
First Language
English
Primarily Uses
I am unworthy of your aid, Shaz-sensei! ;_;
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
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.

Forum statistics

Threads
105,868
Messages
1,017,083
Members
137,583
Latest member
write2dgray
Top