Custom battle system

Hi all,

i try to create a custom battle system atm. Im using the Scene_Map as base Scene i just made a new plugin and renamed Scene_map to Scene_BattleFront. After doing so i made the first window that is used to start the battle. The next step would be to select the 1st Actor on the screen. The actor can chose betweeen using a skill, item, defense. After he chosed something, I wanted to safe it in a Array. Finally when all actors chose something the battle gonna start. Scene_BattleFront checks wich actor is in party and places them to the battlefield in the order they are in the party. Heres the problem. I dont know how to continue. Thats what i have so far:

Code:
//Start Fenster
function Window_BattleCommand() {
    this.initialize.apply(this, arguments);
}

Window_BattleCommand.prototype = Object.create(Window_Command.prototype);
Window_BattleCommand.prototype.constructor = Window_BattleCommand;

Window_BattleCommand.prototype.initialize = function(x, y) {
    Window_Command.prototype.initialize.call(this, x, y);
    this.selectLast();
};

Window_BattleCommand.prototype.windowWidth = function() {
    return 240;
};

Window_BattleCommand.prototype.numVisibleRows = function() {
    return this.maxItems();
};

Window_BattleCommand.prototype.makeCommandList = function() {
    this.addOriginalCommands();
};

Window_BattleCommand.prototype.addOriginalCommands = function() {
    this.addCommand("Start Battle", 'go', true);
};

Window_BattleCommand.prototype.processOk = function() {
    Window_BattleCommand._lastCommandSymbol = this.currentSymbol();
    Window_Command.prototype.processOk.call(this);
};

Window_BattleCommand.prototype.selectLast = function() {
    this.selectSymbol(Window_BattleCommand._lastCommandSymbol);
};

//Scene BattleFront

var battle_map_start = Scene_BattleFront.prototype.start;
Scene_BattleFront.prototype.start = function() {
    battle_map_start.call(this);
    this.createBattleWindow();
    this.createSkillWindow();
};
 
Scene_BattleFront.prototype.createSkillWindow = function() {
    this._skillWindow = new Window_BattleSkill();
    this._skillWindow.opacity = 255;
    this._skillWindow.x = 10;
    this._skillWindow.y = 650;
    this.addWindow(this._skillWindow);
};

Scene_BattleFront.prototype.createBattleWindow = function() {
    this._battleWindow = new Window_BattleCommand();
    this._battleWindow.opacity = 255;
    this._battleWindow.x = 10;
    this._battleWindow.y = 650;
    this._battleWindow.setHandler('go',      this.commandGo.bind(this));
    this.addWindow(this._battleWindow);
};
 
Scene_BattleFront.prototype.commandGo = function() {
    this._windowBattleSkill.show(); //Here the next step would be to open the skill list of actor 1 in party
};

Now my questions. I want to open the skill_list of actor 1 in a new window, does i have to make a custom window thats based on the window_SkillList ?
I want to add categorys : Skill, Item, Defense for every actor.
Skill opens up the skill list of each character
Item opens up the item list of usable items from the party
defense boosts a variable (addition) that is used for the actors defense
Battle Systems take a bit of planning, persisntance and time.
Now your Battle system sounds like the standard one except it takes place on the map. the proabalby isn't true, but im going off your explantion.
it kinda sounds like you want 4 actors to choose there skillls at once?

1. "Scene_BattleFront.prototype.start;" patches on its self... in your own plugin... this is odd. you did say you renamed "Scene_Map" ... did you do that in the core files? not sure if that is intentional.

2. To open the Skill list window [Window_BattleSkill], you want to set the actor for it, or you might get an undefined error. that should have a "setActor" function. how you do this is dependenty on how your battle system works. You mention you want something in a array. Do you want his action in the array ("Game Action). if you want to create another window, you literally need to define and create that other window. its kinda hard to work out what your actually want to acheive.

3. Item list is bascially the same as skills.

4. this can be done using a skill with no category, just like how Attack and Guard are handled. you can either use a buff or a state. up to you.
I made a new Plugin, copied the whole Scene_Map in it and renamed it. When the battle starts the scene will just change to Scene_BattleFront (SceneManager.push(Scene_BattleFront)). Next i made a for loop to check the party size. After that i made a few if coniditons to check wich actor is at slot 1, slot 2, slot 3 and slot 4. I defined 2 windwos by myself that are used first to start the battle and next to confirm the actions the player did. I use the item and skill list both from the rpg_window.js. And last im doing a few alias to create all windows for the Scene_BattleFront. I already solved everything i asked here but thank you for answering my questions.
Cool thats good to hear. just a few tips though.

you don't need a for loop to check battle party memebers. $gameParty already has a function for that. $gameParty.battleMemebers() will get you them. the function you use to get them already has them in order, so 4 if branches is not needed, you can just loop through them with the Array foreach command.

Good luck with your new battle system 🙂
Hopefully you don't mind, but im struggling to create my own CBS and may borrow your first few lines of code just to get it going, have my own mechanics in mind.

Original thread: https://forums.rpgmakerweb.com/threads/custom-battle-system.83461/