Checking for hit/miss to add a state/variable...

I've being having the following issue for a while and just haven't been able to figure it out. How do I detect if a skill hits or misses? I have a state that is added to the used and it seems to add whether the hit connects or not. I've had the same issue with adding variables via skills. They will add 1 regardless of if the skill actually lands. I'm using Yanfly action sequences and feel I'd basically need If... Else Statements. Like if it lands add state/variable and else if it misses. I just have no idea what the wording is for that. Any help would be greatly appreciated.
I don't know if this is exactly what you're after, but here's a plugin that can add states to the attacker or target on hit, miss or critical:
https://galvs-scripts.com/2016/09/29/mv-crit-states/
This could help actually. I see in the help file about criticals and misses... but is there a way to add something for just normal hits as well?
Actually I thought I had made a separate hit function but it seems I did not - sorry about that.
It's ok, I think I've figured out some stuff and have use for the plugin as well 🙂

Original thread: https://forums.rpgmakerweb.com/threads/checking-for-hit-miss-to-add-a-state-variable.75416/