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?
Need help with options for textbox face graphics.
● ARCHIVED · READ-ONLY
-
-
What engine are you using?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?
-
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:and put \f[1] in the text box (don't choose a face at all) to make it 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 -
I am unworthy of your aid, Shaz-sensei! ;_;
-
Sorry, I thought I was in a different forum. My bad.What engine are you using?
-
Hey, I appreciate the fact that you at least responded!Sorry, I thought I was in a different forum. My bad.
-
Haha, yeah that would be me procrastinating from what I was doing lolHey, I appreciate the fact that you at least responded!
-
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.