Skip to content

Current questions and answers regarding the map editor.

#4666
Auto-translated
I'm having a strange problem. I wrote a script:
function play_anims()
if GetCurrentPlayer() ~= 1 then return end
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "udar1", nil)
PlayObjectAnimation("limon", "attack00", IDLE)
sleep(5)
PlayObjectAnimation("limon2", "attack00", IDLE)
sleep(5)
PlayObjectAnimation("limon3", "attack00", IDLE)
sleep(5)
PlayObjectAnimation("limon4", "attack00", IDLE)
end

Trigger(REGION_ENTER_AND_STOP_TRIGGER, 'udar1', 'play_anims')

Everything works, all the creatures are fighting on the map. But the creature named limon3 is standing with its arms spread. Does anyone have any ideas?

Added 15 minutes later
And another script to make the creatures on the map fight from the very beginning, but if you enter the region, a battle starts with one creature from the pair that is fighting. And as soon as the battle is won, the creature immediately wants to join. Does anyone know how to implement this?