Is it possible to create a system in RPG Maker that leaves all the player's gold at the point where he died?
For example, the player carries 50 gold, when he dies he will have 0 and he will have to go back to the point where he died to recover it.
This is entirely possible, but it may be best to use a script/plugin that supports event spawning so that you can create an interactable gold object that'll give your original money back.
I feel like a single event on each map, using autorun checking for a switch and comparing variables, and a single common event handling the switch and a variables would suffice.
When the player dies, flip switch_1 ON. The common event will then write to variable_1 the RegionID of the top-left tile. Next, store the players gold into Variable_3. Then the common event flips switch_2 ON, and turns switch_1 OFF.
On every map, the top-left corner should have a different region ID, 1 for map 1, 2 for map 2, etc..
Then in that same spot put an event that is set to auto-run and the look for switch_2. It'll then write to variable_2 the RegionID of the top-left tile. Next, it'll run a conditional branch to check if Variable_1 == Variable_2. If it does, move the event to the location of the player, turn Self-Switch A ON. If it doesn't, erase the event. Then on the event page that is listening for Self-Switch A, you just change it's sprite, make it same as chracter, and action trigger. Then you make it give the player gold that was previously stored in variable_3. Lastly, turn switch_2 off and erase the event.
I'm 99% certain this should work and would allow for 255 maps (since that's the regionId count by default). Not at my project station so I can't test it.