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.
Hello everyone. I've encountered a problem in the script:
```
function fon()
local day1;
while 1 do
if GetObjectiveState("zad5")==OBJECTIVE_ACTIVE then
day1=GetDate( ABSOLUTE_DAY ) + 2
while day1 >= GetDate( ABSOLUTE_DAY ) do
sleep(10);
end;
SetObjectiveState("dzad3", OBJECTIVE_ACTIVE);
break
end;
sleep(2);
end;
while 1 do
pfonix = GetHeroCreatures( "Main_Hero", CREATURE_PHOENIX);
if pfonix >= 5 then
SetObjectiveState("dzad3", OBJECTIVE_COMPLETED);
SetObjectiveState("dzad2", OBJECTIVE_FAILED);
break;
end;
end;
end
```
The game simply crashes when this script is executed. The script itself was inspired by a similar loop from the campaign for Markel. This entire structure should work. I'm not sure, but the problem might be related to its execution within a thread.