[RMMV] Please help me create the illusion skills/spells

I know Yanfly plugin allows me to do many amazing skills, however, I do not know to create the mimic or illusion spells:
I would like to implement Mirror Image spell which first allows the user to become invisible and then show up with multiple copies.

Another one that I would like is a tricking spell which when enemies attack the user, it attacks their sides instead.


This polymorph spell is a popular one, but I do not know to create it. This spell turns an enemy into a frog, a butterfly or a lamb for a very short time.

And finally, the spell which creates a perfect copy of a user during a battle and disappears when a battle ended.

Original thread: https://forums.rpgmakerweb.com/threads/rmmv-please-help-me-create-the-illusion-skills-spells.98087/