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.

how do you

Without scripting....

If you are using event initiated battles, you could remove the other members from the party before starting the battle.
With Random encounters, you might be able to use the event command in the 'Troop' tab of the database.
In either case, you could also use a 'Choice' command to allow the user to select which member will fight.

To switch members in battle, assuming you want to be able to switch members on any turn, you could use the same 'Choice' & 'Change Party Member' commands in a common event, and call that event on every turn.

With Scripting....

I think you could get a much better system with scripting. I would recommend posting in the 'Script Requests' forum.
However, I would also recommend reading the "How to make a decent Script Request" post in that forum, and providing a lot more detail about how you want the system to work.

Ideas:
You could ask that the 'lead' character be the default fighter in any battle. (you would need a party switching system to change the order of the actors.)
a 'Change Fighter' option on the main battle menu.
automatically ask for 'change fighter' if the current fighter dies, or is close to death.(below a certain HP).
Is this a global behavior, or do you need to also have some battles use more than one fighter, and some with only one?
What do you want the battle screen to look like? With one battler, the default would be have the single battler on the left side at the bottom. Do you want the battler in the center?

The more detailed, the more likely you will get help.

Be Well
 
I have a party switcher system here:
http://www.rmxpu.net/owai/scripts/battle_switching.txt
It requires:
http://www.rmxpu.net/owai/scripts/party_switcher.txt
(And the MACL 2.1+)


For something like removing them all before battle, insert this above Main.
Code:
class Scene_Battle
  alias_method :seph_prebattleremoveactors_scnbtl_main, :main
  def main
    @seph_prebattleremoveactors = []
    $game_party.actors.each {|a| @seph_prebattleremoveactors << a.actor_id}
    actors = @seph_prebattleremoveactors.dup
    actors.shift
    actors.each {|id| $game_party.add_reserve_actor(id)}
    seph_prebattleremoveactors_scnbtl_main
    $game_party.actors.dup.each {|a| $game_party.remove_actor(a.actor_id, false)
    @seph_prebattleremoveactors.each {|id| $game_party.add_actor(id)}
  end
end

I did it in fast reply, so let me know if it doesn't work.
 

khmp

Sponsor

Replace the line after the alias_method call in the main section
Code:
$game_party.actors.dup.each {|a| $game_party.$game_party.remove_actor(a.actor_id, false)

Code:
$game_party.actors.dup.each {|a| $game_party.remove_actor(a.actor_id, false)}
 

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