Hi
I edited Yanfly's InBattleStatus Plugin to make it able to see the status of enemies as well.
Here's what I did : I replaced all the occurences of $gameParty.battleMembers() by BattleManager.allBattleMembers()
After doing that (and some removing of actor-exclusive data like level capping), the plugin works fine, but the enemies has no faceset, and this behavior is normal, because enemies doesn't have a face image.
So I edited the Window_InBattleStatus.prototype.refresh() function by adding a if statement in WindowBase.drawActorFace()
When I launch the project and open the status window during battle, the actor faces show fine, but the enemy image doesnt show unless I unselect, and select it again.
I absolutely don't know how and why this is happening, the code literally says to load the face file based on the enemy name instead of the actor.faceName(); property. And it works, the bitmap loads.
Some people told me about the loadListeners, but I can't use it without crashing the game, looking around google hasn't helped me. Any help is highly appreciated !
I edited Yanfly's InBattleStatus Plugin to make it able to see the status of enemies as well.
Here's what I did : I replaced all the occurences of $gameParty.battleMembers() by BattleManager.allBattleMembers()
After doing that (and some removing of actor-exclusive data like level capping), the plugin works fine, but the enemies has no faceset, and this behavior is normal, because enemies doesn't have a face image.
So I edited the Window_InBattleStatus.prototype.refresh() function by adding a if statement in WindowBase.drawActorFace()
Code:
Window_Base.prototype.drawActorFace = function(actor, x, y, width, height) {
var filename = "warrior";
var index = 0;
if (actor.isActor())
{
filename = actor.faceName();
index = actor.faceIndex();
} else {
if ($dataEnemies[actor._enemyId].sideviewBattler[0]) {
filename = $dataEnemies[actor._enemyId].sideviewBattler[0];
} else {
filename = $dataEnemies[actor._enemyId].battlerName;
}
}
this.drawFace(filename, index, x, y, width, height);
};
When I launch the project and open the status window during battle, the actor faces show fine, but the enemy image doesnt show unless I unselect, and select it again.
I absolutely don't know how and why this is happening, the code literally says to load the face file based on the enemy name instead of the actor.faceName(); property. And it works, the bitmap loads.
Some people told me about the loadListeners, but I can't use it without crashing the game, looking around google hasn't helped me. Any help is highly appreciated !