YAHOU - I found a solution !
I'm no scripter so I can't garantee that it won't create other problems. But I run some tests and it seems fine :
- The YED plugin uses Battler Default Sprite for Actors
- The YED plugin uses your other notetag informations (size, frames, etc) - no problem if it's empty
-
You can change Battler of an Actor IN-game and IN-Battle - by using regular commands of RPG MAKER MV
Attention : the only limit to this is if you want to change your Battle Default Sprite, it must have the same dimensions, same frames, same frames-sizes, same moves, etc
Possibilities : thanks to this, you can change Battler whenever you want so if you want your actor to wear another outfit, carry another weapon, have another behavior or state (hurted, furious, undead, ...)
In the YED Sideview Battle plugin,
LOOK FOR this part (lign 646 to 660 in the original script) :
Spoiler: YED Sideview Battle plugin - part to modify
JSON:
(function() {
/**
* Aliasing methods
*/
var _Game_Actor_battlerName
= Game_Actor.prototype.battlerName;
Game_Actor.prototype.battlerName = function() {
if (this.isSideviewBattler()) {
return this.getSideviewFilename();
}
return _Game_Actor_battlerName.call(this);
};
}());
AND REPLACE BY THIS
Spoiler: YED Sideview Battle plugin - modification
Code:
(function() {
/**
* Aliasing methods
*/
var _Game_Actor_battlerName
= Game_Actor.prototype.battlerName;
Game_Actor.prototype.battlerName = function() {
if (this.isSideviewBattler()) {
return _Game_Actor_battlerName.call(this);
}
return _Game_Actor_battlerName.call(this);
};
}());
---
Finally for ennemies sprite issues, i recommand this part of the code (not mine but I forgot the author) to copy just right above the part that I suggested to modify :
Spoiler: YED-YEP AnimatedEnnemies Compatibility custom change
Put this inside the plugin Yed Sideview Battle plugin, inside the function Game_Battler...etc (just after lign 643)
JSON:
var _Game_Battler_spriteWidth = Game_Battler.prototype.spriteWidth;
Game_Battler.prototype.spriteWidth = function() {
if (this.isSideviewBattler()) {
if (Imported.YEP_X_AnimatedSVEnemies) {
var frameSizes = this.getSideviewSizes();
var cw = frameSizes[0];
return cw;
}
}
return _Game_Battler_spriteWidth.call(this);
};
var _Game_Battler_spriteHeight = Game_Actor.prototype.spriteHeight;
Game_Battler.prototype.spriteHeight = function() {
if (this.isSideviewBattler()) {
if (Imported.YEP_X_AnimatedSVEnemies) {
var frameSizes = this.getSideviewSizes();
var ch = frameSizes[1];
return ch;
}
}
return _Game_Battler_spriteHeight.call(this);
};
I hope it will be usefull to you !