PLEASE HELP.
PLEASE HELP.
New here? I'm Roha — want a quick tour?
I recommend searching the internet for something called libhomm3.lua; it already contains all the events from the third game.
Hello everyone, I want to create an animation on the map. For example, an Archangel and an Archdevil are standing there. First, the Archangel attacks, the Devil takes the hit, the Archangel is happy, then the Devil attacks, and so on. You get the idea. I tried to do it, but it didn't work. They just froze in one position and that's it...
Well, it's not easy to time it. The scheme is roughly like this:
function circle()
while 1 do
sleep(?);
PlayObjectAnimation(creature name 1, "attack00", ONESHOT);
sleep(?);
PlayObjectAnimation....
..............and so on
end;
end;
startThread(circle);
THANK YOU VERY MUCH, I'LL TRY IT NOW:smile11:
Added after 19 hours 55 minutes
nope, it's not right. I need it so that when I enter the region, the animation of the battle between the archdevil and the angel begins... like in the map "Zakakt Erisha," and they still get stuck in one position. If something, here's my Skype: andron20005, please help...
If they get stuck in one position, it means they don't have the correct animation assigned. You can set it through the properties tree.
Trigger type must be a numberScriptWarning: Value was NIL when getting global with name 'Sleep'
ScriptError: Attempt to call a 'nil' valueWithout sleep(5), it works, but the message is displayed before the battle. With sleep(5), it doesn't display at all :D. Am I using this sleep incorrectly?
Digital values in the documentation (ids_for_scriptes.pdf)
Regarding 'sleep', you might have written it with a capital letter, if I understand the console correctly.