Форум HeroesWorld-а - Показать сообщение отдельно - Скрипты
Тема: Скрипты
Показать сообщение отдельно
#238
Старый 03.12.2011, 19:06
  #238
^
Dyrman
 
Аватар для Dyrman
📖
Регистрация: 24.06.2008
Адрес: Там, где неба кончается край
Сообщения: 3479
Отправить сообщение для  Dyrman с помощью ICQ
Регистрация: 24.06.2008
Адрес: Там, где неба кончается край
Сообщения: 3479
Отправить сообщение для  Dyrman с помощью ICQ
По умолчанию
Re: Скрипты

djulian13"Мне вот интересно: почему никто не хочет пользоваться стандартными руководствами, которые идут с игрой или же сторонними."
В официальном руководстве об этом не сказано, в новиковском тоже.
HOMM5_A2_Script_FunctionsMakeHeroInteractWithObject
MakeHeroInteractWithObject – makes the hero interact with the specified object immediately,
even if the hero is not close to the object.


Syntax

{{{
MakeHeroInteractWithObject( heroName, objectName )
}}}

Description

The hero "heroName" interacts with the object "objectName" in the moment of the
command’s execution, regardless of his current position on the map.
HOMM5_A2_Script_FunctionsSetMonsterCourageAndMood
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
Dyrman вне форума
Ответить с цитированием