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
Why not? The only issue here is that you should add some checks to make sure that the player and the events won't be treated the same way unless you've got a good reason to do so. I suspect you wanna set different z values for the player and the events. If so, you gotta add a conditional statement in your code.

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