Next task, I have to get the mushrooms. Problem: I can’t break the enemies loop and move on the the items loop.
# This level is intended to be for advanced players. The solution should be pretty complex with a lot of moving parts. It might also be a bit of a gear check unless you use creative methods.
# You need to make your way to the first trial (Oasis of Marr) defeating enemies along the way. When you reach it, pick all the mushrooms to trigger the trial to begin. If you survive the onslaught, make your way to the next Oasis for the second trial, then the Temple. When all trials are complete you will have to face the final boss. Good luck!
# HINT: Glasses with a high visual range help tremendously on this level so buy the best you can get.
# HINT: the unit 'type' for the oasis guardians is 'oasis-guardian'
def collectAllItems():
item = hero.findNearest(hero.findItems())
while item:
hero.moveXY(item.pos.x, item.pos.y)
item = hero.findNearest(hero.findItems())
while enemies:
enemies = hero.findEnemies()
for enemy in enemies:
hero.attack(enemy)
if enemies == 0:
break
while item:
item = hero.findItems()
collectAllItems()
So now I’m stuck standing there while everybody whacks me.