Getting a state if your TP reaches 0

Yanfly Auto Passive State : http://www.yanfly.moe/wiki/Auto_Passive_States_(YEP)

I was wondering how I would make an actor gain a state if their TP reaches 0 in the above Yanfly plugin. I put in notetage the help file suggested but it still doesn't work.
Two things come to mind but I'm not the best at solving these issues.

1. Is there anything on the state that could interfere with the conditioning?
2. Are the plugins in the right order?

Have you tried other conditions like this on other states and they have worked or not worked?
Two things come to mind but I'm not the best at solving these issues.

1. Is there anything on the state that could interfere with the conditioning?
2. Are the plugins in the right order?

Have you tried other conditions like this on other states and they have worked or not worked?

I put the plugin below Yanfly's BuffState Core and made a test skill that drains TP to 0 and it still not working.
I think the condition is supposed to be a percentage. Did you try 1%

edit: I actually just looked in the plugin and <Passive Condition: TP Below x> is not listed as a valid note tag. So you would need to use something like this:
Code:
  <Custom Passive Condition>
  if (user.tp < 1) {
    condition = true;
  } else {
    condition = false;
  }
  </Custom Passive Condition>
I think the condition is supposed to be a percentage. Did you try 1%

edit: I actually just looked in the plugin and <Passive Condition: TP Below x> is not listed as a valid note tag. So you would need to use something like this:
Code:
  <Custom Passive Condition>
  if (user.tp < 1) {
    condition = true;
  } else {
    condition = false;
  }
  </Custom Passive Condition>

I just put in the code exactly how you have it and it didn't work.
I just put in the code exactly how you have it and it didn't work.
I just realized I was wrong earlier, you were using the custom stat note tag for TP, sorry I missed that before; either way, I don't understand why that didn't work unless since it's calling for a stat it always looks at TP as being 100?? I don't know.

Also, maybe try this in the custom condition:
(user.tp / user.mtp <= 0.25)

If that works than just adjust the 0.25 to maybe 0.01 if you're wanting it for when TP is basically at zero.

edit: BTW, you remembered to give the passive state to the actor right? either setting it within the plugin parameters or using a note tag for the actor/class?
I got it to work it work but setting in the plugin parameters and using the notetag I was initially using. Anyways, thanks for helping me realize the solution was right under my nose.
Awesome

Original thread: https://forums.rpgmakerweb.com/threads/getting-a-state-if-your-tp-reaches-0.125256/