Hi I'm working on a game where I'm trying to have a single skill deal different damage based on whether the target is poisoned, bleeding, or both. My plugins that I'm working with include yanfly's damage core, yanfly's buff states core, and yanfly's battle engine core. Note that these are not all of the plugins in use they are just the ones I thought would be applicable for this situation. The current note tag I have been working on trying to figure this problem out is this so far:
<damage formula>
if (target.isStateAffected(28))
if (target.isStateAffected(4))
{
value = a.atk * 50
} else
if (target.isStateAffected(28))
{
value = a.atk * 30
} else
if (target.isStateAffected(4))
{
value = a.atk * 15
} else
{
value = a.atk * 5
}
</damage formula>
With the note tag above it currently deals damage only when the target is bleeding(28) or bleeding(28) and poisoned(4), but it does not have the base attack(which should be the a.atk * 5) or deal damage when the target is poisoned(4). Any help would be greatly appreciated as I am not very good with the programming part of this yet. Still learning so if its not possible to do then that's ok too just feels like something that should be.
<damage formula>
if (target.isStateAffected(28))
if (target.isStateAffected(4))
{
value = a.atk * 50
} else
if (target.isStateAffected(28))
{
value = a.atk * 30
} else
if (target.isStateAffected(4))
{
value = a.atk * 15
} else
{
value = a.atk * 5
}
</damage formula>
With the note tag above it currently deals damage only when the target is bleeding(28) or bleeding(28) and poisoned(4), but it does not have the base attack(which should be the a.atk * 5) or deal damage when the target is poisoned(4). Any help would be greatly appreciated as I am not very good with the programming part of this yet. Still learning so if its not possible to do then that's ok too just feels like something that should be.