Skip to content
User Avatar
#2777
Auto-translated
prevents passage = is the required cell inaccessible? then it's logical that it doesn't move, right?

try something like this:
function ErlingMove()

while 1 do
if(GetCurrentPlayer() == 'player number to which Erling belongs') then
if CanMoveHero(Erling, 15 , 9, 0) then
MoveHero(Erling, 15, 9, 0)
elseif CanMoveHero(Erling, 121, 22, 0) then
MoveHero(Erling, 121, 22,0)
end
end
sleep(2)
end
end
Нет войне.