Hello. I write AI Script:
But why he doesn't work. If script have function DebugText, script doesn't work, if function DebugText haven't script work. Why ?
JASS:
function DebugText takes nothing return nothing
endfunction
function main takes nothing returns nothing
call Sleep(2)
call DisplayTextToPlayer(GetLocalPlayer(), 0.0, 0.0, "Check ...")
call CampaignAI(null, null)
//call SetReplacementCount(3)
//call SetCaptainHome(BOTH_CAPTAINS, 900, 4400)
//call CampaignDefender(NORMAL, 4, ARCHER)
//call CampaignDefender(EASY, 1, HUNTRESS)
//call StopGathering()
//call Sleep(10)
//call AddGuardPost(ARCHER, 5000, -3000)
//call Sleep(M1)
//call FillGuardPosts()
//call InitAssaultGroup()
//call CampaignAttacker(EASY, 2, ARCHER)
//call SuicideOnPlayer(M1, Player(0))
endfunction
But why he doesn't work. If script have function DebugText, script doesn't work, if function DebugText haven't script work. Why ?