Skip to content

Posts from Questions about the Heroes 4 map editor.

4.7 (3 ratings)
In reply to General ZeT
User Avatar
Auto-translated
Hello! I'm too lazy to reread all the pages, so I apologize if a similar question has already been asked. Imagine this situation: There is a purple ship. How can I destroy it using scripts (triggers)? I mean not only the crew but the ship itself. I've tried the following options: 1) Battle with an invincible enemy. The ship remains empty. 2) Changing the ship to "No player" (gray color) -> Battle with an invincible enemy. The ship remains empty and gray. Options involving dynamite (I don't know if it's possible) and changing a neighboring ship to an enemy color are not acceptable. I would be very grateful for your help. I will reward you with a campaign.
Минотавр - это не миф, это - зоофилизм...
Auto-translated
Sorry if this topic has already been discussed. The question is: how do you allow a player to form alliances with enemies (the AI) and break them when creating a map? I think I've figured out the scripts, but I can't find anything about this. I've seen something similar in the excellent scenario "Korona."
In reply to Rinbor
User Avatar
Auto-translated
Alliances cannot be formed; you simply need to have a hero of a specific color (allied) from the beginning, ensuring that they are not killed (you can hide them in a corner and surround them with rocks). After a certain event, the script for that event will change the ownership of the required towns (heroes, creatures) to the color of the ally.
:smile17:
In reply to General ZeT
Auto-translated
Thanks, I'll try. :smile09:

Added after 1 hour 51 minutes
It worked, but how do I hide an ally from view in the shadows?
In reply to Rinbor
User Avatar
Auto-translated
It worked, but how do you hide an ally from view in the shadows?
It seems like there's no way to do that.


Барон
"Vampires"

Отдай свои прошлые сны,
В сомненьях себя обрети,
В бешеном танце душа кружится!
Не думай, что будет потом,
Здесь и сейчас мы живем,
Стань хоть на миг сам собой, слышишь!



In reply to Zybr
Auto-translated
Another question: when monsters are killed, my hero should receive +1 to the "dobro" variable. After he reaches 5, I would like a message to appear, but for some reason, I can't get it to display on the screen. Either I'm not adding new values to the variable correctly... if anyone has encountered this, please help:smile43:
In reply to Rinbor
User Avatar
Auto-translated
It turns out it's not as simple as it seems. Can these 5 monsters, after which the message should appear, be killed in any order, or is it predetermined which one dies first?
:smile17:
In reply to Rinbor
Auto-translated
In free order

Added 2 minutes later
And another question: how can I create a battle using a trigger event? (sorry for asking so many questions, I'm just making a map for the first time).
In reply to Rinbor
User Avatar
Auto-translated
Events -> local events -> battle


Барон
"Vampires"

Отдай свои прошлые сны,
В сомненьях себя обрети,
В бешеном танце душа кружится!
Не думай, что будет потом,
Здесь и сейчас мы живем,
Стань хоть на миг сам собой, слышишь!



Auto-translated
is it possible to do this using a local variable, or using a trigger event?

Added 37 minutes ago
Question: How to activate a trigger event if a variable reaches a certain value.

Added 1 minute ago
For example: a hero kills three guards (in any order), after which a bomb should detonate.

Added 8 minutes ago
Oh, I already figured out how. If anyone is interested, I'll give you a hint.
User Avatar
Auto-translated
Question: How to activate a trigger event if a variable reaches a specific value.
Calendar event -> repeat every day -> condition, if the variable equals "the desired number" then, sequence -> trigger event (choose the name of the desired event from the list). Remove the script. Otherwise: do nothing.
:smile17:
Auto-translated
thank you, it was a good tutorial, I understood it. but can you really not create a battle using only a trigger... or can you?

Added 3 minutes later
And another question: in the scenario, the hero encounters another hero (neutral), and that hero offers to join him. if the main hero doesn't agree, a battle begins, but if he agrees...: the player is given a red hero - and then, for some reason, a battle still starts. and you control both your hero and the newly joined hero.
User Avatar
Auto-translated
And another question: according to the scenario, the hero encounters another hero (neutral), and the latter offers to join him. If the main hero doesn't agree, a battle begins, but if he agrees...: the player receives a red hero, and then, for some reason, a battle still starts. Moreover, you control both your hero and the newly acquired one.

Well, this is a bug in the system.
:smile17:
User Avatar
Auto-translated
but you can't trigger a battle using a trigger... or can you?

Yes, you can, I don't remember the specifics, and I don't have the game to test it – but I'll tell you from memory:

In the Army property -> Events -> then there should be a category selection – choose trigger events -> new (name) -> choose battle, then this army -> enemies -> and what will happen after victory/defeat

Then, when the time comes, just place it in the appropriate location (City, army detection, local, calendar event, etc.) -> name of the event.
:smile17:
Auto-translated
Excellent, thank you. This tutorial was helpful.

Statistics

Welcome our newest member: Emil