[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
444
Reaction score
208
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

Stream will be live shortly with some Darkest Dungeon! Feel free to drop by!
Ah! Another nice "clear day" in....
//Smacks a nearby fleshy mass
No you! Me time, not you time! :kaolivid:
//Looks back
Where was I? Oh yes, another...
//deep breath and coughs
...nice clear day in Silent Hill. :LZSexcite:
Finally logged back to my RM central account... it's been a while.
2018 joining project as scripter*
Owner "Check it out, got all the YEP plugins!!!
2020 joining project as scripter*
Owner "Sorry, I keep meaning to get rid of these..."

Forum statistics

Threads
103,460
Messages
999,475
Members
134,999
Latest member
Azadwarf
Top