Seeking Help With Yanfly's Weak Enemy Poses plugin.

Hello,
In my project, I am using static front view enemies and am attempting to implement a way to change their images when they are performing specific actions, like attacking and guarding. I'm using Yanfly's Battle Engine Core (http://yanfly.moe/2015/10/10/yep-3-battle-engine-core/) and Weak Enemy Poses (http://yanfly.moe/2016/11/05/yep-119-weak-enemy-poses-rpg-maker-mv/) plugins to try to do so, but I can't quite figure out how. I assume It's through the lunatic mode notetag, but I sadly understand very little of javascripting. The correct way to word the notetag, or any other suggestions to implement the same effect would be welcomed greatly. I've been playing around with options for days now and have given up trying to figure it out on my own. 😐

Here is the example lunatic mode notetag from the plugin:

<Custom Enemy Pose>
if (user.mpRate() >= 0.50) {
name = 'Scorpion';
hue = 180;
} else {
name = 'Spider';
}
</Custom Enemy Pose>
If you want the pose to change during the action, I'm not certain that's possible. At least not with attacking. With guard, however, I'm guessing that you have Guard as a state, since that's the default way. In that case, this is possible:

<Custom Enemy Pose>
if (user.isStateAffected(GuardID)) {
name = 'Scorpion';
hue = 180;
} else {
name = 'Spider';
}
</Custom Enemy Pose>

Make certain that this is in a particular enemy and NOT the state. Replace GuardID with the ID number of the state.

Attacking may be possible, but it's hard to tell without more information. Do you mean when the enemy is using a particular attack? Any attack? A little more information is necessary to determine the best course of action.
Oooh, thank you! That worked perfectly for the guard pose.

I'm aiming to do essentially the same thing when an enemy is performing its basic attack skill as well, though I would be ok with the pose being the same for any attack if that is the only way to go about it.

Is there some way to change the "if (user.isStateAffected(GuardID))" part of that notetag to be the user using a certain skill number instead? If so, I think that could work.

Original thread: https://forums.rpgmakerweb.com/threads/seeking-help-with-yanflys-weak-enemy-poses-plugin.110559/