how to make checkpoint in rpg maker mz

hello everyone , i have quoestion how we make checkpoint for location in our map?
What do you mean by checkpoint?
Make variables checkpoint X, checkpoint Y. When player reaches checkpoint update the position to those variables. Then when player loses, transport them there. Are you using on map battles or random battles? If you're using on map battles, you can just set the option when they lose to run a common event to transport them to the checkpoint variables.

EDIT: If you want you can store their stats and items at the checkpoint too to other variables and restore them.

EDIT2: Or save and force load.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-checkpoint-in-rpg-maker-mz.178273/