I called the team using 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 location. 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.
Analyze strings??? What do you mean?
Added 2 minutes ago
For the record: the number of each object is greater than the previous one.
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4