I've finally thought of a way to add AI in the Strategy RPG Test. Taking inspiration from the tactics feature in Dragon Age: Origins, each unit's AI would have a list of conditions and corresponding actions, for example, I would set the condition as "if the unit has less than 50% HP" and the corresponding action as "flee from enemies".
The list would be prioritized, in that higher conditions get activated first before lower ones. Lower conditions would be "if enemy in sight", "attack enemy", and then a final fallback action that gets executed without any condition needed like "search for enemies".
That list of conditions and actions would be defined in an XML file and then loaded into the game.
I guess this is why it pays off to play games, you get to study and understand how they work.
I had fun playing Dragon Age: Origins by the way. I played as a Human Male Arcane Warrior.
No comments:
Post a Comment
Made me post. 0/10.