MZ Change player's priority

Howdy! I'm trying to make a mechanic were the player's priority get set to above characters and vice versa. :kaomad2:

I tried to use the vehicle command but it didn't achieve the wanted result as the player couldn't interact with events and can't land on below characters events.😩 and I'd prefer to avoid using 10 plug-ins for one mechanic.

the result should be: the player triggers the common even, the player turns into a pixie while below it a "copy" is made, now in the pixie form the player is able to fly above everything, when they interact with the human copy the player returns back to their original pose while the copy gets deleted.
(All of this is already implemented, i just need a script to change the player's priorities)


Thanks in advance and for taking your time to help 😍
Use the following script command in a move route:

JavaScript:
this._priorityType = 2

To go back to normal, replace 2 with 1.

I don't know if putting the player on a different priority will break other mechanics of the game.
Use the following script command in a move route:

JavaScript:
this._priorityType = 2

To go back to normal, replace 2 with 1.

I don't know if putting the player on a different priority will break other mechanics of the game.
Thanks!
It didn't break anything, and so far looks great!

Original thread: https://forums.rpgmakerweb.com/threads/change-players-priority.180728/