Hello everyone! I am a noob so don’t be too hard on me
Basically I wrote this for Sacred Statue:
def meatgrinder():
enemy = self.findNearest(self.findEnemies())
while enemy:
if self.isReady("cleave"):
self.cleave(enemy)
enemy = self.findNearest(self.findEnemies())
else:
self.attack(enemy)
enemy = self.findNearest(self.findEnemies())
meatgrinder()
loop:
meatgrinder()
if self.pos.x != 62 and self.pos.y != 67:
self.moveXY(62, 67)
It was working quite well until half way it stopped and it told me I had failed the level. Before that it was giving me infinite loop errors but working at the same time. I know it’s probably not the most elegant code in the world but it was getting the job done! What am I missing?