


function Escape()
    KEY()
    HMC()
    --ANP("Jack1","ignoreMovePlatform",1)
    CMU("CS_Escape")
    ANP("Santa1","ignoreMovePlatform",1)
    ANP("Chako1","ignoreMovePlatform",1)
    ANP("Sue1","ignoreMovePlatform",1)
    ANP("Toroko1","ignoreMovePlatform",1)
    WAI(16)
    ANP("")
    ANP("Santa1","walk",1)
    ANP("Chako1","walk",1)
    ANP("Sue1","walk",1)
    ANP("Toroko1","walk",1)
    ANP("Pushcart1","move",1)
    FON("Camera0",1)
    FAI(3)
    WAI(16*7)
    SNP("CS_fallblock",36,-2,0,"mainLayer","FallBlock1")
    WAI(64)
    ANP("FallBlock1",0,1)--固定
    WAI(32)
    ANP("Santa1","normal",1)
    ANP("Chako1","normal",1)
    ANP("Sue1","normal",1)
    ANP("Toroko1","normal",1)
    ANP("Pushcart1","normal",1)
    WAI(32)
    FAC("sue_normal")MS3("This is bad!")
    CAT("\nThe exit is blocked by a")
    CAT("\nhuge boulder!")NOD()CLR()
    FAC()CAT("Ugh! Such bad luck again,")NOD()
    CAT("\nAre we going to be buried alive in here?")NOD()CLR()
    FAC("toroko_><")CAT("Don't give up!")NOD()
    FAC("toroko_normal")CAT("\nThere must be another way out!")NOD()CLO()
    --杰克出现
    SNP("CS_jack_animate",-1,13,1,"mainLayer","Jack1")
    ANP("Jack1","no_gravity",1)--开启无重力
    ANP("Jack1","run",1)
    WAI(128)
    ANP("Jack1","normal",1)
    WAI(32)
    ---[[
    FAC("jack_normal")MS3("\nYou guys haven't escaped yet?")NOD()CLR()
    ANP("Santa1","normal",0)
    ANP("Chako1","normal",0)
    ANP("Sue1","normal",0)
    ANP("Toroko1","normal",0)
    FAC("sue_sad")MS3("If we could get out")
    CAT("\nwe wouldn't be here...")NOD()CLR()
    FAC("sue_normal")CAT("By the way,")
    CAT("\nisn't Kanpachi with you?")NOD()CLR()
    FAC("jack_normal")CAT("He went inside to find Mahin,")NOD()
    CAT("\nJudging by his expression")
    CAT("\nhe won't rest until he finds Mahin,")NOD()
    FAC("jack_><")CAT("\nSo I didn't try to stop him.")NOD()CLO()
    SNP("CS_fallblock",8,-2,0,"mainLayer","FallBlock3")
    WAI(64)
    ANP("FallBlock3",0,1)--固定
    SNP("CS_fallblock",2,-2,0,"mainLayer","FallBlock2")
    WAI(64)
    ANP("FallBlock2",0,1)--固定
    WAI(32)
    ANP("Jack1","normal",0)
    WAI(32)
    FAC("sue_sad")MS3("Now we're doomed,")NOD()
    CAT("\nThe way back is blocked too,")NOD()
    ANP("Sue1","angry")
    FAC("sue_angry")CAT("\nThis is the worst luck ever!")NOD()CLO()
    ANP("Sue1","normal")
    WAI(64)
    WAI(64)
    ANP("Sue1","back",1)
    FAC("sue_sad")MS3("\nSo there's no hope left...")NOD()CLR()
    FAC("toroko_><")CAT("There must be!")NOD()
    CAT("\nToroko never gives up hope.")NOD()CLO()
    --]]
    WAI(64)
    SPL(0,"CS_mychar_quote_p1")
    SPL(1,"CS_mychar_curly_p2")
    FON("Camera0",1)--SPL命令会取消聚焦 需要重新聚焦
    SMC(1)
    MOV(20,0,1)
    SLR(1,1)
    WAI(32)
    SMC(0)
    MOV(18,0,0)
    SLR(1,0)
    WAI(96)
    FAC("curly_happy")MS3("So you're all here at the exit!")NOD()
    CAT("\nI was about to come down")
    CAT("\nto find you.")NOD()CLO()
    ANP("Jack1","normal",1)
    ANP("Sue1","normal",0)
    WAI(32)
    MS3("Wow! We finally found you!")NOD()
    CAT("\nWe're saved!!")NOD()CLO()
    WAI(32)
    SLR(0,1)
    WAI(60)
    SLR(1,1)
    WAI(32)
    FAC("curly_normal")MS3("Looks like both paths are blocked...")NOD()
    SLR(0,1)
    CAT("\nQuote, do you have any")
    CAT("\nmissiles left?")NOD()CLR()
    AMC("switch_supermissile",1,0)
    FAC()CAT("\n.")WAI(16)CAT(".")WAI(16)CAT(".")WAI(16)CAT(".")WAI(16)CAT(".")WAI(16)CAT(".")WAI(16)CLR()
    FAC("curly_normal")CAT("Seems like not enough to")
    CAT("\nblast through the boulder.")NOD()CLR()
    CAT("\nThen we'll have to use the sewers.")NOD()CLO()
    FAO()
    WAI(32)
    for i=0,5,1 do
        SOU("CS_044_missile_hit")
        WAI(10)
    end
    WAI(32)
    SNP("CS_stream_noise",0,0,0,"mainLayer","StreamNoise1")
    MOV(17,13,0)SLR(1,0)--库特
    MNP("Jack1",16,13,1)ANP("Jack1","normal",1)
    MNP("Santa1",15,13,1)ANP("Santa1","normal",1)

    MOV(22,13,1)SLR(0,1)--卡莉
    MNP("Sue1",23,13,0)ANP("Sue1","normal",0)
    MNP("Toroko1",24,13,0)ANP("Toroko1","normal",0)
    MNP("Chako1",25,13,0)ANP("Chako1","normal",0)
    ANP("Fishtank1","clear")
    SNP("CS_arowana_animate",27,13,0,"mainLayer","Arowana1")--库龙
    ANP("Arowana1","ignoreMovePlatform",1)
    ANP("Arowana1","stand",0)
    CMP("cmpLayer_1","mainLayer")
    FAI(2)
    WAI(32)
    FAC("curly_normal")MS3("\nBy the way, can you all swim?")NOD()CLR()
    FAC("jack_><")CAT("\nI can't...")NOD()CLR()
    FAC("sue_sad")CAT("\nNot at all...")NOD()CLR()
    FAC("toroko_><")CAT("Toroko can struggle")
    CAT("\nin water for a bit!")NOD()CLR()
    FAC("curly_sad")CAT("\nThis is troublesome.")NOD()CLR()
    FAC("sue_normal")CAT("Hey Jack, can't you all")
    CAT("\ntransform into fish?")NOD()CLR()
    FAC("toroko_normal")CAT("Yeah~ If we become fish,")
    CAT("\nwe won't have to worry.")NOD()CLR()
    FAC("curly_normal")CAT("\nTransform into fish?")NOD()CLO()
    PMU(5)
    WAI(32)
    SOU("CS_043_computer_beep")
    WAI(16)
    SOU("CS_043_computer_beep")
    WAI(16)
    SOU("CS_043_computer_beep")
    WAI(16)
    FAC("curly_normal")MS3("Huh? Who's calling")
    CAT("\nat a time like this...")NOD()CLO()
    WAI(32)
    AMC("back",0,1)
    FAC("kazuma_normal")MS3("I'm flying directly")
    CAT("\nabove your position now.")NOD()
    CAT("\nProfessor Booster is coming")
    CAT("\nto help too,")NOD()
    CAT("\nand even Misery has joined us.")NOD()CLR()
    FAC("curly_happy")CAT("\nIt's Kazuma and the others!")NOD()CLO()
    FAO(0)
    FOM()
    TRA("CS_sky2","Rescue1",0,0)
