Hello! I'm interested in making a game with a battle system that is similar to pokemon on a basic level. However, I can't figure out how to make only one party member fight at a time instead of all 4. I want to be able to switch the active battler during turns as well, like in pokemon. Any help would be greatly appreciated, thank you! Also I asked about this somewhere else here, but I think I asked it in the wrong place. Sorry I'm new here :/
How do I make only one party member fight at a time?
Game Mechanics DesignSearch for this on the rpg_objects.js and change the number.
Code:
Game_Party.prototype.maxBattleMembers = function() {
return 4;
};
Okay thank you very much!
Also, how would I access this rpg_objects.js?
Find your game project's folder in Windows Explorer (etc.). Open up the folder, and then open the "js" folder. There, you can find rpg_objects (which is the rpg_objects.js file). Open that in a valid editor, find the method that Victor copied, and change the 4 to a 1. Save it, re-open your game in RPG Maker, and now you only have one character fighting at a time.
However, I'm not sure whether his solution will allow you to switch the active battler during battle, due to the way that the "Add Party Member" and "Remove Party Member" commands work. My instinct is that you would need a separate plug-in to be able to do this.
By the way, this all assumes you are using RPG Maker MV. You didn't specify which Maker, and the solution will be somewhat different in each program. This is why Game Mechanics Design is not the best place to post "how-to" questions like yours - instead, post them in the appropriate Help subforum for the Maker you're using.
Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-only-one-party-member-fight-at-a-time.55500/