Skip to content

Current questions and answers regarding the map editor.

User Avatar
#137
Auto-translated
How to create a script for an enemy hero so that it calculates (targets) a specified target.
You can increase the AI's interest in an object using - SetAIHeroAttractor(
objectName, heroName, priority). priority is the target priority for the AI; as I recall, it's a number.
-1 — The object's evaluation is significantly reduced.
0 — The object's evaluation remains unchanged.
1 — The object's evaluation is significantly increased. However, the AI will not risk heroes for this
object.
2 — The object's evaluation is equal to winning the game. The AI will ignore all dangers to
capture the object.

SetAIPlayerAttractor(objectName, playerID, priority). playerID is the player. This function increases the AI player's interest in an object.
Клан "Вершители Асхана" - "Masters of Ashan"

Statistics

Welcome our newest member: artem