# while-loops repeat until the condition is false.
ordersGiven = 0
while ordersGiven < 5:
# Move down 10 meters.
# Order your ally to "Attack!" with hero.say
# They can only hear you if you are on the X.
# Be sure to increment ordersGiven!
ordersGiven += 1
enemy = hero.findNearestEnemy()
# When you're done giving orders, join the attack.
Yes, like Hydrobolic said, You don’t want to move to a specific position. In this case, your hero will move to (10,-10) and say “Attack” 5 times. You want to move 10 meters from your current position (hero.pos.x, hero.pos.y).
You move to your hero’s position, which will always be the same unless you move. You need to move 10m below your current position (hero.pos.y - 10). You need to use the same x position though (hero.pos.x).