Is it possible to change the enemy's graphic by applying a state to them? Basically I'm trying to do this(using Yanfly's Buffs & States plugin):
<Custom Apply Effect>
user._prevBattlerName = user._prevBattlerName || user._battlerName;
// The filename of the battler graphic without the file extension.
var battlerName = 'X0Kailo_Palyth';
// Changes the battler image from the setting applied from above.
user.setBattlerImage(battlerName);
// Refreshes the user's appearance.
user.refresh();
</Custom Apply Effect>
<Custom Remove Effect>
var battlerName = user._prevBattlerName;
// Changes the battler image from the archived setting.
user.setBattlerImage(battlerName);
// Clear archived data.
user._priorityBattlerName = undefined;
user._prevBattlerName = undefined;
// Refreshes the user's appearance.
user.refresh();
</Custom Remove Effect>
The above works perfectly for Actors and I would like to achieve the same effect for enemies without having to specify their ID(I'm making a universal summoning skill). I'm also using Yanfly's Animated Sideview enemies if that helps. I'm also aware of the enemy weak poses plugin but it only applies to static battlers.
<Custom Apply Effect>
user._prevBattlerName = user._prevBattlerName || user._battlerName;
// The filename of the battler graphic without the file extension.
var battlerName = 'X0Kailo_Palyth';
// Changes the battler image from the setting applied from above.
user.setBattlerImage(battlerName);
// Refreshes the user's appearance.
user.refresh();
</Custom Apply Effect>
<Custom Remove Effect>
var battlerName = user._prevBattlerName;
// Changes the battler image from the archived setting.
user.setBattlerImage(battlerName);
// Clear archived data.
user._priorityBattlerName = undefined;
user._prevBattlerName = undefined;
// Refreshes the user's appearance.
user.refresh();
</Custom Remove Effect>
The above works perfectly for Actors and I would like to achieve the same effect for enemies without having to specify their ID(I'm making a universal summoning skill). I'm also using Yanfly's Animated Sideview enemies if that helps. I'm also aware of the enemy weak poses plugin but it only applies to static battlers.