Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Skipping the first hero.

Replace "def refresh" in "Game_Player" with this:
Code:
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    # Set character file name and hue
    @character_name = "[color=red]filename[/color]"
    @character_hue = 0
    # Initialize opacity level and blending method
    @opacity = 255
    @blend_type = 0
  end
Replace filename with the filename of the character set. The character does not have to be in the party.
 
Okay, choose one of these. The first uses a switch and the second uses a variable.

Code:
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    # Set character file name and hue
    if $game_switches[[color=red]1[/color]] # checks if switch is on
      @character_name = "[color=red]male filename[/color]"
    else
      @character_name = "[color=red]female filename[/color]"
    end
    @character_hue = 0
    # Initialize opacity level and blending method
    @opacity = 255
    @blend_type = 0
  end

Code:
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    # Set character file name and hue
    if $game_variables[[color=red]1[/color]] == 1
      @character_name = "[color=red]male filename[/color]"
    else
      @character_name = "[color=red]female filename[/color]"
    end
    @character_hue = 0
    # Initialize opacity level and blending method
    @opacity = 255
    @blend_type = 0
  end

You can change the number in red to whatever you want. For the first one, set the switch on for male and off for female. For the second one, set the variable to 1 for male, and 2 (or anything else) for female.
 
And i can add as many as i want right? Like:
if $game_switches[1] # checks if switch is on
@character_name = "male filename"
else
@character_name = "female filename"
end
if $game_switches[2] # checks if switch is on
@character_name = "male filename2"
else
@character_name = "female filename2"
end
if $game_switches[3] # checks if switch is on
@character_name = "female filename2"
else
@character_name = "male filename2"
end

Should work right? Oh is there a better way to do with say about 3-5 of each? Its for my online game. And is there a way to have the name selection screen store a name as a varible since its scriping the first hero? So instead of using this syntax : $game_party.actors[0].name.to_s, to a varible that stors the name?
 
Well, rather than that, just assign the variable to your sprite

Code:
Call Script: $game_variables[1] = 'XXX-YYYYZZ'
$game_player.refresh

Use that for your call script, and replace your refresh method with:
Code:
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    # Set character file name and hue
    @character_name = $game_variables[1]
    @character_hue = 0
    # Initialize opacity level and blending method
    @opacity = 255
    @blend_type = 0
  end
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top