are there any way to help me pass this level
Post your code and if you can say which parts you are having difficulty with.
# Fight your way into the Inner Sanctum of the ogre chieftain, and defeat her.
def commandTroops():
friends = hero.findFriends()
for friend in friends:
enemy = friend.findNearestEnemy()
x=friend.pos.x
y=friend.pos.y
if enemy:
hero.command(friend, "attack", enemy)
else:
hero.command(friend, "move", {"x": x+10, "y": y})
while True:
enemy = hero.findNearestEnemy()
commandTroops()
if hero.gold>=hero.costOf("archer"):
hero.summon("archer")
if enemy:
hero.throw(enemy)
else:
hero.moveXY(hero.pos.x+5, hero.pos.y)
what enemy do I target first
you need to take out the catapults first then enemies otherwise catapults will destroy all your team
ummm what do i do with the crystal towers
Crystal towers have the name type “tower”
You also need to attack them (or, I think you could just run past them as they don’t count as ogres in the success check).
I agree with your latter, Danny…I completely ignored the towers in my solution.
Where’s the fun in that! I just strafed them for about 2 minutes with Gift of the Trees.
Well, on second look…my last response was based on a search for ‘tower’ in my code, which there was no match. I re-ran it, and oops…I did take out both towers. Sorry, it’s been a while since this level, and I forgot.
So, yes, Danny is correct…take out the towers! A hint tho…there are “sweet spots”, where you can place your hero and take minimal damage while hacking away.
how do I defeat the warlocks they are so stong
This is quite a hard level, you will probably need to spend quite a long time on it.
If you want you can post your code and I’ll see if it can be improved.
Danny
Use your troops talents, heal yourself with paladins, try hero.shield maybe. All the stuff you have and tricks you can imagine) Be creative)
This is my code is there any way to improve it?
def commandTroops():
friends = hero.findFriends()
for friend in friends:
enemy = friend.findNearestEnemy()
x=friend.pos.x
y=friend.pos.y
if enemy:
hero.command(friend, "attack", enemy)
else:
hero.command(friend, "move", {"x": x+10, "y": y})
while True:
enemy = hero.findNearestEnemy()
targets = hero.findByType("catapult")
target = hero.findNearest(targets)
commandTroops()
if hero.gold>=hero.costOf("soldier"):
hero.summon("soldier")
if target:
hero.attack(target)
else:
if enemy and enemy.type!="tower":
hero.attack(enemy)
else:
hero.move({"x": hero.pos.x+5, "y": hero.pos.y})
if hero.health<300 and hero.isReady("heal"):
hero.heal(hero)
What character do you play? Tharin or someone else?
I am playing Senick steelclaw
Oh, I play with free chars like Anya, so i hardly can help much. But I killed warlocks with help of my allies - soldiers and archers struggled with them and I was meleeing + shielding while my paladins healed me.
Besides, you can define special strategy not only fo r catapults, but for warlocks too.
umm where are the sweet spots?
Try moving your hero around until you find a place where they can’t reach you as much. Experiment a bit.
Danny