Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
In reply to Дункан
User Avatar
#685
Auto-translated
Duncan
Now, the question is, how do I implement this with a script????
It's not just about writing OBJECTIVE_ACTIVE, right??? Is that correct?
I would set a trigger on touching the shipyard (disable the shipyard itself). Then, a window pops up (Cancel/OK), just like when you normally visit the shipyard. When you click OK, resources are deducted (I don't know how), the object-ship with a scripted name is moved, and the "Build a ship" quest is completed. If this option suits you, I'll try to write the script.

To do this, give the shipyard a name ('Name' in the properties tree), place a ship on the map, and also give it a name. Write both names here.
Duncan
That's exactly the problem – I've already figured out everything, but I don't know how to do most of it!!! So, if you don't mind, I'll ask you questions so that later I can explain and help others, just like you're doing now!
You'd better explain what should be in the script part. That is, the hero goes there, does something, and we reward him by completing the quest/mission. And so on.
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Победитель
User Avatar
#686
Auto-translated
Thank you very much, but it's not necessary!
I haven't even started working on it yet, so it can be changed...
And did you know that you can simply make the first map's objective "kill everyone"? :smile45:
And in the third map, after "capture a city in 1 week," do you know how to make it so that "visit the prophet" and "find the Tear of Ashi" still work?
Thank you for your answer.
----------------------------------------------
Я начинающий картостроитель.Скоро буду
выкладывать карты, когда научусь всё делать.:smile01: :smile01:
User Avatar
#687
Auto-translated
Finding the Tear of Ash seems to be on the list of quest types. That is, it's an automated quest. I'll check it out now. The Prophet is only triggered with scripts.

Yes, I found it (see screenshots). Here, you not only need to find the Tear, but also build it. Will that work?
Attachments 4
4 files attached • Total size: 488.5 KB
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Победитель
User Avatar
#688
Auto-translated
And a seemingly simple task in standard maps: "defeat everyone"? Do you know how to create it with scripts so that it also works? And please provide a script for the prophet's hut. I thank you in advance!:o :o :o

Added after 6 minutes
Of course, it will work, thank you very much)
I don't even know how to thank you.
----------------------------------------------
Я начинающий картостроитель.Скоро буду
выкладывать карты, когда научусь всё делать.:smile01: :smile01:
In reply to Дункан
User Avatar
#689
Auto-translated
Duncan
And a seemingly simple task in standard maps: "defeat everyone"??? Do you know how to create it with scripts so that it also works?
And please provide a script for the prophet's hut.
I'm saying thank you in advance!:o :o :o
"Defeat everyone" - just rename it to "Killem all." It doesn't require scripts; it works as is. But when this task is completed, it triggers an autowin.

As for the script for the hut... Let's try now.

Name the hut "hut" (script name), and the quest "sobj" (script name). The quest is "visit the hut." Then the following code will work:

SetObjectEnabled('hut', false);

function sobjend(hero);
if hero== --script name of your hero-- then
SetObjectiveState('sobj', OBJECTIVE_COMPLETED);
end;
Trigger(OBJECT_TOUCH_TRIGGER, 'hut', nil);
end;
Trigger(OBJECT_TOUCH_TRIGGER, 'hut', 'sobjend', nil);

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

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Победитель
User Avatar
#690
Auto-translated
But completing this task results in an autowin.
What does autowin mean????
Name the hut "hut" (script name), and the quest "sobj" (script name).
How do I rename the hut??? (If possible, please provide a screenshot).
And should the quest be written in 'CaptureFileRef' and 'DescriptionFileRef'???
Thank you for your answer.
----------------------------------------------
Я начинающий картостроитель.Скоро буду
выкладывать карты, когда научусь всё делать.:smile01: :smile01:
In reply to Дункан
User Avatar
#691
Auto-translated
Duncan
What does "autowin" mean????

How do you rename a hut??? (If possible, please provide a screenshot).
And should the task be written in 'CaptureFileRef' and 'DescriptionFileRef'???
Thank you for your answer.
Win means victory. I.e., automatic victory.

In 'Capture', it should say "Visit the prophet" or something similar. Look at the previous screenshots where the 'New' button is;).

And sobj is in the 'Name' tab.

