# You need to defeat ogres.
# Send wereyeti peasants to the ogre camp and watch.
# This function returns a friendly unit by the name.
def findFriendByName(name):
friends = hero.findFriends()
for i in range(len(friends)):
if friends[i].id == name:
return friends[i]
return None
# The sergeant wrote the list of wereyeti peasants' names.
sergeant = hero.findNearest(hero.findFriends())
wereList = sergeant.wereList
# The list isn't clean and contains redundant spaces.
wereNames = wereList.split(",")
# Iterate through wereNames array:
for i in wereNames:
# Trim the whitespace from the name
This file has been truncated. show original
Works fine but for some reason I can’t beat it. Any help?
You may just have to resubmit it a few times; the ogres are too strong in this level and the yetis sometimes don’t kill them all.
You could also try and go over to kill the ogres yourself after the yetis are dead.