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.
OrnsteinDragonslayer, the code is so incorrect that it's unclear where to even begin explaining. You should start by noting that the game directly indicates in which function the error occurred and which variable it didn't like. In the provided code, these are absent, which means the error occurred in another part of the combat script. For the rest, I recommend reviewing Novik's manual, especially the section on combat hooks.
Gerter, the combat script knows everything that is in common.lua. If there is no corresponding macro there, you can also look in types.xml, and if there is something needed there, insert it into the script as a number. For example, in common.lua, spells end with:
SPELL_BLADE_BARRIER = 284;
and in types.xml, after it, there are:
SPELL_UBER_METEOR_SHOWER 285 and many others, far beyond 300.
In particular, ABILITY_DEATH_WAIL is 316.
РПГ-сценарий для HoMM5: Путь героя ЧаВо по созданию карт для HoMM5: ЧаВо