
function Rescue()
    KEY()
    FON("Camera1",1)
    CMU("CS_Mura")
    FAI(3)
    WAI(32)
    SNP("CS_arowana_animate",-2,40,1,"mainLayer","Arowana1")
    ANP("Arowana1","swim",1)
    FON("Arowana1",16)
    WAI(64)
    MOV(-2,40,1)SLR(1,1)AMC("swim",1,1)
    WAI(16)
    MOV(-2,40,0)SLR(1,0)AMC("swim",1,0)
    TUR()FAC("curly_happy")MS3("\nWe successfully escaped!")WAI(16)
    SNP("CS_sue_animate",-2,41,1,"mainLayer","Sue1")ANP("Sue1","transform_fish")ANP("Sue1","swim",1)
    WAI(16)
    SNP("CS_jack_animate",-2,39,1,"mainLayer","Jack1")ANP("Jack1","transform_fish")ANP("Jack1","swim",1)
    SNP("CS_santa_animate",-2,40,1,"mainLayer","Santa1")ANP("Santa1","transform_fish")ANP("Santa1","swim",1)
    WAI(16)
    SNP("CS_toroko_animate",-2,41,1,"mainLayer","Toroko1")ANP("Toroko1","transform_fish")ANP("Toroko1","swim",1)
    WAI(16)
    SNP("CS_chako_animate",-2,40,1,"mainLayer","Chako1")ANP("Chako1","transform_fish")ANP("Chako1","swim",1)
    WAI(100)
    CLR()FAC("sue_angry")CAT("\nThis is so cool.")
    WAI(100)
    CLR()FAC("toroko_normal")CAT("\nEveryone made it out safely~")
    WAI(120) 
    CLR()FAC("jack_normal")CAT("Yes~")WAI(48)
    CAT("\nThis adventure is finally over.")
    PMU(5)
    ANP("Arowana1","set_target")ANP("Arowana1","Pos1")--ANP("Arowana1","swim_target")
    AMC("set_target",1,1)AMC("Pos1",1,1)--AMC("swim_target",1,1)
    AMC("set_target",1,0)AMC("Pos1",1,0)--AMC("swim_target",1,0)
    ANP("Sue1","set_target")ANP("Sue1","Pos1")--ANP("Sue1","swim_target")
    ANP("Jack1","set_target")ANP("Jack1","Pos1")--ANP("Jack1","swim_target")
    ANP("Santa1","set_target")ANP("Santa1","Pos1")--ANP("Santa1","swim_target")
    ANP("Toroko1","set_target")ANP("Toroko1","Pos1")--ANP("Toroko1","swim_target")
    ANP("Chako1","set_target")ANP("Chako1","Pos1")--ANP("Chako1","swim_target")
    WAI(60)
    CLO()
    WAI(60)
    ANP("Arowana1","swim_target")
    TUR()FAC()MS3("\nWait...")WAI(16)
    AMC("swim_target",1,1)
    WAI(16)
    AMC("swim_target",1,0)
    ANP("Sue1","swim_target")
    WAI(16)
    ANP("Jack1","swim_target")
    CAT("Something's not right")
    WAI(16)
    ANP("Santa1","swim_target")
    WAI(16)
    FON("Camera2",16)
    ANP("Toroko1","swim_target")
    WAI(16)
    ANP("Chako1","swim_target")
    WAI(16)
    WAI(16)
    WAI(16)
    FON("Camera3")
    ANP("Arowana1","float_around",0)
    CMU("CS_Escape")
    CLR()CAT("\nOh no! Swim back as fast as you can!")WAI(96)
    CLR()FAC("curly_normal")CAT("Ah!")WAI(32)
    CAT("\nEveryone turn around!")
    AMC("float_around",0,1)
    WAI(16)
    AMC("float_around",0,0)
    WAI(16)
    ANP("Sue1","float_around",0)
    WAI(16)
    ANP("Jack1","float_around",0)
    WAI(16)
    ANP("Santa1","float_around",0)
    WAI(16)
    ANP("Toroko1","float_around",0)
    WAI(16)
    ANP("Chako1","float_around",0)
    CAT("\nWe can't fall down here!")
    WAI(120)CLO()
    ---[[
    WAI(60)
    FAC("jack_><")MS3("I knew something like this")
    CAT("\nwould happen...")NOD()CLR()
    FAC("jack_normal")CAT("\nIs anyone there?!")NOD()CAT("Help us!")NOD()CLO()
    WAI(120)
    FAC("sue_sad")MS3("There's no hope,")NOD()
    CAT("\nWho would just happen to be nearby")
    CAT("\nand rescue some fish...")NOD()CLR()
    FAC("toroko_><")CAT("There is!")NOD()
    CAT("\nMaybe Kanpachi is nearby!")NOD()CLO()
    --]]
    SNP("CS_mychar_kanpa_animate",24,31,1,"mainLayer","Kanpa1")ANP("Kanpa1","show_fishing_rod")ANP("Kanpa1",204)
    ANP("Kanpa1","walk",1)
    WAI(120)
    CLO()
    FON("Kanpa1")
    ANP("Kanpa1","normal",1)
    MS3("Hmm?")NOD()
    CAT("\nI think I heard")
    CAT("\nJack's voice around here.")NOD()CLO()
    WAI(32)
    ANP("Kanpa1","normal",0)
    WAI(32)
    ANP("Kanpa1","normal",1)
    WAI(32)
    ANP("Kanpa1","back",1)
    WAI(32)
    FON("Camera3")
    FAC("toroko_normal")MS3("\nIt's Kanpachi!")NOD()CLR()
    FAC("jack_normal")CAT("Kanpa! We're down here!")NOD()
    FAC("jack_><")CAT("\nHelp us, quick!")NOD()CLO()
    FON("Kanpa1")
    ANP("Kanpa1","walk",1)
    WAI(87)
    ANP("Kanpa1","normal",1)
    MS3("Whoa!")NOD()CAT("So many fish!!")NOD()
    CAT("\nYou all turned into fish?!")NOD()CLR()
    FAC("jack_><")CAT("\nStop talking and help us up!")NOD()CLR()
    FAC()CAT("Leave it to me,")NOD()
    CAT("\nI'll fish you all up right now.")NOD()CLO()
    ANP("Kanpa1","walk",0)
    WAI(16)
    ANP("Kanpa1","normal",1)
    WAI(16)
    ANP("Kanpa1","hook_ani",0)
    WAI(32)
    ANP("Kanpa1","hook_ani",1)
    ANP("Kanpa1","hook_ani_throw")
    WAI(60)
    FON("Camera4")
    WAI(60)
    WAI(90)
    ANP("Kanpa1","hook_ani_set_target")
    ANP("Kanpa1","Arowana1")
    ANP("Arowana1","stop")
    WAI(32)
    MS3("I've got the hook,")NOD()
    CAT("\nQuick, everyone grab onto me!")NOD()CLO()
    WAI(32)
    ANP("Jack1","set_target")ANP("Jack1","Arowana1")ANP("Jack1","swim_target")
    WAI(32)
    ANP("Santa1","set_target")ANP("Santa1","Jack1")ANP("Santa1","swim_target")
    WAI(32)
    ANP("Sue1","set_target")ANP("Sue1","Santa1")ANP("Sue1","swim_target")
    WAI(32)
    ANP("Toroko1","set_target")ANP("Toroko1","Sue1")ANP("Toroko1","swim_target")
    WAI(32)
    ANP("Chako1","set_target")ANP("Chako1","Toroko1")ANP("Chako1","swim_target")
    WAI(32)
    AMC("set_target",0,1)AMC("Chako1",0,1)AMC("swim_target",0,1)
    WAI(32)
    AMC("set_target",0,0)AMC("CS_mychar_curly",0,0)AMC("swim_target",0,0)
    WAI(32)
    FON("Camera5")
    WAI(32)
    MS3("\nI'm going to pull now!")NOD()CLO()
    ANP("Kanpa1","hook_ani",2)
    WAI(32)
    ANP("Kanpa1","show_sweat")
    WAI(60)
    ANP("Kanpa1","hook_ani",3)
    WAI(60)
    MS3("You're too heavy,")NOD()
    CAT("\nI can't pull you up...")NOD()CLR()
    FAC("toroko_><")CAT("\nYou can do it, Kanpachi!")NOD()CLR()
    FAC("sue_angry")CAT("\nCome on!")NOD()CLR()
    FAC("curly_normal")CAT("\nBelieve in yourself!")NOD()CLO()
    SNP("CS_mahin_animate",18,29,1,"mainLayer","Mahin1")
    ANP("Mahin1","drawBefore")
    ANP("Mahin1","walk",1)
    WAI(160)
    ANP("Mahin1","normal",1)
    MS3("Whoa! What's happening,")NOD()
    CAT("\nLet me help!")NOD()CLO()
    WAI(16)
    ANP("Mahin1","walk",1)
    WAI(16*8)
    ANP("Mahin1","normal",1)
    WAI(32)
    ANP("Mahin1","pluck",1)
    WAI(60)
    PMU(5)
    --大家被钓上
    ANP("Kanpa1","hide_sweat")
    ANP("Kanpa1","hook_finish")
    ANP("Kanpa1","down",1)
    ANP("Mahin1","down",0)
    ANP("Arowana1","big_jump")
    ANP("Jack1","big_jump")
    ANP("Santa1","big_jump")
    ANP("Sue1","big_jump")
    ANP("Toroko1","big_jump")
    ANP("Chako1","big_jump")
    AMC("big_jump",0,1)
    AMC("big_jump",0,0)
    FON("Kanpa1")
    WAI(180)
    CMU("CS_White")
    FAC("sue_normal")MS3("\nWe did it!")NOD()CLR()
    FAC("toroko_normal")CAT("\nThat's our Kanpachi~")NOD()CLR()
    FAC("curly_happy")CAT("\nLet's cheer for our hero~")NOD()CLO()
    WAI(32)
    FAO(2)
    FOM()
    TRA("CS_gaudi_mountain_collapsed","CheerForKanpa",0,0)
