need help i put in the right code and then my hero would not move
We really can’t be of much assistance unless we see your code. Obviously, something isn’t right. What equipment are you using? We need information in order to assist you.
# findEnemies returns a list of all your enemies. # Only attack shamans. Don't attack yaks! enemies = hero.findEnemies() enemyIndex = 0 # Wrap this section in a while loop to iterate all enemies. # While the enemyIndex is less than the length of enemies enemy = enemies[enemyIndex] if enemy.type == 'shaman': while enemy.health > 0: hero.attack(enemy) # Remember to increment enemyIndex
You have to put it in a while loop
Put this in a while loop and be sure to increment for every loop.
okay thanks (
never mind it did not work
never mind worked
This post was flagged by the community and is temporarily hidden.
Please just click the like button instead of saying short messages. It prevents spam and keeps the forum clean. Thanks