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

[SOLVED] Help on Clash of Clones [SOLVED]

# You'll need good strategy to win this one!
# Your clone will have the same equipment you have!
# But, they're not very skilled at using special powers.
while True:
    enemy = hero.findNearestEnemy()
    flag = hero.findFlag("green")
    if flag:
        hero.pickUpFlag(flag)
    else:
        if enemy.type != "sand-yak":
            if hero.isReady("bash"):
                hero.bash(enemy)

I keep dying, I’ve tried using worse armor and a worse sword and a good bash shield. Please help

1 Like

Umm… You’ll need a lot more code than that. I recommend using armor and weapons that have special powers , like bash or cleave, or powerup.

1 Like

I used Gordon for this level. HOpe It helps.

1 Like

Can I see your equipments?

2 Likes

Yes, to this lvl you have to use “super powers”. And the best, I think is chain-lightning to archers. And if you have “jumpTo” you can jump to Clone and kill him before you kill other (soldiers and archers).
And please, send us your equipment.
Hope it helps

3 Likes

And to this level you HAVE TO write “def bestEnemy()”. And if you wrote them you wouldn’t attack yaks.

3 Likes

You can equip the best shield which you have and the worst sword, then go to enemy archers, and shield.

2 Likes

I mean something like that:

hero.cast("invisibility",hero) #if you have invisibility ring
hero.moveXY(pos.x,pos.y) #central enemy archer.pos
while True:
    hero.shield()
2 Likes

If you have imeror gloves, you can cast chain-lightning enemy archers.

2 Likes

I have Long Sword, Emperor’s Gloves, The Monolith, Steel Breastplate, and steel helmet

1 Like

I don’t have enough money for the precious, but I do have steel ring

1 Like

Then try to jump near the archers and use chain lighting on them, then kill your clone and then the shamans and the other enemies.

Andrei

2 Likes

Thanks. It worked :slight_smile:

2 Likes

Get rid of this:

Replace with something along the lines of:

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

This MUST be inside the if flag: statement

The yak’s are too far away to be the nearest enemy. Also, try to kill your the archers and any shamans before killing the hero clone. Worked for me.

1 Like

Anytime! And congratulations for completing the level! :partying_face:

Andrei

1 Like

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.