[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
415
Reaction score
182
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

Well... it’s been a real pain in the IRS today. :/
My kitty still young (3-4 months), I think I could teach her some funny tricks... like: "Play dead-ly good music for my games"
Here's a quality DPS class idea: The Beekeeper, who uses the "Bees!!" skill to attack and poison enemies.
Please don't create long, boring cutscenes in which characters do nothing but stand around talking.
What if I took a lesson from Half Minute Hero? Let the player get dumb powerful each area, but reset them down to just slightly stronger than before for the next map?

Forum statistics

Threads
94,269
Messages
919,519
Members
123,990
Latest member
bartzfact0r
Top