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.

1st person in party doesnt enter battle

tuti05

Member

hi im working on this game and there is a part where i want the 1st person in party to just walk around but when a battle starts he doesnt enter battle but the other ppl in the party fights. i guess its kind of like pokemon. (i checked out the pokemon starter kit and i didnt find what i wanted.) O_o
 
Well what you can do is if you are using facesets for your menu instead of the actual database sprites you can make the sprites for all of the characters the one of your walking character. Simple.
 
or you can find
Code:
@character_name = actor.character_name
in Game_Player and change it to
Code:
@character_name = "YourHero'sSpriteName"
(keep the quotes but replace YourHero'sSpriteName with the actual filename of your sprite) and then make all the characters like normal.
 
Code:
class Scene_Battle
  #--------------------------------------------------------------------------
  # * Main Processing
  #--------------------------------------------------------------------------
  alias_method :trick_limit1_battle_main, :main
  def main
    @saved_actors = $game_party.actors[0]
    $game_party.remove_actor(0)
    trick_limit1_battle_main
  end
  #--------------------------------------------------------------------------
  # * Battle End
  #--------------------------------------------------------------------------
  alias_method :trick_limit1_battle_battle_end, :battle_end
  def battle_end(result)
    $game_party.actors.unshift(@saved_battler)
    trick_limit1_battle_battle_end(result)
  end
end

Add in a new script above main that is all
 
ToriVerly;183207 said:
:O fantasmibibble!! I'm swiping that.
EDIT::It's not doing anything...and your alias looks weird :S

Better to use alias_method instead of alias so if someone is using SDK it gets logged.

Code:
class Scene_Battle
  #--------------------------------------------------------------------------
  # * Main Processing
  #--------------------------------------------------------------------------
  alias_method :trick_limit1_battle_main, :main
  def main
    @saved_actors = $game_party.actors.shift
    trick_limit1_battle_main
  end
  #--------------------------------------------------------------------------
  # * Battle End
  #--------------------------------------------------------------------------
  alias_method :trick_limit1_battle_battle_end, :battle_end
  def battle_end(result)
    $game_party.actors.unshift(@saved_actors)
    trick_limit1_battle_battle_end(result)
  end
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