Skip to content

Posts from Scripts Auto-translated

4.8 (8 ratings)
User Avatar
#2607
Auto-translated
It’s not working again. Since this dwarven structure doesn’t function when transformed into a Necropolis, regardless of its location (even in an open field), I’ll have to remove it from the red player. Or are there any other ideas?
Карты для героев 5

"Плата за любовь"
"Путь некроманта"
"Темные грани"
"Рок Гримхейма"
In reply to AstralLein
User Avatar
#2608
Auto-translated
AstralLein
It's not working again. Since this dwarven building doesn't function properly when transformed into a Necropolis, regardless of its location (even in an open field), I'll have to penalize the red player. Or are there any other ideas?
1. Build a Shielded Fortress. 2. Destroy the Shielded Fortress. 3. Place a Necropolis in its place. Have you tried that?
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
User Avatar
#2609
Auto-translated
RedHeavenHero
1. Create a Fortress.
2. Destroy the Fortress.
3. Place a Necropolis in its place.
Have you tried that?

Point 2 doesn't work. The same thing happens: the object is indestructible. The same error appears in the console.

Added after 31 seconds
Although it is definitely placed by a script.

Added after 1 minute
CreateDwelling("ddd", TOWN_FORTRESS, 1, 0, 32, 3, 0, 90)

RazeBuilding("ddd")
CreateDwelling("dddnew", TOWN_NECROMANCY, 1, 0, 32, 4, 0, 90)
Карты для героев 5

"Плата за любовь"
"Путь некроманта"
"Темные грани"
"Рок Гримхейма"
In reply to AstralLein
User Avatar
#2610
Auto-translated
AstralLein
Point 2 doesn't work. The same issue: the object is indestructible. The same error appears in the console.

Added 31 seconds later
Although it is definitely placed using a script.

Added 1 minute later
CreateDwelling("ddd", TOWN_FORTRESS, 1, 0, 32, 3, 0, 90)

RazeBuilding("ddd")
CreateDwelling("dddnew", TOWN_NECROMANCY, 1, 0, 32, 4, 0, 90)
Then, we can try another approach: modify its Shared properties to create a grid of cells that is the same as that of other level 1 buildings.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
#2612
Auto-translated
Don't you think that's a bit much? How are you supposed to kill such a powerful Lich, unless you're a Mage with Anti-Magic spells?
#2614
Auto-translated
And how do you work with the Dungeon, i.e., how do you place the terrain and then place objects on it?
User Avatar
#2617
Auto-translated
Guys:smile45:!!! I've been racking my brain for two days trying to figure out how to implement this:
I need a window with text and "yes" and "no" buttons to appear when an object is touched (in my case, a monster). Ideally, the buttons should be renamed, and depending on the choice, different functions should be executed. It's also important that this works constantly (the window should appear every time the object is touched).
If it's not too much trouble, could you share the code? Thanks.
In reply to орлан-1
#2618
Auto-translated
What should I do if the editor keeps crashing? I have a mod installed for the extended editor.
User Avatar
#2619
Auto-translated
There's a mod for an enhanced editor.
What mod are you talking about? The enhanced editor is usually enabled by changing a single number in the configuration file.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
#2620
Auto-translated
I've now removed the mod and installed the editor myself. Could the Unicorn Empire campaign have affected this?

Added 1 minute ago
Could you explain how to work with the Dungeon faction, i.e., how to create a random landscape.
In reply to Годрикова впадина
User Avatar
#2621
Auto-translated
Godric's Hollow
I've now removed the mod and installed the editor myself. Could the Unicorn Empire campaign have an impact on this?
Yes, the NCF mod, which is included in it, could have an impact.
Could you explain how to work with the dungeon, i.e., how to create a random landscape?
Check Ment's message; he has already answered your question.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#2623
Auto-translated
How can I implement this? I need a window with text and "yes" and "no" buttons to appear when an object is touched (in my case, a monster). Ideally, the buttons should be renamed. Depending on the choice, different functions should be executed, and it's important that this works constantly (the window should appear every time the object is touched). I would be very grateful for an answer!