The battle system is practically finished. To do: Iron out bugs, end battle conditions, add damage to GUI, add battle maths
How do you work out enemy AI for such a game? It’s actually pretty simple. You leave it all up to chance. You work it out by percentages. So a number out of 100. Then you choose your range. In the above video the ranges are:
0 – 40: Attack
So this means Hex and Twitch have an equal chance of being used, whereas Attack has a slightly higher chance. Of course, to complicate things, like for boss battles you can add extra conditions (which you might set out as a boolean) so if Enemy Health > Then increase the chance of Hex.
That’s all there really is to it.