So basically I want a skill to do 10% more damage if the enemy it's attacking is poisoned.
None of the formulas do anything and I'm not sure if this is due to a plugin inhibiting it or my own negligence in finding the problem?
Yanfly's Damage Core can probably do something like this. You'll need a note tag with some JavaScript that checks whether the target has the Poison state and then multiply the damage by 1.10 or something similar to this. Someone here more familiar with the plugin can probably give you the exact code.
Moved to: MV Support
Use a formula like this:
if (b.isStateAffected(n)) { damage formula 1 } else { damage formula 2 }
You can also use the form:
b.isStateAffected(n) ? damage formula 1 : damage formula 2
Replace n with the State ID of Poison. Replace damage formula 1 and damage formula 2 with the damage formulas you want to use if the target is poisoned, and is not poisoned, respectively. For example:
if (b.isStateAffected(28)) { a.mat * 4.4 - b.mdf * 2.2 } else { a.mat * 4 - b.mdf * 2 }
or
b.isStateAffected(28) ? a.mat * 4.4 - b.mdf * 2.2 : a.mat * 4 - b.mdf * 2
Yes! This worked perfectly, not sure why it wasn't working before but I'm glad it's working now. Thanks! :MV1:
If I want to make smth like that I'll just add Option to Skill (Change Def\MDef to *n* point) or (add Weakness to phys.\mag. atk)