Abeyance: Enemy AI








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

41-70: Hex

71-100: Twitch


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.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s