Change z position of the player/events sprites

Hello! I've tried to find a question for this in the forum, but wasn't able to find any.

I started scripting a bit ago, so I'm still learning. In a game I'm working on, I need the player and some events to be drawn on top of everything (including images) from time to time.

My question is, is there a way to modify the player/events sprites z position?

EDIT: I've been checking Sprite_Character class, and I think I could alias the update_position method to also take z as an argument, but I'm not sure if that would be a good idea
Hello!
Pictures are always on top of everything.. (i believe...)
You can always work with Layer Graphics from Galv.. it gives you more options
i think it's what you are looking for.. give it an eye.

Update Edit:
even though galv's script is great for what it does, it may cause lags if you use multiple layers..
so personally i want to find a replacement for this script but YOU may find it good...

Original thread: https://forums.rpgmakerweb.com/threads/change-z-position-of-the-player-events-sprites.171515/