Deducting XP; Possible to Mess Up Actor Levels?

I've been toying with the idea of removing "death" as the outcome for routine fights in my game (after all, what does it do, except make the player revert to their last save, making it as though the "death" never happened?), and instead kicking the party back to the overworld map, health drained, with a small amount of XP and gold also drained.


So my question naturally becomes... can this mess up actor leveling? Let's say an actor has to hit 300 XP total to reach level 3. They do so, they learn a new skill, gain the stat upgrades, etc. Let's hypothetically say they have 303 XP. And then the party gets its butt kicked, causing the loss of 5 XP, dropping this actor to 298... below the threshold for level 3. Will the game notice or care?


Thanks!
I did some testing and apparantly, the level and the stats are reduced, but the actor keeps all the skills they have learned.
The thing to keep in mind is if you make the EXP removed too high, the player will just load a save game anyways, and if you make it too low the player will not care about it. So it will take very clever balancing for it to work well.
Thank you for the test! That's helpful. I was just worried about introducing some sort of cascading stats chicken-up. But I suppose by default, once MV has given an actor a skill, it won't give them that exact same skill another 27 times, there's just no provision for it in the engine.


And yeah, it's an extremely fiddly point of balance that I'm thinking about very hard... I'm not gonna lie, there's times I've savescummed like a fiend to preserve something in some game or another. So the question becomes how to turn this "penalty" into merely an acceptable learning experience/natural part of the story rather than a frustration to be restarted past. I've also been thinking of having defeat apply some sort of temporary debuff condition rather than an XP hit. This is in danger of veering into design theorizing rather than MV support, so I'll shut my yap.


Thanks again!

Original thread: https://forums.rpgmakerweb.com/threads/deducting-xp-possible-to-mess-up-actor-levels.73149/