Custom SV Motion

In 2003, there's additional poses or motion. We can add up to 32 and can be used all of them in States tab

1735447523271.png


In MV inside states tab, it's only shows 4. Is it possible to add more Motion option here?

1735448057163.png


My target is to add Frozen state like in 2003. When enemy use freeze, it will use motion that the actor is Frozen

I might be able to add motions here, but I couldn't find anything about adding to MV option

1735448248871.png
Just as a reminder (or new information, if you didn't know) - you should never alter the core script files. Always copy your changes into a plugin file.

You can't change the editor. Even if you add more motions to the table, it won't show up there.

Yanfly's Visual State Effects allows you to choose any (existing) motion for the battler when they're affected by a state. You can also play a looping animation on them.
Just as a reminder (or new information, if you didn't know) - you should never alter the core script files. Always copy your changes into a plugin file.

You can't change the editor. Even if you add more motions to the table, it won't show up there.

Yanfly's Visual State Effects allows you to choose any (existing) motion for the battler when they're affected by a state. You can also play a looping animation on them.

I can't use that plugin due to short money, so I was looking for alternative one

It seems that this is working, but somehow it's immediately gone after effects applied

So I use requestMotion('frozen') with this notetag applied in actors

Spoiler: Battler Notetag
<Sideview Battler Motion>
Name: Frozen
Index: 11
Loop
Frames: 1
Speed: 6
</Sideview Battler Motion>

1735453586305.png


I'm still looking forward about this about how to applied the motion permanently until the action ends

@ATT_Turan

I might able to add frozen state in here. But idk it's okay to make change on someone plugin (I assume not)

1735458933264.png


If I create another plugin for me, should it be like this? Or use Sprite_Actor.prototype?

1735459228832.png


Ok I just came back to my problem again since I was busy. It's working properly now

My work is using this tag (From plugin YED Sideview Battler), adding Frozen state

1735472130178.png


And also state that get Frozen
1735472186064.png


And then using Custom plugin made by me

JavaScript:
/*:
 * Frozen State
 *
 * @plugindesc v1.0.0 This plugin allows user to use frozen state.
 * @author Vyndicate
 *
 *
 * @help
 * There is no Plugin Command for this plugin.
 *
 * ============================================================================
 * Add Frozen state motion
 *
 * ============================================================================
 */

(function () {
    Game_Battler.prototype.frozenMotion = function () {
        return 'frozen';
    };

    Game_Battler.prototype.isFrozen = function() {
        return this.states().some(o => o.id == 12);
    };

    var _Frozen_State = Sprite_Actor.prototype.refreshMotion
    Sprite_Actor.prototype.refreshMotion = function () {
        var actor = this._actor;
        if (!actor) return;
        var motionGuard = Sprite_Actor.MOTIONS['guard'];
        if (this._motion === motionGuard && !BattleManager.isInputting()) return;
        var stateMotion = actor.stateMotionIndex();
        if (actor.isFrozen()) {
            this.startMotion(actor.frozenMotion());
        } else if (actor.isInputting() || actor.isActing()) {
            this.startMotion(actor.idleMotion());
        } else if (stateMotion === 3) {
            this.startMotion(actor.deadMotion());
        } else if (stateMotion === 2) {
            this.startMotion(actor.sleepMotion());
        } else if (actor.isChanting()) {
            this.startMotion(actor.chantMotion());
        } else if (actor.isGuard() || actor.isGuardWaiting()) {
            this.startMotion(actor.guardMotion());
        } else if (stateMotion === 1) {
            this.startMotion(actor.abnormalMotion());
        } else if (actor.isDying()) {
            this.startMotion(actor.dyingMotion());
        } else if (actor.isUndecided()) {
            this.startMotion(actor.idleMotion());
        } else {
            this.startMotion(actor.waitMotion());
        }
    }
}());

And since I use YEP BattleCoreEnginge, I copy the whole inside refreshMotion state and add isFrozen clause

The result is something like this



It might be not perfect but it's a good start and I'll fix the rest

Thanks for advice @ATT_Turan, I'll close this since no further question for me
This thread is solved due to being reported as solved. If you need it reopened, report it to let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/custom-sv-motion.174260/