Can you help me pass the kithgard brawl 6


#1

my code is :
while True:
enemy = hero.findNearestEnemy()
if enemy:
enemy = hero.findNearestEnemy()
hero.attack(enemy)
if hero.health<3000:
item = hero.findNearestItem()
if item.type == “potion”:
pet.fetch(item)


#2

try summoning troops to help you fight
also, the master sword is pretty op in such a small combat space
use it if u have it
try dodging razor discs thrown by headhunters using vectors


#3

There some advises:

  1. Summon troops & command them to defend hero
  2. Use fast sword. Use alternatives attacks first(bash, cleave, powerup)
  3. Create attack priority - heavy enemies first, muchkins - next.

n) when you have enough health, then you can try use fire-traps and shield.

enemy = hero.findNearestEnemy()
buildTypes = ["fire-trap"]
type = buildTypes[len(hero.built) % len(buildTypes)]
if enemy and hero.gold > hero.costOf(type):
      hero.buildXY(type, enemy.pos.x, enemy.pos.y)
      hero.shield()
      hero.shield()

#4

On Create Attack Priority advice by @RobAnybody :
Try using a Math.ceiling(enemy.health/hero.attackDamage) to calculate the amount of hits necessary to kill an enemy
then, based on their attack damage and distance from hero, calculate which enemy is the best to get rid of.


#5

thanks both of you guys


#6

one thing i used the runesword i don’t have the master sword


#7

Runesword has a low dps
master sword is good because it has a 100 damage cleave that can kill the large ogres(the ones with the butcher knife, not the club)
if u dont have a good cleave sword, then u should use a good dps sword that has fast attacks, since most ogres in this level has low health, but there are still big ones that takes more hits.
Runesword probably beats difficuly 0 and 1, but not above.


#8

but the only cleave one i have is the long sword


#9

and the long sword has a low dps and a horrible cleave that is probably worse than just using a good dps sword
in my opinion, the sword of the temple guard is better than the sword of the forgotten on this level, so buy that and try to beat it… sword of temple guard’s dps is like 206.1, but it attacks 4 times per second.
sword of forgotten has 211.5 dps, but it attacks 2 times per sec


#10

thanks and i will see


#11

and those two sword don’t have cleave


#12

the only two swords that have cleave is the master sword and the long sword
the master sword is the best on this level
the long sword is complete junk
so…
u have to turn to other options :frowning:


#13

how do you get the master sword :thinking:


#14

It was a limited edition sword which used to be unlocked at the level apocalypse.


#15

sigh not a subscriber :frowning:


#16

but chaboi_3000 i am not a subscriber


#17

Could you tell me your equipment? I used Tharin to beat this level, so it should work fine, use gloves of the emperor, chain-lightning is strong, and should deal about 120 damage


#18

This lvl is a sub level.


#19

Though I beat this level using Arran and flags. There is no need to fight the ogres though.


#20

That is true, but he is not subscriber.