Change priority with a script call?

I have an NPC which, of necessity, has to be set to 'Below characters'.  However, during a set move route command, I need it to become 'Same as characters'.  I can't see an event command which does this, so is there a script call which does it?

Thanks.
Try this:

One event page is the default of below characters.

The second page, which runs if a switch is on (self or otherwise), is above characters. I usually reserve switches 21 - 30 for these very purposes.

Then, just turn on that switch, set the move route, and turn it back off (if you wish).

While there is a script command to turn on an events self switches from outside, its probably easier done with a global switch.
If you want to go with the scriptlet route : self.instance_variable_set🙂@priority_type, int)

Where 'int' is 0 (Below Character), 1 (Same as Character) or 2 (Above Character)

EDIT: The above script command is for usage in a Move Route command within the aforementioned event. If you are in a Move Route elsewhere, you will need to use the following : $game_map.events[event_id].instance_variable_set🙂@priority_type, int)
Solved at the speed of light!

Thank you both.  Each solution will be appropriate in different circumstances, so it's good to have them in my repertoire.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/change-priority-with-a-script-call.40267/