MZ Plugin help for making Battle Skill Invocation Repeats that inflict status effects have no delay in battle

I'm customizing my battle system to be faster than the default RPG MZ engine. So far I got the battle message speed to be faster using
JavaScript:
    Window_BattleLog.prototype.messageSpeed = function() {
        return 6;
What I was looking for was to decrease the wait time for Battle Skill Invocation Repeats that inflict status by a large amount (which it did) but now I encounter the issue that when the status is inflicted on an enemy with Skill Invocation repeats, there is a wait time that interferes with the battle flow. Does anyone know how to lessen the wait time for status effects for skill invocation repeats (an example would be great too, thanks).

Edit: I tried doing:
JavaScript:
Window_BattleLog.prototype.wait = function() {
        this._waitCount = 4;
   };

Didn't do anything.

----
Edit:
Plugins I have (the last one is just the piece of message speed code I posted above)
And Disable touch input just removes mouse movement/mouse etc.
Plugins.png


What I'm looking for:
"I'm considering asking for just a modifiable state effect delay time (so I can set it to 0 or whatever the default message speed I have is)."

Thank you in advance for whoever helps!
Window_BattleLog.prototype.wait pulls from Window_BattleLog.prototype.messageSpeed by default, so if you hardcoded wait() to 4 when it was previously pulling 6 from messageSpeed(), you're not going to perceive much of a difference because the difference is 2 frames.

That being said, I'm reasonably familiar with Window_BattleLog, but not really sure what your overall problem is here. A gif or video of the battle sequence, or screenshot of your skill setup would be helpful.

Edit: if you're talking about the state application message(s), e.g. "A goblin became poisoned," the wait is because there is a wait time that is associated with each line that Window_BattleLog prints.

In that scenario, your options are to remove the state application message and instead handle the notification differently (e.g. with a popup), or to merge the state application message with the damage message so that they are printed simultaneously.

I guess you could also set the message speed to zero. That won't give you simultaneous battle log messages as I described above, but they'd essentially be back-to-back.

However, then you'd want to insert manual waits after specific battle log events to maintain some degree of pacing. IIRC, that'd also involve adding a custom wait listener to Window_BattleLog's update function.

If you're describing a different scenario, you should ideally post a gif/video as I suggested above.
Window_BattleLog.prototype.wait pulls from Window_BattleLog.prototype.messageSpeed by default, so if you hardcoded wait() to 4 when it was previously pulling 6 from messageSpeed(), you're not going to perceive much of a difference because the difference is 2 frames.

That being said, I'm reasonably familiar with Window_BattleLog, but not really sure what your overall problem is here. A gif or video of the battle sequence, or screenshot of your skill setup would be helpful.

Edit: if you're talking about the state application message(s), e.g. "A goblin became poisoned," the wait is because there is a wait time associated each time Window_BattleLog prints a new line.

In that scenario, your options are to remove the state application message and instead handle the notification differently (e.g. with a popup), or to merge the state application message with the damage message so that they are printed simultaneously.

I guess you could also set the message speed to zero and then insert manual waits after specific battle log events to maintain some degree of pacing, but IIRC, that'd also involve adding a custom wait listener to Window_BattleLog's update function.

If you're describing a different scenario, you should ideally post a gif/video as I suggested above.

I don't know javascript (I only got messagespeed alteration after looking at other plugins), so I'm just requesting help here in the plugin requests. Not really sure how to reduce the wait time of the state application messages with code for just state applications on my own.

and continuation of my post for more context:

When states are applied to the enemy, there is an annoyingly long wait time after applying it which interferes with battle flow. When I want to portray a particularly fast character with low damage Skill invocation repeats that inflict states, the wait time/delay gets in the way of the portrayal of the character. Don't know how to code js to fix this.
Screenshot_6.png


Demonstration of the status effect delay on repeatedly attacking skills.


----

When it doesn't inflict states, everything in the battle flows smoothly. So I want to request for a plugin that can modify the wait time for state infliction.
Screenshot_7.png


Example of it without inflicting states and how I want it to be with state infliction.



Thanks is advance.

----
Plugins I have (the last one is just the piece of message speed code I posted above)
Plugins.png
Okay, so what you're showing is what I described. Every additional line that Window_BattleLog prints has a wait associated with it. The messages in your second video can be perceived as flowing more smoothly because they aren't being interrupted by the additional status effect messages that get printed between hits.

So, there are a few things for you to consider here in terms of your request. The suggestions that I laid out would still work for your request, but you'd probably need to clarify your desired outcome a bit more. My suggested solutions:
  1. Merge the damage and status application effects into a single message that prints simultaneously
  2. Set the message speed to zero to allow for back-to-back messages, and then add manual waits as needed to preserve pacing
  3. Eliminate the status messages entirely, which should make things flow as in your second video, but then you'd need to determine how to show your status messages as they'd no longer be printed in the battle log
Also, you're clearly using some plugins, so I'd suggest that you list those so that anyone who takes up your request doesn't waste time writing code that might conflict with the plugins that you have.

Streamlining battle log messages is also something that Yanfly's plugins typically tackles, so if you are using VisuStella for MZ, that probably presents you with a 4th option in the form of using action sequences or whatever else is available to you from those plugins.
Okay, so what you're showing is what I described. Every additional line that Window_BattleLog prints has a wait associated with it. The messages in your second video can be perceived as flowing more smoothly because they aren't being interrupted by the additional status effect messages that get printed between hits.

So, there are a few things for you to consider here in terms of your request. The suggestions that I laid out would still work for your request, but you'd probably need to clarify your desired outcome a bit more. My suggested solutions:
  1. Merge the damage and status application effects into a single message that prints simultaneously
  2. Set the message speed to zero to allow for back-to-back messages, and then add manual waits as needed to preserve pacing
  3. Eliminate the status messages entirely, which should make things flow as in your second video, but then you'd need to determine how to show your status messages as they'd no longer be printed in the battle log
Also, you're clearly using some plugins, so I'd suggest that you list those so that anyone who takes up your request doesn't waste time writing code that might conflict with the plugins that you have.

Streamlining battle log messages is also something that Yanfly's plugins typically tackles, so if you are using VisuStella for MZ, that probably presents you with a 4th option in the form of using action sequences or whatever else is available to you from those plugins.
Plugins.png

Here are my plugins, and I'm considering asking for just a modifiable state effect delay time (so I can set it to 0 or whatever the default message speed I have is). And Disable touch input just removes mouse movement/mouse etc.

The last plugin is just the message speed one I posted in my first post.

Having 1. would be nice, but I also like the separation of the messages for less textual clutter.

Anyways, going to bed right now. I'll check replies in the morning.
I think I found out.
Removed waitForNewLine

JavaScript:
Window_BattleLog.prototype.displayAffectedStatus = function(target) {
    if (target.result().isStatusAffected()) {
        this.push("pushBaseLine");
        this.displayChangedStates(target);
        this.displayChangedBuffs(target);
        this.push("popBaseLine");
    }
};

Edit: Nevermind, there's still a slight delay after the state is afflicted.

Edit 2: Figured it out! Yay!

JavaScript:
Window_BattleLog.prototype.displayCurrentState = function(subject) {
    const stateText = subject.mostImportantStateText();
    if (stateText) {
        this.push("addText", stateText.format(subject.name()), true);
        this.push("clear");
    }
};

Window_BattleLog.prototype.displayAffectedStatus = function(target) {
    if (target.result().isStatusAffected()) {
        this.displayChangedStates(target);
        this.displayChangedBuffs(target);
    }
};

Window_BattleLog.prototype.displayChangedStates = function(target) {
    this.displayAddedStates(target);
    this.displayRemovedStates(target);
};

Window_BattleLog.prototype.displayAddedStates = function(target) {
    const result = target.result();
    const states = result.addedStateObjects();
    for (const state of states) {
        const stateText = target.isActor() ? state.message1 : state.message2;
        if (state.id === target.deathStateId()) {
            this.push("performCollapse", target);
        }
        if (stateText) {
            this.push("popBaseLine");
            this.push("pushBaseLine");
            this.push("addText", stateText.format(target.name()), true);
        }
    }
};

Window_BattleLog.prototype.addText = function(text, isState) {
    this._lines.push(text);
    this.refresh();
};

Original thread: https://forums.rpgmakerweb.com/threads/plugin-help-for-making-battle-skill-invocation-repeats-that-inflict-status-effects-have-no-delay-in-battle.159510/