Skip to content

Posts from Scripts

4.8 (8 ratings)
User Avatar
8 years ago
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?
In reply to AstralLein
User Avatar
8 years ago
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?
In reply to RedHeavenHero
User Avatar
8 years ago
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)
In reply to AstralLein
User Avatar
8 years ago
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.
8 years ago
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?
8 years ago
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
8 years ago
Auto-translated
Did you use the 3x3 level reduction brush?
User Avatar
8 years ago
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
8 years ago
Auto-translated
What should I do if the editor keeps crashing? I have a mod installed for the extended editor.
User Avatar
8 years ago
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.
In reply to RedHeavenHero
8 years ago
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
8 years ago
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.
In reply to RedHeavenHero
8 years ago
Auto-translated
Deleted, thank you, it helped.
User Avatar
8 years ago
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!

Statistics

Welcome our newest member: recijeb