Clash of clones (VERY VERY RAGED BY THIS LEVEL)

I can’t figure out what code to use

Hi @guy_oy,
This level is quite hard, mainly because unlike almost all the other levels there is no correct answer. Many different codes work.
I will give you some starting hints, and if you still have problems post the code you have so far, and we’ll go from there.

  1. Use all the special abilities you can (“cleave”, rings, “chain-lightning” etc…).
  2. Target the archers.

I hope this helps,
Danny

thx Deadpool198 i’ll try it out

my code didn’t make my hero attack the archers
while True:
enemy=hero.findNearestEnemy()
if enemy.type==“archer”:
if hero.isReady(“cleave”):
hero.cleave(enemy)
else:
hero.attack(enemy)
else:
hero.findNearestEnemy()
if enemy:
hero.attack(enemy)

I suggest that you don’t use a good sword since the clone will just take advantage of it.
i beat it (its really hard) with the simple sword and a really good shield (use bash and shield to target the
archers).

Well, it depends. It also means you have a good sword. I can beat it with Sword of the Temple Guard. It doesn’t really matter in my opinion.

an easy way to do it (if you’re a sub) is get a ranger and the boom ball and a bad crossbow with no armor.
target all the archers by throwing them.

i am not a sub but i will try using the simple sword and my steel striker but what about armour?

my worst armor is the tarnished bronze set

never mind I JUST EXPEREMENTED AND I FINISHED THE LEVEL!!!

Actually a wizard is better for this job. and also try to use high level unholy tomes. level 5 is best because you can summon skeletons and your clone can’t. also try to get higher level staffs because they have special skills that your clone cannot use. the nature one is best because it also has summoning. also try using poison, raise dead, fear(these three are good for mass crowd control), and drain life(for targets like archers)(these can be unlocked by using unholy tome. That’s my advice. Not sure if it works. Also, heroes like librarian are okay, but you need better armor. I recommend omarn. It only needs mid-level armor to pass

Hello I’m back on the forums after a while and am also struggling on clash of clones

i have been able to kill all the enemy’s minus the last guy but my hero keeps going after the oxes how do I stop him from doing that

while True:
    enemy = hero.findNearestEnemy()
    hero.shield()
    ready = hero.isReady("bash")
    
    if ready:
        enemy = hero.findNearestEnemy()
        hero.bash(enemy)
    targets = hero.findByType("archer")
    if targets:
        yes = hero.isReady("electrocute")
        if yes:
            hero.electrocute(enemy)

Instead of using hero.findNearestEnemy(), I would recommend getting the list of enemies using hero.findEnemies() and then deleting the ones that have type “sand-yak”
and then hero.findNearest() to get the nearest non-yak enemy

how would I do that? do I need to make a list of the enemy types?

while True:
    enemy = hero.findNearestEnemy()
    ready = hero.isReady("bash")
    targets = hero.findByType("soldier")
    targets = hero.findByType("archer")
    targets = hero.findByType("tharin")
    if targets:
        hero.attack(enemy)
        hero.shield()
        
    if ready:
        if targets:
            hero.bash(enemy)
    if targets:
        yes = hero.isReady("electrocute")
        if yes:
            hero.electrocute(enemy)

there is remove() and append() but I don’t think those have been used in a level yet
you can also compare the distances of all non-yak enemies and then attacking the nearest one (as in Brittle Morale)
strategy-wise I’d recommend taking out archers first and then the enemy hero. (every hero is a different type but Tharin is “knight”)

so how would I go a bout doing “attack by type” essentially

like attacking all archers first? you can use something like archers = hero.findByType(“archer”) and then hero.findNearest(archers) to get the nearest archer
then if there is an “archer” you attack
otherwise you attack the next target type (like “tharin” or “soldier”)

ohhh ok I thought so but it wasn’t working for me I’ll see if I can troubleshoot it