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:
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
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