Skip to content
User Avatar
#988
Auto-translated
Heroist
Thank you, everything worked out great =)

Added 6 minutes ago
yes, by the way, is it possible to make an object inaccessible to only a specific player, like a region?

if I give an example, I need player 3 to be able to pass through the outpost without any problems, and player 1 can only click on it and receive different quests, but without a battle or capturing the outpost. Or will I have to put a mini-region in front of it?
You can, for example, by temporarily enabling/disabling the trigger:
function enabling()
while 1 do
SetObjectEnabled('garrison', nil);
Trigger(4, 'garrison', 'kvest');
while GetCurrentPlayer() == 1 do
sleep(1);
end;
SetObjectEnabled('garrison', 1);
Trigger(4, 'garrison', nil);
while GetCurrentPlayer() ~= 1 do
sleep(1);
end;
end;
end;
Then all players except the first will be able to pass through the outpost. And the first one will only be able to receive quests from it.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4