MV HELP | Show images using Js when a state is applied

Spoiler: Sample Code
<Custom Apply Effect>
if( user === $gameActors.actor(1)){
$gameScreen.showPicture(1,'cuteActionActor1',0,1280,0,100,100,0,0);
$gameScreen.movePicture(1,0,900,0,100,100,255,0,30);
$gameScreen.movePicture(1,0,1280,0,100,100,0,0,30);
}
<Custom Apply Effect>
I made a state that forces the user to use a certain skill, but to spice up the game, try to display an image depending on which actor that image was applied to. But nothing appears, maybe it is that there is no wait marker in this code, but that is not something that I do not know how to do either.
Could someone help me with this.
You need to tell people what plugins you're using - not everyone will recognize that "Custom Apply Effect" is from Yanfly's Buffs and States.

What I would do is create an animation out of the image that lasts however long you want it to last. Then you can use a common event or action sequence on that skill to play the animation and the built-in wait commands will work correctly.
yes I am trying to make my own cut-in images, sorry forget to mention the name of the plugin, I'll try the way you said. That way I can control the time... I think the action sequence will give me more control.

Original thread: https://forums.rpgmakerweb.com/threads/help-show-images-using-js-when-a-state-is-applied.134476/