Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
In reply to RedHeavenHero
User Avatar
#3494
Auto-translated
RedHeavenHero

That's good, because sometimes people ask to find artifacts of Sar-Elam (instead of artifacts of Sar-Issa, and Sar-Ilam is not spelled that way), and it's unclear what to look for. Or something like that.

Yes, I remember that).
Кампании для Heroes V 3.1 (Трилогия):

Пробуждение зла
Нашествие из Преисподней
Смена эпох

Скачать все кампании одним архивом: Яндекс.Диск Google.Диск

You can download the set of 3 Campaigns (English version) here


Одиночные сценарии Heroes V 3.1:


Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы

Мультиплеерные карты для Heroes V 3.1:

Легендарная война
Сердце вулкана
Передел мира
In reply to Heroist
User Avatar
#3495
Auto-translated
Heroist
Actually, it's Sar-Elam and Eltrat. Later, everything was "correctly" translated.
I'm just talking about the official translation, including what's used in Heroes 6, and Elrath is called Elrath even in the game's resources.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
User Avatar
#3496
Auto-translated
RedHeavenHero
I'm just talking about the official translation, including what's used in Heroes 6, while Elrath is called Elrath even in the game's resources.

I suspect an Englishman will read Elrath as Ilrath, and an American as Elrath. It's like replacing Dr. Watson with Dr. Watsson. Everyone is already used to Elrath).
Кампании для Heroes V 3.1 (Трилогия):

Пробуждение зла
Нашествие из Преисподней
Смена эпох

Скачать все кампании одним архивом: Яндекс.Диск Google.Диск

You can download the set of 3 Campaigns (English version) here


Одиночные сценарии Heroes V 3.1:


Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы

Мультиплеерные карты для Heroes V 3.1:

Легендарная война
Сердце вулкана
Передел мира
User Avatar
#3497
Auto-translated
For me, he will always be Elrath...

Whatever
User Avatar
#3498
Auto-translated
Good evening. In the 4th installment of Heroes, there was a feature where creatures on the map would chase after heroes if they were within a 6-tile movement range. Is it possible to implement a similar script for creatures with the script name mummy01 (-mummy51)?
(*I apologize for the repetition).
Правило во взгляде...
User Avatar
#3499
Auto-translated
It won't be possible to move creatures. I see two options for how to do it differently.
The first option is simpler. Automatically start a battle with the creatures on the computer's turn if your hero is close enough to them at that time. Plus, display a message, for example, "You have been spotted and attacked!" Something like that.
The second option is a bit more complex. Create another player and give them heroes that look like neutral monsters on the map; the hero is not visible in battle, only the army. However, you'll also have to come up with something to prevent them from taking turns in battle; I don't know how to do that yet. But otherwise... it's a regular hero. They are inactive when no one is nearby. Someone is nearby => they activate and try to catch up (their movement range is smaller than that of regular heroes). The opponent ran away? They deactivate again. That's the idea.
 

К А
Стикеры GBF в Telegram
In reply to Ment
User Avatar
#3500
Auto-translated
Here’s another unfinished project from Nival. Maybe it will inspire someone.
Attachments 1
1 file attached • Total size: 235.7 KB
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#3501
Auto-translated
Ment, well, I wanted to create a small inconvenience for the player: he travels through the desert, and if the hero stops within 6 squares of a monster and ends his turn, the monster will attack him.
Правило во взгляде...
User Avatar
#3502
Auto-translated
Understood. Then it's easier to just create an aggro script...
while true do
  if GetCurrentPlayer()>1 then
    if ((GetObjectPosition("hero name to be attacked")-GetObjectPosition("monster name that will attack"))<7) then
      MakeHeroInteractWithObject("hero name","monster name");
    end;
    if ((GetObjectPosition("hero name to be attacked")-GetObjectPosition("another monster name"))<7) then
      MakeHeroInteractWithObject("hero name","second monster name");
    end;
    ...
    ...
  end;
  sleep(1);
end;
 

К А
Стикеры GBF в Telegram
User Avatar
#3503
Auto-translated
Rhenish, if simplified to the extreme, without animations and monster movements, it would be something like this:
Trigger(NEW_DAY_TRIGGER, 'NewDay');

-- here we list all the monsters that can attack
attacking_mummy_array = {'mummy01', 'mummy02'};

function NewDay()
  if(not IsObjectExists('HERO_NAME')) then return end
  local hero_x, hero_y, hero_f = GetObjectPosition('HERO_NAME');
  for i, mummy in attacking_mummy_array do
    if(IsObjectExists(mummy)) then
      local monster_x, monster_y, monster_f = GetObjectPosition(mummy);
      local diff_x = hero_x - monster_x;
      local diff_y = hero_y - monster_y;

      if( (sqrt((diff_x * diff_x) + (diff_y * diff_y)) <= 6) and (hero_f == monster_f)) then
        MakeHeroInteractWithObject('HERO_NAME', mummy);
        break
      end
    end
  end
end
upd: Oops, I was late with the advice. upd: Added a check for existence.
User Avatar
#3505
Auto-translated
It would be nice to add a check for the existence of a monster on the map.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#3506
Auto-translated
RedHeavenHero, yes, I've added it. Ideally, non-existent monsters should also be removed from the array.
User Avatar
#3507
Auto-translated
if(IsObjectExists(mummy)) dothen it should be done.
Ideally, non-existent monsters should also be removed from the array.
It won't hinder much.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#3508
Auto-translated
Oh, could you provide the complete code? I'm not very good at this, and I'd like it to include animation.
Правило во взгляде...