New beginner need help with basics - The Prisoner

Hi,
learning totally new skills and now needing help with basics. What meens tip:
“If you have trouble, let your archer ally attack while you lead the ogre away”?

free the prisoner (Patrick), beat the ogre ja take the diamond

My code looks like this:

hero.moveRight(1)
hero.attack(“Weak Door”)
hero.moveRight(3)
hero.attack(“Two”)
hero.attack(“Two”)
hero.moveDown()

I know something is missing - but what? I always die and can´t beat the “Two”(ogre)

Hi muuriska, welcome to the codecombat discourse.
Try not to think about this bit:

Instead think about this bit:

Remeber: archers do a quite a lot of damage.
I hope this helps.
-Danny