Posts from Current questions and answers regarding the map editor.
Interested, in the game folder there is Editor Documentation/HOMM5_Hero_Level_and_Experience.pdf.
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?
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")
How to calculate the coordinates of the cell where the heroes are located.
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?
Could you please provide more details on how to work with ChangeHeroStat()?
Does anyone know how to make the battle accessible not only for Godric but also for another hero?
How do you give a Knight the Necromancy skill?
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.
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.