Hi, I'm still kinda new at this but was wondering if there is a way to switch to a player selected potrait (select in the beging of the game), To match the text you are trying to type down? Like------"(pic here)"-----"command for actor 1 here (To insert pic)"----"text here". Does anyone know if this is possible without putting 50+ conditional events? Or is there a script out there that does this?
P:S: Was wondering if anyone knew about a script that allowed for players to select a sprite? Instead of the selection box, actually show the sprites the player would like to play with and select it?
Thank you for your time 🤣
You need to use one of the messaging scripts that add a face-textcode.
I do not know at the moment which ones do, but both Yanfly's Messaging System and Modern Algebra's Advanced Text System should have such a code.
Please search for them on the master script list.
I've moved this thread to Script Request. Please be sure to post your threads in the correct forum next time. Thank you.
# \f[index] in message box to show the face at that indexclass Window_Base < Window alias shaz_more_faces_process_escape_character process_escape_character def process_escape_character(code, text, pos) shaz_more_faces_process_escape_character(code, text, pos) case code.upcase when 'F' change_face(obtain_escape_param(text)) end end def change_face(face_index) $game_message.face_index = face_index contents.clear_rect(0, 0, 96, 96) draw_face($game_message.face_name, $game_message.face_index, 0, 0) endendIn a new script slot.Type \f[1] at the start of your message and it will show whatever face is assigned to Actor 1. So they can choose gender, race, whatever and you can use Change Actor Graphic, and always have the appropriate face shown. When you use this, you don't need to select a face when you create the Show Text box.
Use a Transparent Picture in your Textboxes.
And a call common event command before each textbox.
The common Event will than display the Faceset as Picture depending on the Variable Value you choosed at the beginning of game at char selection.
After the Textbox make Erase Picture Command.
If your Textbox Positions are always different, thats also no problem with some more work in that common event.
So you have to Edit just one Event if u want to make changes.
Shaz Script Link reads easier and is without making facesets to pictures.
Cannot use the sceen extension on this, but this is the even
"@>Text:-,-,Normal,Botton
: : \f[1] Hi "
the character has a portait aswell
sry to be so difficult
Can you show us a picture of Actor 1 in the database? And a screenshot showing what happens when this command is run in your game?
What other scripts do you have? I wonder if you've got other custom scripts that use \f[] and they're grabbing it instead.
Also, where in Materials did you put it? Above other scripts? Below them? Should be below materials and above main.
I don't think it makes a difference but try changing the \f to \F - I'm pretty sure it upcases everything though.
yep used jpeg, png and gif the forums will not allow me to post pics
Even tried removing all the scripts. besides your shaz ofcouse
One question: does the party have an actor?
The ingame screenshot doesn't show any player at the center like regularly, so either your party is empty or invisible.
And I don't know if the snippet displays based on actor ID or on Party index - in the last case it only works if you have a member in your party.
I'm so sorry - I gave you the wrong script! I have 3 different ones with different purposes, and I copied the wrong one.
Try THIS script instead of the other:
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 endendThis should give you a MUCH better result.The script I originally gave you, by the looks of it, is designed for when you have one sheet of faces with different expressions for the same character. So you WOULD choose the face image in the Show Text command, and the \f[n] tells it to use that face set, but the index n, which would have an expression appropriate for the dialogue.
Clearly I need to make more specific comments in my scripts when I do them to answer a small script request.
ty and sry for the double post wont happen again. thx for your help 🙂