Help on Level clash of clones

Can you send a screenshot of when you die?


I would do this, so you can use the “bash” ability.

1 Like

did u want me to go to these cordinates: hero.moveXY(68, 78)

Yes. I did.

1 Like

ok:

is this the code I should do?

Hm. You’re going to want to bash, attack, cleave, electrocute and idk what abilities pets have.

2 Likes

@hellodaddy ummm so when I went to the cordinates u said for me to go I did not attack archers

Oh. And make your code so you don’t attack sand yaks.

1 Like

I already dont attack yaks…

I didn’t either until the tail end. You should put it in there just in case.

1 Like

(post deleted by author)

…that’s still cheating since you’re doing most of the work

1 Like

yea i agree I will stick with my code

1 Like

Could you please delete that?

1 Like
hero.moveXY(68, 78)
while True:
    enemy = hero.findNearestEnemy()
    if enemy.type == "archer" and enemy.type != yak:
        if hero.isReady("cleave"):
            hero.cleave(enemy)
        else:
            hero.attack(enemy)
            hero.bash(enemy)
            hero.electrocute(enemy)


My code

Maybe to attack the archers you need to move farther, like maybe 80, 79?

2 Likes

My code makes it so that I attack the archers, so I am confused on that end.

1 Like

it says yak is undefined