Hello there. I need a bit of help with the following formula. I have Yanfly's BattleEngineCore and SkillCore plugins on.
if (b.isStateAffected(43)) { 2 * (a.atk * 7 - b.def * 3); } else if (a.isStateAffected(42)) { 2 * (a.atk * 7 - b.def * 3); } else { a.atk * 7 - b.def * 3; }
The idea is that when the enemy is afflicted with a certain state the skill does double the damage, and when the user is afflicted with a different state it also deals double the damage. Here comes the problem: How do I make it so the multipliers stack when both states are active at once? Is it something that can only be done by code on notes? Or is it even possible at all?
Maybe the answer is super obvious and I just don't see it. I just started with MV a week ago so excuse my lack of knowledge. Thank you to anyone who goes out of their way to help.
if (b.isStateAffected(43)) { 2 * (a.atk * 7 - b.def * 3); } else if (a.isStateAffected(42)) { 2 * (a.atk * 7 - b.def * 3); } else { a.atk * 7 - b.def * 3; }
The idea is that when the enemy is afflicted with a certain state the skill does double the damage, and when the user is afflicted with a different state it also deals double the damage. Here comes the problem: How do I make it so the multipliers stack when both states are active at once? Is it something that can only be done by code on notes? Or is it even possible at all?
Maybe the answer is super obvious and I just don't see it. I just started with MV a week ago so excuse my lack of knowledge. Thank you to anyone who goes out of their way to help.