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.
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.
(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)
}
})()
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)
}
})()
(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)
}
})()
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)
}
})()