Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
In reply to Nikitatigr
User Avatar
#1594
Auto-translated
Nikitatigr
I have 2 questions about the prophet's hut:
1. Is it possible to repeat the quest?
For example: you need to bring ore to get an army. Then, after completing the quest, when you approach the prophet again, he gives you the same quest, and so on, either infinitely or up to a set limit (e.g., 3 times).
In general, it can be done like this:

q=0;

function prorokF()
if q==o then
MessageBox(...) - the message that the prophet will display
ore=GetPlayerResource(1, 1);
q=1;
end;
if q==1 then
if ore>=3 then
SetPlayerResource(1, 4, ore-3);
q=0;
Trigger(..., nil);
end;
end;
end;
Trigger(...);

something like that

to make it three times, you need to mess around with variables, but in general, it can be done; I can write it.
Мои карты:
Town
Готовится:Чума (40%), Сосиска(42%), Война Грааля
In reply to Ment
User Avatar
#1595
Auto-translated
Ment
You are using Sentences to configure it, right? You open MovePoints there and enter the final coordinates.
I couldn't find MovePoints in Sentences. Maybe it's called something else?
Мои карты:
Town
Готовится:Чума (40%), Сосиска(42%), Война Грааля
In reply to Олегарх
User Avatar
#1596
Auto-translated
Oligarch
in general, it can be done like this:

function prorokF()
MessageBox(...) - message that will be displayed by the prophet
ore=GetPlayerResource(1, 1);
q=1;
if q==1 then
if ore>=3 then
SetPlayerResource(1, 4, ore-3);
q=0;
Trigger(..., nil);
end;
end;
end;
Trigger(...);

something like that

to make it happen three times, you need to work with variables, but in general, it can be done; I can write it.

Thank you very much. Now it's clear. I don't really need it to happen three times. I thought there was a simple way, but if it's a huge script, then I can do without it.
#1598
Auto-translated
Good day!
I encountered a problem in the Map Editor! Here's the question:
How can I prevent heroes from passing through walls? I created a map with monsters, etc., but they just walk around them... it's quite disappointing.
User Avatar
#1599
Auto-translated
It’s very simple: switch from the “objects” tab to the “masks” tab. Select the brush and draw a mask in the area where heroes should not be able to pass.
 

К А
Стикеры GBF в Telegram
User Avatar
#1600
Auto-translated
I created a map; this is my first map. It seems like all the scripts are working, and everything is running smoothly, but there are some minor flaws that I don't know how to fix yet. If anyone can help and offer assistance with the map, I would be very grateful.
In reply to Ritter Elf
User Avatar
#1601
Auto-translated
Either discard the map or tell me what the errors are.
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Ritter Elf
User Avatar
#1602
Auto-translated
The winner was actually hoping you would respond:D. Please tell me how to upload it to the site, because I haven't done it before and don't know how:(, and there will be problems there: in the prophet's hut, you need to kill the assassins that are on the map, I've created the name and description, there's a reward, but I don't know how to specifically indicate that you need to kill those assassins. Also, I mixed the lake with lava and a swamp:D, and I didn't like it, but I can't remove it(((, and I also need to insert a description of the map. It shouldn't be allowed for the main hero to die, because I tried it, and he gets killed, and you can continue playing normally. And most importantly, I can't record a dialogue, like a video, but I just need to record a conversation at the beginning. So, basically, that's it. Just tell me how to upload it... Thanks in advance:)

Added 3 minutes ago
I read the topic about creating a video, the editor is extended, I go to View, then Database, then there's the GameDatabase Window, I click on the database window, and then nothing happens, the window just closes(((
User Avatar
#1603
Auto-translated
It's easy to upload to the site; go to the advanced message editing mode (button at the bottom), and you'll see the "manage attachments" button below the editing window. Click it, upload the attachment (in the case of a map, you need to archive it in zip first). Done. In the case of the hut, pay attention to "Parameters" (the line is just below Kind). Right-click on it, select Add, and enter the script name of your assassins there. Regarding the lava and swamp, use the Erase tool in the same tab where you placed the swamp and lava. Regarding the hero, the advice is the same as for the assassins, only the script name needs to be looked up differently. You need to select the hero, press the spacebar, go to Settings, and look at the contents of the Name field.
I read the topic about creating a video, the editor is expanded, I go to View, then Database, then GameDatabase Window, I click on the database window, and then nothing happens, the window just closes.
There, you should probably click New Database Window. Maybe you also need to mark it with a checkmark afterward; I don't remember.
 

К А
Стикеры GBF в Telegram
User Avatar
#1604
Auto-translated
I've added this file from Notepad to the archive; I think it's done this way...
Attachments 1
1 file attached • Total size: 55.2 KB
In reply to Ment
User Avatar
#1605
Auto-translated
Ment
Well, it's not immediately obvious, it's in the animations and under the correct animation number.
Thank you. I first add the animation using button 9, and then I simply enter the coordinates in the tree.

Added 18 hours and 28 minutes later
Oligarch
Thank you. I first add the animation using button 9, and then I simply enter the coordinates in the tree.
I can't seem to export the sound. In the extended editor, the SrcName field is not filled, and if I enter it manually, it gives an error.
Мои карты:
Town
Готовится:Чума (40%), Сосиска(42%), Война Грааля
In reply to Олегарх
User Avatar
#1606
Auto-translated
It doesn't need to be filled in! You need to provide a link to the sound file in the Complete folder when creating an object (NewObject). Then, export it. And that's it; there's no need to manually enter links, as they won't work anyway.
 

К А
Стикеры GBF в Telegram
#1607
Auto-translated
off the top of my head – how does the game know which specific assassins need to be killed? (hint – you are missing their scripted name)

you need to enter it in English; it's possible that the names of the text files also need to be in English, as the game might not be able to read Russian names...
User Avatar
#1608
Auto-translated
:D :D :D Oh my god, I'm such a loser, someone will steal my idea now!

Statistics

Welcome our newest member: Emil