Bug or intended???

Tried this event to help another member but something odd happened, here the event:
1640215667001.png


So basically when the actor (reid) gets 0HP (he cant die since he got resist dead trait) then this activates, text - dead party members revived - getting HP back - then one after another escapes - and abort.... wich all went well a few times but then i closed the project, opened it and instead of just going out of the battle, a game over screen appears now every time...

Tried without the abort battle command but as soon as the last actor escapes, its game over again...
Im kinda sure "escape" is not meant to be used just to get a game over screen or??? Or am i just overseeing something?
And as i said, it worked but then after closing and opening it began to throw game over screens, funny enough, i did no changes inbetween...


EDIT: Ok, i got it fixed (kinda) you have to "can lose" activated, probably had it before, changed it and forgot that i changed it, thats why it worked before... but still, isnt the whole point in "escaping" to escape the fight, and not going into a game over screen????? Tried it without the "can lose" but "can escape" thing and it still goes into a game over screen...

EDIT2: Putting "abort fight" in the "if escape branch" doesnt work as well, still game over screen when escaping. So "can lose" must be ON or otherwise escaping results into game over, is this really intended? 😀

I've moved this thread to MV Support. Thank you.


If it's found to be a bug, it can be moved again.
Try:
- get rid of the "remove death state" command. Healing the party members should do this automatically.
- get rid of the abort battle. Escaping should end the fight.

I guessed from some of the stuff you said, but next time you should say that you're starting this fight from an event command, as that wouldn't be the presumption.

You shouldn't have Can Lose checked (that's the whole point of this, you don't want the player to be able to lose). In fact, if you're calling the fight from an event, you shouldn't even need any of this troop event, just don't have Can Lose checked, and in the conditional branch for Lose, heal the party.
"Try:
- get rid of the "remove death state" command. Healing the party members should do this automatically." Nope, if i dont remove death state, they stay dead, adding HP wont heal / revive them.
"- get rid of the abort battle. Escaping should end the fight." Tried this as well, no changes.

"I guessed from some of the stuff you said, but next time you should say that you're starting this fight from an event command, as that wouldn't be the presumption."
Does it really matter? (Not beeing sarcastic, asking genuinely.)

"You shouldn't have Can Lose checked (that's the whole point of this, you don't want the player to be able to lose). In fact, if you're calling the fight from an event, you shouldn't even need any of this troop event, just don't have Can Lose checked, and in the conditional branch for Lose, heal the party."

Thats the problem, if can lose is not checked then after escaping the game goes to game over.
There is nothing to do if you put things in "if lose" because the game moves before anything to the gameover, tried with abort but still nothing.

My guess is, that when no member is there anymore to fight, then it goes to gameover like you lost, it seems that the skills "escape" is not the same as the command you got when the battle begins...

EDIT:
Wont open another thread for this so if someone knows the script command for "escape" (not the skill escape but the command)... searched everywhere but that little what i could find, do not work.
Found only a working script call for abort: BattleManager.abort();
I think @ATT_Turan had a bad day, because he really messed up his advice completely, usually he gives good advice...

OK, here is some correct information:

1) the escape skill never was intended to be used on actors, only to be used on enemies that should not add to the exp and loot of a winning battle.
The party should either use the party menu "flee/escape" option between turns, or the abort battle without anything else. So the correct advice would have been to remove all escape functions but keep the abort battle.

2) can loose is basically short for "can loose without game over", so you are correct in that part again and it should not be removed. Because without it, a battle lost is an automatic game over.

3) there IS a difference between an evented battle and a random battle. In the random battle you don't have the option to set "can lose" an can't handle after-battle behaviour. There are ways to trigger after battle events for random events but they are much more difficult.
This is important because that party healing should be moved into after battle and NOT be handled in the battlescreen if at all possible.

4) the battle is over (and with an automatic game over) when there are no alive actors left. That is another reason why that escape idea is bad - escaping all living actors will trigger the game over if only dead actors remain.
But that entire complex should be circumvented with the abort battle if that is done correctly.
"1) the escape skill never was intended to be used on actors, only to be used on enemies that should not add to the exp and loot of a winning battle.
The party should either use the party menu "flee/escape" option between turns, or the abort battle without anything else. So the correct advice would have been to remove all escape functions but keep the abort battle."
You sure about that? I mean, why would it work on characters then? 😀

"3) there IS a difference between an evented battle and a random battle. In the random battle you don't have the option to set "can lose" an can't handle after-battle behaviour. There are ways to trigger after battle events for random events but they are much more difficult.
This is important because that party healing should be moved into after battle and NOT be handled in the battlescreen if at all possible."
I understand what you mean but in this case, they needed to "escape" but for them to escape, they must be alive to escape otherwise the skill wont work. Thats why i healed them in battle, or rather revived them... anyway i did not know that the escape skill is not meant for actors. (wich is still kinda odd tbh)

"4) the battle is over (and with an automatic game over) when there are no alive actors left. That is another reason why that escape idea is bad - escaping all living actors will trigger the game over if only dead actors remain.
But that entire complex should be circumvented with the abort battle if that is done correctly."
Yup, thats why i heal / revive them as soon as actor1 gets at 0HP, so when they escape there is no dead actor left, they all escape life and well. 😀
I initialy made it with abort but the other member wanted some kind of escape animation, so i came up with this instead (even if it is no escape animation, they still do "something").
You can watch the vid in the other thread with abort, works like a charm... only this escape skill is not working how i would like it to work. 😀

