A Mayhem Of Munchkins help


#1

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


#2

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.


#3

I’m using javascript


#4

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.


#5

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


#6

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.attack(enemy)
    else:
        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.


#7

Wait, which campaign is this?


#8

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


#9

Hey, @epixgamer654! Nice profile pic!


#10

I am glad that u like pepe the frog.


#11

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