Requesting MP Knockout, Separate State

Pretty straight forward. Basically I require a plug-in which will allow me to write in a plug-in command in the state's note section that causes the afflicted to take on this particular state immediately when their MP drops to 0. Basically it'd be like mental fatigue, going unconscious, the health would remain the same as it was but the character would pass out when his or her MP drops to 0. Basically the game would have 2 ways to die for both the players and the enemies.

And before you say it I know there is a similar plug-in already in the master list but I'm not looking for the character's to take on the default death state like that plug-in does. I'm merely looking for the ability to make a second state that mimicks the effects of death that occurs when MP drops to 0. The reason this distinction is important is because I want both Death and K.O. to be cured differently since the game takes on a slightly more realistic approach than most other fantasy RPGs. I want both states to be distinguishable from one another.
I think the mods can just move the thread. As for the mp knockout, you can use yanfly's passive states with conditionals to tell the game that if mp=0, death should be activated. Or use the buffs and states core for the same I think. Then all revive skills need to restore Mana as well or else the actor should re-die instantly lol
I think the mods can just move the thread. As for the mp knockout, you can use yanfly's passive states with conditionals to tell the game that if mp=0, death should be activated. Or use the buffs and states core for the same I think. Then all revive skills need to restore Mana as well or else the actor should re-die instantly lol
Yeah but I'm not looking for it to add the death state to the player. I need it to be a separate state all together basically one would be Death, and the one I was developed would be K.O. or maybe Unconscious or something like that. They would have separate solutions and opposite causes. I know it doesn't sound like it but it's important within the context of my game.
@Rewelle Please edit your original post back in so that the thread makes sense. In the meantime I will move this to Plugin Requests, but until we have that full detail, only JosephSeraph can answer as they are the only ones who've seen what it is you want.
@Rewelle Please edit your original post back in so that the thread makes sense. In the meantime I will move this to Plugin Requests, but until we have that full detail, only JosephSeraph can answer as they are the only ones who've seen what it is you want.

Finished
You're going to need this plugin:
https://yanflyengineplugins.itch.io/auto-passive-states

  1. Make a new state in your project, for the K.O state. Set SV Motion to 'Dead', set restriction to 'Cannot Move'. Basically copy the death state.
  2. Open the plugin settings for YEP_AutoPassiveStates and set 'Global Passives' to contain this state. This will make it so that all enemies and allies will always have this apply to them.
  3. Apply the following note tag to your new state:
Code:
<Custom Passive Condition>
  if (user.mp == 0) {
    condition = true;
  } else {
    condition = false;
  }
</Custom Passive Condition>

This will make it so that if your actor's MP is reduced to zero, they 'die'. It is worth noting, that the state cannot be removed by a normal means, unless their MP is restored. Since the actor isn't considered 'dead' there is no restriction on using items on them, so a simple mp recovery item or spell will revive them. You'd need to use selection control to prevent this, I won't get into it, but it's not ideal.
You're going to need this plugin:
https://yanflyengineplugins.itch.io/auto-passive-states

  1. Make a new state in your project, for the K.O state. Set SV Motion to 'Dead', set restriction to 'Cannot Move'. Basically copy the death state.
  2. Open the plugin settings for YEP_AutoPassiveStates and set 'Global Passives' to contain this state. This will make it so that all enemies and allies will always have this apply to them.
  3. Apply the following note tag to your new state:
Code:
<Custom Passive Condition>
  if (user.mp == 0) {
    condition = true;
  } else {
    condition = false;
  }
</Custom Passive Condition>

This will make it so that if your actor's MP is reduced to zero, they 'die'. It is worth noting, that the state cannot be removed by a normal means, unless their MP is restored. Since the actor isn't considered 'dead' there is no restriction on using items on them, so a simple mp recovery item or spell will revive them. You'd need to use selection control to prevent this, I won't get into it, but it's not ideal.

Thanks for the tip but that's not what I'm looking for. As I said in the post, I'm looking for a plug-in that allows me to make a separate state that mimicks the effects of death. The key factor is that this second state should allow me to make an item to cure specifically that state. Simple MP recovery shouldn't be able to cure it.

Idk maybe I'll commission one to be made
Thanks for the tip but that's not what I'm looking for. As I said in the post, I'm looking for a plug-in that allows me to make a separate state that mimicks the effects of death. The key factor is that this second state should allow me to make an item to cure specifically that state. Simple MP recovery shouldn't be able to cure it.

Idk maybe I'll commission one to be made

Code:
 <Custom Passive Condition>
  if (user.mp == 0) {
   condition = true;
  }
  
</Custom Passive Condition>
Did you try this? Just removing the else clause?
I might try to make it if I know a bit more of the specifics, what do you want to mimic exactly, because it sounds like you only want "unable to act" yet you said otherwise.
Do you mean to get a gameover if the party are all afflicted by this?
All states can have items to fix them, you just can not make one for the original death.
Code:
 <Custom Passive Condition>
  if (user.mp == 0) {
   condition = true;
  }
 
</Custom Passive Condition>
Did you try this? Just removing the else clause?
I might try to make it if I know a bit more of the specifics, what do you want to mimic exactly, because it sounds like you only want "unable to act" yet you said otherwise.
Do you mean to get a gameover if the party are all afflicted by this?
All states can have items to fix them, you just can not make one for the original death.

Yes I want this state to basically be the same as death but have it function like a separate state from death in the game. For example, let's say there's the normal Death state, and for the sake of convenience this new state is called K.O. Using final fantasy terms Death would be healed by a phoenix down but let's say K.O. would be healed by idk, an amonia tablet or something. They would have the same effects to the character but they would also have different causes and solutions, so the system should recognize them as two separate states completely. A good example of this can be found in Star Ocean: Till the End of Time if you're interested.
Okay, I'll give it a try. It sounds easy, but it also sounds the kind of thing that may go rogue on dev or with other plugins.
Okay, I'll give it a try. It sounds easy, but it also sounds the kind of thing that may go rogue on dev or with other plugins.

Yeah I get what you mean. Thank you for making an attempt

Original thread: https://forums.rpgmakerweb.com/threads/requesting-mp-knockout-separate-state.115108/