Problem with KO status

Hello,

 

I have a problem with KO status (the first of the database). I checked the box for the status to be recovered at the end of combat. Characters which have the KO status at the end of the battle are found at 1 HP when they leave on the map. But suddenly, I noticed that it also worked for monsters. That is to say, if I kill one of the monsters and I escape the battle, I see the vanquished monster reappear on the screen when the display text of the escape.

 

How to correct this ? KO status condition is set it seems to me in the RPG Maker database scripts directly to give that status when HP reach 0. At the limit, I thought keeping this default status for monsters and create a duplicate state with healing end of a fight for the characters. But it takes to edit basic scripts, right ? Can you help me ?
Well, that is hardcoded to the death state... You could modify the scripts so that it doesn't remove death state from enemies or make it such that the removal will only work on actors.
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


Do you have any battle scripts added to your game?


If you do, create a brand new project and set up the KO status the same. See if the same thing happens to enemies in your new project. If it does, it's an issue with the default scripts. If it doesn't, it's an issue with one of your added/custom scripts, and we'll need links to them to be able to take a look.
By default, monsters do not even exist on the map - those are events pretending to be monsters and have no HP.


So there are only two possibilities:


1) you're using a script that connects the event to the resulting HP from the battles - which is rather unlikely in my opinion, since the only scripts that do that are on-map/ABS, and you say something about reappearing after combat, which means combat is a screen for you


2) you have a problem in your event logic that displays the monsters that has absolutely nothing to do with the KO state.


In both cases we need to know more about your game, especially screenshots of the events where that happens and how you have the events detect the results of the battles.
I was thinking of that earlier then I re-read the OP, I think it was actually happening before the battle ends where you see a message in the battle log that you escaped the battle.
Surely it has to be the escape mechanism - if the player escapes, then the enemy is still alive, so of course will have more than 1HP and will reappear if the event is set up that way.
Or something entirely else.


If the original OP uses only default, then there is no connections and the OP might just have misunderstood.


If you escape combat in default, the troop you had fought ceases to exists. the event on the map that called the battleprocessing will always call a new troop, so of course it might look like the enemies killed in the escaped battle had been revived - they didn't the battleprocessing called a new full troop.


@OP:


It needs some advanced event logic to transfer the results of previous partial battles into events on the map - that is what we talked about before. If you didn't have that logic, you will always fight the full troops from the events.
I tested on a New Project. I just modified the first state as you can see in the screenshot below. I don't use any script, it's the default system. The problem is still here.

 
312415CaptureState.png
So am I right that this happens during the battle scene in which if you escape there is a message in the battle log that says you escaped?
I tested on a New Project. I just modified the first state as you can see in the screenshot below. I don't use any script, it's the default system. The problem is still here.
 There is no problem - you made a wrong assumption

If the original OP uses only default, then there is no connections and the OP might just have misunderstood.


If you escape combat in default, the troop you had fought ceases to exists. the event on the map that called the battleprocessing will always call a new troop, so of course it might look like the enemies killed in the escaped battle had been revived - they didn't the battleprocessing called a new full troop.
The default CANNOT remember which enemies have died in an escaped battle - it will ALWAYS be full troop on default battle processing
The default CANNOT remember which enemies have died in an escaped battle - it will ALWAYS be full troop on default battle processing
Uhm guys, it doesn't seem to be for events... I just tested it out on Ace. I set Death to Remove at battle end, I killed an enemy then escaped. After that during the part where it says that you're trying to escape, the killed enemy was reshown on the battle screen. All done in battle test.


You can test it out yourselves guys.

I see the vanquished monster reappear on the screen when the display text of the escape.
That is what has always happened with me - if it is an on-map encounter and I escape having killed one or more of the troop, the troop is still shown on the map after the escape and if I re-engage with it, the full troop is present in the new battle.

I personally see no way round that, and would not advise trying to change it anyway  - think of all the complications!  The 'penalty' for escaping is that, if you want to re-engage the enemy, it's the full troop once more.
That is what has always happened with me - if it is an on-map encounter and I escape having killed one or more of the troop, the troop is still shown on the map after the escape and if I re-engage with it, the full troop is present in the new battle.


I personally see no way round that, and would not advise trying to change it anyway  - think of all the complications!  The 'penalty' for escaping is that, if you want to re-engage the enemy, it's the full troop once more.
No one seems to be reading my posts... As I said this happens on the battle screen when you escape, the enemy is "reborn" before the battle ends. NO EVENTS or whatsoever, just pure BATTLES


Try it out guys,


Make Death State remove upon battle end


Start battle (can be done in battle test)


Kill an enemy


Choose escape


Boom! The enemy is "reborn" during the escape text
@Engr.Adiktuzmiko It's exactly that. It's a problem with the default system. No event, no script.
Try this

Code:
class Game_Troop  def on_battle_end    @in_battle = false  endend
This will make it so enemies won't process the battle end part for them, so no removal of states... Not sure if it affects other things though
No one seems to be reading my posts...
err, I did and I agreed with you, adding that it's also the case for on-map encounters.  But I don't know if we are both identifying the same problem.  Maybe I am mis-reading what the OP wants to happen, but I don't think the request (as I understand it) is very logical.

@Nerylis

Why exactly is this a problem?  Think of what would happen if you somehow managed to make it so that if you kill one or more enemies in a troop and then escaped, those enemies stayed dead.  How is the engine going to process the battle if you re-engage with the remains of that troop?  This isn't just a small tweak, it's a mega re-write.
But I don't know if we are both identifying the same problem.
Probably different problems


It's for random encounters bro, random encounters... I've even detailed out how to encounter the error for you to reproduce.


PS: ITS A PURELY VISUAL THING BTW. It's kinda looking weird, you kill an enemy then if you escape it becomes "reborn" while the escape message is playing.
I was taking the enemy reappears "on screen" as meaning that it reappeared on map.  Just as well I included the bit about maybe mis-reading the problem.  So this is re-appearing on the battle screen?

though actually, where does the OP say it's random encounters?  I must be going blind, as I can't see it.
So this is re-appearing on the battle screen?
From the OP

I see the vanquished monster reappear on the screen when the display text of the escape.
@Engr.Adiktuzmiko It's exactly that. It's a problem with the default system. No event, no script.
Yes, try out the steps I wrote above and see for yourself. 🙂
No, it's about reappearing on the victory/escape screen - haven't checked it myself so I don't know how it looks there

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-ko-status.45716/