Hi All, So I can see that there are other posts and people have clearly come up with more ocmplex solutions than me, but I’d like to not risk having the answer HANDED to me by virtue of reading someone else’s post. So if you’re willing to check out my code and give me some insight I’d be incredibly appreciative!
loop: enemy = self.findNearestEnemy() if enemy: pass # Replace this with your own code. enemy = self.findNearestEnemy() distance = self.distanceTo(enemy) if distance < 5: self.attack(enemy) if self.isReady("cleave"): self.shield(self.cleave(enemy))
The result is that My toon successfully takes out the first two waves but does nothing for the 3rd.