Undertale-style remembrance mechanic request

hello!

i was wondering if it would be possible to make a JS script for a system like in Undertale, where the things you've done in game can affect future playthroughs, or the characters remember or react to things you did in a previous playthrough, even if you start a new game.

SPOILERS FOR UNDERTALE PAST THIS POINT

For example, when a player does a playthrough where they have killed every single monster on every single map and complete the game, and they start a new game and do a run where they SPARE every monster they encounter instead and get the pacifist ending, the ending changes because of the previous no mercy run. 

SPOILERS FOR UNDERTALE END HERE

Or, when you play a game past Sans's introduction and decide to restart, your character responds faster to his appearance and he comments on it with something like, "huh, you reacted like you've had this happen before."

Is this possible? 
bumping!
bumping again!
this can be done through events I believe using variables
Really? I'm not sure how something like that could be done with events, especially if a new game is started after previously beating the game...
It is possible through events and variables, however, it is not possible to do so when you start a new game from previous encounters without a plugin, I believe.
yeah, that's what I figured. Would a plugin like that even be possible though?
 I haven't tested in myself, but when I first saw this Plugin, I was thinking you could probably do something akin to Undertale with it.
oh! thank you! that looks like it would work perfectly. Thank you very much!

This thread can be closed now! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/undertale-style-remembrance-mechanic-request.48939/