Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

Dungeon - Cupboards Of Kithgard


Hi Code Combat Support!

Here’s another bug!
If you can take look at the below picture, there will be an problem after the execution of my last bit of code.

Now I was thinking I would stay in the room with the cupboard.
If you are wondering if the hero got pushed into the hallway by the skeleton, then I’d have to say that’s not the case.
My hero literally walked into the hallway yet I don’t see in the code how the hero would want to go there.

I have even tried not using the while loop and still same results.
Now the… What do you call those blue guys again??? XD
They didn’t attack so probably anyone newcomer might survive.
Except if they get hit by spikes… I know I did.

Any suggestions?


You have to put the attack in the while loop, so it means when an enemy is around your hero will attack it, and everything else it outside of the loop. so if you did that, it’s right.


I guess it’s a bug then XD


It’s not a bug, your hero is supposed to be like that, so when you broke that cup, right after that you were supposed to do nothing, so skeleton attacks the ogres.


Really? Let me try to specify. If you take a look at the last picture there is a target mark where the hero is heading towards to. I do believe there is no such code that commanded that hero to move there.


You moved down two times to the mark.


If I move three times I’ll walk into a wall and if I walk once I’ll attack the cupboard from the hallway.
So if you mean that I would return to the original spot before the hero.attack(cupboard); , that does not seem to be the case.


Hey, just wanted to let you know that you can use hero.moveDown(2); to move down two spaces instead of just one. I think this is a new thing that was released while you were gone.

The correct amount of moveDown is 2. Not sure why it would move back up (yep, sounds like a glitch), but as long as it’s setting the goal to success, probably not a big deal. When I use the exact same gear, my hero doesn’t move up after attacking the Cupboard. This usually indicates that it’s something having to do with your gear.


Nice investigation skills man XD.


I dont really know if its a glitch but I replayed one of these levels with my current gear. When I first did these levels I had to use the attack method twice on an enemy. When I used my current sword that can now one hit an enemy he also tried walking into the wall.

You have to realize these levels were made with the intentions of new players and weak gear. As you move on to the forest you will soon have to start using algorithms to check and see if their are any enemies before you attack.

if Enemy:

If you dont like that your hero is walking into the wall. Look to see if their is even a “Cupboard” before attacking.


@Ty_Ler Looks like your right!!!

I used all low level equipmet!!!
Except for the other equipment types people would get at higher levels XD


you could do it with ashort sword


you could also do it with a boss star


Not sure what this has to do with this topic.
Also try not to revive dead threads :slightly_smiling_face:

1 Like