Random encounter losing

I am new to RPG Maker Mz and wanted to know if there is a way to make random encounters losable.
I know the way to make set encounters, like enemies physically on the map, but I do not know how to do that with random encounters.
I would like not to use external plugins to do this as well.

fixed encounter.png
I would like not to use external plugins to do this as well.
There's no difference between external plugins and code inside the editor.

If you don't want to use a plugin to automate it for you, you'll have to manually put into every troop an event with the script call BattleManager._canLose = true
What do you mean? Do you mean losing to random encounters? Well in that case just do battle proccesing, you don't have to press can lose
Well in that case just do battle proccesing, you don't have to press can lose
battle processing is used to trigger a battle through an event. Random encounters triggered by walking on the map are not affected by a battle processing event command
There's no difference between external plugins and code inside the editor.

If you don't want to use a plugin to automate it for you, you'll have to manually put into every troop an event with the script call BattleManager._canLose = true
Where would I need to call that script? Like in the troop window?

What do you mean? Do you mean losing to random encounters? Well in that case just do battle proccesing, you don't have to press can lose
I am talking about how in a default project when you lose to a random encounter it goes to a game-over screen. I know how to make the physical enemies I place be losable but not with random encounters you make in the map property screen. There is no direct can lose a button.
Where would I need to call that script? Like in the troop window?
If you mean the Battle Event, yes that's where it needs to go. Database >>> Troops, condition turn 0 and span of battle should work I think (have not tested this particular script myself).

Also kindly review the forum rules as double posting is not allowed.
If you mean the Battle Event, yes that's where it needs to go. Database >>> Troops, condition turn 0 and span of battle should work I think (have not tested this particular script myself).

Also kindly review the forum rules as double posting is not allowed.
Ok, I will try that thank you.

What do you mean by double posting this is my first post?
Ok, I will try that thank you.
Hope it works

What do you mean by double posting this is my first post?
Please read the forum rules that I linked to. Everyone using the forum is assumed to read and understand these.
What do you mean by double posting this is my first post?
within this topic, post #5 and #6 are both from you.
that is what we call doubleposting.

if your own post is the last one in a topic, you are supposed to edit that and not add another post.
If you are to answer multiple posts at the same time, then you are to either use multiquote or don't quote at all, using @Busisness to point your answer.

Original thread: https://forums.rpgmakerweb.com/threads/random-encounter-losing.166777/