Good/Bad ending system

Hi there! I am working on some-kind of system that works when pacifying or when killing an monster...
But the part is that i cant figure out how to implement something like this using events(If its even possible...?)
------------
ACTOR has encountered RANDOM MONSTER
If the actor kills the monster then turn on switch: Bad Ending - Permantently
If actor decides to pacify the creature then turn on switch: Good Ending - temporarily.
After some time...
ACTOR has encountered YET ANOTHER RANDOM MONSTER.
If actor kills the monster and has the switch Bad Ending on then do nothing.
If the actor pacifies the monster and has the switch Good Ending: ON then do nothing.
But if actor kills the monster with the switch: Good Ending on then disable the switch Good Ending and Enable the switch Bad Ending.
------------
Now is this system possible to make?
If yes then thank god!
If no then i guess i will have to use the standard battle system...
In this case, you should make another skill, use common Events with some variable that require a trigger to Good Ending, If Variable = 0, then it'll bad ending.
Yes but this is the problem.
I just cant figure out how to create the events...

Original thread: https://forums.rpgmakerweb.com/threads/good-bad-ending-system.105128/