Getting a state if your TP reaches 0

AmazingKazuki

Veteran
Veteran
Joined
May 21, 2015
Messages
103
Reaction score
38
First Language
English
Primarily Uses
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?
 

KazukiT

Veteran
Veteran
Joined
Dec 7, 2014
Messages
259
Reaction score
275
First Language
English
Primarily Uses
RMMV
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.
 

HumanNinjaToo

The Cheerful Pessimist
Veteran
Joined
Apr 18, 2013
Messages
1,226
Reaction score
601
First Language
English
Primarily Uses
RMMV
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>
 
Last edited:

KazukiT

Veteran
Veteran
Joined
Dec 7, 2014
Messages
259
Reaction score
275
First Language
English
Primarily Uses
RMMV
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.
 

HumanNinjaToo

The Cheerful Pessimist
Veteran
Joined
Apr 18, 2013
Messages
1,226
Reaction score
601
First Language
English
Primarily Uses
RMMV
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?
 

KazukiT

Veteran
Veteran
Joined
Dec 7, 2014
Messages
259
Reaction score
275
First Language
English
Primarily Uses
RMMV
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts



New starting map, hope it's better than the first.
new evolutions coming soon:ewink:
Oddball wrote on The_Sarah's profile.
Today: started the Army HQ. I opted for a bulky, heavy design.
Did YOU know that "$game_switches[55] = true" and "$game_switches[055] = true" do completely different things, and you should never leave a zero in? I didn't. :p
mzActor2.png mzSF_Actor2.png, mzSchoolActor2.png added!

Forum statistics

Threads
103,415
Messages
999,141
Members
134,945
Latest member
UTfan1243
Top