MV (REQUEST) plugin that changes battler motion based off of hit type instead of skill type

Visustella MZ has a setting in its battle core plugin that allows you to set it so the actor's ready animation is dependent on the hit type of the skill (setting it to either physical or magical in the skills tab of the database) as opposed to that animation being dependent on what skill type is filed under "magic skills" in the systems tab of the database. Is there a plugin for MV that does that same thing?
Yanfly's Battle Core does as well I believe. I'd be surprised if it doesn't considering the VisuStella plugins were originally based on ports of the YEP library.
Yanfly's Battle Core does as well I believe. I'd be surprised if it doesn't considering the VisuStella plugins were originally based on ports of the YEP library.
Actually, it doesn't. Part of why I made this post is because I can't actually find that setting in any of Yanfly's plugins, but it wouldn't hurt to look again (cause there could easily be something I missed).
Actually, it doesn't. Part of why I made this post is because I can't actually find that setting in any of Yanfly's plugins
1706066635432.png


It's even near the top 😉

It also has notetags for you to specify the casting animation (if any) on a per-skill basis.

And, of course, they can also be controlled via Action Sequences.
View attachment 292849

It's even near the top 😉

It also has notetags for you to specify the casting animation (if any) on a per-skill basis.

And, of course, they can also be controlled via Action Sequences.

That's not what I'm looking for at all. I meant the animation that the side view battler plays, either physical (attacks) or magical (chanting), this setting on visustella.
1706068281720.png
That's not what I'm looking for at all. I meant the animation that the side view battler plays, either physical (attacks) or magical (chanting), this setting on visustella.
Gotcha - you're using the wrong word. Animations are the spritesheets that play on top of battlers that you define in the Animations tab of your database.

What you're talking about is (as you can see in the screenshot you provided 😛) called the battler's motion.

I haven't seen an MV plugin that does specifically that, but you might find something if you Google the right word.

Again, you can do it using Yanfly's Action Sequences; and, really it wouldn't be a terribly challenging plugin for someone to just write.

Edit: Paste this into a text editor, save as a *.js file, include as a plugin.

Code:
Game_Battler.prototype.isChanting = function() {
    if (this.isWaiting()) {
        return this._actions.some(function(action) {
            return action.isMagicSkill() && !action.item().meta.nochant || action.item().meta.chant;
        });
    }
    return false;
};

You can then put a <chant> notetag in a skill to make the battler use the chant motion, or the <nochant> notetag in a skill of the magic type to force them to not chant on it.

If you only want to do it by hit type,
Code:
Game_Battler.prototype.isChanting = function() {
    if (this.isWaiting()) {
        return this._actions.some(function(action) {
            return action.isMagical();
        });
    }
    return false;
};
Gotcha - you're using the wrong word. Animations are the spritesheets that play on top of battlers that you define in the Animations tab of your database.

What you're talking about is (as you can see in the screenshot you provided 😛) called the battler's motion.

I haven't seen an MV plugin that does specifically that, but you might find something if you Google the right word.

Again, you can do it using Yanfly's Action Sequences; and, really it wouldn't be a terribly challenging plugin for someone to just write.

Edit: Paste this into a text editor, save as a *.js file, include as a plugin.

Code:
Game_Battler.prototype.isChanting = function() {
    if (this.isWaiting()) {
        return this._actions.some(function(action) {
            return action.isMagicSkill() && !action.item().meta.nochant || action.item().meta.chant;
        });
    }
    return false;
};

You can then put a <chant> notetag in a skill to make the battler use the chant motion, or the <nochant> notetag in a skill of the magic type to force them to not chant on it.

If you only want to do it by hit type,
Code:
Game_Battler.prototype.isChanting = function() {
    if (this.isWaiting()) {
        return this._actions.some(function(action) {
            return action.isMagical();
        });
    }
    return false;
};

Ok, this is great, this is better than what Visustella offers, because now it can be applied to things like certain hit skills. Thank you for writing this.

Original thread: https://forums.rpgmakerweb.com/threads/request-plugin-that-changes-battler-motion-based-off-of-hit-type-instead-of-skill-type.165067/