Skip to content

Posts from Questions about the Heroes 4 map editor.

4.7 (3 ratings)
Auto-translated
2 Zhanj's Silos,

Everything is described here:
http://heroes.ag.ru/advices/Scripting_Guide/

See the section Activating triggered events.
Ваяю кампанию под HoMM4, обновленный мод Equilibris ver. 3.55 <заморожено>
User Avatar
Auto-translated
I have a question: why do they set all numerical variables to zero at the beginning of the map, when, in theory, they are all already zero?

Мои страницы:
VK, YouTube
Мои работы:
Герои Падших Крыльев, Пять Друзей Леонида, Дракон Природы, Две деревни, Неумолимый
Мои видео:
Топ-10 официальных карт Героев IV, Нюансы картостроения 1 / 2 / 3, Рейтинги карт (Оригинал / Грядущая Буря / Вихри Войны / конкурс), Странности в Героях IV
Плейлисты:
Конкурс адаптаций, Неумолимый, Баги и фишки, Редактор карт

Auto-translated
2 **nikitos palisos**,

Perhaps it's due to a lack of knowledge, or maybe the initial variable initialization is structured this way. Sometimes it can be convenient to group variables by category (portable, local, etc.). IMHO.
Ваяю кампанию под HoMM4, обновленный мод Equilibris ver. 3.55 <заморожено>
User Avatar
Auto-translated
Hello everyone! I have a question for you about something important. I'm a beginner in the map editor, but I've already figured out a lot because I'm good at programming environments and computers in general... So, here's my question regarding the 4th part of Heroes of Might and Magic - how do you make it so that when a quest is completed in the map editor, a hero joins your army? Please help and pay attention, thank you in advance!
Auto-translated
If I'm not mistaken, you need to write a script for this.
User Avatar
Auto-translated
I'm not sure, but it's very important for my campaign... besides, I played one of the campaigns (I don't remember which one, honestly), and after completing a quest, a hero joined my party as part of the scenario... if this is possible, is there any way to find out how to do it?
Auto-translated
Try experimenting with scripts. There should be instructions on how to write them in the editor's help section.
User Avatar
Auto-translated
And if I can't experiment, are there any ready-made scripts available somewhere? Any archives or something like that?

Added 3 minutes later
By the way, I just looked around and didn't find anything similar... there's a script for adding troops, but unfortunately, heroes aren't included in that part, which complicates the task...
Auto-translated
I don't know. Try contacting one of the mapmakers here. Maybe they can help.
User Avatar
Auto-translated
I need to look for it... because I just need my character to enter a "tavern," and if he has a specific hero, which I'm using as the main one, then another one is added to him, and in the next building, another one is added... and so on, about 3 of them... well, I'll go look for it, thanks anyway!
Auto-translated
Found some materials about the editor in general and scripts in particular. Take a look. You might find something useful.
http://heroes.ag.ru/advices/MapCreators_Guide/
User Avatar
Auto-translated
Quite interesting information... for some reason, it seems like I won't find the answer to my question there, but besides that, there's a lot of stuff that might be useful when creating something. Thank you very much for the information!
In reply to Nero_Best_Demon
User Avatar
Auto-translated
You place a hero near the dwelling of the seekers and write a script (for the hero, a local event if I'm not mistaken) to change the player. If anything is unclear, write in the Discord.
User Avatar
Auto-translated
Nero_Best_Demon, to change a hero's allegiance to a different color, you need to do the following: 1. In the hero's properties (the one you want to change), create a trigger event (don't forget to specify a name). Within this event, create an action called "change owner" and specify the desired color. 2. In the quest editor, either in the "Trigger Script" or "Script on Completion" section (depending on the type of quest), create an action called "trigger event" and specify the name of the event. That's all there is to it.
Наш мир полон тайн и чудес.
Многие их ищут, многим они вовсе не нужны, а многие даже не замечают их, не понимают что они вокруг нас, каждый день, везде.
А эти чудеса порой, сокрыты в обычных, привычных предметах.
User Avatar
Auto-translated
Well, I created it like this... In the task, I chose "find the house" so that I would receive an artifact as a reward for completing the task. Then, I created a trigger event in that "flagless" hero so that if my hero "has a specific artifact," he would switch to the red side (meaning my player). Unfortunately, as soon as I receive the artifact, nothing happens...

Statistics

Welcome our newest member: Emil