Battle Sprite change graphics based on state

Hey guys!

I am currently using Yanflys plugins, and Im trying to create a skill for "Hide in Shadows" for actor battles, where they move off to the right of their position and change image(maybe all black silhouette).

I've been looking at some previous threads similar in nature, bit for some reason when Im trying to use Yanflys action sequences, I cannot move the actor sprite in battle to the right. I've also looked at creating a common event called on state change, but am unsure how to change sprite back once state wears off.

Any help is much appreciated. Thxs!!
Using an action sequence, you can move your character anywhere on the screen with:
move user: point, x coordinate, y coordinate, (frames)

Example:
move user: point, 919, 345, 25

Changing character image with a state you can try:

<Custom Apply Effect>
$gameActors.actor(actorId).setBattlerImage("name");
</Custom Apply Effect>

<Custom Remove Effect>
$gameActors.actor(actorId).setBattlerImage("name");
</Custom Remove Effect>

I haven't tested this though.
Wow Thxs for the quick reply! I'll try it out!!

Instead of moving to a certain point on battle map, is there a way to shift X coordinate by a few, then when state ends return to same location?

Just wondering because due to the actor lineup, how would the engine know to move back into which slot the actor who chose the skill is in?

Is there a script line to return to same location of user?

Hey Pots Talos, it worked! Thxs!!

Original thread: https://forums.rpgmakerweb.com/threads/battle-sprite-change-graphics-based-on-state.124479/