Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
User Avatar
13 years ago
Auto-translated
This function is only available for transforming into Necropolis. Otherwise, I'm afraid you'll have to resort to some rather unconventional methods.
13 years ago
Auto-translated
Here is a function that changes the town type: TransformTown(townName, townTypeID)
townTypeID - the type of the new town. By the way, using this function, you can first change the town type to Haven and then destroy it.
In reply to Mostovik
13 years ago
Auto-translated
I managed to change the city, but how do I destroy it? Maybe a specific ID is needed? Could you please advise?
13 years ago
Auto-translated
want to destroy a town - do it like this:
TransformTown('town', 0)
RazeTown('town')
13 years ago
Auto-translated
The city changes, but it doesn't collapse. It remains a human settlement. Here's the script: function susha(heroname) OpenCircleFog(8, 25, 0, 20, 1); TransformTown("sts1", 0); RazeTown("sts1"); Trigger(OBJECT_TOUCH_TRIGGER, "musha2", nil); end; Trigger(OBJECT_TOUCH_TRIGGER, "musha2", "susha"); The map opens, the city transforms, but it doesn't turn into anything and doesn't collapse.
13 years ago
Auto-translated
and if
TransformTown('town', 0)
sleep(5)
RazeTown('town')
or
TransformTown('town', 5)
sleep(5)
RazeTown('town')
or
TransformTown('town', 0)
sleep(5)
RazeBuilding('town')
?
13 years ago
Auto-translated
I'll test it out now.

1. +
2. +
3. +

Thank you very much.
Now I need to figure out how to destroy/raze other towns, as well as buildings with creatures.
13 years ago
Auto-translated
to see the ruined cities of other factions, you need their models (they don't exist in the original game), and in the editor, you need to specify the path to the model in the corresponding graph...
KioM already wrote about this.
13 years ago
Auto-translated
And what if they simply disappeared from the map? Wouldn't that require a model? Is it possible to implement this, or would it not work?
13 years ago
Auto-translated
you can use it as a model for a ruined city, for example, a log or a stone. But it won't be possible to place a hero on the former outline of the city (a circle with a radius of 6).
If the methods mentioned above don't work, then I don't know any other solutions.
In reply to Mostovik
User Avatar
13 years ago
Auto-translated
Mostovik
you can use it as a model for a ruined city, for example, a log or a stone. But it won't be possible to position a hero on the former outline of the city (a circle with a radius of 6).
If the methods mentioned above don't work, then I don't know any more.

It will work when the destruction of the city actually changes one object (a city with blocked tiles, which is what you were talking about) to another, where the tiles don't need to be blocked. If there is no model in the new object, and the tiles are not defined, then after the city is destroyed, the game will leave an empty space where the hero can move.
In reply to KioM
13 years ago
Auto-translated
I edited the campaign, deleted the castles, and placed new random ones. But during gameplay, it's not possible to place an enemy castle or choose a hero for myself. How can I fix this?
13 years ago
Auto-translated
What is the name of the Wing and Haven skill in the map editor?
User Avatar
13 years ago
Винг: HERO_SPEC_WAYLAYER
Анвэн: HERO_SPEC_FOREST_GUARDIAN
In reply to iBodik
User Avatar
13 years ago
Auto-translated
iBodik
What is the name of Wing and Haven's skill in the map editor?
You can see all of them by selecting the corresponding hero. ;)

Attachments 1
1 file attached • Total size: 152.0 KB

Statistics

Welcome our newest member: recijeb