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.
I need the script to reset after the hero completes the task. The script is as follows: SetRegionBlocked("Region", true, 1);
Read the documentation for this function and the meaning of each of the three parameters, and the question will answer itself.
Added 3 minutes later Aleha
function new_day() local day = GetDate(day) if day == 1 then DeployReserveHero("Necromancer", 29, 60, 1) end end
Trigger(NEW_DAY_TRIGGER, 'new_day')
The NEW_DAY_TRIGGER trigger does not work on day 1, only from the second day. Everything you want to execute at the start of the map can simply be written in the code without any functions: