14.02.2016 – Towards Awesome Scripting

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.

o4ub7h3

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>