State that forces user to move first in turn

Hello,

I’m trying to make a state that forces the user to move first in the turn while the user is inflicted with it.

I know that there’s an attack speed trait, but it only seems to work with normal attacks. Is there a snippet that will cause the atk speed trait to work will all skills?
Unless you're using another plugin already to mess with action order, that's what Agility is for. Attack Speed is basically just an Agi modifier that only applies to normal attacks.
Unless you're using another plugin already to mess with action order, that's what Agility is for. Attack Speed is basically just an Agi modifier that only applies to normal attacks.

Yeah, that’s what I’m looking for. I’m looking for a state that modifies the attack speed, but for all attacks and not just normal attacks. I want to modifiy the skill/item invocation speed with a state.

I don’t want to just adjust agility stat itself, because I use some damage formula that take agility into account, and a simple agility boost kind of ruins the balance of some of them.

I know Hime has a speed formula script in vx Ace, but I haven’t found anything similar in MV.
If you're certain Attack Speed won't be used elsewhere, you can override this function:
Code:
Game_Action.prototype.speed = function() {
    var agi = this.subject().agi;
    var speed = agi + Math.randomInt(Math.floor(5 + agi / 4));
    if (this.item()) {
        speed += this.item().speed;
    }
    if (this.isAttack()) {
        speed += this.subject().attackSpeed();
    }
    return speed;
};
To look something like this:
Code:
Game_Action.prototype.speed = function() {
    var agi = this.subject().agi;
    var speed = agi + Math.randomInt(Math.floor(5 + agi / 4));
    if (this.item()) {
        speed += this.item().speed;
    }
    speed += this.subject().attackSpeed(); // Speed now affects everything
    return speed;
};

You can see the default speed formula in there, so this will actually force it back to the default turn order calculation otherwise, but you can also just modify the initial "var speed = [...]" line with whatever you want, technically.
Thank you! I’ll try this out!
Hello,

It looks like this didn't work. I'm not sure what happened, but maybe one of my scripts may be overwriting the turn order. The only one I can think of is Yanfly battle engine though.

Is it possible to turn this into a plugin to override the turn order?

EDIT: It's actually funny, because I also edited the attack times function so it worked with all skills and that worked. It's gotta be something messing with the turn order speed, but I'm not sure what haha.

Original thread: https://forums.rpgmakerweb.com/threads/state-that-forces-user-to-move-first-in-turn.108934/