Store item data

Hi, I don't like how rpg maker's death system works, so I created my own

It works like this:

When the player's health reaches 0, the screen darkens and the player is teleported to the last save point they accessed.
This is set by a variable, so hp and mp are restored and the enemy's position is reset.

However, this system has a problem.
Items that the player consumes do not return.

Does anyone have an idea how to resolve this?

god-of-war-guy-falling.gif
There have been some other threads discussing how to do this.

This tutorial on the site's blog has advice and script calls to store the party's items and replace them with the backup whenever you choose.
There have been some other threads discussing how to do this.

This tutorial on the site's blog has advice and script calls to store the party's items and replace them with the backup whenever you choose.
NIIIIIIIICE MY DUDE!

I GOT IT.

Thank you

Original thread: https://forums.rpgmakerweb.com/threads/store-item-data.159758/