Two Yanfly Plugin Requests

Copypasted from the support forums; These effects use the Counter Control and the Skill Core Plugin, respectively.


1. I want to make a skill that has an active effect of refilling MP and also passively provides the ability to counterattack against burned enemies. While the counter ability lets me indeed counter using that skill, it works regardless of the target being burned or not. Here's the notetag of my skill:


<Counter Name: Flashover>
<Custom Counter Condition>
if (attacker.isStateAffected(5)) {
condition = true;
}
else {
condition = false;
}
</Custom Counter Condition>


2. The second one is me wanting to use a follow-up skill under a condition. However, so far my script isn't making it happen:

Code:
<Post-Damage Eval>
if (user.hp > user.mhp/2) {
user.forceAction(24,target);
}
</Post-Damage Eval>
I would use Victor's FollowUp Skills for that second notetag. Compatibility is great with Yanfly's plugins. I assume the counter is working properly?

Original thread: https://forums.rpgmakerweb.com/threads/two-yanfly-plugin-requests.60813/