Giving Characters Metaknowledge?

Hi again.

So I was thinking about what new features I could add into my game to help it stand more, when I thought about something. I've been playing a lot of Undertale recently, and I think it's pretty cool how certain characters possess knowledge outside of what should be possible. A couple examples are Sans knowing how many times he's killed you or Flowey remembering certain details from your previous runs. This made me think that a similar feature would be a cool addition to my game. But anyways, onto the question.

Is it possible to save a value or switch outside the regular save file for when a certain happening is triggered in the game? Specifically, in this case I want the game to how many times you've failed a certain difficult boss fight so that after failing a couple times, the player would be given the option to skip the pre-battle dialogue (since that's also pretty lengthy). From what I've gotten out of RPG Maker MV, the engine can do a lot, but it may not be able to do this. However, I'm still curious if this is possible, as it'd make this situation less frustrating, and I may even be able to use it for another case (for plot stuff, still thinking about it).

On a side note... did I use the term "metaknowledge" correctly in the thread title? I've heard the word thrown around a bunch and I Googled it, but I'm still not 100% sure.
Hi again.

So I was thinking about what new features I could add into my game to help it stand more, when I thought about something. I've been playing a lot of Undertale recently, and I think it's pretty cool how certain characters possess knowledge outside of what should be possible. A couple examples are Sans knowing how many times he's killed you or Flowey remembering certain details from your previous runs. This made me think that a similar feature would be a cool addition to my game. But anyways, onto the question.

Is it possible to save a value or switch outside the regular save file for when a certain happening is triggered in the game? Specifically, in this case I want the game to how many times you've failed a certain difficult boss fight so that after failing a couple times, the player would be given the option to skip the pre-battle dialogue (since that's also pretty lengthy). From what I've gotten out of RPG Maker MV, the engine can do a lot, but it may not be able to do this. However, I'm still curious if this is possible, as it'd make this situation less frustrating, and I may even be able to use it for another case (for plot stuff, still thinking about it).

On a side note... did I use the term "metaknowledge" correctly in the thread title? I've heard the word thrown around a bunch and I Googled it, but I'm still not 100% sure.
Its totally possible. I don't know much about MV
but this could help. https://forums.rpgmakerweb.com/index.php?threads/persistent-global-variable.88696/
https://fallenangelolivia.itch.io/meta-controls

Maybe something like this is what your looking for?
RMMV actually does it already with the options settings using the config.rpgsave file.
But you'll either need a plugin or a few lines of Javascript of your own to save/load what you want.
@Levolpehh, the plugin you found seems to work. Thanks for the help. And thanks to everyone else who suggested something!

Original thread: https://forums.rpgmakerweb.com/threads/giving-characters-metaknowledge.104184/