# Follow me on youtube channel Phy Tu
# Help with programming on Python, school math, physics
# https://www.youtube.com/channel/UCP5ycahCEZ24qmRRgNnko5Q
# Call peasants one after another.
# Neutral units are detected as enemies.
neutrals = hero.findEnemies()
while True:
if len(neutrals)>0:
# Say the first unit in the neutrals array
hero.say(neutrals[0])
pass
else:
hero.say("Nobody here")
# Reassign the neutrals variable using findEnemies()
neutrals=hero.findEnemies()