How can I make a skill/anything that can inflict damage do more/less/no damage depending what State(s) the target
Preferably without Events, Using Yanfly's Buff & States Core Lunatic Mode
I have no skill in JavaScripting
(Yes I did search but I didn't find anything, could have been the phrases)
This has worked so far for me. Post this code in the notes section of the state you wish to reduce the damage the target takes:
<Custom React Effect>
value -= 25;
</Custom React Effect>
If you wish it to be more damage, change the - to +. Change the 25 to whatever amount of damage you wish blocked.
If you need it to block a percent of damage instead, you'll need someone a little more proficient in JavaScript than me, though I think it could be easily edited to do that instead.
For no damage, just make the state give an element rate of 0 to whatever element the skill is you wish to have do no damage. No need for lunatic code for that one.
Why not simply add an element to the skill and make the state change the resistance against that element?