This plugin simplifies the battle log and displays icons.
However, the log disappears at the moment when the whole attack skill hits the first actor.
How can I display the skill log until I hit the fourth actor?
However, the log disappears at the moment when the whole attack skill hits the first actor.
How can I display the skill log until I hit the fourth actor?
Code:
Window_BattleLog.prototype.addText = function(text) {
this.refresh();
this.wait();
};
Window_BattleLog.prototype.displayAction = function(subject, item) {
var numMethods = this._methods.length;
var width = this.windowWidth();
if (DataManager.isSkill(item)) {
var icon_x = this.windowWidth() / 2 - this.textWidth(item.name) / 2;
this.drawIcon(item.iconIndex, icon_x - 32, 0);
this.drawText(item.name, 0, 0, width, 'center');
}
if (this._methods.length === numMethods) {
this.push('wait');
}
};