y={9,9,10,10}
for i=1 to n
if IsHeroAlive("Erling") then
MoveHero("Erling",x,y,0)
end
end
So, hypothetically speaking. In reality, I see a couple of weak points in the code (for example, in the event of a battle and victory in it, Erling will most likely not continue moving, as the script has already completed its execution while the battle was in progress), but the logic is generally like this.