Need help on Taunting[SOLVED]

# Attack munchkins, call brawlers and ignore burls.

# This function defines the hero's behaviour about enemies.
def dealEnemy(enemy):
    # If enemy.type is "munchkin":
    
        # Then attack it:
        
    # If the enemy's type is "brawler":
    
        # Then say something to call the brawler:
        
    pass

while True:
    enemy = hero.findNearestEnemy()
    if enemy:
        dealEnemy(enemy)
    else:
        hero.moveXY(30, 34)

i really need help

You just have to do what it says like this:

if enemy.type == "munchkin":
    #attack the munchkin with hero.attack()
if enemy.type == "brawler":
    #say something to the brawler with hero.say()

i just finished it

Great!

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.