Enemies that remove EXP

Hia team.

I'm looking for a way to have an enemy "award" negative XP to the PCs after a successful end to combat. This will eventually level down the player as well, reducing their status, HP, MP, ect. Currently, I can only go as far down as 0 XP per enemy, and I can't figure out how to flip a class trait to have -100% XP.

Is there some other way to to this?
I am not sure how to make it available to enemy troops without condition branches and common events but the script call to reduce an actor's experience is:

$gameActors.actor(actorId).gainExp(n);
Just use a negative number for n if you want the actor to lose Exp.

Then each time the enemy is defeated, a message will appear and let the party know they lost experience for killing the enemy.
Thanks. I'll give that a try.
Just so you're aware, there's a Change EXP event command for this; you don't have to use a script call.
Just so you're aware, there's a Change EXP event command for this; you don't have to use a script call.
<_< I forgot about that function. That does make it easier than using script calls.

Original thread: https://forums.rpgmakerweb.com/threads/enemies-that-remove-exp.96982/