1) How do I raise a number to a power? n ^ 2 doesn't seem to work...
2) How do I select a hero? In the sense that, for example, a player has 8 heroes, and I need one of them to be "clicked" as if with the left mouse button. Simply deleting 7 of them afterwards, and it's impossible to select the last one by default at the start of the game (or make it the first one).
3) Does GetDate(ABSOLUTE_DAY) return any current day of the game? (1, 2,...101, 192)?
4) What does GetDate(WEEK) return? It seemed to me that it goes in a circle, increasing to a larger number, and then starts again from 1 (or am I wrong?)
5) What will happen if I try to force a hero to learn a spell that he cannot learn due to a low skill level? (Will he be able to cast it?)
6) Will there be a map error due to point 5, or if I try to force a human to learn an orcish spell/vice versa?
2) It's not possible. Make the player not click on a hero, but instead enter some region.
3) Yes.
4) Up to 4. You can find the week from the beginning of the game like this: ceil(GetDate(DAY) / 7)
5) He will learn it and use it.
6) Battle cries are only for orcs, spells are only for the rest.
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4