Skip to content

Finding misses

chimericchimeric Member Posts: 1,163
I want to find a way to detect attacks that miss.

We have two triggers and two objects: AttackedBy() with LastAttacker() and !HitBy(), along with HitBy(), with LastHitter(). Normally when someone is attacked and hit, LastAttacker is going to be LastHitter. But not necessarily. On an attack that misses LastAttacker is going to be one creature and LastHitter another, unless the same attacker has landed the last blow earlier. So, playing on that difference, would this code let me hone in on misses?

AttackedBy(LastAttackerOf(Myself),0)
!AttackedBy(LastHitter(Myself),0)

Or would this check true also before attacks? Or something else?
Sign In or Register to comment.