Hero stops doing annything after
self.attack("Treasure Chest 1")
Treasure Chest 2 will not being attacked in example case
Hero stops doing annything after
self.attack("Treasure Chest 1")
Treasure Chest 2 will not being attacked in example case
You just need to move to the position of the chest.
if you have enough health you can blow up the dungeon doors
if not then just try and finish the level
[ā¦deletedā¦]
MERGED DOUBLEPOST
this is not the full code by the way il update it later
I donāt even know where to startā¦
Despite from that, nice creative usage of the hammer. How do you get rid of the thrower guarding the peasant? And did you try to blow up the other guards instead of fencing them in?
Hello all first time in here.
"python"
i was trying to complete this level using flags but to even begin, my character will not even move any suggestions?
enemy = self.findNearestEnemy()
flag = self.findFlag()
loop:
if flag:
if flag.color is "green":
self.pickUpFlag(flag)
else:
if flag:
if flag.color is "black":
self.attack(enemy),
self.pickUpFlag(flag)
maybe im obsessing about writing shorter code or maybe i have no idea what im doing of course this is āINCOMPLETE CODEā in theory this should workā¦
Hello, Black, and welcome.
Put your variables inside your loop. Since they are defined at the start of the level, flag
is nonexistent, and enemy will stay as your nearest enemy at the start.
thanks for the reply this helped i got him moving, now i can try to make the rest happen
p.s., i also learned why some of my other short cuts where not working because i was sticking some above the loop.
Hi. Iām having a similar issue as below.
I am using Python and, as youāll see in my code, I tried switching the shoes just to see if that caused anything.
# Bust down north door
#self.moveUp(5)
self.moveXY(6, 124)
door = "North Vault Door"
self.attack(door)
self.attack(door)
# Bust chests
chest = "Treasure Chest 3"
#self.moveDown()
self.moveXY(46, 102)
self.attack(chest)
chest = "Treasure Chest"
#self.moveRight()
self.moveXY(59, 102)
self.attack(chest)
#self.moveLeft()
self.moveXY(59, 102)
#self.moveDown()
self.moveXY(48, 102)
After breaking the first chest (Chest 3) my character will no longer move. If I comment out the line for attacking the chest, then the character will move to attack the other chest. Then, stuck again.
If I comment out both attacking lines, the character will keep moving. It just seems that after attacking a chest, the character freezes.
I didnāt realize I had the flags available here, so I will try that now. I thought Iād share this though.
Update: Oh, I see. I missed what was said earlier about chests not being actual objects. Walk through/to them to collect, just like coins. Nevermind me then.
Do you have flags? If not I suggest you pass some levels and get to the level Cornucopia so that you will be able to control you hero.
I have a question.
Are you supposed to destroy the thing torturing the peasant?
You need to kill the jailer to rescue the prisoner. It does not count as a guard killed failure.
Oh thanks, I will now repair my code to fit that.
Thisā¦this is such a late reply , i was just looking around here, i am pretty sure i either outran the thrower or just managed to kill them somehow, i honestly forgot
Please note that youāre replying to someone who hasnāt posted on this board for over two years.
hehā¦i knowā¦its just something that bugged me as soon as i saw it