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

A Mayhem Of Munchkins help


Please someone tell me the full code for a mayhem of munchkins


If you cannot get past Mayhem of Munchkins then you really are struggling, anyway
You have to make a loop that runs for infinity and in that loop you need a attack command and a findNearestEnemy command and because you didn’t say what language you are using I can’t help you.


I’m using javascript


We don’t give away solutions as a forum policy. Please post your code and explain what you didn’t understand, so that we may be able to help you. While at it, check out the FAQ — I need help with my code! for some extra help.


Same I am so stuck pls help. My guy is just standing there and taking all the attack


Please post your code so we can assist you.

To post your code from the game, use the </> button or it won’t format properly. When you click the </> button, the following will appear:

Please paste ALL of your code inside the triple back tick marks.

``` <— Triple back tick marks.

Paste ALL of your code in here.

``` <— Triple back tick marks.

There are many people here willing and able to help. If you use the </> button correctly, then ALL of your code should look like this:

while True:
    enemy = hero.findNearestEnemy()
    if enemy:
        hero.say("My code is formatted properly")

If ALL of your code isn’t formatted like the code above, then you’re doing it wrong and we can’t see the structure of the code to troubleshoot whether or not that is the issue. Use the </> button and help us help you. This works when sending a private message as well.

Thank you.


Wait, which campaign is this?


wait, the dungeons? It’s probably something simple then… reference error, grammar error, something like that.


Hey, @epixgamer654! Nice profile pic!

1 Like

I am glad that u like pepe the frog.


btw I completed mayhem of munchkins thx :grin::grinning: