Skip to content
User Avatar
#3455
Auto-translated
Hello. I'm having a problem with this script: ``` function Win() while 1 do sleep(10) if IsHeroAlive("Quroq") == nil then StartDialogScene("/Maps/SingleMissions/ne5/St3/DialogScene.xdb#xpointer(/DialogScene)"); sleep(10) StartDialogScene("/Maps/SingleMissions/ne5/St4/DialogScene.xdb#xpointer(/DialogScene)"); sleep(10) Win(); break; end; sleep(3) end; end; startThread(Win); ``` The dialogs are looping (for some reason I don't understand). The Win command isn't working. Can you tell me where I made a mistake?

Statistics

Welcome our newest member: wayal