Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

Help with Sarven Gaps


# Get to the Oasis by moving down 10m at a time.
# Build fences 20m to the left of each ogre.

while True:
    enemy = hero.findNearestEnemy()
    if enemy:
        # buildXY a "fence" 20 meters to enemy's left.
        hero.buildXY("fence", enemy.pos.x-20, enemy.pos.y)
        # moveXY down 10 meters.
        hero.moveXY(hero.pos.x, hero.pos.y-10)

I am trying to solve this level. It is failing. What am I doing wrong?



@Chaboi_3000, d’you know why this has popped up after all this time?
:lion: :lion: :lion: