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.
-- initialization function function RegionInit() for i, region in region_table do Trigger(REGION_ENTER_AND_STOP_TRIGGER, region.name, 'RegionVisit'); end end
-- unified visit function function RegionVisit(hero) -- check which region we are in for i, region in region_table do if(IsObjectInRegion(hero, region.name)) then Trigger(REGION_ENTER_AND_STOP_TRIGGER, region.name, nil); region.visited = 1; -- here you can do what you need, depending on the region number (variable i is the number in the region_table table) end end end
-- returns true if the region with the name name has been visited function IsRegionVisited(name) for i, region in region_table do if((region.name == name) and (region.visited == 1)) then return true end end return nil end