Hi, it's my first post so I don't know if it should go here, but anyway. I have a question related to forcing a battle lose.
On the project I'm making, you usually play with just 1 actor, from time to time you can bring in another one to the party but just for a time. I wanted the player to lose the battle if the main actor died. I tried with troop eventing but I don't think that's the best solution because most of the time the player will be on their own, and dying alone do cause a battle lose, I also tried with some scripts, one from Yanfly(Death Common Event) and one from Mr. Bubble(Lose Battle on Actor Death), Yanfly's one works perfect for deleting the auxiliar party members when they die, but Mr. Bubble's script don't work at all on my project, I think it is because of the battle system I'm using(Classical Active Time Battle, from Yami). I make my battles with events forcing them and you can always lose them, if you lose them I have some things going on in the bracket, that's why I need to be able to force a battle lose, and not just a battle abort.
After a lot of searching, I've come to thinking two solutions that maybe possible, but I can't manage to achieve:
1.- Modifying the Battle_Manager Win/Loss Results part to process a defeat if the main actor dies, I alredy tried it without success, my attempt was inserting this line below the process abort one:
#return process_defeat if $game_party.battle_members[0].dead?
2.- Create a common event that manages to somehow call a battle lose, if possible, and using that event with Yanfly's script.
I usually never post on the forums because most of the times I find the information I need just searching and with trial and error, but this time I can't work things out. Hope anyone knows more on this subject and thanks if you do and respond.
On the project I'm making, you usually play with just 1 actor, from time to time you can bring in another one to the party but just for a time. I wanted the player to lose the battle if the main actor died. I tried with troop eventing but I don't think that's the best solution because most of the time the player will be on their own, and dying alone do cause a battle lose, I also tried with some scripts, one from Yanfly(Death Common Event) and one from Mr. Bubble(Lose Battle on Actor Death), Yanfly's one works perfect for deleting the auxiliar party members when they die, but Mr. Bubble's script don't work at all on my project, I think it is because of the battle system I'm using(Classical Active Time Battle, from Yami). I make my battles with events forcing them and you can always lose them, if you lose them I have some things going on in the bracket, that's why I need to be able to force a battle lose, and not just a battle abort.
After a lot of searching, I've come to thinking two solutions that maybe possible, but I can't manage to achieve:
1.- Modifying the Battle_Manager Win/Loss Results part to process a defeat if the main actor dies, I alredy tried it without success, my attempt was inserting this line below the process abort one:
#return process_defeat if $game_party.battle_members[0].dead?
2.- Create a common event that manages to somehow call a battle lose, if possible, and using that event with Yanfly's script.
I usually never post on the forums because most of the times I find the information I need just searching and with trial and error, but this time I can't work things out. Hope anyone knows more on this subject and thanks if you do and respond.

