How to make a character acknowledge that the player has died at least once

so you know how in games like Undertale, the dialogue of sans changes to tell the player that he knows how many times he has lost. I don't want my NPC to list the EXACT the number of times the player has died, but just a simple line of text telling them they notice something must've happened to you.
This is tricky because when you trigger a game over state, the game ends. You would need to save that data on to a file independent from playthrough which is not supported by MV by default. The only data of that sort that exists is basically the option settings

However there are plugins that lets you save playthrough-independent data and lets you event out your game overs and makes your mechanic idea possible:
Thanks for the help, I'll be sure to give these a try and see which one helps better in replicating this event
Thanks for the help, I'll be sure to give these a try and see which one helps better in replicating this event
You probably need both, the first link is for making it possible to write game logic to create a death counter or switch, the second link is to save that piece of data as playthrough-independent data
alright, thank you very much

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-character-acknowledge-that-the-player-has-died-at-least-once.164191/