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.
I don't know, but I'm saying it as I saw it. The difference in delays of 0.5 and 1 is noticeable. If sleep(0.1) doesn't mean a delay at all, then two such sleeps during processing can create a natural delay. The console definitely won't output errors for such values.
Thank you, it helped. Although, now, even though it works, it displays an error: "wrong type of argument 1 when calling function GetCreatureType", but I probably made a typo somewhere.
I don't know, but I'm just saying what I observed. The difference between delays of 0.5 and 1 is noticeable. If sleep(0.1) doesn't actually mean a delay, then two such sleeps during processing might create a natural delay. The console definitely won't report errors for such values.
I'm not sure if these tricks with sleeps are universal; they might easily depend on the specific computer.
Thank you, it helped. Although, even now, despite the fact that it works, it displays an error: "wrong type of argument 1 when calling function GetCreatureType", but I probably made a typo somewhere.
Arrays with questionable content. Show me the script!
In the script, I wrote `PlayObjectAnimation("script name of the monster", "attack01", IDLE);` (variations are possible depending on which attack animations the creature has).
Enable the console. Without it, writing scripts will be very difficult.
If it doesn't work, and you've done everything correctly, try creating a new profile. It worked for me.
How do I create a function similar to resurrecting Nikolai in a campaign?
I found that using the reserve call works, and it's very convenient. However, I couldn't find in the scripts how to add a hero to the reserve. Can anyone help?
Added 12 minutes later
I found the reserve list, but now I don't know how to add campaign heroes to it.
Add any hero to the list, then in MapProperties\players\0-7\ReservedHeroes\, click ... and in the window that appears, click ... (in the Shared column). Then, select the hero you want from the list on the left.