Now that we are on the right track with our Lua interface, we’re incrementally testing more complex AI scripts and adding features to it. This time, we’re testing the newly implemented, configurable automatic target acquisition. Depending on the configuration, Lua scripts will receive an “onTargetUpdate” event at certain points. The script makes the Zombie patrol in circles, and he will always attack the strongest (i.e. highest life) hero. That’s a bad strategy, of course, and the Zombie behaves a little funny. The script could be further improved by adding a cooldown timer to prevent the seemingly chaotic change of targets, but honestly, we don’t think that our little Zombie here actually cares.