Applying states when HP is 0 (or certain amount) without troop eventing?

Okay, so in a game I'm developing with my small group, part of the idea is to have a battle system that involves party members getting eaten, and if unlucky enough, that become something far worse and irreparable (digested).


I currently am using scripts to help with this but...


Whenever state is applied that has that party member eaten, if that party member's HP reaches zero, even though I have @Tsukihime Conditional States installed, it does not check to see if the one state is applied, it just applies death (instead of perma-death digested state).


But if just dead...can be revived...not the idea I had in mind.


Oh sure, could just remove the afflicted party member from battle but...looking to avoid in-battle troop eventing (because that would mean lots of event pages for every single character involved and for every troop battle with this capability). Oh and yeah, there's always the possibility that a troop event page can misfire or not trigger at all.
It might be that conditional states are added before the actual death processing. If that happens then your state is applied but it is removed right after because the game cleanses all states before adding the death state afaik.

Oh sure, could just remove the afflicted party member from battle but...looking to avoid in-battle troop eventing (because that would mean lots of event pages for every single character involved and for every troop battle with this capability). Oh and yeah, there's always the possibility that a troop event page can misfire or not trigger at all.



No you don't need one page per character for that, you just need one troop event page that checks each party member.
Unfortunately the info under your avatar does not specify which engine you are using, nor does your post.  That is important, because solutions will vary between XP, Ace and MV.  It is also needed here, because this is a "How do I..." question which I need to move to the appropriate Support forum, and can't.  So please post and specify which engine this query relates to.


If you do go down the troop route, and you are using Ace, there is no need to do everything for every troop.  You do it once in Yanfly's Base Troop Event.  I would be surprised if there isn't an MV equivalent plugin.


EDIT


I've now seen that you have tagged this with Ace - that is not an 'obvious' way in this type of query of signalling which engine you are using and it needs to be obvious.


Have you tried applying Immortal State to your actors, and then just use a conditional in the troop that when HP = 0 Immortal is removed and your new state is applied?


I've moved this thread to RPGMaker VXAce. Please be sure to post your threads in the correct forum next time. Thank you.
@Engr. Adiktuzmiko I'm also using Victor Sant's Incapacitate States, which I'm thinking isn't a problem, but I did forget to mention it.


However, none of the applicable states are tagged as <kill state>, and only the perma-death state is tagged as <incapacitate state>.

No you don't need one page per character for that, you just need one troop event page that checks each party member.



Um, okay. One thing to make clear is that the enemy battler changes graphics after eating a character (to make that battler look like it has a significantly large meal inside it). Once the enemy battler has succeeded in digesting the character (or the character is vomited up), that graphic changes back to its' original form. 


Since I have more than one type of encounter where this could happen, would that complicate this?


@ksjp17 I just noticed that the part where I typed 'in VXAce' at the end did not go through. Of course, once again, I miss the specified forum area...lol

If you do go down the troop route, and you are using Ace, there is no need to do everything for every troop.  You do it once in Yanfly's Base Troop Event. 



I will defer to where I described how the graphics do change for when an enemy battler has eaten a character; from what I can tell (I've looked at that script before), it won't allow for different encounters to change to the correct graphics (unless I am mistaken).

Have you tried applying Immortal State to your actors, and then just use a conditional in the troop that when HP = 0 Immortal is removed and your new state is applied?



In the end, I did have to do just that, but given I don't know how to do so by script calls, I've had to use separate event pages.

Original thread: https://forums.rpgmakerweb.com/threads/applying-states-when-hp-is-0-or-certain-amount-without-troop-eventing.72692/