end

function Escape2()
    KEY()
    CMU("XXXX")
    SNP("CS_fallblock",36,12,0,"mainLayer","FallBlock1")ANP("FallBlock1","static")
    SNP("CS_fallblock",2,12,0,"mainLayer","FallBlock2")ANP("FallBlock2","static")
    SNP("CS_fallblock",8,12,0,"mainLayer","FallBlock3")ANP("FallBlock3","static")
    SMC(0)
    SMC(1)
    MOV(17,13,0)SLR(1,0)--库特
    SNP("CS_jack_animate",16,13,1,"mainLayer","Jack1")ANP("Jack1","normal",1)
    MNP("Santa1",15,13,1)ANP("Santa1","normal",1)
    MOV(22,13,1)SLR(0,1)--卡莉
    MNP("Sue1",23,13,0)ANP("Sue1","normal",0)
    MNP("Toroko1",24,13,0)ANP("Toroko1","normal",0)
    MNP("Chako1",25,13,0)ANP("Chako1","normal",0)
    MNP("Pushcart1",26,13,1)ANP("Pushcart1","normal",1)
    MNP("Fishtank1",27,12,1)ANP("Fishtank1","clear")
    SNP("CS_arowana_animate",27,13,0,"mainLayer","Arowana1")--库龙
    ANP("Arowana1","ignoreMovePlatform",1)
    ANP("Arowana1","stand",0)
    CMP("cmpLayer_1","mainLayer")
    FON("Camera0",1)
    SNP("CS_stream_noise",0,0,0,"mainLayer","StreamNoise1")
    FAI(0)
    WAI(32)
    FAC("curly_normal")MS3("They said they're going to cast")
    CAT("\na massive fish transformation")
    CAT("\nspell on us,")NOD()
    CAT("\nso everyone can safely")
    CAT("\nswim away from here.")NOD()CLR()
    ANP("Sue1","angry")
    FAC("sue_angry")CAT("\nBecoming a fish sounds so cool!")NOD()CLR()
    FAC("toroko_normal")CAT("Haha~")
    CAT("\nI think so too~")NOD()CLR()
    ANP("Sue1","normal")
    FAC("jack_><")CAT("But turning into a fish")
    CAT("\nhas only brought me trouble.")NOD()CLR()
    FAC()CAT("That's right,")NOD()
    CAT("\nJack and I had to fight seafood,")NOD()
    CAT("\nand escape from sharks chasing us.")NOD()CLR()
    CAT("We even got fished up")
    CAT("\nand almost eaten by you all...")NOD()
    CAT("\nIt was absolutely miserable...")NOD()CLR()
    FAC("curly_happy")CAT("It sounds like")
    CAT("\nquite an exciting adventure to me~")NOD()CLO()
    SOU("CS_043_computer_beep")
    WAI(16)
    SOU("CS_043_computer_beep")
    WAI(16)
    SOU("CS_043_computer_beep")
    WAI(16)
    FAC("kazuma_normal")MS3("Everyone get ready!")NOD()
    CAT("\nThe spell is coming!")NOD()CLO()
    FAO(0)
    FOM()
    TRA("CS_sky2","Rescue2",0,0)
