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

Doom Glade (Backwoods Forest Level 123), Python

Doom Glade (Backwoods Forest Level 123), Python. The code I used is below, and when I try to navigate my hero, it always dies!

My hero’s health is 754, so I don’t believe that that’s the problem.

while True:
    flag = hero.findFlag()
    enemy = hero.findNearestEnemy()
    if flag:
        hero.pickUpFlag(flag)
    elif enemy:
        if hero.isReady("cleave"):
            hero.cleave()
        else:
            hero.attack(enemy)

Please help!

I wouldn’t be so sure about that. I used Hattori and started with 1796 health…squeaked by with about 300 left. Your code looks viable, except, who is the hero going to cleave?

I’m using Hattori also.

I did it with a hero of 3868 health. Even with that, it took me 2 and a half weeks of trying to solve it.
If you have a shield that does bash that will help you

Who are you going to cleave?

cleave works just like attack.

for example:

attack:

enemy = hero.findNearestEnemy()
if enemy:
      hero.attack(enemy)

cleave:

enemy = hero.findNearestEnemy()
if enemy:
        if hero.isReady("cleave"):
            hero.cleave(enemy)