MV Need Help with a Frame Select plugin.

O I found 2 plugins that work together to provide an eval for Yep Action Sequencing. They are found in this old thread here: https://forums.rpgmakerweb.com/inde...ction-sequence-frame-selection-control.95753/

There's no real plugin thread for them, hence why I'm asking here. (Not sure if plugin help or request would be suited better, so mods excuse me😀)

Anyway, the way I see it, there's no way to use their script calls to refer to a target for the motion select, only the user.

I really need this ability to frame control the targets motion, though, so I'm asking for help here.

Spoiler: Frame select for actor
(function() {
Sprite_Actor.prototype.updateMotionCount = function() {
if (this._motion && ++this._motionCount >= this.motionSpeed()) {
if (this.hasOwnProperty("_maxPattern") && this._pattern === this._maxPattern) {this.refreshMotion(); return}
if (this._motion.loop) {
this._pattern = (this._pattern + 1) % 4;
} else if (this._pattern < 2) {
this._pattern++;
} else {
this.refreshMotion();
}
this._motionCount = 0;
}
};

var alias2 = Sprite_Weapon.prototype.updatePattern
Sprite_Weapon.prototype.updatePattern = function() {
if (this.parent.hasOwnProperty("_maxPattern") && this._pattern === this.parent._maxPattern) {return}
alias2.call(this);
};

var alias = Sprite_Actor.prototype.refreshMotion
Sprite_Actor.prototype.refreshMotion = function() {
var actor = this._actor;
if (actor) {
if (this.hasOwnProperty("_maxPattern") && this._pattern === this._maxPattern) {return}
}
alias.call(this)
}

Sprite_Actor.prototype.setMaxFrame = function(num) {
this._maxPattern = num;
}

Sprite_Actor.prototype.removeMaxFrame = function() {
delete this._maxPattern
}

Sprite_Actor.prototype.setFrame = function(motion,num) {
if (motion === "attack") {this._actor.performAttack()} else {this._actor.requestMotion(motion)}
if (motion === "attack" && this.hasOwnProperty("_weaponSprite")) {
var wpn = this._weaponSprite;
wpn._pattern = num - 1;
wpn._motionCount = 0;
wpn.updatePattern();
}
this._pattern = num;
this._motionCount = 0;
this.setMaxFrame(num)
}

})()

Spoiler: Frame select for enemies
(function() {
Sprite_Enemy.prototype.updateMotionCount = function() {
if (this._motion && ++this._motionCount >= this.motionSpeed()) {
if (this.hasOwnProperty("_maxPattern") && this._pattern === this._maxPattern) {this.refreshMotion(); return}
if (this._motion.loop) {
this._pattern = (this._pattern + 1) % 4;
} else if (this._pattern < 2) {
this._pattern++;
} else {
this.refreshMotion();
}
this._motionCount = 0;
}
};


var alias = Sprite_Enemy.prototype.refreshMotion
Sprite_Enemy.prototype.refreshMotion = function() {
var actor = this._enemy;
if (actor) {
if (this.hasOwnProperty("_maxPattern") && this._pattern === this._maxPattern) {return}
}
alias.call(this)
}

Sprite_Enemy.prototype.setMaxFrame = function(num) {
this._maxPattern = num;
}

Sprite_Enemy.prototype.removeMaxFrame = function() {
delete this._maxPattern
}

Sprite_Enemy.prototype.setFrame = function(motion,num) {
if (motion === "attack") {this._actor.performAttack()} else {this._actor.requestMotion(motion)}
if (motion === "attack" && this.hasOwnProperty("_weaponSprite")) {
var wpn = this._weaponSprite;
wpn._pattern = num - 1;
wpn._motionCount = 0;
wpn.updatePattern();
}
this._pattern = num;
this._motionCount = 0;
this.setMaxFrame(num)
}

})()
you are free to link plugin if they are paid, if free, it depends on their terms.

as far I can see, you can copy the script into a new file and save as .js
a bit further is another one for enemies which could work if you place
then into a single js.

the eval: jsFunction or the other one is further in the thread that should
be placed inside the notetag of skills.

so it should work unless you need it differently than they have given?
I know how to use these plugins. The issue is there is no command for the target of the user. it's only user.battler. I'm asking for someone who can edit them so they can have a target.battler command I can use.
Not sure if you are allowed to bump your threads since double post, but here we go... I REALLY need help with this 😀
Thread can be closed. Someone was able to help me out.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-a-frame-select-plugin.152137/