Good afternoon!
Please help me write a script that increases the number of units in a specified garrison each day (for example, +10 for the first slot, +5 for the second, +2 for the third).
Thank you in advance.
function newday()
local add = {[0]=10; 5, 2}
for i=0,6 do
local type, number = GetObjectArmySlotCreature("script name of the garrison", i)
if type ~= 0 and addthen
AddObjectCreatures("script name of the garrison", type, add)
end
end
end
Trigger(0, "newday")
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4