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.
green belly, here are a couple of hints: The GetPlayerHeroes() function returns an array of heroes, and the GiveHeroBattleBonus() function takes the name of a single hero as its first parameter. You need to iterate through all the heroes in the array. For example, for PLAYER_2: for i, hero in hero2 do GiveHeroBattleBonus(hero, morale bonus, -3); end And so on for all opponents. The zdanie1F() function takes the name of the hero who triggered the trigger as input. This was reflected in the code that Azgalor sent you. You need to check it in HasHeroSkill(). The signs -- are comments, meaning they are not code. I advise you to look at some article about lua, it will become clearer.
Thank you, I corrected the hero names and added loops, and it worked!