Displaying Pictures when enemies uses skills

i've been developing a game for a week and everything has been going well i got plugins and stuff but there's one thing i have been trying to figure out which is how i can make a picture appear when enemy uses a skill, i know it's doable with common event but i want the picture to appear before.

iam using a sideview battle system but edited it to appear as a frontview to allow animations
Yanfly Action Sequences
Yanfly Action Sequences
any specific way to do it ? i have been trying to do it using it but i never figured out how this is the code iam writing to try and make it work


<Setup Action>

// Show the cut-in image

display picture: "Alice.png", 0, 0, 100%, 100%, 255, normal

wait: 30 // Short delay before skill animation

</Setup Action>



<Target Action>

// Play skill animation and effects

action animation: target

action effect: target

wait for animation // Wait until animation finishes

</Target Action>



<Finish Action>

// Remove the image AFTER the skill effect

erase picture: 1

</Finish Action>
I'm no expert with MV action sequences, but there's at least the common event action sequence command that lets you play a common event, where you can show a picture. You can also show the picture with action sequence eval script. And there's also plugins for cut-in stuff.

Original thread: https://forums.rpgmakerweb.com/threads/displaying-pictures-when-enemies-uses-skills.175423/