Now, there is another way i came up with, to create a script call wich forces an command escape... but i did not find any, the closest i found is: BattleManager.abort();
but all this does is abort it, tried to change with escape, run ect... but wont work...
I mean, why would it work on characters then?
because the difference is outside the battler data.
on the battlescreen, both actors and enemies are handled through a battler data format. that gives them very similar structures and allows skills to work better on both.
but the escape effect ignores the differences between actor and actor-based battler and works on the battlers. As a result you can find errors like "the battle doesn't end even after all my actors escaped" if you search deeper into the forum.
Yup, thats why i heal / revive them as soon as actor1 gets at 0HP, so when they escape there is no dead actor left, they all escape life and well. 😀
but that is not how you should abort battle.
what you should do is simply abort battle on actor 1 HP=0, nothing else. If that actor 1 is immune to death like you said in your first post that is ALL you have to do, and then you can heal all other actors after battle if that is even needed.
which shouldn't even be needed if you change the death state to automatic removal after battle.
but that is not how you should abort battle.
what you should do is simply abort battle on actor 1 HP=0, nothing else. If that actor 1 is immune to death like you said in your first post that is ALL you have to do, and then you can heal all other actors after battle if that is even needed.
which shouldn't even be needed if you change the death state to automatic removal after battle.
Yup, thats exactly what i did but as stated above, the guy wanted some sort of animation for escaping and not just a black screen so this was my try to give at least some sort of animation and thats also why i had to heal them infight / revive so they can escape but had no idea this "game over" will occur, it only worked because "can lose" was on and later when i realised that it goes straight to game over if its not on, i thought its a bug... well, still stupid, they could have at least made a note or something so people know what skills are enemies only / actors only / both...
"I guessed from some of the stuff you said, but next time you should say that you're starting this fight from an event command, as that wouldn't be the presumption."
Does it really matter? (Not beeing sarcastic, asking genuinely.)
Well, yes, because as pointed out, the event has built-in handling for everyone dying in battle without going to the game over screen, which is your entire goal here. I ended up saying the opposite of what you needed, for which I apologize, but it absolutely makes a difference.

I think ATT_Turan had a bad day, because he really messed up his advice completely
Actually, I did, but I still apologize for the mistaken response.
Spaske said:
"I guessed from some of the stuff you said, but next time you should say that you're starting this fight from an event command, as that wouldn't be the presumption."
Does it really matter? (Not beeing sarcastic, asking genuinely.)
"Well, yes, because as pointed out, the event has built-in handling for everyone dying in battle without going to the game over screen, which is your entire goal here. I ended up saying the opposite of what you needed, for which I apologize, but it absolutely makes a difference."

Wait wait, i still dont get it, when i make an troop and put the events in there, like this:
and make an random encounter..
1640330661911.png


or make an scripted event were this battle takes place like this:
1640330694738.png


What is the difference, its still the same troop, the same battle event?
Both work just fine, tried it and everything works, i still fail to see the difference?
What i mean by that, they both fundamentally still work 1:1 the same or?
Even in the random encounter you could pull of out of battle events easily with variable or switches.
What is the difference, its still the same troop, the same battle event?
the differences is the controls of the battleprocessing that you have not yet used there.
if the battle is called by random encounter without any event command, you don't have the option to set "can lose" or set commands on the win condition and so on.
You sure about that? I mean, why would it work on characters then? 😀

Welcome to the double-edged sword of object-oriented programming.
the differences is the controls of the battleprocessing that you have not yet used there.
if the battle is called by random encounter without any event command, you don't have the option to set "can lose" or set commands on the win condition and so on.
Ok, that i got, so basically that is the only difference, thought there are other differences as well.
Did not test it yet but i think you could still make those branches even in random encounters, gonna try it later and post if it works.

Welcome to the double-edged sword of object-oriented programming.
Yeah im 2 weeks in with JS programming, i was a total noob before and all i did learn in those 2 weeks is that i knew even less then i thought. 😀
...and now i know what a boolean is. haha


EDIT:
did something entirely different now, instead of trying to make those branches via switches / variable i just turned it around, why not make random encounters via scripted battles and this is what i came up with:
1640363885208.png

Now every 20 steps it sets the variable from 1-3, if its 2 then battle begins... tried it out and works fine, you can add more steps, less steps, more troops.. basically this changes the random encounters to well.... ...random encounters but with win / lose / escape branches. 😀
(i used steps for this, you can use time, x/y coordinates or whatever else you feel right.)
forgot to mention, if you put a branch up there that asks about the region or terrain then you can add different encounters on one map.
What is the difference, its still the same troop, the same battle event?...i still fail to see the difference?
The difference, specifically in reference to your original scenario, is you didn't want to have any of that in the troop event. You were using both a troop event and event handling (the can lose option) to unintentionally do some of the same things at the same time.

When you do that in programming a game, it's possible that it will work from both ends and end up fine.
It's possible that you'll accidentally reproduce effects (that was my concern with the Can Lose and you specifying the Abort Battle). I've seen people try to create critical hit effects inside their damage formula, then be surprised when they hit for a thousand or something from the game's built-in critical hit.

And then it's possible that the two things will interact with each other in an unexpected way and create what seems like a random effect. We see this all the time with overlapping plugins.

So, basically, when you have a problem and you're asking for help, be as detailed as possible, even if you don't think something should make a difference.
Still find it funny why the escape skill is intended only for enemy but its not stated anywhere...
Came back to this topic because i saw this:
1643221244173.png


So they added there an info that its only for enemies but yet the "escape" skill has nothing like that, even on the contrary, its standard made like its supposed to be used by anyone:

1643221446368.png

1643221595217.png


Allows the "target" to escape... i cant find anywhere were its stated that its enemy use only...

Im just curious if this isnt really just a bug, and even if its not a bug, shouldnt they at least add an info that its "enemy use" only... Like it is now, its really missleading or am i just overlooking something???

Original thread: https://forums.rpgmakerweb.com/threads/bug-or-intended.143258/