Need a plugin for state removal by damage to work with either physical or magical damage

Animebryan

Need more resources!
Veteran
Joined
Jul 31, 2012
Messages
443
Reaction score
225
First Language
English
Primarily Uses
RMMZ
Need a plugin that makes state removal by damage work on only for physical or magical damage. For example, in the Final Fantasy series, Sleep would only be removed due to physical damage, not magical damage. Perhaps maybe have a state that has a high physical evasion rate (like 80%) but would be removed if ever hit by a physical attack. By default, the remove by damage option is indiscriminate whether the damage is physical or magical.


Any help with this would be appreciated, thank you.
 

izyees

My Secret Santa
Veteran
Joined
Oct 24, 2015
Messages
248
Reaction score
67
First Language
english
require Yanfly's buffs and states core.


put this in your state's notetag.


<Custom React Effect>
if (this.isMagical()) {
target.removeState(x);
}
</Custom React Effect>


change x to your "sleep" state id.


use

Code:
this.isMagical() >> for magical hit.
this.isCertainHit() >> for certain hit.
this.isPhysical() >> for physical hit.
 

Animebryan

Need more resources!
Veteran
Joined
Jul 31, 2012
Messages
443
Reaction score
225
First Language
English
Primarily Uses
RMMZ
Thanks for the help! I didn't know that plugin could do that due to not being familiar with javascript codes.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,986
Members
137,561
Latest member
visploo100
Top