end

function Escape3()
    KEY()
    CMU("XXXX")
    SNP("CS_fallblock",36,12,0,"mainLayer","FallBlock1")ANP("FallBlock1","static")
    SNP("CS_fallblock",2,12,0,"mainLayer","FallBlock2")ANP("FallBlock2","static")
    SNP("CS_fallblock",8,12,0,"mainLayer","FallBlock3")ANP("FallBlock3","static")
    SMC(0)
    SMC(1)
    MOV(17,13,0)SLR(1,0)--库特
    SNP("CS_jack_animate",16,13,1,"mainLayer","Jack1")ANP("Jack1","normal",1)
    MNP("Santa1",15,13,1)ANP("Santa1","normal",1)
    MOV(22,13,1)SLR(0,1)--卡莉
    MNP("Sue1",23,13,0)ANP("Sue1","normal",0)
    MNP("Toroko1",24,13,0)ANP("Toroko1","normal",0)
    MNP("Chako1",25,13,0)ANP("Chako1","normal",0)
    MNP("Pushcart1",26,13,1)ANP("Pushcart1","normal",1)
    MNP("Fishtank1",27,12,1)ANP("Fishtank1","clear")
    SNP("CS_arowana_animate",27,13,0,"mainLayer","Arowana1")--库龙
    ANP("Arowana1","ignoreMovePlatform",1)
    ANP("Arowana1","stand",0)
    CMP("cmpLayer_1","mainLayer")
    SOU("CS_035_explosion1")
    WAI(32)
    SNP("CS_camera",-1,-1,0,"mainLayer","Camera1")ANP("Camera1","down")ANP("Camera1","set_speed",3)
    SNP("CS_camera",41,-1,0,"mainLayer","Camera2")ANP("Camera2","down")ANP("Camera2","set_speed",3)
    SNP("CS_magicthunder",0,0,1,"mainLayer","MagicThunder1")
    ANP("MagicThunder1","set_from")ANP("MagicThunder1","Camera1")
    ANP("MagicThunder1","set_target")ANP("MagicThunder1","Camera2")
    FON("Camera0",1)
    SNP("CS_stream_noise",0,0,0,"mainLayer","StreamNoise1")
    FAI(0)
    WAI(54)
    --大家变鱼
    SOU("CS_071_little_crash")
    ANP("Sue1","transform_fish")
    ANP("Toroko1","transform_fish")
    ANP("Chako1","transform_fish")
    ANP("Jack1","transform_fish")
    ANP("Santa1","transform_fish")
    AMC("transform_fish",-1,"CS_mychar_quote_p1")
    AMC("transform_fish",-1,"CS_mychar_curly_p2")
    WAI(32)
    ---[[
    FAC("sue_normal")MS3("\nYou've all turned into fish! Haha.")NOD()CLR()
    FAC("jack_normal")CAT("\nSo have you.")NOD()CLR()
    FAC("curly_happy")CAT("Is everyone ready?")NOD()
    CAT("\nLet's jump down and")
    CAT("\nescape from here!")NOD()CLR()
    ANP("Arowana1","jump")
    WAI(16)
    SNP("CS_exclamation",27,12,0,"mainLayer","null")--感叹号
    FAC()CAT("\nWait!")NOD()CLR()
    FAC("curly_normal")CAT("Huh?")NOD()
    CAT("\nThat's a voice I haven't")
    CAT("\nheard before...")NOD()
    CAT("\nWho's speaking?")NOD()CLR()
    FAC()CAT("I can hear the water current")
    CAT("\nbelow is very strong,")NOD()
    CAT("\nand with your small size,")NOD()
    CAT("\nyou'll be scattered everywhere.")NOD()CLO()
    WAI(60)
    ANP("Toroko1","normal",1)
    WAI(30)
    SLR(1,1)
    ANP("Sue1","normal",1)
    ANP("Chako1","normal",1)
    WAI(32)
    FAC("toroko_normal")MS3("\nIt's Mr. Fish's voice~")NOD()CLR()
    FAC()CAT("I'll jump down first to check the situation,")NOD()
    CAT("\nthen you can all come down together.")NOD()CLR()
    CAT("If you swim behind me,")NOD()
    CAT("\nyou won't be swept away by the current.")NOD()CLR()
    FAC("curly_happy")CAT("\nThat's a great idea!")NOD()CLR()
    FAC()CAT("\nI'm jumping down now.")NOD()CLO()
    --]]
    WAI(32)
    ANP("Arowana1","walk")
    WAI(50)
    SOU("CS_026_quake")
    ANP("Arowana1","jump_to_water")
    WAI(16)
    ANP("Toroko1","normal",0)
    SLR(0,1)
    ANP("Sue1","normal",0)
    ANP("Chako1","normal",0)
    WAI(200)
    DNP("Arowana1")
    MS3("All clear down here,")NOD()
    CAT("\ncome on down!")NOD()CLO()
    WAI(32)
    FAC("curly_happy")MS3("\nI'll go first!")NOD()CLO()
    AMC("jump_to_water",0,1)
    WAI(64)
    AMC("jump_to_water",1,0)
    WAI(16)
    FAC("sue_normal")MS3("\nQuote! Wait for me!")NOD()CLO()
    ANP("Sue1","walk",0)
    WAI(16)
    ANP("Sue1","jump_to_water")
    ANP("Jack1","walk",1)
    WAI(8)
    ANP("Toroko1","walk",0)
    WAI(8)
    ANP("Jack1","jump_to_water",1)
    ANP("Santa1","walk",1)
    WAI(8)
    ANP("Chako1","walk",0)
    WAI(8)
    WAI(8)
    ANP("Toroko1","normal",0)
    WAI(8)
    ANP("Santa1","jump_to_water",1)
    WAI(8)
    ANP("Chako1","normal",0)
    WAI(32)
    FAC("chako_happy")MS3("What's wrong?")
    CAT("\nIs Toroko afraid to jump?")NOD()CLR()
    FAC("toroko_><")CAT("\nA little...")NOD()CLR()
    FAC("chako_happy")CAT("It's okay,")NOD()
    CAT("\nSis will jump with you.")NOD()CLO()
    WAI(32)
    ANP("Chako1","walk",0)
    WAI(8)
    ANP("Toroko1","walk",0)
    WAI(8)
    ANP("Chako1","jump_to_water",0)
    ANP("Toroko1","jump_to_water",0)
    WAI(64)
    FAO(2)
    TRA("CS_fortress_underground2","Swimming",0,0)
end