Skip to content

Current questions and answers regarding the map editor.

User Avatar
#1055
Auto-translated
Good day, I have a few questions:

1. Is there a function that can determine whether a hero is controlled by a player or AI? (For example, for multiplayer maps, so that if playing against the AI, it would be possible to additionally instruct the behavior of the AI heroes using scripts).
2. Can anyone provide an example (briefly) of how to use scripts to change the "amount" of creature growth in buildings (non-city buildings)?
3. Is it possible to express a function through a script so that the following happens: the player enters a battle for a castle, captures it, and if certain n conditions are met, then immediately receives a random hero "from the city's roster." Is this possible? ;)