Connection ErrorBad RequestThis page went staleSession 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.
This page went stale
Your security token was rejected, usually because the page sat open too long or you signed in elsewhere. Nothing was saved. Reload the page and try again.
Request Failed
We encountered an issue while processing your request.
Please check your internet connection and try again.
Error Details:
Share Link
Current questions and answers regarding the map editor.
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