State knockout issue.

I was doing some research on RPG Maker MV with states like poison, blind etc.
I found something strange with state knockout.

Let me get to the point and explain all from start.
I created a custom spell with probability 10% to Knockout opponent.
Spell itself in damage formula has typed simple number: 100, but repeat parameter is set to 3, wich is I think, skill will deal 300 points of damage and it does. The problem begins here when knockout occurs on enemy - it kills right away regardles of HP enemy. I changed enemy's HP to 50.000 and instead get life reduced to 49.700 HP enemy dies whenever knockout is in progress.

I'd like to clarify here that I'm using so far default state settings and nothing predefined wasn't modify - except few visual Yanfly's plugins.

My question is: Is this a bug or knockout should work that way?
Knockout works in 2 ways.
The engine applies it automatically when the enemy or actor reaches 0HP (unless the 'Immortal' state has been applied).
When it is applied via a skill, if it is successful (given the percentage chance it will be so) then the state is applied irrespective of the target's HP. So the RNG decided that 10% was good enough this time round and applied the state.
Oh! Now I get it. It all makes sense now... I misunderstood knockout with stun effect
Not a problem. It was clearer when it was simply called 'Death'

If this has fully answered your query, just Report your opening post and ask for the thread to be closed.
Actually I got one question and this thread can be closed. How modify knockout to prevent enemy from attacking (recreate Stun state)
you should never modify the state #1, because that state has the hard-coded effects mentioned above, and the engine determines battle-end by all battlers of one side being in state#1.

if you want to have a real stun, then you need to make that a new state with similiar effects, but not on the #1 slot. Because any state not #1 will not trigger the special effects, and you can then have the targets temporarily stunned by similiar settings.
You can make as many new states as you like by changing the maximum number of slots on the states tab of the data base.
Stun is one of the easiest to create.
Select a new slot and name it Stun.
Select the 'Restriction' box (center, top)
Select 'Cannot move.
Then just below that box, select the box next to auto-remove timing
Select Turn End
Now you can specify how long you want the state to last.
Yes! Thank you, I just finished this stun state and works perfectly.
I can say: problem solved 🙂 Thank you all 🙂

Original thread: https://forums.rpgmakerweb.com/threads/state-knockout-issue.91360/