Quantcast
Channel: Recent Discussions — Beamdog Forums
Viewing all articles
Browse latest Browse all 105449

Finding misses

$
0
0
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?

Viewing all articles
Browse latest Browse all 105449

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>