New screenshots with explanations on where to enter script names :).
Attachments 2
2 files attached • Total size: 268.8 KB
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Победитель
User Avatar
#692
Auto-translated
It's strange, I think I did everything correctly, but nothing happens when I approach the hut; it just says "tasks updated," but there's no "tasks completed" message! I don't know what's wrong; maybe the script is incorrect, or maybe I missed something? Okay, I'll manage and capture the city in one week! Also, how can I create a task that requires defeating an enemy hero? Thank you for your answer.
----------------------------------------------
Я начинающий картостроитель.Скоро буду
выкладывать карты, когда научусь всё делать.:smile01: :smile01:
User Avatar
#693
Auto-translated
So, is that how it should be executed? Then, instead of OBJECTIVE_ACTIVE in the script, write OBJECTIVE_COMPLETED;).

And to complete the task upon defeating a hero, select the 'DEFEAT_HERO' type (screenshot).
Attachments 1
1 file attached • Total size: 189.9 KB
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Победитель
User Avatar
#694
Auto-translated
It says OBJECTIVE_COMPLETED in the code! It doesn't work for me, no matter what I try! I don't know why!
SetObjectEnabled('hut', false);

function sobjend(hero);
if hero== --script name of your hero-- then
SetObjectiveState('sobj', OBJECTIVE_COMPLETED);
end;
Trigger(OBJECT_TOUCH_TRIGGER, 'hut', nil);
end;
Trigger(OBJECT_TOUCH_TRIGGER, 'hut', 'sobjend', nil);


Added 8 minutes later
And to complete the quest after defeating a hero, choose 'DEFEAT_HERO' in the type.
I chose it, but it doesn't work. :mad: :mad:
----------------------------------------------
Я начинающий картостроитель.Скоро буду
выкладывать карты, когда научусь всё делать.:smile01: :smile01:
User Avatar
#695
Auto-translated
You --script name of your hero-- have completed it?
The "Choose" option doesn't work.
I apologize, you also need to specify the target – who to kill ;). I'll test it in my map, and tomorrow I'll explain it in the screenshots, okay?
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
#696
Auto-translated
Dear mapmakers, please tell me what to do so that the editor can see the maps when creating a campaign. I have the Heroes of Might and Magic III: The Restoration of Erathia version 3.1. I specifically downloaded single-player maps from different versions, starting from the original and ending with maps for the Restoration of Erathia, and put everything in the maps folder, but the editor stubbornly refuses to show me anything in the drop-down list when adding a mission to the campaign. Help.

Added 8 minutes later
And a separate question for those who know. Tell me, is a created Heroes of Might and Magic map considered a single-player or multiplayer map? Or is it in a separate category called "created Heroes of Might and Magic map"? In any case, there is a checkbox for this in the game. And if it's multiplayer or a Heroes of Might and Magic map, what and where do I need to change so that it becomes a single-player map? Thank you in advance.
User Avatar
#697
Auto-translated
"rmg" - is it a random map generator? It only creates multiplayer maps. They won't work in single-player. Does the editor recognize these maps at all? I mean, if you just try to open them, without a campaign?
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
#698
Auto-translated
yes, RMG is a random map generator.
"simply open" naturally opens it.
somewhere in the depths of the parameters, which can be edited in Notepad, there must be something that, when changed, can make them single-player.
but that's secondary.

First, the primary question is why the editor refuses to recognize even initially single-player maps when creating a campaign - the drop-down list is stubbornly empty. Accordingly, I have no way to create a campaign.
In reply to aleksnice
User Avatar
#699
Auto-translated
aleksnice
Yes, RMG is a random map generator.
"Just open" naturally opens it.
Somewhere in the depths of the parameters, which can be edited in Notepad, there must be something that, when changed, can make them single-player.
But that's secondary.

First, the primary question is that even initially single-player maps, the editor refuses to see when creating a campaign - the drop-down list is stubbornly empty. Accordingly, I have no way to create a campaign.
I checked the editor, and the list of maps to choose from for the campaign is not empty, but it doesn't contain all the maps that are there. Perhaps the campaign editor needs some condition for a map to be added to the campaign.

How can you play multiplayer maps as single-player? However, I have one option for this. Find your multiplayer map in the Maps folder, open it with an archiver, open the 'Maps' folder, and rename 'Multiplayer' to 'SingleMissions'. But how it will work...
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"

Statistics

Welcome our newest member: leyu