Page 1 of 1

[0.78] AI keyboard fumbles?

Posted: Sun Apr 18, 2021 7:10 am
by kaypy
Something I've seen a few times recently is a monster group turning just as one of the members launches a spell, causing it to go off it the wrong direction (or, in one instance, the wall).

While my group can have similar results when trying to attack-then-sidestep too fast, I'm not sure the AI should be having the same coordination problems...

Re: [0.78] AI keyboard fumbles?

Posted: Sun Apr 18, 2021 8:36 am
by Gambit37
If the player can make this mistake, why can't monsters? Seems fair enough to me.

Re: [0.78] AI keyboard fumbles?

Posted: Mon Apr 19, 2021 4:31 am
by kaypy
Yes, but I'm 75% sure it wasn't deliberate, so I thought I should point it out 8-)

Re: [0.78] AI keyboard fumbles?

Posted: Mon Apr 19, 2021 7:44 pm
by Sophia
Adding this "feature" was actually in one of my April Fools posts a few years back. I certainly didn't intend to actually do it. :mrgreen:

Re: [0.78] AI keyboard fumbles?

Posted: Tue Apr 20, 2021 12:18 pm
by kaypy
There is mounting evidence that my tolerance for your april fools ideas may be atypically high... 8-)

Re: [0.78] AI keyboard fumbles?

Posted: Wed Apr 21, 2021 5:35 am
by Sophia
I actually couldn't reproduce this, but my best guess at why it happened was that grouped monsters had a queued attack and they turned in between. For example, if a group of vexirks want to attack, the first one will attack on tick 0, and the second one will attack on tick 3. If the monster group decides to turn on tick 2, the second missile will fire in the wrong direction.

I added a lock that simply prevents a monster group from turning if a missile attack is pending. Hopefully this fixes the issue. :)