Возрождённый v 1.5 (обновление от 25/09/2016) :smile24:
готовится продолжение.
Великая Пустыня ( 25%) - про Маркела
Тьма над Иролланом (0%) - про Николаса
Мои моды (скорректированы мод на чумных энтов и циклопов зомби)
New here? I'm Roha — want a quick tour?
function AddArchangelsSpecialization()
if GetObjectDwellingCreatures('town_name', CREATURE_ANGEL) ~= -1 then
local add = 1
if grail_built == 1 then
add = add + 3
end
SetObjectDwellingCreatures('town_name', CREATURE_ANGEL, GetObjectDwellingCreatures('town_name', CREATURE_ANGEL) + add)
end
end
function NewDay()
-- ... --
if GetDate(DAY_OF_WEEK) == 1 then
AddArchangelsSpecialization()
end
-- ... --
end
Trigger(NEW_DAY_TRIGGER, 'NewDay')
grail_built = 0
function WaitForBuildGrail()
while GetTownBuildingLevel('town_name', ID_BUILDING_TEARS_OF_ASHA) == 0 do
sleep(10)
end
grail_built = 1
end
startThread(WaitForBuildGrail)
You can also add the appearance of [Arch]angels on the map, but nothing can be done about the interface.
function AddArchangelsSpecialization()
if GetObjectDwellingCreatures('Angelat', CREATURE_ANGEL) ~= -1 then
local add = 1
if grail_built == 1 then
add = add + 3
end
SetObjectDwellingCreatures('Angelat', CREATURE_ANGEL, GetObjectDwellingCreatures('Angelat', CREATURE_ANGEL) + add)
end
end
function NewDay();
-- ... --
if GetDate(DAY_OF_WEEK) == 1 then
AddArchangelsSpecialization()
end
-- ... --
end
Trigger(NEW_DAY_TRIGGER, 'NewDay')
grail_built = 0
function WaitForBuildGrail()
while GetTownBuildingLevel('Angelat', ID_14) == 0 do
sleep(10)
end
grail_built = 1
end
startThread(WaitForBuildGrail)