I called the team from the console, created a treasure, saw that it appeared on the map, and then checked its presence using the print command.
RedHeavenHero, so I know part of the name, everything except the large number? All that remains is to figure out if Lua can analyze the contents of strings.
The essence of the task is as follows: a treasure is generated periodically in a certain place. If the player has not yet picked up the previous one, a new one should not be generated. Accordingly, I planned to check for its presence by script name.
Or another option is to use chests: put several chests in some place on the map (in a secluded spot), assign them names. Use SetObjectPosition(sObjectName, nX, nY, nFloorID = -1) to place them in the desired location. Check by name using IsObjectExists(sObjectName). I'm sure there are other, simpler options
Пробуждение зла
Нашествие из Преисподней
Смена эпох
Скачать все кампании одним архивом: Яндекс.Диск Google.Диск
You can download the set of 3 Campaigns (English version) here
Одиночные сценарии Heroes V 3.1:
Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы
Мультиплеерные карты для Heroes V 3.1:
Легендарная война
Сердце вулкана
Передел мира