Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
User Avatar
8 years ago
Auto-translated
Is there a table available somewhere that shows the experience required to reach each level?
User Avatar
8 years ago
Auto-translated
Godric's Hollow, this was also in the FAQ, under the question "How to remove a specific object from the map?".

Interested, in the game folder there is Editor Documentation/HOMM5_Hero_Level_and_Experience.pdf.
User Avatar
8 years ago
Auto-translated
Okay, thank you.
User Avatar
8 years ago
Auto-translated
Hello. I have a couple of questions that I would like to ask.
1) How can I make it so that the mission fails when the hero dies?
2) Is it possible to make a creature on the map float in the air?
3) I created a dialogue. In the game, all the monsters are fighting, everything is going well... BUT in the cutscene, all the text simply disappears. Names, the text that the heroes say... What should I do?
4) How can I make it so that when entering a specific region, the castle is transferred to the ownership of my hero?
In reply to azazel.exe
User Avatar
8 years ago
Auto-translated
azazel.exe
Hello. I have a couple of questions that I would like to ask.
1) How do I make it so that the mission fails when the hero dies?
2) Is it possible to make a creature on the map float in the air?

4) How do I make it so that when entering a specific region, the castle transitions to my hero's ownership?

1) In one of the tasks, select HERO_MUST_SURVIVE (or something similar), then the parameter (script, hero name).
2) I don't think so, but try specifying z in Position(pos).
4) Place a trigger on the region that calls a function with a script: SetObjectOwner("(Object Name)", (player number));

function TownNewOwner()
SetObjectOwner("Object Name", Player Number);
end
Trigger(type, "region name", "TownNewOwner")
In reply to DarkLordax
8 years ago
Auto-translated
By any chance, could you suggest a script that I'm not aware of yet? When a specific hero picks up artifact X, they gain 5 spells and 5 knowledge points, and another specific hero gains 5 attack and 5 defense points. I have some ideas about this, but how do I calculate the cell where the heroes are located so that I can cast the "Divine Power" spell on them?
User Avatar
8 years ago
Auto-translated
How to calculate the coordinates of the cell where the heroes are located.
x, y, f = GetObjectPosition(HERO_NAME);
In reply to Jack_of_shadows
8 years ago
Auto-translated
Thank you, now I know some very useful information that I will use. And could you help me with a script that adds stats when touching a Chaos magic item?
User Avatar
8 years ago
Auto-translated
Godric's Hollow, attach it to the artifact using OBJECT_TOUCH_TRIGGER and add stats using ChangeHeroStat().
In reply to Jack_of_shadows
8 years ago
Auto-translated
Could you provide more details on how to work with ChangeHeroStat()? Specifically, what should be written in the hero parameter identifier, and what value should be assigned to the parameter? What is this parameter in general? :o

Added 35 minutes later
Does anyone know how to make the battle accessible not only for Godric but also for another hero?
function bitvaBGR()
StartCombat("Godric", nil, 1, 32, 790, nil)
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "zombi", "nil")
end
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "zombi", "bitvaBGR")
PlayObjectAnimation("limon26", "death", ONESHOT_STILL )
sleep(7)
RemoveObject("limon26")
sleep(4)
PlayObjectAnimation("limon25", "happy", IDLE)
sleep(4)
Here is the script; it works, but only for the character Godric. How can I make the function accessible for 2 heroes?
User Avatar
8 years ago
Auto-translated
Could you please provide more details on how to work with ChangeHeroStat()?
The official manual contains all the necessary information about this function.
Does anyone know how to make the battle accessible not only for Godric but also for another hero?
The hero's name is passed to the trigger; I described this in the FAQ, and it is also available in the official manual.
8 years ago
Auto-translated
How can I equip a Knight with Necromancy skills?
User Avatar
8 years ago
Auto-translated
How do you give a Knight the Necromancy skill?
There are many ways, depending on what you want to achieve.
1) Place the hero on the map, go to the properties tree, and in the primary skill field, change the standard skill to Necromancy. The map will become a mod, and this hero will have Necromancy on all maps as long as your map is in the maps folder.
2) Do the same as in the first method, but create a new hero with a unique name and customize him to your liking. The map will not be a mod.
3) Give the Necromancy skill using the GiveHeroSkill() function.
4) Make the hero a Necromancer without the Necromancy skill using the MakeHeroNecromancer() function.
In reply to Jack_of_shadows
8 years ago
Auto-translated
I apologize for the question, but regarding the Unicode format in the MessageBox function. Does the Unicode-formatted text need to be inserted directly into the map, or is it sufficient to simply have it as a separate file? I created a file in Notepad, set the format to Unicode, and placed the file in the Maps folder. I then specified the path: MessageBox("/Maps/SingleMissions/Revenge of the/sup1.txt")
Is it okay if the text file is not embedded within the map itself?
The text document is simply located in the Maps folder, but in Unicode format.

Statistics

Welcome our newest member: recijeb