Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
In reply to Ment
User Avatar
15 years ago
Auto-translated
Ment
Forgot to mention: the GiveHeroBattleBonus function only works in version 3.1.

GiveHeroBattleBonus didn't work, it's unclear why...:( My editor keeps crashing when I'm editing scripts, quite frequently.

I had to find a workaround using the old reliable ChangeHeroStat, even though I was told it doesn't work with negative values...:rolleyes:
In reply to внебрачная дочь Сайруса
User Avatar
15 years ago
Auto-translated
Cyrus’s illegitimate daughter
GiveHeroBattleBonus didn’t work, it’s unclear why...:(
That’s strange.
Cyrus’s illegitimate daughter
My editor crashes when editing scripts with alarming frequency.
I know that feeling. After I edit a script, it seems to make it its duty to crash. I do it like this: I start editing the script through the editor, quickly write one character there, and close it. This way, it creates a text document with the script, which I then edit in Notepad.
Cyrus’s illegitimate daughter
I had to find a workaround using the good old ChangeHeroStat, although I was told that it doesn’t work with negative values...:rolleyes:
The manual says that any integer values are allowed. But I wouldn’t do it that way, because this function, in theory, changes morale permanently. Did you call this function again after the battle, or am I mistaken about that?
 

К А
Стикеры GBF в Telegram
In reply to Ment
User Avatar
15 years ago
Auto-translated
Ment

The manual says that any integer is allowed.
I understand that there's nothing to brag about here, but I'll still say: who would even read it...:smile26:
Ment
This thing is supposed to change the morale permanently.
*rubbing hands maliciously* that's exactly what I needed:D In the story, the hero must carry his low morale as a banner, all the way to the boss.
Ment
Did you call this function again after the battle, or am I mistaken about that?
I'll even quote it: :)
function Bon()
sleep(5);
ChangeHeroStat("Dalom", STAT_MORALE, -15);
Trigger(OBJECT_TOUCH_TRIGGER,"an", nil);
end;

Trigger(OBJECT_TOUCH_TRIGGER,"an","Bon");
Started with -5, ended with -15... who knows what will happen next:smile08:
____________

And I really want to tear off the hands of whoever made this editor...
In reply to GerbIch.
15 years ago
Auto-translated
GerbIch.
Hello everyone, fans of Heroes 5!)) I have a question. I want to create my own campaign, but when I try to add a map to the campaign list, the "Create Company" function doesn't recognize it; it's not in the dropdown list. The map is a single-player map with a quest, and it works – meaning I can enter and play it in the game's scenarios. What do I need to do for the campaign editor to recognize my map? Please help!
Can you tell me what the problem is?
User Avatar
15 years ago
Auto-translated
:smile39: :smile05: Guys, help me, please! My created maps aren't working... It displays a "map problem" message, and the map isn't saved... In the end, I fixed everything I had problems with, the map appeared in the menu, but the "start" button doesn't appear in the main menu, and the map itself isn't visible... instead, there's a black screen...
In reply to Freepizza
User Avatar
15 years ago
Auto-translated
This happens if you only have one player on the map or if there are no main quests (as far as I know). Try checking these points, and if that doesn't work, post the map here, and I'll take a look when I have some free time.
 

К А
Стикеры GBF в Telegram
15 years ago
Auto-translated
Hello everyone. Is it possible to make it so that alternative upgrades are not available in cities?
In reply to Ment
15 years ago
Auto-translated
Basically, I understand that no one here knows how to create campaigns:smile07:
User Avatar
15 years ago
Auto-translated
Gera, try downloading someone else's campaign, opening it with WinRAR, navigating to UserCampaigns[campaign name]\, opening campaign.xdb with Notepad, and changing the mission names, bonuses, and other details to your own. It's an inconvenient method, but I don't know any other way to help you.
 

К А
Стикеры GBF в Telegram
15 years ago
Auto-translated
Ment, great! Thanks, everything works! One more question: is it possible to reduce/increase the movement range of all heroes on a map by, say, 15%? And is it possible to set the computer's difficulty level directly in the map, i.e., give it a little more intelligence?
In reply to нонстоп
User Avatar
15 years ago
Auto-translated
nonstop
Ment, great! Thanks, everything works! Another question: is it possible to reduce/increase the movement range of all heroes on the map, let's say by 15%? And is it possible to set the computer difficulty directly in the map, i.e., give it a little more intelligence?
I'll answer the second question right away: this mod will help. http://all4heroes.net/node/435
The first one is a bit more complicated. You can do it like this: ChangeHeroStat([hero name], 7, 10). That is, we give the hero 10 movement points (I don't know, honestly, if that's a lot). And to apply it to everyone permanently by 15%... You can use a tricky loop that iterates through all the heroes. But I'll think about it and get back to you.
 

К А
Стикеры GBF в Telegram
User Avatar
15 years ago
Auto-translated
I have a question: is it possible to set up a daily spawn of units in cities, and also, just in case, in simple dwellings?
User Avatar
15 years ago
Auto-translated
Does "spawn" mean an increase in units? It can't be done using the editor/mods. But you can write a script so that creatures appear in the city's garrison, and money is taken from the player.
 

К А
Стикеры GBF в Telegram
User Avatar
15 years ago
Auto-translated
Oh! Yes, that works too...

Statistics

Welcome our newest member: recijeb