Skip to content
#3904
Auto-translated
RedHeavenHero, yeah, I understand. And how do I find out the city name and the ID_BUILDING_OF_TEARS_OF_ASH? As far as I understand, they are stored in text or in data? --- upd. I tried it - the game crashes after loading the map =( I placed the Human Castle without any city bonuses. The map is attached... Here is the code:
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)

Statistics

Welcome our newest member: Emil

Users Online 2 users 1066 guests