Ok, i'll try both things, I'll edit this when done.
EDIT1: Well, I created a new project, and test your lose condition, it worked, but then I tested my original condition and it worked too, I think the difference is that yours is checking if the actor is dead and mine is checking if the first party member on battle is dead, so for my needs, yours ir better, that's great. Now the problem is finding which script is making those conditions to not work, I'll do more tests and edit back again when done.
EDIT2: I've found the script that was messing with the conditions! is the YEA Death Common Events, from Yanfly. I was putting one by one all of the scripts, and when I put that one the condition stopped working, then I removed all of the other scripts and the condition still doesn't work, if I comment the script, it works again.
Well, I was checking the script for an overwrite of process defeat or something along those lines and I found that Yanfly did call Battle_Manager, but he doesn't overwrite anything, at least that I can see, but anyways, he used that for a mechanic on his script that allows party wipe events, I don't need that feature, so I just commented all of that and now the lose condition works properly! That's amazing because I do need the normal death events for the party members and now I don't need to stop using the script.
A very big thank you Greystone, you helped me a lot here, I was going crazy with this issue. My problem is solved now
EDIT1: Well, I created a new project, and test your lose condition, it worked, but then I tested my original condition and it worked too, I think the difference is that yours is checking if the actor is dead and mine is checking if the first party member on battle is dead, so for my needs, yours ir better, that's great. Now the problem is finding which script is making those conditions to not work, I'll do more tests and edit back again when done.
EDIT2: I've found the script that was messing with the conditions! is the YEA Death Common Events, from Yanfly. I was putting one by one all of the scripts, and when I put that one the condition stopped working, then I removed all of the other scripts and the condition still doesn't work, if I comment the script, it works again.
Well, I was checking the script for an overwrite of process defeat or something along those lines and I found that Yanfly did call Battle_Manager, but he doesn't overwrite anything, at least that I can see, but anyways, he used that for a mechanic on his script that allows party wipe events, I don't need that feature, so I just commented all of that and now the lose condition works properly! That's amazing because I do need the normal death events for the party members and now I don't need to stop using the script.
A very big thank you Greystone, you helped me a lot here, I was going crazy with this issue. My problem is solved now