First of all i would like to introduce myself, hi im fahyda. now we have that out of the way i have a question. how do you make it so that an option changes the main character to another character? I dont mean the folowers. i mean the leader. if someone can help me i will be greatfull
help with character selection
RPG Maker VXAce SupportYou want the change the actual character? In what way?
You could either do a Change Party Members to remove one actor and then add another, or you could do a simple Change Actor Graphic which will alter the sprite and face for the actor, along with Change Actor Class and Change Actor Name if necessary.
Depends on what you're trying to accomplish.
You could either do a Change Party Members to remove one actor and then add another, or you could do a simple Change Actor Graphic which will alter the sprite and face for the actor, along with Change Actor Class and Change Actor Name if necessary.
Depends on what you're trying to accomplish.
I want to make a character selection at the start of my fan game, but from what you said I think I can do that anyway so thx.
Yep. Use a single actor in the database. Then give the player choices to determine who the party member will be, and use the Change Actor Graphic, Class, Name commands to set up that one actor the way you want. That'll make it a bit easier when you want to use text boxes. If you combine it with this scriptlet (paste it into a new slot below Materials), you don't even need to use conditional branches to determine what face to display in the Show Text command:
Instead of putting a face into the box (for that actor), begin your text with \f[1] (or whatever id you're using for the actor), and it'll show the face you've set it to according to the player's choices.
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
I just used change party member. It did what I wanted.
Original thread: https://forums.rpgmakerweb.com/threads/help-with-character-selection.39152/