Hello everyone.
I'm having a problem with a script. Specifically, I can't figure out how to reset the number of creatures that can be recruited in a castle at the beginning of each week.
Here's the issue: I need a Necropolis castle where you can transform creatures of all levels into undead (Temple of the Underworld), but there should be no creature growth in it.
If anyone knows how to do this, please let me know!
Thanks in advance.
function NewDay()
if GetDate(DAY_OF_WEEK) == 1 then
for creature=29,41,2 do
SetObjectDwellingCreatures('cityname', creature, 0)
end
end
end
Trigger(NEW_DAY_TRIGGER, 'NewDay')
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4