end

function CheerForKanpa()
    KEY()
    CMU("CS_White")
    SNP("CS_arowana_animate",15,28,1,"mainLayer","Arowana1")ANP("Arowana1","stand")
    SNP("CS_mahin_animate",15,28,1,"mainLayer","Mahin1")ANP("Mahin1","sit")

    local dx = 4;
    SNP("CS_toroko_animate",28,32,1,"mainLayer","Toroko1")ANP("Toroko1","dx",dx*3)
    SNP("CS_sue_animate",29,32,1,"mainLayer","Sue1")ANP("Sue1","dx",dx*2)
    SNP("CS_jack_animate",30,32,1,"mainLayer","Jack1")ANP("Jack1","dx",dx*1)

    SNP("CS_santa_animate",31,32,1,"mainLayer","Santa1")

    SNP("CS_chako_animate",32,32,0,"mainLayer","Chako1")ANP("Chako1","dx",-dx*1)
    MOV(33,32,1)AMC("dx",-dx*2,1)
    MOV(34,32,0)AMC("dx",-dx*3,0)

    SNP("CS_mychar_kanpa_animate",31,31,1,"mainLayer","Kanpa1")ANP("Kanpa1",204)ANP("Kanpa1","cheer")
    FON("Camera6",1)
    AMC("hide_weapon",0,0)
    AMC("hide_weapon",0,1)

    ANP("Jack1","set_target")ANP("Jack1","Kanpa1")ANP("Jack1","cheer_target")
    ANP("Santa1","set_target")ANP("Santa1","Kanpa1")ANP("Santa1","cheer_target")
    ANP("Sue1","set_target")ANP("Sue1","Kanpa1")ANP("Sue1","cheer_target")
    ANP("Toroko1","set_target")ANP("Toroko1","Kanpa1")ANP("Toroko1","cheer_target")
    ANP("Chako1","set_target")ANP("Chako1","Kanpa1")ANP("Chako1","cheer_target")
    AMC("set_target",0,1)AMC("Kanpa1",0,1)AMC("cheer_target",0,1)
    AMC("set_target",0,0)AMC("Kanpa1",0,0)AMC("cheer_target",0,0)
    SLR(0,0)
    SLR(0,1)
    FAI(2)
    WAI(180)
    FAC()MS3("\nWhy don't you join in the fun?")NOD()CLR()
    CAT("\nIt's not that I don't want to...")NOD()CLR()
    CAT("\nWhy not?")NOD()CLO()
    WAI(32)
    ANP("Mahin1","normal")
    WAI(32)
    ANP("Mahin1","walk",1)
    WAI(32)
    ANP("Mahin1","normal")
    WAI(48)
    MS3("\nThrow me up too! I want to play!")NOD()CLO()
    WAI(32)
    ANP("Toroko1","normal",0)
    WAI(32)
    FAC("toroko_--")MS3("You're too heavy,")NOD()
    CAT("\nWe can't throw you that high.")NOD()CLO()
    WAI(32)
    ANP("Mahin1","normal",0)
    WAI(32)
    MS3("\nSee what I mean....")NOD()CLO()
    ANP("Toroko1","cheer_target",1)
    PMU(5)
    WAI(60)
    --数码他们降落
    SNP("CS_skydragon_animate",18,18,0,"mainLayer","Skydragon1")
    ANP("Skydragon1","set_target")ANP("Skydragon1","Pos2")ANP("Skydragon1","fly_target")
    WAI(180)
    FON("Camera7")
    ANP("Skydragon1","landing",1)
    WAI(60)
    ANP("Skydragon1","normal",1)
    SNP("CS_kazuma_animate",10,27,1,"mainLayer","Kazuma1")
    WAI(32)
    FAC("kazuma_normal")MS3("\nYou all seem to be having fun~")NOD()CLO()
    SNP("CS_misery_float_animate",9,24,1,"mainLayer","Misery1")
    ANP("Misery1","teleport_in")WAI(20)SOU("CS_029_teleport")
    WAI(80)
    ANP("Misery1",0,1)
    WAI(60)
    ANP("Misery1",13,1)
    WAI(60)
    FAC("misery_normal")MS3("\nI agree...")NOD()CLO()
    WAI(30)
    local helicopter_x =4;
    local helicopter_y =15;
    SNP("CS_helicopter",helicopter_x,helicopter_y,1,"mainLayer","Helicopter1")
    ANP("Helicopter1","fly")
    ANP("Helicopter1","set_manned")
    ANP("Helicopter1","landing")
    SNP("CS_professor_booster_animate",helicopter_x,helicopter_y-1,1,"mainLayer","ProfessorBooster1")
    SNP("CS_bluerobot_animate",helicopter_x-1,helicopter_y-1,0,"mainLayer","Bluerobot1")
    ANP("Bluerobot1","transform_fish")
    WAI(180)
    --咪咪卡们往左看
    ANP("Jack1","normal",0)
    ANP("Santa1","normal",0)
    ANP("Sue1","normal",0)
    ANP("Toroko1","normal",0)
    ANP("Chako1","normal",0)
    AMC("normal",0,1)
    AMC("normal",0,0)
    ANP("Kanpa1","normal",0)
    WAI(32)
    FAC("sue_normal")MS3("\nWe can finally go home!")NOD()CLR()
    FAC("jack_normal")CAT("Speaking of home,")NOD()
    CAT("\nin the few days King was gone")
    CAT("\nwe still managed to cause")
    CAT("\nsuch a commotion,")NOD()
    FAC("jack_><")CAT("\nI'm afraid my life is in danger")
    CAT("\nwhen I get back...")NOD()CLR()
    ANP("Sue1","normal",1)
    ANP("Toroko1","normal",1)
    FAC("sue_normal")CAT("No way~")NOD()
    CAT("\nWe'll plead your case if needed.")NOD()CLR()
    FAC("jack_normal")CAT("Since when did you")
    CAT("\nbecome so nice to me?")NOD()CLR()
    FAC("sue_sad")CAT("Never mind, you blockhead.")
    CAT("\nMaybe you're better off")
    CAT("\ndead after all.")NOD()CLR()
    ANP("Sue1","back",0)
    ANP("Jack1","back",1)
    FAC()CAT("\nHumph!")NOD()CLO()
    WAI(32)
    FAC("toroko_--")MS3("(These two are back")
    CAT("\nto their old ways again...)")NOD()CLR()
    FAC("curly_normal")CAT("Oh right!")NOD()
    CAT("\nI wonder how King is doing now,")NOD()
    CAT("\nWe should hurry back to")
    CAT("\nPeace Town to check on him.")NOD()CLR()
    ANP("Toroko1","normal",0)
    FAC("misery_normal")CAT("That red-eyed guy is fine,")NOD()
    CAT("\nHe'll fully recover after")
    CAT("\na few days of rest.")NOD()CLR()
    ANP("Sue1","normal",0)
    ANP("Jack1","normal",0)
    FAC("sue_normal")CAT("\nThat's our King~")NOD()CLR()
    FAC("toroko_normal")CAT("By the way, what are you planning")
    CAT("\nto do now, Mr. Fish?")NOD()CLR()
    FAC()CAT("I'm thinking of finding a....")WAI(32)CLR()
    FAC("misery_normal")CAT("This fish looks quite nice,")NOD()
    FAC("misery_excite")CAT("\nI'll take it as a gift")
    CAT("\nto offset some of")
    CAT("\nthe expensive rescue costs.")NOD()CLO()
    WAI(32)
    CNP("Misery1","CS_misery_stand_animate",1)
    ANP("Misery1","magic")
    ANP("Arowana1","teleport_out")
    WAI(16)
    SOU("CS_029_teleport")
    WAI(32)
    FAC("misery_normal")MS3("\nWell then, goodbye.")NOD()CLO()
    ANP("Misery1","float_leave")
    WAI(100)
    FAC("curly_normal")MS3("That witch really does")
    CAT("\nwhatever she wants...")NOD()CLR()
    FAC("curly_happy")CAT("By the way, Kazuma, how did you")
    CAT("\nconvince Misery to rescue us?")NOD()CLO()
    WAI(60)
    ANP("Kazuma1","back")
    WAI(60)
    FAC("kazuma_normal")MS3("Well about that....")NOD()
    ANP("Skydragon1","hover_kazuma")DNP("Kazuma1")
    CAT("\nYou'll find out if you")
    CAT("\nvisit Misery's shop.")NOD()
    ANP("Skydragon1","fly_speed_up")
    ANP("Skydragon1","set_target")ANP("Skydragon1","Pos3")ANP("Skydragon1","fly_target")
    CAT("\nI'm getting out of here.")NOD()CLO()
    WAI(60)
    FAC("curly_sad")MS3("\nWhat's that all about...")NOD()CLR()
    FAC("professorbooster_normal")MS3("You all better get")
    CAT("\non the helicopter,")NOD()
    CAT("\nIt's getting dark soon.")NOD()CLR()
    FAC("sue_normal")CAT("\nLet's go home then!")NOD()CLO()
    ANP("Camera7","up")
    ANP("Toroko1","walk",0)
    WAI(8)
    ANP("Sue1","walk",0)
    WAI(8)
    ANP("Jack1","walk",0)
    WAI(8)
    ANP("Santa1","walk",0)
    WAI(8)
    ANP("Chako1","walk",0)
    WAI(32)
    ANP("Kanpa1","walk",0)
    WAI(8)
    AMC("walk",0,1)
    WAI(8)
    AMC("walk",0,0)
    WAI(8)
    ANP("Mahin1","walk",0)
    WAI(8)
    WAI(150)
    FAO(2)
    TRA("CS_credit","Credit",0,0)
end