Connection ErrorBad RequestSession ExpiredSign in requiredForbiddenNot FoundToo Many RequestsServer ErrorBad GatewayService UnavailableGateway TimeoutHTTP Version Not Supported
Session Expired
Your session has expired. Please log in to continue.
Sign in required
You need an account to do that. Sign in or create one — it only takes a minute.
Request Failed
We encountered an issue while processing your request.
Please check your internet connection and try again.
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