Skip to content

Current questions and answers regarding the map editor.

User Avatar
#2899
Auto-translated
Jack_of_shadows
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.
The only way I see is to iterate through all integers up to, for example, 100,000. This will be long and tedious, so you won't be able to create many such treasures.
Analyze strings??? What do you mean?

Added 2 minutes ago
For the record: the number of each object is greater than the previous one.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4