WIN a battle even if some enemy is still alive, and make it always unselectable?

Hi,

Any idea how to WIN a battle even if some enemy is still alive?

And any idea how to make it always unselectable during battle?

I am making trees as enemies, so enemies and battlers actually have correct z-sorting with environment props like trees, rocks, etc. The trees appear in front and under enemies and battlers, like intended. But obviously, trees are selectable when attacking, and I don't like that (even if some other developers will find some use of that for new gameplay possibilities). And also, even if I kill all the real menacing enemies, I cannot win the battle until I killed all the trees. This is not great.

Suggestions please  ;_;

Original thread: https://forums.rpgmakerweb.com/threads/win-a-battle-even-if-some-enemy-is-still-alive-and-make-it-always-unselectable.48298/