[Resolved] Yanfly State React Effect Question - What Am I Doing Wrong This Time?

Ravenith

Veteran
Veteran
Joined
Mar 27, 2012
Messages
263
Reaction score
15
First Language
Greek
Primarily Uses
Hello people.

I'm trying to make a game mechanic where:
>Battlers with 0 MP are afflicted with State A
>Battlers that receive damage while afflicted with State A are in turn afflicted with State B.

I decided to make State A into a passive using Yanfly's Buff & State Core & AutoPassiveStates plugins.

This is what I put in the Notes section:

Code:
<Passive Condition: MP Below 1>
<Custom React Effect>
if (this.isHpEffect() && value > 0) {
  target.addState(10);
}
</Custom React Effect>
See anything wrong with it? Because my non-coder ass just can't seem to make it work.

Thanks a bunch.
 

shockra

Slightly Crazy Programmer
Veteran
Joined
Feb 16, 2016
Messages
418
Reaction score
185
First Language
English
Primarily Uses
RMMV
Did you apply the passive to the actor? If not, you need to either add the state to the Autopassive plugin parameters or use this notetag in the actors' and/or enemies' notebox:

<Passive State: StateAID>

If everything is supposed to be affected, the plugin parameter would be a lot quicker.
 

Ravenith

Veteran
Veteran
Joined
Mar 27, 2012
Messages
263
Reaction score
15
First Language
Greek
Primarily Uses
Okay, that was my bad. I was testing it with the default ID:10 state, Sleep, which was instantly removed by the same damage that applied it.
The issue has been resolved, you can close this, thank you very much.
 
Last edited:

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

Latest Threads

Latest Posts

Latest Profile Posts

I wrote this years ago, only now I posted an english version. How about we talk about procrastination?
I just noticed the minigame challenge. Now considering...
My project just started lagging during battletest and I haven't been able to figure out why...
Oh, Google is now warning users against installing extensions on Edge Chromium
on my plate today- animation.

Forum statistics

Threads
94,472
Messages
921,170
Members
124,311
Latest member
cadenm1223
Top