Skip to content
User Avatar
#1351
Auto-translated
Warrior777
obs = 0

function a ()
obs = obs + 1
end;

Trigger(NEW_DAY_TRIGGER,"a");

function b ()
QuestionBox(GetMapDataPath().."mrkobsgst.txt","yes",nil);
end;

function yes ()
SetPlayerResource(1,6,-10000);
obs = obs + 10
end;

function c (heroname)
ShowFlyingSign({GetMapDataPath().."getobstxt.txt",obs=obs},heroname);
end;

Trigger(OBJECT_TOUCH_TRIGGER,"mrkobs1","b");
Trigger(OBJECT_TOUCH_TRIGGER,"getobs1","c");
SetPlayerResource - the third parameter should be positive.
ShowFlyingSign - table elements with different types of keys should be separated using ";".

Added 7 minutes later
Warrior777
What does this mean?
There is some image in message #1322, but it is not displayed.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

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

Statistics

Welcome our newest member: leyu