How do you defeat clash of clones?


#1

Continuing the discussion from SOLVED: Stranded In The Dunes - it gets stuck at the end:


#2

I know that they say that you should get a boss star to defeat stranded in the dunes, but, you need to defeat clash of clones to get to the Cloudrip Mountain so you can get the boss star. The thing is, you need to beat clash of clones. My question is: How do you do it?


#3

Please give us your code.


#4

The enemy hero will have the same equipment at yours so the idea is to equip a low power sword and win by having a better strategy.

A very powerful sword will kill every one in one hit, but with a low power sword the time it takes to kill an enemy is greater than the time it takes to walk to it

In the level there are two types of troops:
Soldiers: 200 Health, 4 DPS
Archers: 30 Health, 26 DPS

Any idea now ?


#5

I recommend not using the sword and attack method and rather use the bash method.


#6

Good idea also, the clone does not use abilities so in that case the enemy hero will do 0 damage.


#7

That didn’t really help. Here is the code I used:

loop:
enemy = self.findNearest(self.findEnemies())
if enemy:
if self.isReady(“bash”):
self.bash(enemy)
else:
self.attack(enemy)
else:
self.say(“come at me!!!”)


#8

Did you remember to indent by four spaces in your loops?


#9

yeah of course I did. it just didn’t show up


#10

KILL… THE … ARCHERS
Nearest enemy (as in self.findNearest(self.findEnemies()) ) will not work much

Also, if you don’t have a sword, attack will probably mess up your code


#11

Hmm, use weapons with bash, power up. Can I see what you are equipped with?
Also, I suggest you remove the
else:
self.say(“come at me!!!”)


#12

i just did not equip a sword and stayed in the middle while shielding so i acted as a meat shield


#13

Mr.Imperial_Soldier your way did not work.


#14

This tactic will not defeat the map, but only assist in defeating the map.


#15

Just be a wizard and spam your spells onto the blue team


#16

Maybe, but the blue team has the ability to do that as well, therefore making it not that creative


#17

Well when I did it, they did nothing so…


#18

Only shielding will not work, as you yourself will need to fight as well.


#19

here is my code i have bee stuck for ages pls help:
while True:
enemyIndex = 0
enemies = self.findEnemies()
while enemyIndex < len(enemies) and self.health > self.maxHealth / 4:
enemy = enemies[enemyIndex]
enemyIndex += 1
if enemy.type != ‘sand-yak’:
while enemy.health > 0:
if self.isReady(“electrocute”):
hero.electrocute(enemy)
if self.isReady(“bash”):
hero.bash(enemy)
if self.isReady(“cleave”):
hero.cleave(enemy)
else:
self.attack(enemy)
if self.health <= self.maxHealth / 4:
enemy = enemies[enemyIndex]
enemy=hero.findNearestEnemy()
distance=hero.distanceTo(enemy)
enemyIndex += 1
while enemy.health>0 :

        if distance < 4:
            if self.isReady("cleave"):
                self.cleave(enemy)
            else:
                self.attack(enemy)
        else:
            self.attack(enemy)

#20

please do not necrompost, this is a dead topic, don’t revive it.