I really need help with the ‘Thornbush Farm’ level. I have tried for a very long time and whatever I do, nothing works. I either get blown up, blow up a peasant, or walk to some random area and get killed by an ogre. Can anyone help me? I am using the default coding language.
Make a loop and set fire trap to each point/way that ogres comes from ( set trap on the big X )
But when I do that at one point the hero puts a trap when a peasant comes through and it dies. I tried avoiding this by adding the ‘if downEnemy’ statement just like the other two entrances, but it does not work.
Don’t put it exactly on the x make it far a bit and run
I tried and it still does not work. The hero places a mine when a peasant comes and I lose.
Can you give me what you put? Otherwise I will be stumped and can not move on in the game. And I may quit it if nothing works.
It was really easy , just focus next time
# Patrol the village entrances.
# Build a "fire-trap" when you see an ogre.
# Don't blow up any peasants!
loop:
self.moveXY(43, 50)
topEnemy = self.findNearestEnemy()
if topEnemy:
self.buildXY('fire-trap', 43, 50)
self.moveXY(25, 34)
leftEnemy = self.findNearestEnemy()
if leftEnemy:
self.buildXY("fire-trap", 23, 34)
self.moveXY(43, 19)
buttomEnemy = self.findNearestEnemy()
if buttomEnemy:
self.buildXY("fire-trap", 45, 19)
Thank you very much!
My example code is not working, help!
The same thing isn’t working for me either. I’ve heard there is a bug.
Explain what is “not working” what is happening, what are you expecting to happen, etc. Details people.
When I do this it does not count the peasants as enemys
I’ve beaten the level about 5 times in the past few weeks, and it’s never been bugged. What type of bug are you hearing there is?
Hello everyone,
I was trying to complete the Thornbush Farmlevel, but it keeps complaining about an umatched {, while there is none.
Does anyone know how to fix this?
Don’t look at the language, some of it is Dutch because I live in the Netherlands
Delete the }
on line 3?
I tried that but it doesn’t work. I put it there so hopefully it would solve the problem…
Solved it! I had to put an { and than an } at line 1 and then it solved. Very strange…
It also looks like you were missing a }
after your if-statement on lines 13-15.
You are right! I retyped the code after the screenprint and typed {} in line 1 and it took that.
Thats a hack. you shouldn’t need to put useless {} pairs to make it work. i think there’s more to it.