Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
User Avatar
13 years ago
Auto-translated
Besides the official manual, you can find some guides in our file archive, even in Russian.
 

К А
Стикеры GBF в Telegram
User Avatar
13 years ago
Auto-translated
The HOMM5_Scripts_Functions file contains ALL scripts available for your game version.
502 Bad Gateway
__________________________________
nginx/0.8.54
User Avatar
13 years ago
Auto-translated
Hello everyone, I have a question: is the extended version available for the editor in the Fortress faction? And another thing: I started learning the editor in the original Heroes game, where the monster dwellings were in the "All Objects" section. Now I'm working in the editor for the Fortress faction, and those dwellings are no longer in the "All Objects" section. Where did they go? Also, is there a forum thread on creating quests, both through scripts and without them?
User Avatar
13 years ago
Auto-translated
How can I make a text message appear when a hero enters a specific area of the map? How do I create quests? I didn't understand how to do it in the manual.
User Avatar
13 years ago
Auto-translated
Agrael_Inferno_Demon, use Trigger(REGION_ENTER_AND
_STOP_TRIGGER,"region name","function name"); and MesssageBox("path to the text file");
In general, it should look like this:
function function name()
MessageBox("/Maps/SingleMissions/your map name/text name");
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER,"region name","function name");
And also:
Do not start function names with numbers.
For convenience, when using MessageBox, you can replace the entire path to the file with GetMapDataPath().."file name" when specifying the path. This is convenient because if you rename the map, the path will become invalid.
Place the text file with the message in the map. You can open the map using a zip archiver. Also, the file should be in Unicode format and in .txt format.
User Avatar
13 years ago
Auto-translated
Hello! I recently started learning how to use the map editor. I read the map editor manual. How do I write a script that displays a text message?
In reply to Demilich_of_Necropolis
User Avatar
13 years ago
Auto-translated
Kid, you should at least read the thread a bit. Above, in my post, I described this situation in quite detail. Also, if you're interested, take a look in the file archive; there are a couple of documents with information on this topic.
User Avatar
13 years ago
Auto-translated
Should the text message file be in Unicode or txt format?
In reply to Demilich_of_Necropolis
User Avatar
13 years ago
Auto-translated
Demilich_of_Necropolis
Should the file with the text message be in Unicode or txt format?
The txt format, Unicode encoding.
Мои карты:
Town
Готовится:Чума (40%), Сосиска(42%), Война Грааля
User Avatar
13 years ago
Auto-translated
Is it possible to download the map editor separately for the Orcs add-on without downloading the add-on itself?


Added 3 minutes later
I have a question: how can I use scripts to remove an object, such as a tree or a peasant's house?
In reply to Radionich
User Avatar
13 years ago
Auto-translated
Radionich
Is it possible to download the map editor separately for the add-on featuring orcs, without downloading the add-on itself?

Added 25 minutes later
Can scripts be used to remove objects from the map, such as trees?

Added 3 minutes later
I have a question: how can I use scripts to remove an object, such as a tree or a peasant's house?
1) Yes, you can, but it won't work.

2) RemoveObject("script name of the object")
The object's IsRemovable parameter must be true.
For dwellings - RazeBuilding('script name of the dwelling')
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
13 years ago
Auto-translated
Thank you so much, you've helped me out again. Here's a little something for you.
13 years ago
Auto-translated
Good day.
I have two problems:
1) I'm doing a quest: kill a specific hero. And I'm setting the reward to 35 Imps (i.e., creatures). When I kill this hero, a message appears: quest completed. But the creatures are not given. What could be the problem? Should I provide some screenshots?
2) I can't write scripts. The editor crashes immediately. Is there any way to bypass this? Or can I do without scripts?
Thank you in advance.
User Avatar
13 years ago
Auto-translated
Hello everyone, I have a question. When you change attack, knowledge, etc., and set everything to zero, the hero still has 1 point in knowledge and magic in the game. How can I fix this so that everything is set to zero?

Added after 2 hours and 6 minutes
And another question: when creating a quest through the map editor, in the section where you write what needs to be done (I think it's called "kind"), is there a value that allows the hero to reach a specific region?
User Avatar
13 years ago
Auto-translated
Slovenec:

1) AddHeroCreature ('heroname' , 15, 35)

2) Download the special program. It's called HoMM5MapScriptsEditor.

Radionich:

1) I don't know. I wouldn't recommend anything lower than 1. You can try manually through the editor. Or through scripts. ChangeHeroStat('heroname' , stat_id (numbers from 0 to 8) , 0)

2) I don't think so. It's better to try through a script.
Trigger(REGION_ENTER_AND_STOP_TRIGGER , 'trigger name' , 'function name')

function function name (heroname)
if heroname == 'heroname' (hero name) then
--now the check has triggered, identifying which hero entered the region. Write whatever you want here. If you need to complete a quest:
SetObjectiveState ('objname' , OBJECTIVE_COMPLETED)
Trigger(REGION_ENTER_AND_STOP_TRIGGER , 'trigger name' , nil)
end
end

Whatever

Statistics

Welcome our newest member: recijeb