Sarven Road (Python) Hero hp


#1

Is there a certain number of hitpoints needed to finish Sarven Road? I tried it with Tharin and Hattori Hanzo (he has less hitpoints but more dps) but both die right before the end of the level … just hope that I didn’t do the level wrong, but the instructions were pretty straightforward.

Code:

  x = self.pos.x + 10
y = self.pos.y + 10
enemy = self.findNearestEnemy()
if enemy:
    self.attack(enemy)
else:
    self.moveXY(x, y)

#2

Just went back through this, and it looked like it needed about 300 health (with pretty well much the code you’ve got), although I’m sure the first time I went through more ogres turned up than this time - so maybe its slightly random? Maybe you could try using a cleave at the right point to help out?


#3

Your code looks fine. As you get further into the game, your foes get tougher, so you’ll need more powerful gear / strategies to win the combat parts, even in levels which are mostly about practicing new programming techniques.


#4

Im having some issues on this level, I’ve done all of the campaign on python with the usual self.etc commands but in this level i am forced to do it with javascript, (this.etc) commands, i don’t know how to switch it back and i am stuck clueless of what to do


#5

Not sure why you got switched to JS, but you can go to the Game Menu, Change Hero, and switch back to Python at any time.


#6

yea thats the thing, i switch it back to python but the level stays in js i don’t know why nor have a clue on how to complete it


#7

If it stays in js but your selected code is python you have to reset the code


#8

how do i reset the code


#9

In the top-right corner there is a button that reads “reload” (or something like this).

There you can reset your code.


#10

Yea i clicked it and it is still in js, even if i change it to another language like cs it will stay in java, nothing seems to be working :confused: plz help


#12

i fixed it now and i need help with keeping time i don’t know how to hire troops and here is the LINK:
http://discourse.codecombat.com/t/keeping-time-help/3730


#13

I think you may want to create a new post for this - rather than jumping onto the end of another one.

When you do, then can you put all the code you’ve tried presented as code (see the FAQ), and give us a bit more to go on than ‘íts wrong’?


#14

do the scouts have to be immune to cleave?


#15

No enemies (except maybe doors and chests) should be immune to cleave. It’s just that Scouts don’t care a lot about cleave, as they have 75 HP and cleave does 15 damage.

And no, this is not imbalanced as you can still one-hit munchkins.


#17

If you just put the whole code through a loop it your character will not only keep moving but will attack enemys


#18

Please leave the dead resting. This question has already been solved.


#19

I have problem with loading. A progress bar comes to the end, but do not load up, without this i can’t choise another or next level. I delete my cookies, but doesn’t help. Any idea, what’s going on? I have this problem from yesterday.


#20

I have obsidian helmet and breastplate, 1309 health, a steel striker, enchanted lenses, and a runesword.


#21

(Solution removed)

Edit: Please do not post solutions. Thanks.


#22

Is this working code? Plz dont post this, this is answers and this takes the whole point out of the game. THX