BreakerZero

Veteran
Veteran
Joined
Jul 8, 2018
Messages
989
Reaction score
424
First Language
English (USA)
Primarily Uses
RMMV
When using the Yanfly battle core I have every state other than knockouts being displayed in the battle log. For example, if poison is induced it shows the poison text and not the knockout text. The only exception is when a state induces a knockout at the end of a turn (e.g. poison, curse etc.) Is there any way to fix this?
 
Last edited:

BreakerZero

Veteran
Veteran
Joined
Jul 8, 2018
Messages
989
Reaction score
424
First Language
English (USA)
Primarily Uses
RMMV
Okay, so I've found the most logical place to put it... but it is having some rather unanticipated side effects. Specifically, it works a bit too well - plus it breaks the animated sideview extension.

Here's the code in question (with generic placeholders due to Yanfly's license change):

Code:
ext.battle.Window_BattleLog_displayActionResults =
    Window_BattleLog.prototype.displayActionResults;
Window_BattleLog.prototype.displayActionResults = function(subject, target) {
    if (ext.Param.optSpeed) {
      if (target.result().used) {
        this.displayCritical(target);
        this.displayDamage(target);
        this.displayAffectedStatus(target);
        this.displayFailure(target);
      }
    } else {
      ext.battle.Window_BattleLog_displayActionResults.call(this, subject,
          target);
    }
    if (target.isDead()) {
        target.performCollapse();
          if (target.isEnemy()) {
              this.push('addText', 'Defeated 'target.name() + '!');
          } else {
            this.push('addText', target.name() + ' was knocked out!');
          }
    }
};

This is as close as I have managed to get due to the plugin design, so any ideas on where to put the enemy/actor check for the purpose of this workaround would be appreciated.
 

Latest Threads

Latest Posts

Latest Profile Posts

Still early in development but feel like I'm hitting a wall. Either I can't find plugins to do what I need, or they're paywalled :/
Screenshot-2021-05-02-at-15-07-54.png


Tivadar will help you travel to distant places in Eniko: Ghosts Of Grace

Finally done with the school project, here's the raw video of it. o_O :smile:

Forum statistics

Threads
111,175
Messages
1,058,982
Members
144,421
Latest member
luok
Top