So I'm trying to figure out how to make this work. I have most Yanfly plugins and it seems like it should be easy to figure out compared to some of the other things I've asked but I am struggling on it.
Basically all I'm trying to do is create an enemy skill that does double damage to an actor if they have a given state. In this case the damage multiplier can't be done on the state side because normally the state doesn't cause extra damage dealt. Rather it's a specific enemy skill that does x damage normally and (x * 2) if the character happened to have the state. Bonus points if you can figure out a way to use Yanfly ai core to target characters with the state first before characters without but that's a secondary problem and not as big of a deal.
Things I've tried:
1) doing this directly via the damage formula for the skill. I saw a few things online about this but whenever I tried this, it somehow made it so the enemy didn't do any damage at all when they used the skill.
2) I've tried using damage core tags and then tried <custom respond effect >tags but I'm not sure how to do the coding side of it, or if I need to include the actual damage formula I'm wanting for the code. Some kind of example to point me in the right direction would be great.
I have so far:
//Check if target took hp damage
<Custom Respond Effect>
if (target.isStateAffected(92){
(something in these brackets about damage formula but not sure how to do syntax
}
</Custom Respond Effect>
Not sure if this works this way anyway since it's an enemy skill? Any help would be appreciated.
Basically all I'm trying to do is create an enemy skill that does double damage to an actor if they have a given state. In this case the damage multiplier can't be done on the state side because normally the state doesn't cause extra damage dealt. Rather it's a specific enemy skill that does x damage normally and (x * 2) if the character happened to have the state. Bonus points if you can figure out a way to use Yanfly ai core to target characters with the state first before characters without but that's a secondary problem and not as big of a deal.
Things I've tried:
1) doing this directly via the damage formula for the skill. I saw a few things online about this but whenever I tried this, it somehow made it so the enemy didn't do any damage at all when they used the skill.
2) I've tried using damage core tags and then tried <custom respond effect >tags but I'm not sure how to do the coding side of it, or if I need to include the actual damage formula I'm wanting for the code. Some kind of example to point me in the right direction would be great.
I have so far:
//Check if target took hp damage
<Custom Respond Effect>
if (target.isStateAffected(92){
(something in these brackets about damage formula but not sure how to do syntax
}
</Custom Respond Effect>
Not sure if this works this way anyway since it's an enemy skill? Any help would be appreciated.