Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
User Avatar
#745
Auto-translated
1 player – who is that? If you are playing as the first player and have set `SetRegionBlocked` to 1, then, of course, you cannot enter the region. If you set the block to the second player, and you are also playing as the second player, the situation is the same. There is definitely an error somewhere.
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Победитель
User Avatar
#746
Auto-translated
No, I did everything correctly, but nothing worked! Maybe the script is incorrect? I named the regions "reg" and "reg1", and the script turned out like this:
SetRegionBlocked("reg", PLAYER_2, true);
SetRegionBlocked("reg1", PLAYER_2, true);
If everything is correct, could you, Winner, share your map with an example, in case I missed something? P.S. - I'm playing as player 1! And the computer is player 2! I can't find the Tear, but the computer can!
----------------------------------------------
Я начинающий картостроитель.Скоро буду
выкладывать карты, когда научусь всё делать.:smile01: :smile01:
User Avatar
#747
Auto-translated
Ah, I finally found one mistake. It should be: ```
SetRegionBlocked("reg", true, PLAYER_2);
SetRegionBlocked("reg1", true, PLAYER_2);
``` An example is in the attachments.
Attachments 1
1 file attached • Total size: 17.6 KB
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Победитель
User Avatar
#748
Auto-translated
Everything is working now:smile01: :smile01: :smile01:
I have a question for Winner: can you explain how you achieved that in the example, so that the game ends not with the player's (blue) defeat, but with the construction of the Tear of Ascha in the city? I couldn't find anything in the scripts except for a script that prevents the second player from entering the territory with the obelisk and searching for the Tear.
P.S. I remember you showing it somehow, but honestly, I didn't quite manage to replicate it completely, like with attacking the enemy army (in the tasks).
My request is, if you know how to do it exactly, please resend the screenshots because I didn't fully understand it the first time.
Thank you very much, Winner!!!!
----------------------------------------------
Я начинающий картостроитель.Скоро буду
выкладывать карты, когда научусь всё делать.:smile01: :smile01:
User Avatar
#749
Auto-translated
I set up a task where you need to build the Tear of Ashi in the city. Just take a look at the objectives tab in Map Properties Three in the map that I uploaded in the previous post.
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Победитель
User Avatar
#750
Auto-translated
I watched, and it worked for me, but how do I make it so that the quest at the beginning of the game says to find and build the Tear of Ashi? P.S. You showed it, but there was clearly an error somewhere. I did everything according to the screenshots, but it didn't work! Please provide new screenshots or your map so I can take a look. Thank you, Winner!!!
----------------------------------------------
Я начинающий картостроитель.Скоро буду
выкладывать карты, когда научусь всё делать.:smile01: :smile01:
User Avatar
#751
Auto-translated
Do it the same way as shown. Try it on the map I sent you. Find the task, click 'Edit', enter the desired text, 'OK'. It should look like the screenshot ;).
Attachments 1
1 file attached • Total size: 76.9 KB
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
#752
Auto-translated
Please help! I don't understand anything about scripts. I have two questions: 1) How can I make it so that units are available for recruitment in a city (where buildings have been constructed) from the very first day, for example, a 2-week army (specifically, for recruitment, not just their presence in the garrison)? 2) How can I set the resources available from the first day, for example, 250,000 gold, 45 wood, etc.? Thank you in advance!
User Avatar
#753
Auto-translated
Both can be done using scripts. I don't know about the first one. The second one is done like this:
SetPlayerResource(PLAYER_1, GOLD,10000);
And so on. By the way, the answer to this question was already in this thread ;). P.S.: Regarding the first one - I saw something similar in the map "Tactical Arena". Try searching there.
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Победитель
User Avatar
#754
Auto-translated
Winner, I managed to win, but the question is why the description at the top says "Exemple Map" if I renamed it to "example"! And why does the information say "this is a simple example map" instead of "Custom Map"? Why is the old name still there in the tasks? How can I change it? And also, why does it say "Kill'em all" at the top before "Find the Tear of Ash"? Here is a screenshot: Question 2. Why can't I choose a character when I start playing, and why can't I choose a faction or character for the opponent? Or is there a script I need? (If so, please write it)! Here is a screenshot: and here: Please answer 2 questions, Winner!
----------------------------------------------
Я начинающий картостроитель.Скоро буду
выкладывать карты, когда научусь всё делать.:smile01: :smile01:
User Avatar
#755
Auto-translated
Answer 1.
In MapPropertiesThree, find the ScenarioInformation tab, which is located just above Objectives. Open it, then select 0. Next, fill it in as a task: in Caption, enter the map name, and in Description, enter the description. The Edit button will be useful here.
Answer 2.
In the Properties Tree, find the players tab. There, configure it so that it is approximately as shown in the screenshot of tabs 0 and 1. For the ability to choose a hero at the start, HeroInTown should be true; I'm not sure about the town. It works for me.
Attachments 1
1 file attached • Total size: 223.9 KB
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Победитель
User Avatar
#756
Auto-translated
Thank you very much, I'll try to figure it out. If something doesn't work, I'll write on the forum. :o :o :o

Added 54 minutes later
Well, in principle, I learned what I wanted!
But I can't choose the opponent's race, and I can't choose the opponent's character either. Here, look at the screenshot:

And another question: remember, Winner, you told me about the Tear of Ash. How do I make it so that the game continues even when the opponents are destroyed? So, now I have this question: how do I revert it? I don't always need to search for the Tear, but I've tried everything, and it doesn't work!
Thank you in advance for your answer!
----------------------------------------------
Я начинающий картостроитель.Скоро буду
выкладывать карты, когда научусь всё делать.:smile01: :smile01:
User Avatar
#757
Auto-translated
Make the second player controllable by a human. And one important question: is the map for single-player or multiplayer?

Simply change the quest type from BUILD_GRAAL to DEFEAT_ALL.
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Победитель
User Avatar
#758
Auto-translated
Answer #1
The map is for single-player mode.
Answer #2
Thank you, I fixed everything, now it works, and the mission is completed when all enemies are defeated!
----------------------------------------------
Я начинающий картостроитель.Скоро буду
выкладывать карты, когда научусь всё делать.:smile01: :smile01:
#759
Auto-translated
So, is the map ready? Please don't delay posting it... I'm getting bored.
Дайте мне всего шесть строк, написанных рукой самого честного человека, и я найду, за что его можно повесить.
Весьма хороший попутчик... До первого перекрестка.

Statistics

Welcome our newest member: artem