Creating AI variations
Now that we’ve got the AI opponents all set up and ready to go for some epic battles, let’s add some more variations to AI minions and make things more interesting and engaging. If a project has been well planned, changing the behavior of an AI – even a basic one such as the one we created in this chapter – is usually just a matter of adjusting some settings!
In this section, you’ll create a new AI opponent, starting from the basic US_Minion
class, and you will tweak its property in order to give it different behavior.
Creating an AI sentinel
While watching mindless minions wander around a dungeon cluelessly may cause a chuckle or two, it is certainly not enough for the Lichlord’s devious plans. He wants to be sure that each and every corner of his realm is safe and well guarded. This means you will craft some undead sentinels that will have keen senses and be more territorial.
Let’s start by creating...