Skip to content
User Avatar
#1363
Auto-translated
Heroist
function b()
if GetPlayerResource(1, 6) >= 10000 then
--money ok--
QuestionBox("согласен_ли_ты.txt", "yes" , "no")
else
--money no--
MessageBox("золота нет.txt")
end
end

function yes()
--da soglasen--
SetPlayerResource(1, 6, GetPlayerResource(1, 6) - 10000)
obs = obs + 10
end

function no()
--net ne hochu--
end
The "no" function and its reference in the QuestionBox are unnecessary because it doesn't do anything and isn't even required.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

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