I'm having a bit of difficulty making a state work.
I'm trying to make a skill that applies a state after you take damage during a certain duration. (Like a defense skill that grants a buff if you're attacked.), but I can't figure out how to do this without clogging up my Common Events.
Any ideas?
Check out Yanfly's Auto Passive States, and Buffs & States Core.
You'd make learning the skill apply a passive state, which is invisible to the player.
Then the Buffs & States Core has notetags where you say after receiving damage, apply this other state (which is your defense buff, has an icon and duration like normal).
All the notetags for achieving this are in the instructions for those two plugins.
Not that I can think of. There's not normally anything that an actor can do to themself after being the recipient of an attack. You could use a troop event, but I'm not sure how you'd know who was just hit because I believe all relevant information from the BattleManager is wiped by then.
Unless you have every enemy skill apply an invisible state and that gets quite complex. Suffice it to say that any other solution is more complicated than not using a plugin.
Which plugin isn't compatible with those, anyway?
Well...it should be possible to do this through eventing, but it would be pretty complex and involve modifications to every enemy attack skill.
I'd suggest you try this solution to see if it does actually conflict - those two plugins I mentioned don't have any other prerequisites, so you wouldn't need the Core or Battle Engine that would have the greatest chances of conflicting with your battle system.
And if you do have conflicts, you could try the Victor plugin suggested above, but you'd still need Yanfly's Buffs. And if that still doesn't work right...I suppose it's a choice between the complex eventing method, changing your idea, or changing which ABS you're using.