Skip to content

Current questions and answers regarding the map editor.

User Avatar
#4887
Auto-translated
Min_Carolin, sleep can only accept integer values. Also, there's a bit of a mix-up here with two different approaches to solving the problem; we need to stick to either one or the other, as they don't make sense together.

Option 1:
PlayObjectAnimation("SlaveGob_1", "attack00", IDLE);

Option 2:
function goblin()
while (true) do
PlayObjectAnimation("SlaveGob_1", "attack00", ONESHOT);
sleep (10)
end
end
startThread(goblin)


Added 24 minutes later
I also have another problem: when I'm using the editor on another computer, the properties don't seem to work. I'm not sure if everything else is broken, but when I was creating a custom hero based on one of the existing templates, I changed his special ability, biography, appearance, description, and everything else. All of this was saved, and the new skin was even visible in the editor, but when I entered the map directly in the game, I was presented with a completely vanilla hero. It was Nura with her vanilla biography, specialization, icon, and model, but it should have been a completely different hero. This isn't critical, but maybe a fix can be found for this bug, as it's inconvenient for testing.
Did you create a new file with a new name for the new hero, or did you just edit the standard hero? If you edited it, then there will be 2 copies of the same file in the game resources - the original and yours within the map. It's possible that due to some peculiarities, the game loaded the original instead of yours. You can try changing the file name with your description so that it is a completely new resource in the game, check all of this in the editor, and then in the game.
РПГ-сценарий для HoMM5: Путь героя
ЧаВо по созданию карт для HoMM5: ЧаВо