if IsAIPlayer(player) == 0 then
MessageBoxForPlayers(...)
end
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
New here? I'm Roha — want a quick tour?
Map Name`
Add a tag with a name to the file, something like this:Map Name
Hello, I was creating a map and wanted it to appear in single-player missions, but it ended up being displayed in multiplayer. Question: Is there a way to change something so that I don't have to redo the map and it will be displayed in single-player campaigns?
I want the monster to change its position on the map every day. I won't say why. Of course, if it gets stuck somewhere in a mountain or in a tree, it won't be good.
Maybe like this?
Xp={};
Yp={};
p=0;
for i=80,160 do
for j=50,120 do
if IsTilePassable(i, j, 0)==true then
Xp[p]=i;
Yp[p]=j;
p=p+1;
end;
end;
end;
function poslal()
posl=random(p);
SetObjectPosition("name", X[posl], Y[posl], 0);
end;
Not only that. It also takes into account danger zones for the hero: areas blocked by garrisons or monsters.