Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
#730
Auto-translated
It doesn't work. It says "hero is not reserved". The hero's name is correct. I replaced the number six with one; there will only be one unit, but it doesn't even get to that point. Something is wrong here. Is it possible to start a battle with a hero who is already on the map?
.
I think the problem is with that number six. You can start a battle with a hero who is already on the map.
Дайте мне всего шесть строк, написанных рукой самого честного человека, и я найду, за что его можно повесить.
Весьма хороший попутчик... До первого перекрестка.
In reply to Его Высокопреосвященство
User Avatar
#731
Auto-translated
If something is unclear, please ask.
How do you give a monster a scripted name?
For example, monster1, etc.?
And should the text in Unicode be handled the same way as with a hero? Unzip the map, then
translate the "name" into "msg," write the desired text, and only then insert it back, re-zip it, and load the game. Then write the script you provided, right?
But what if I need more than one text?
What then?
For example, I need the hero to display a message before joining, and for a monster on the road to hint where to go next.
Thank you for your answer in advance, Winner!
----------------------------------------------
Я начинающий картостроитель.Скоро буду
выкладывать карты, когда научусь всё делать.:smile01: :smile01:
User Avatar
#732
Auto-translated
Just like you gave a scripted name to the prophet's hut. You choose a monster, and in Map Properties Three, in the Name field, enter any name. There can be as many messages as you want. I seem to have confused you with Unicode. Just use the previous algorithm for creating messages, but provide different names in a text document (msg1, msg2, msg3, etc.). Just remember to enter a different name in the script later ;). How do you make a monster indicate a path :eek:? P.S.: His Eminence, then, StartCombat is not an option after all :(. And can MakeHeroInteractWithObject be used to interact with another hero? Or does MoveHeroRealTime work for a non-computer-controlled hero?
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
#733
Auto-translated
MoveHeroRealTime is better; it works on all versions. You need to direct your hero to the cell where the enemy is located. As for MakeHeroInteractWithObject when two heroes interact, I don't know.
Дайте мне всего шесть строк, написанных рукой самого честного человека, и я найду, за что его можно повесить.
Весьма хороший попутчик... До первого перекрестка.
In reply to Победитель
User Avatar
#734
Auto-translated
How can a monster give directions???:eek:
Just so that it tells you where to go, that you'll see a castle there, take it, and defend it for a week... - This is just an example.
Don't forget to enter a different name in the script later.
Is it something like Monster2, 3, etc.???
And how will the computer understand when to display which message????
Thank you for the answer, Winner!!!
----------------------------------------------
Я начинающий картостроитель.Скоро буду
выкладывать карты, когда научусь всё делать.:smile01: :smile01:
User Avatar
#735
Auto-translated
Then, when encountering a monster (see the Ment script), a message is displayed: "Go there, take that."
And how will the game know when to display which message????
I'm saying, don't mix up the path in the MessageBox!

For example:
MessageBox("/Maps/SingleMissions/ExampleMap/msg.txt");
MessageBox("/Maps/SingleMissions/ExampleMap/msg1.txt");
MessageBox("/Maps/SingleMissions/ExampleMap/msg2.txt");
MessageBox("/Maps/SingleMissions/ExampleMap/msg3.txt");
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Дункан
User Avatar
#736
Auto-translated
Thank you all, I've figured it out. :smile03: :smile03: :smile03:

Added after 12 hours and 51 minutes
Good morning, forum visitors! I have a question: why can't I choose town names from the campaign, such as Longbow? Why can't I choose a hero from the campaign in the Dungeon? Thank you for your answer, Pobeditel!
----------------------------------------------
Я начинающий картостроитель.Скоро буду
выкладывать карты, когда научусь всё делать.:smile01: :smile01:
User Avatar
#737
Auto-translated
You can choose any name for the town; the default names only determine the bonus. No, you can't. And why would you want to? If you need a specific hero, you'll have to do it with a script.
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Победитель
User Avatar
#738
Auto-translated
If you need a specific hero or town, you'll have to do it with a script.
Okay, I need the town of Longbow and Thor Hall for the Dwarves (for the campaign).
And also the character Andreas (also for the campaign).
----------------------------------------------
Я начинающий картостроитель.Скоро буду
выкладывать карты, когда научусь всё делать.:smile01: :smile01:
User Avatar
#739
Auto-translated
The screenshot shows how to change the name of a town. Changing the specialization is done in a similar way. If you need the hero Andreas to be in a dungeon, I can't help you directly. You could create a script that teleports an existing Andreas to the dungeon (OBJECT_TOUCH_TRIGGER). That is, Andreas is already on the map, but belongs to another player (so he is not visible). When he touches the dungeon, he "changes" allegiance and teleports to it, effectively freeing himself.
Attachments 1
1 file attached • Total size: 142.9 KB
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Победитель
User Avatar
#740
Auto-translated
I figured it all out, thanks for the help. I wouldn't have thought to click on the checkbox myself, and I definitely wouldn't have thought to enter the city's name there. Also, I have another question: the quest to find the Tear of Ashi appears, and the option to build something appears as well. But I don't know how to bury it? Thanks for the answer, Winner!!!
----------------------------------------------
Я начинающий картостроитель.Скоро буду
выкладывать карты, когда научусь всё делать.:smile01: :smile01:
User Avatar
#741
Auto-translated
Find the cube among the artifacts. It seems to be called "artifact Graal." Place it on the map. If you place several, a random location will be chosen when the map is generated.
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Победитель
User Avatar
#742
Auto-translated
I managed to do it, but not completely!
I was able to place the Tear of Ascha, but I had to place an obelisk as well, otherwise it gives an error. And here's the question: why does the game kick me out when the opponent starts searching for the Tear of Ascha and approaches the first obelisk????
How can I prevent this?
My assumptions:
1) Maybe it's because there's only one obelisk?????
Thank you in advance for your answer, Winner!!!!
----------------------------------------------
Я начинающий картостроитель.Скоро буду
выкладывать карты, когда научусь всё делать.:smile01: :smile01:
User Avatar
#743
Auto-translated
An obelisk can be just one. I don't know what the error is; perhaps you should prevent the computer from searching for the Tear. To do this, select the obelisk and the Tear itself with a region and write the following script:
SetRegionBlocked(--script name of the region in quotes--, PLAYER_2, true);

For two regions, use two scripts. Do not confuse the script names.
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Победитель
User Avatar
#744
Auto-translated
It doesn't work. I installed everything correctly, but player 2 can search and dig, while I, as player 1, can't! I tried changing it to player 1 in the script, but it still doesn't work; why can only player 2 search? I need help!
----------------------------------------------
Я начинающий картостроитель.Скоро буду
выкладывать карты, когда научусь всё делать.:smile01: :smile01: