I may be able to do this some other way that I'm not aware of, but I'm posting this in plugin support since I have two different plugins I've been trying to do it with that are not behaving the way I would expect. Yanfly's Counter Control, and Victor Engine's Counter Actions.
I just want a self-targeting, one-turn status that grants guaranteed counter attack (no limit on number of counter attacks) on melee attacks only (no ranged, which I have as an element, or magic).
The thing is, when I use either of these plugins (and I have tried their respective notetags on the actor, the "attack" skill, and the status, and have tried the status with and without a "counter + 100%" trait) they both do the same weird thing (when the game doesn't crash altogether because some of those combinations are clearly not right): As soon as the ranged enemy attacks (there is one troop I am testing and the ranged one always attacks first), the attack lands (as expected) but then the status goes away! And the melee enemy gets their hit in too (makes sense, the status is gone)! I should also mention, I suppose, that the battle system is Yanfly's CTB.
Without either plugin, the status (which counters ALL attacks) works just fine! It stays until the next turn (well, and is still there; it's on "action end," I still have to figure out how to get more control over how turns work, but that's a whole different task I haven't started yet)
The plugin parameters for Yanfly (I've been messing with it the most, there was some stuff I didn't like about the way VE functioned):
Notetag I was trying to use is:
<Counter Condition>
Element: 1
</Counter Condition>
I just want a self-targeting, one-turn status that grants guaranteed counter attack (no limit on number of counter attacks) on melee attacks only (no ranged, which I have as an element, or magic).
The thing is, when I use either of these plugins (and I have tried their respective notetags on the actor, the "attack" skill, and the status, and have tried the status with and without a "counter + 100%" trait) they both do the same weird thing (when the game doesn't crash altogether because some of those combinations are clearly not right): As soon as the ranged enemy attacks (there is one troop I am testing and the ranged one always attacks first), the attack lands (as expected) but then the status goes away! And the melee enemy gets their hit in too (makes sense, the status is gone)! I should also mention, I suppose, that the battle system is Yanfly's CTB.
Without either plugin, the status (which counters ALL attacks) works just fine! It stays until the next turn (well, and is still there; it's on "action end," I still have to figure out how to get more control over how turns work, but that's a whole different task I haven't started yet)
The plugin parameters for Yanfly (I've been messing with it the most, there was some stuff I didn't like about the way VE functioned):
Notetag I was trying to use is:
<Counter Condition>
Element: 1
</Counter Condition>