I was overthinking it. I think if this is for just the final boss then all you need to do is enable the options to continue when loss.
Then you use the event to change you switches and variables.
But like I said that still doesn't stop the player from closing the game and starting again.
I mentioned a few scripts (maybe you didn't see that part).
If they don't do what you want I can try to make a save script to keep switch and variables data when losing a battle and normal saves (so that doesn't load old data)
What I was hoping was that I could keep a switch or variable ticked through the game over.
So as soon as they die the variable "mock" goes up by 1. When its at 1 the dialogue is triggered via a Conditional Branch, like in my image.
I'm more than likely going to be applying this to 3 bosses if possible: a necromancer, an angel (who is in this screenshot) and the god of darkness whos the final boss.
So what Id have in a perfect world is be able to track those 3 variables (the 3 different mocking variables for the bosses) and switches persistent through game overs, if its easily addable it would persist through game shutdowns.
Then possibly being able to add/remove variables/switches to said list mid game development would also would be nice but not needed.
I also tried searching for the other script's you mentioned but I kept hitting dead links.