Talk:Programming simple enemy AI/@comment-18762052-20140815224424/@comment-27239291-20140817005942

Well, I forgot to put in enemy interests, which would be the random numbers that are lower than others to find what each enemy is interested in. For example, the enemy would be more interested in a large Healer than you IF it heals any HP, but more interested in fighting you than getting the smaller potion. And if the enemy's HP is lower than 20, the enemy will run away from you.