Enemy Stats vs Player Stats as Variables and Formulas?

The title may not explain it well, so here's the detailed version.

Several actors in my game are fond of the whole "Chivalry," and "Morality," thing.

I want to make it, so that if an actor in the party is "X" (an integer like, for say, "10") levels above the Enemy they just killed, then the "Morality-Stat," (which i've created with Yanfly plugins) will have "1" added and/or subtracted from it. (Sort of like a "Kill-Count," but it only increases if your much higher level than the enemy.)

When Morality gets too low, (because they're slaughtering enemies much weaker than them) they're stats will be reduced by some arbitrary percentage, (ie: evasion or speed -5%)

If Morality hits rock-bottom, then those actors will become so depressed, that an event forces the player party to visit the "Inn" from the town they last visited in order to rest off their "PTSD" so-to speak.

----

I apologize for that long-winded explanation, but I want to make sure I'm specific with my question for communication purposes.
You could solve this in a much more roundabout way by having your party collect 'dog tags' off of fallen enemy soldiers, etc, depending on the story, and the more they collect adds to an integer that when it reaches say > 50, triggers a scene that they express concern for their actions. These 'dog tag' items could be body parts for beasts, and various pieces of equipment for humans. It could be explained the main character collects these items as tokens to remind themselves of their actions, not for sport, and then needs to visit the Inn or maybe a Guild to trade those items in. Animal parts help the guild feed or cloth members, and human trinkets get resold or broken down for the war effort, etc. This way the character can lift their burden in a way, maybe make some money in the trade, and you still get that 'morality' aspect, but without messy scripts.

You can also use a variable world event that will detract from parties stats a % based on the variable built up as well.
which i've created with Yanfly plugins.

here's the thing with yanfly plugins: I don't think they're bad.... on the contrary...
But most of the times they're too good for their own good.

Many people using all kinds of yanfly plugins, and when it comes to really shape their games the way they want to, they have no idea how.
Why? Because they didn't even make their own game.... it's all 3rd party plugins.

Ditch the plugins and come up with your own solution.
Do read the code, and work your way around already-made functions if you have to, but do come up with your own solution for a problem.
Sometimes, 4 will always come out of 2 + 2, and nobody can call you a copycat for using that solution, because that's THE solution, period.

Looks to me like you already have the problem solved: you know the outcome you want to achieve, you know the starting variables you'll use, you know the conditions and the logic you'll follow...... why don't you just code it and see what happens?

Original thread: https://forums.rpgmakerweb.com/threads/enemy-stats-vs-player-stats-as-variables-and-formulas.79740/