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.
In the second case, the first parameter is the hero's name, and the second is the object's name (which can also be a hero). Everything is as usual. By the way, in the first case, everything is in the manual, you shouldn't have worried:
SetMonsterCourageAndMood – allows setting the monsters Courage and Mood with respect to the specified player. Syntax {{{ SetMonsterCourageAndMood( monsterName, playerID, courage, mood ) }}} Description Sets the monster’s "monsterName" attitude to the heroes of the player "playerID" to the values of "courage" and "mood". The values (also described in "HOMM5_A2_IDs_for_Scripts.pdf"): * "MONSTER_COURAGE_ALWAYS_JOIN" * "MONSTER_COURAGE_ALWAYS_FIGHT" * "MONSTER_COURAGE_CAN_FLEE_JOIN" * "MONSTER_MOOD_FRIENDLY" * "MONSTER_MOOD_AGGRESSIVE" * "MONSTER_MOOD_HOSTILE" * "MONSTER_MOOD_WILD" The meanings of the values are similar to the "Courage" and "Mood" settings for the monsters in the editor.