Форум HeroesWorld-а - Показать сообщение отдельно - Скрипты
Тема: Скрипты
Показать сообщение отдельно
#232
Старый 03.12.2011, 14:15
  #232
^
Ment
 
Аватар для Ment
📖
Регистрация: 30.10.2009
Адрес: Национальный заповедник
Сообщения: 30690
Регистрация: 30.10.2009
Адрес: Национальный заповедник
Сообщения: 30690
По умолчанию
Re: Скрипты

Во втором случае первым параметром идёт имя героя, а вторым имя объекта (который тоже может быть героем). Всё как всегда.
В первом случае, кстати, всё в мануальчике есть, зря Вы так:
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.
Ment вне форума
Ответить с цитированием