Added 5 minutes later
It's better to perform the check in function b and immediately display a message about the lack of resources.
Added 7 minutes later
function b()
if GetPlayerResource(1, 6) >= 10000 then
QuestionBox("золото есть.txt", "yes")
else
MessageBox("золота нет.txt")
end
end
function yes()
SetPlayerResource(1, 6, GetPlayerResource(1, 6) - 10000)
obs = obs + 10
end
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4