Play Home Contribute GitHub Join Us Discourse Staff Members GitHub Contribution Guides Team

Signal Corpse Help Needed



So I need some help on the level “Signal Corpse”. Here is my code but, I don’t think it’s the problem.
I’m able to defeat all of the ogres except for the two large ones. It seems that I need many hits to kill them yet they only need about 4 to kill me, making it impossible to win. Any help?

while True:
    green = hero.findFlag("green")
    black = hero.findFlag("black")
    nearest = hero.findNearestEnemy()
    if green:
    elif black and hero.isReady("cleave"):

    elif nearest and hero.distanceTo(nearest) < 10:


Hi, jackattack825!

Thank you for formatting part of your code correctly. Could you include the rest in the code section of your post?



I can’t seem to reformat it correctly. I have tried surrounding it in triple backticks like this:

But it isn’t working. By the way just imagine that below the “while True” the parts about the flag are indented in once.


@nick @Bryukh

Somebody help please


Code looks good; sounds like you just need more armor to do the level, since you can’t take on medium ogres yet. If you pick up a good breastplate, shield, or helmet to get more hit points, you may have more luck.


I agree with Nick. To be sure, could you post your equipment list? You can share it as a screenshot - it will be enough. That way we can check it.

Or use a direct message (or slack) here to send your email which you are using for CodeCombat account.


Thanks guys. I figured it out. I thought that in the equipment menu it is required to have a premium account to use the items that cost gems. I also didn’t realize I had gems.


You have two conditional statements involving a green flag and none for the black flag. The central idea of this level is to have your hero do two different things depending upon which flag you use. The instructions are in the comments.


this is your code:

if green:

It’s null because when you place a green flag, there is no black flag.