MINECRAFT PLATFORMER 3 / マインクラフトプラットフォーマー 3

Instructions: 自称神アート⇩\n https://scratch.mit.edu/projects/960124650\n\n復活\n\nMINECRAFT PLATFORMER 3\nエンドラ討伐のやつです\nRTAしやがりください((\n\n◤マイクラプラフォまとめ\n　0((\n https://scratch.mit.edu/projects/888753090\n　1　（傑作）\n https://scratch.mit.edu/projects/941023653\n　2\n https://scratch.mit.edu/projects/950967433    ◢\n\n◤いつも通りコメントするならハートと星を\nIf you would like to comment as usual, please leave a heart and a star.　　　　　　　　　　　　　◢

@Stage\n\nwhen flag clicked\nwait (0) seconds\nset volume to (60) %\nforever\n    play sound [Otherside v] until done\nend\n\nwhen flag clicked\nwait (0) seconds\nswitch backdrop to (マイクラの背景 v)\n\nwhen I receive [洞窟はいつ v]\nswitch backdrop to (背景2 v)\n\nwhen I receive [出た v]\nswitch backdrop to (マイクラ夜 v)\n\nwhen flag clicked\nforever\n\nwhen flag clicked\n\nswitch backdrop to (マイクラの背景2 v)\n\n@1\n\ndefine 初期化\nswitch costume to (すてぃぶ v)\nset [yy v] to [0]\nset [xx v] to [0]\ngo to x: (-200) y: (30)\n\nwhen flag clicked\nhide\nwait (0) seconds\nswitch costume to (すてぃぶ v)\nset rotation style [left-right v]\nshow\nset [xx v] to [0]\nset [yy v] to [0]\n初期化\nforever\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > [0]>>> then\n        if <<touching (14 v)?> or <touching (ソウルサンド v)?>> then\n            point in direction (90)\n            change [xx v] by (0.5)\n        else\n            point in direction (90)\n            change [xx v] by (0.7)\n        end\n    end\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <[0] > (mouse x)>>> then\n        if <<touching (14 v)?> or <touching (ソウルサンド v)?>> then\n            point in direction (-90)\n            change [xx v] by (-0.5)\n        else\n            point in direction (-90)\n            change [xx v] by (-0.7)\n        end\n    end\n    set [xx v] to ((xx) * (0.9))\n    change x by (xx)\n    if <touching (2 v)?> then\n        change y by (6)\n    end\n    if <touching (2 v)?> then\n        change y by (-6)\n        change x by (() - (xx))\n    end\n    if <not <touching (14 v)?>> then\n        change [yy v] by (-1)\n    end\n    change y by (yy)\n    if <touching (2 v)?> then\n        change y by ((-1) * (yy))\n        set [yy v] to [0]\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > [0]>>> then\n            set [yy v] to [10]\n        end\n    end\n    if <touching (3 v)?> then\n        broadcast (itai v)\n        start sound [ダメージ v]\n        switch costume to (コスチューム3 v)\n        初期化\n    end\n    if <<<(x position) > [230]> or <touching (17 v)?>> or <[-185] > (y position)>> then\n        if <not <(ステージ) = [12]>> then\n            broadcast (next v)\n            change [ステージ v] by (1)\n            初期化\n        end\n    end\nend\n\nchange [yy v] by (-1)\n\nwait (0.3) seconds\n\nif <(y position) > [180]> then\n    if <(ステージ) = [1]> then\nend\n\nwhen I receive [終わり v]\nif <<(x position) > [230]> or <touching (17 v)?>> then\n    if <not <(ステージ) = [50]>> then\n        broadcast (next v)\n        change [ステージ v] by (1)\n        初期化\n    end\nend\n\ngo to (random position v)\n\nchange [ステージ v] by (1)\n\n\n    if <(ステージ) = [6]> then\nend\n\nwhen flag clicked\nforever\n    wait until <touching (14 v)?>\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > [0]>>> then\n        set [yy v] to [5]\n    else\n        change [yy v] by (-0.25)\n    end\nend\n\ngo to x: (0) y: (0)\n\nwhen I receive [a v]\nshow\ngo to x: (-200) y: (50)\n\nwhen flag clicked\nforever\n\nset [yy v] to [5]\n\nchange [yy v] by (-0.25)\n\nwhen flag clicked\nforever\n    if <<touching (2 v)?> and <<<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < [0]>>> or <<key (right arrow v) pressed?> or <<mouse down?> and <[0] < (mouse x)>>>>> then\n        play sound (pick random (2) to (3)) until done\n    end\nend\n\nwhen flag clicked\nforever\n    if <[0] < (ステージ)> then\n        switch costume to (すてぃぶ v)\n    end\nend\n\nwhen flag clicked\n\nwait until <touching (ソウルサンド v)?>\n\n\nchange [yy v] by (-1)\n\nwhen flag clicked\n\nforever\n    if <(costume [name v]) = [らくら]> then\n        if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > [0]>>> then\n            if <<touching (14 v)?> or <touching (ソウルサンド v)?>> then\n                point in direction (90)\n                change [xx v] by (0.25)\n            else\n                point in direction (90)\n                change [xx v] by (0.5)\n            end\n        end\n        if <<key (left arrow v) pressed?> or <<mouse down?> and <[0] > (mouse x)>>> then\n            if <<touching (14 v)?> or <touching (ソウルサンド v)?>> then\n                point in direction (-90)\n                change [xx v] by (-0.25)\n            else\n                point in direction (-90)\n                change [xx v] by (-0.5)\n            end\n        end\n        set [xx v] to ((xx) * (0.9))\n        change x by (xx)\n        if <touching (2 v)?> then\n            change y by (6)\n        end\n        if <touching (2 v)?> then\n            change y by (-6)\n            change x by (() - (xx))\n        end\n        if <not <touching (14 v)?>> then\n            change [yy v] by (-1)\n        end\n        change y by (yy)\n        if <touching (2 v)?> then\n            change y by ((-1) * (yy))\n            set [yy v] to [0]\n            if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > [0]>>> then\n                set [yy v] to [20]\n            end\n        end\n        if <touching (3 v)?> then\n            broadcast (itai v)\n            start sound [ダメージ v]\n            switch costume to (コスチューム3 v)\n            初期化\n        end\n    end\nend\n\nwhen I receive [弓当たる v]\nset [yy v] to [10]\nchange [xx v] by (-20)\n\nwhen I receive [攻撃された v]\nset [yy v] to [10]\nchange [xx v] by (-15)\n\n@2\n\nwhen flag clicked\nset [ステージ v] to [1]\nhide\nwait (0) seconds\nshow\nhide variable [☁ world records v]\nhide variable [time v]\ngo to [front v] layer\nforever\n    switch costume to (ステージ)\nend\n\nset [ステージ v] to [18]\n\nwhen flag clicked\nset [time v] to [0]\nforever\n    if <(ステージ) = [12]> then\n        show variable [☁ world records v]\n        show variable [time v]\n        if <(time) < (☁ World Records)> then\n            set [☁ world records v] to (time)\n        end\n    else\n        wait (1) seconds\n        change [time v] by (1)\n    end\nend\n\nset [☁ world records v] to [300]\n\n@3\n\nwhen flag clicked\nhide\nwait (0) seconds\nshow\nset [ステージ v] to [1]\nforever\n    switch costume to (ステージ)\nend\n\n@4\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\nclear graphic effects\nset size to (500) %\nset rotation style [all around v]\npoint in direction (180)\nhide\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        if <<key (space v) pressed?> or <key (1 v) pressed?>> then\n            repeat (3)\n                turn right (-15) degrees\n            end\n            broadcast (攻撃 v)\n            repeat (3)\n                turn right (15) degrees\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [1]> then\n        if <<key (space v) pressed?> or <mouse down?>> then\n            repeat (3)\n                turn right (15) degrees\n            end\n            broadcast (攻撃 v)\n            repeat (3)\n                turn right (-15) degrees\n            end\n        end\n    end\nend\n\nwhen I receive [攻撃準備 v]\nif <(costume [number v]) = [1]> then\n    repeat (3)\n        turn right (15) degrees\n    end\n    broadcast (攻撃 v)\n    repeat (3)\n        turn right (-15) degrees\n    end\n    point in direction (180)\nend\n\nwhen I receive [攻撃準備 v]\nif <(costume [number v]) = [2]> then\n    repeat (3)\n        turn right (-15) degrees\n    end\n    broadcast (攻撃 v)\n    repeat (3)\n        turn right (15) degrees\n    end\n    point in direction (180)\nend\n\nwhen flag clicked\nforever\n    repeat (10)\n        change [color v] effect by (0.5)\n    end\n    wait (0.1) seconds\n    repeat (10)\n        change [color v] effect by (-0.5)\n    end\nend\n\nif <touching (1 v)?> then\nend\n\nwhen I receive [ちゃんとしてる v]\nshow\nbroadcast (おく v)\nswitch costume to (ダイヤモンドの剣 v)\nforever\n    go to (1 v)\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<(mouse x) < (x position)> and <mouse down?>>> then\n        switch costume to (ダイヤモンドの剣2 v)\n    end\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<(x position) < (mouse x)> and <mouse down?>>> then\n        switch costume to (ダイヤモンドの剣 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <[6] < (ステージ)> then\nend\n\n@5\n\nwhen I receive [攻撃 v]\nif <touching (4 v)?> then\n    start sound [ダメージ v]\n    repeat (5)\n        change x by (10)\n    end\n    change [ゾンビhp v] by (-1)\n    wait () seconds\n    if <(ゾンビHP) = [0]> then\n        delete this clone\n    end\nend\n\nwhen flag clicked\nset rotation style [left-right v]\nhide\ngo to x: (200) y: (50)\nswitch costume to (ゾンビ v)\nset size to (65) %\nforever\n    if <(ステージ) = [6]> then\n        create clone of (_myself_ v)\n        wait until <(ステージ) = [9]>\n    end\nend\n\nwhen I receive [メッセージ1 v]\nstop [all v]\n\nwhen I start as a clone\nforever\n    if <touching (1 v)?> then\n        broadcast (攻撃された v)\n        wait (1) seconds\n    end\nend\n\nwhen I start as a clone\nshow\nset rotation style [left-right v]\nforever\n    change [y v] by (-1)\n    if <([x position v] of [1 v]) > (x position)> then\n        point in direction (90)\n        change [x2 v] by (1)\n    end\n    if <([x position v] of [1 v]) < (x position)> then\n        point in direction (-90)\n        change [x2 v] by (-1)\n    end\n    set [x2 v] to ((X2) * (0.9))\n    change x by (X2)\n    if <touching (2 v)?> then\n        change y by (6)\n    end\n    if <touching (2 v)?> then\n        change y by (-6)\n        change x by (() - (X2))\n    end\n    change y by (y)\n    if <touching (2 v)?> then\n        change y by ((-1) * (y))\n        set [y v] to [0]\n        if <([y position v] of [1 v]) > (y position)> then\n            set [y v] to [15]\n        end\n    end\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwait (pick random (5) to (15)) seconds\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [攻撃 v]\nif <touching (4 v)?> then\n    set [y v] to [10]\n    change [x2 v] by (15)\nend\n\n@6\n\nwhen I receive [攻撃 v]\nif <touching (4 v)?> then\n    start sound [ダメージ v]\n    repeat (5)\n        change x by (10)\n    end\n    change [ゾンビhp v] by (-1)\n    wait () seconds\n    if <(ゾンビHP) = [0]> then\n        delete this clone\n    end\nend\n\nwhen flag clicked\nhide\ngo to x: (245) y: (-66)\nswitch costume to (エンダーマン（ノーマル） v)\nset size to (80) %\n\nforever\n    if <(ステージ) = [10]> then\n        create clone of (_myself_ v)\n        wait until <(ステージ) = [11]>\n    end\nend\n\nwhen I receive [メッセージ1 v]\nstop [all v]\n\nwhen I start as a clone\nforever\n    if <<(えんだ――変数) = [0]> and <touching (1 v)?>> then\n        broadcast (攻撃された v)\n        wait (1) seconds\n    end\n    if <<(えんだ――変数) = [威嚇]> and <touching (1 v)?>> then\n        broadcast (弓当たる v)\n        wait (1) seconds\n    end\nend\n\nwhen I start as a clone\nset [ゾンビhp v] to [20]\nshow\nset rotation style [left-right v]\nset rotation style [left-right v]\nforever\n    change [y v] by (-1)\n    if <([x position v] of [1 v]) > (x position)> then\n        point in direction (90)\n        change [x2 v] by (1)\n    end\n    if <([x position v] of [1 v]) < (x position)> then\n        point in direction (-90)\n        change [x2 v] by (-1)\n    end\n    set [x2 v] to ((X2) * (0.9))\n    change x by (X2)\n    if <touching (2 v)?> then\n        change y by (6)\n    end\n    if <touching (2 v)?> then\n        change y by (-6)\n        change x by (() - (X2))\n    end\n    change y by (y)\n    if <touching (2 v)?> then\n        change y by ((-1) * (y))\n        set [y v] to [0]\n        if <([y position v] of [1 v]) > (y position)> then\n            set [y v] to [15]\n        end\n    end\nend\n\nwhen I start as a clone\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwhen I start as a clone\ngo to x: (0) y: (90)\nset [brightness v] effect to (0)\nforever\n    wait (3) seconds\n    switch costume to (エンダーマン（威嚇） v)\n    set [えんだ――変数 v] to [威嚇]\n    repeat (12)\n        glide (0.01) secs to (1 v)\n        wait (0.1) seconds\n    end\n    go to x: (x position) y: (y position)\n    switch costume to (エンダーマン（ノーマル） v)\n    set [えんだ――変数 v] to [0]\nend\n\ngo to x: (pick random (-3) to (3)) y: (y position)\n\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nchange x by (3)\nchange x by (-3)\nchange x by (-3)\nchange x by (3)\n\nwhen I receive [next v]\ndelete this clone\n\n@7\n\nwhen flag clicked\nhide\ngo to [back v] layer\ngo [forward v] (1) layers\nset size to (220) %\nset [brightness v] effect to (0)\ngo to x: (50) y: (-35)\nwait (0) seconds\nforever\n    switch costume to (ステージ)\n    go to [back v] layer\n    show\nend\n\nset [brightness v] effect to (-18)\n\nswitch costume to (ステージ1 v)\nset [brightness v] effect to (0)\nshow\n\nset [ステージ v] to [9]\n\nif <(ステージ) = [11]> then\n\nbroadcast (次元は違う v)\n\nswitch costume to (ステージ5 v)\n\nforever\n    set size to (220) %\nend\n\nwhen flag clicked\n\n@8\n\nwhen flag clicked\nset [hp v] to [20]\nhide\nwait (0) seconds\ngo to [front v] layer\nshow\ngo to x: (-1) y: (160)\nset size to (150) %\nswitch costume to (health20 v)\n\nwhen I receive [攻撃された v]\nstart sound [ダメージ v]\nchange [hp v] by (-1)\nif <[0] > (HP)> then\n    broadcast (終わり v)\nend\nnext costume\n\nwhen I receive [終わり v]\nbroadcast (a v)\nset [hp v] to [20]\n\nwhen I receive [ゲーム終了です v]\n\nhide\n\nwhen flag clicked\nforever\n    if <touching (すてぃいいいいいぶ v)?> then\n        set [ghost v] effect to (80)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I receive [次元は違う v]\nhide\n\nwhen flag clicked\n\nwhen I receive [終わり v]\nstop [all v]\n\nwhen I receive [弓当たる v]\nstart sound [ダメージ v]\nchange [hp v] by (-2)\nif <[0] > (HP)> then\n    broadcast (終わり v)\nend\nswitch costume to ((costume [number v]) + (2))\n\nrepeat (2)\n    next costume\nend\n\nwhen flag clicked\nforever\n    if <[0] > (HP)> then\n        stop [all v]\n    end\nend\n\nbroadcast (終わり v)\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nswitch costume to (health20 v)\n\nwhen I receive [itai v]\nstart sound [ダメージ v]\nchange [hp v] by (-3)\nif <[0] > (HP)> then\n    broadcast (終わり v)\nend\nswitch costume to ((costume [number v]) + (3))\n\nwhen I receive [うぉーでんざぱわー v]\nstart sound [ダメージ v]\nchange [hp v] by (-5)\nif <[0] > (HP)> then\n    broadcast (終わり v)\nend\nswitch costume to ((costume [number v]) + (5))\n\nwhen I receive [攻撃された v]\nrepeat (2)\n    set [brightness v] effect to (40)\n    wait (0.1) seconds\n    set [brightness v] effect to (0)\n    wait (0.1) seconds\nend\n\nwhen I receive [弓当たる v]\nrepeat (2)\n    set [brightness v] effect to (40)\n    wait (0.1) seconds\n    set [brightness v] effect to (0)\n    wait (0.1) seconds\nend\n\nwhen I receive [itai v]\nrepeat (2)\n    set [brightness v] effect to (40)\n    wait (0.1) seconds\n    set [brightness v] effect to (0)\n    wait (0.1) seconds\nend\n\nwhen I receive [うぉーでんざぱわー v]\nrepeat (2)\n    set [brightness v] effect to (40)\n    wait (0.1) seconds\n    set [brightness v] effect to (0)\n    wait (0.1) seconds\nend\n\nwhen flag clicked\nforever\n    if <not <(HP) = [20]>> then\n        wait (pick random (3) to (5)) seconds\n        repeat (2)\n            set [brightness v] effect to (40)\n            wait (0.1) seconds\n            set [brightness v] effect to (0)\n            wait (0.1) seconds\n        end\n        change [hp v] by (1)\n        switch costume to ((costume [number v]) - (1))\n    end\nend\n\nswitch costume to (health20 v)\n\n@9\n\nwhen flag clicked\nforever\n    if <<touching (1 v)?> and <not <(tixesuto) = [ON]>>> then\n        say [スペースキーまたはクリックでチェストをあける/Open chest with spacebar or click]\n    else\n        say []\n    end\nend\n\nwhen flag clicked\nset [tixesuto v] to [OFF]\nswitch costume to (chest v)\nhide\nforever\n    if <(ステージ) = [5]> then\n        show\n        if <<touching (1 v)?> and <<key (space v) pressed?> or <<touching (mouse-pointer v)?> and <mouse down?>>>> then\n            set [tixesuto v] to [ON]\n            broadcast (ちゃんとしてる v)\n        end\n    else\n        hide\n    end\nend\n\n@10\n\nwhen I receive [攻撃 v]\nif <touching (4 v)?> then\n    start sound [ダメージ v]\n    repeat (5)\n        change x by (10)\n    end\n    change [ゾンビhp v] by (-1)\n    wait () seconds\n    if <(ゾンビHP) = [0]> then\n        delete this clone\n    end\nend\n\nwhen flag clicked\nset [ゾンビhp v] to [5]\nset rotation style [left-right v]\nhide\ngo to x: (245) y: (-66)\nswitch costume to (ゾンビ v)\nset size to (60) %\nforever\n    if <(ステージ) = [30]> then\n        create clone of (_myself_ v)\n        wait until <(ステージ) = [9]>\n    end\nend\n\nwhen I receive [メッセージ1 v]\nstop [all v]\n\nwhen I start as a clone\nforever\n    if <touching (1 v)?> then\n        broadcast (攻撃された v)\n        wait (1) seconds\n    end\nend\n\nwhen I start as a clone\nshow\nset rotation style [left-right v]\nforever\n    change [y v] by (-1)\n    if <([x position v] of [1 v]) > (x position)> then\n        point in direction (90)\n        change [x2 v] by (1)\n    end\n    if <([x position v] of [1 v]) < (x position)> then\n        point in direction (-90)\n        change [x2 v] by (-1)\n    end\n    set [x2 v] to ((X2) * (0.9))\n    change x by (X2)\n    if <touching (2 v)?> then\n        change y by (6)\n    end\n    if <touching (2 v)?> then\n        change y by (-6)\n        change x by (() - (X2))\n    end\n    change y by (y)\n    if <touching (2 v)?> then\n        change y by ((-1) * (y))\n        set [y v] to [0]\n        if <([y position v] of [1 v]) > (y position)> then\n            set [y v] to [15]\n        end\n    end\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwait (pick random (5) to (15)) seconds\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [next v]\ndelete this clone\n\n@11\n\nwhen I receive [攻撃 v]\nif <touching (4 v)?> then\n    start sound [ダメージ v]\n    repeat (5)\n        change x by (10)\n    end\n    change [ゾンビhp v] by (-1)\n    wait () seconds\n    if <(ゾンビHP) = [0]> then\n        delete this clone\n    end\nend\n\nwhen flag clicked\n\nset rotation style [left-right v]\nhide\ngo to x: (230) y: (-66)\nswitch costume to (スケルトン v)\nset size to (60) %\nforever\n    if <(ステージ) = [9]> then\n        create clone of (_myself_ v)\n    else\n        hide\n    end\nend\n\nwhen I receive [メッセージ1 v]\nstop [all v]\n\nwhen I start as a clone\nset [ゾンビhp v] to [10]\nshow\nset rotation style [left-right v]\ngo to x: (160) y: (60)\nshow\nset rotation style [left-right v]\nforever\n    change [y v] by (-1)\n    if <([x position v] of [1 v]) > (x position)> then\n        point in direction (90)\n        change [x2 v] by (1)\n    end\n    if <([x position v] of [1 v]) < (x position)> then\n        point in direction (-90)\n        change [x2 v] by (-1)\n    end\n    set [x2 v] to ((X2) * (0.9))\n    change x by (X2)\n    if <touching (2 v)?> then\n        change y by (6)\n    end\n    if <touching (2 v)?> then\n        change y by (-6)\n        change x by (() - (X2))\n    end\n    change y by (y)\n    if <touching (2 v)?> then\n        change y by ((-1) * (y))\n        set [y v] to [0]\n        if <([y position v] of [1 v]) > (y position)> then\n            set [y v] to [15]\n        end\n    end\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n\nwait (pick random (5) to (15)) seconds\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [next v]\ndelete this clone\n\nwait until <(ステージ) = [10]>\n\nwhen flag clicked\nforever\n    if <touching (1 v)?> then\n        broadcast (攻撃された v)\n        wait (0.11) seconds\n    end\nend\n\ngo to x: (130) y: (y position)\nshow\nset y to ([y position v] of [1 v])\n\n@12\n\nwhen flag clicked\n\ngo to x: (60) y: (85)\n\nwhen I start as a clone\nswitch costume to (矢 v)\ngo to [front v] layer\nset [ghost v] effect to (0)\nshow\nrepeat (18)\n    change x by (-20)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    go to (11 v)\nend\n\nhide\nforever\n    if <(ステージ) = [9]> then\n        go to [back v] layer\n        set rotation style [all around v]\n        set size to (100) %\n        point in direction (45)\n        show\n        switch costume to (弓 v)\n        forever\n            wait (0.5) seconds\n            switch costume to (弓2 v)\n            wait (0.1) seconds\n            switch costume to (弓3 v)\n            wait (0.3) seconds\n            create clone of (_myself_ v)\n            switch costume to (弓 v)\n        end\n    else\n        hide\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (1 v)?> then\n        broadcast (弓当たる v)\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <(ステージ) = [10]> then\n        stop [other scripts in sprite v]\n        hide\n    end\nend\n\n@26\n\nif  then\n    go to x: (0) y: (90)\n    set [brightness v] effect to (0)\n    forever\n        wait (3) seconds\n        switch costume to (エンダーマン（威嚇） v)\n        repeat (24)\n            go to x: (pick random (-3) to (3)) y: (90)\n        end\n        go to x: (0) y: (90)\n        switch costume to (エンダーマン（ノーマル） v)\n    end\nend\n\nwhen I receive [えんだーいやー v]\nif <(costume [name v]) = [クリーパー]> then\n    go to x: (190) y: (90)\n    set [brightness v] effect to (0)\n    forever\n        wait (3) seconds\n        repeat (6)\n            set [brightness v] effect to (100)\n            wait (0.2) seconds\n            set [brightness v] effect to (0)\n            wait (0.2) seconds\n        end\n        broadcast (クリーパー爆破 v)\n        set [brightness v] effect to (100)\n        wait (0.5) seconds\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nif <(costume [name v]) = [クリーパー爆破]> then\n    go to x: ((x position) + (pick random (-10) to (10))) y: ((y position) + (pick random (-10) to (10)))\n    set [brightness v] effect to (pick random (50) to (100))\n    set size to (pick random (50) to (100)) %\n    set [ghost v] effect to (0)\n    point in direction (pick random (0) to (360))\n    show\n    repeat (10)\n        move (3) steps\n        change size by (5)\n        change [ghost v] effect by (pick random (2) to (10))\n    end\n    delete this clone\nend\n\nwhen I receive [クリーパー爆破 v]\nif <(costume [name v]) = [クリーパー爆破のとき必要]> then\n    go to x: (190) y: (90)\n    repeat (30)\n        switch costume to (クリーパー爆破 v)\n        create clone of (_myself_ v)\n        wait (0) seconds\n    end\n    switch costume to (クリーパー v)\n    create clone of (_myself_ v)\n    switch costume to (クリーパー爆破のとき必要 v)\nend\n\n@14\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (50)\n    switch costume to (ステージ)\nend\n\nset [ステージ v] to [12]\n\n@15\n\nwhen I receive [攻撃 v]\nif <touching (4 v)?> then\n    start sound [ダメージ v]\n    repeat (5)\n        change x by (10)\n    end\n    change [ゾンビhp v] by (-1)\n    wait () seconds\n    if <(ゾンビHP) = [0]> then\n        delete this clone\n    end\nend\n\nwhen flag clicked\nset rotation style [left-right v]\nhide\ngo to x: (245) y: (-66)\nswitch costume to (ゾンビ v)\nset size to (60) %\n\nforever\n    if <(ステージ) = [12]> then\n        create clone of (_myself_ v)\n        wait until <(ステージ) = [13]>\n    end\nend\n\nwhen I receive [メッセージ1 v]\nstop [all v]\n\nwhen I start as a clone\nforever\n    if <touching (1 v)?> then\n        broadcast (攻撃された v)\n        wait (1) seconds\n    end\nend\n\nwhen I start as a clone\nset [ゾンビhp v] to [5]\nshow\nset rotation style [left-right v]\nforever\n    change [y v] by (-0.25)\nend\n\nif <([x position v] of [1 v]) > (x position)> then\n    point in direction (90)\n    change [x2 v] by (0.5)\nend\nif <([x position v] of [1 v]) < (x position)> then\n    point in direction (-90)\n    change [x2 v] by (-0.5)\nend\nset [x2 v] to ((X2) * (0.9))\nchange x by (X2)\n\nif <touching (2 v)?> then\n    change y by (6)\nend\nif <touching (2 v)?> then\n    change y by (-6)\n    change x by (() - (X2))\nend\nchange y by (y)\nif <touching (2 v)?> then\n    change y by ((-1) * (y))\n    set [y v] to [0]\n    if <([y position v] of [1 v]) > (y position)> then\n        set [y v] to [5]\n    end\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwait (pick random (5) to (15)) seconds\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [next v]\ndelete this clone\n\n@16\n\nwhen I receive [攻撃 v]\nif <touching (4 v)?> then\n    start sound [ダメージ v]\n    repeat (5)\n        change x by (10)\n    end\n    change [ゾンビhp v] by (-1)\n    wait () seconds\n    if <(ゾンビHP) = [0]> then\n        delete this clone\n    end\nend\n\nwhen flag clicked\nset rotation style [left-right v]\nhide\ngo to x: (245) y: (60)\nswitch costume to (ゾンビ v)\nset size to (80) %\n\nforever\n    if <(ステージ) = [16]> then\n        create clone of (_myself_ v)\n        wait until <(ステージ) = [15]>\n    end\nend\n\nwhen I receive [メッセージ1 v]\nstop [all v]\n\nwhen I start as a clone\nforever\n    if <touching (1 v)?> then\n        broadcast (攻撃された v)\n        wait (1) seconds\n    end\nend\n\nwhen I start as a clone\nset [ゾンビhp v] to [5]\nshow\nset rotation style [left-right v]\nforever\n    change [y v] by (-1)\n    if <([x position v] of [1 v]) > (x position)> then\n        point in direction (90)\n        change [x2 v] by (1)\n    end\n    if <([x position v] of [1 v]) < (x position)> then\n        point in direction (-90)\n        change [x2 v] by (-1)\n    end\n    set [x2 v] to ((X2) * (0.9))\n    change x by (X2)\n    if <touching (2 v)?> then\n        change y by (6)\n    end\n    if <touching (2 v)?> then\n        change y by (-6)\n        change x by (() - (X2))\n    end\n    change y by (y)\n    if <touching (2 v)?> then\n        change y by ((-1) * (y))\n        set [y v] to [0]\n        if <([y position v] of [1 v]) > (y position)> then\n            set [y v] to [15]\n        end\n    end\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwait (pick random (5) to (15)) seconds\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [next v]\ndelete this clone\n\n@17\n\nwhen flag clicked\nforever\n    switch costume to (ステージ)\nend\n\n@ア\n\nwhen flag clicked\nforever\n    switch costume to (ステージ)\nend\n\nwhen flag clicked\nforever\n    if <touching (1 v)?> then\n        broadcast (攻撃された v)\n        wait (0.1) seconds\n    end\nend\n\n@ソウルサンド\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    switch costume to (ステージ)\nend\n\n@18\n\nwhen I receive [攻撃 v]\nif <touching (4 v)?> then\n    start sound [ダメージ v]\n    repeat (5)\n        change x by (10)\n    end\n    change [ゾンビhp v] by (-1)\n    wait () seconds\n    if <(ゾンビHP) = [0]> then\n        delete this clone\n    end\nend\n\nwhen flag clicked\n\nset rotation style [left-right v]\nhide\ngo to x: (245) y: (60)\nswitch costume to (pigguman v)\nset size to (80) %\nforever\n    if <(ステージ) = [10]> then\n        create clone of (_myself_ v)\n        wait until <(ステージ) = [21]>\n    end\nend\n\nwhen I receive [メッセージ1 v]\nstop [all v]\n\nwhen I start as a clone\nforever\n    if <touching (1 v)?> then\n        broadcast (弓当たる v)\n        wait (1) seconds\n    end\nend\n\nwhen I start as a clone\nset [ゾンビhp v] to [10]\nshow\nset rotation style [left-right v]\nforever\n    change [y v] by (-1)\n    if <([x position v] of [1 v]) > (x position)> then\n        point in direction (90)\n        change [x2 v] by (1)\n    end\n    if <([x position v] of [1 v]) < (x position)> then\n        point in direction (-90)\n        change [x2 v] by (-1)\n    end\n    set [x2 v] to ((X2) * (0.9))\n    change x by (X2)\n    if <touching (2 v)?> then\n        change y by (6)\n    end\n    if <touching (2 v)?> then\n        change y by (-6)\n        change x by (() - (X2))\n    end\n    change y by (y)\n    if <touching (2 v)?> then\n        change y by ((-1) * (y))\n        set [y v] to [0]\n        if <([y position v] of [1 v]) > (y position)> then\n            set [y v] to [15]\n        end\n    end\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwait (pick random (5) to (15)) seconds\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [next v]\ndelete this clone\n\n@19\n\nwhen I receive [攻撃 v]\nif <touching (4 v)?> then\n    start sound [ダメージ v]\n    repeat (5)\n        change x by (10)\n    end\n    change [ゾンビhp v] by (-1)\n    wait () seconds\n    if <(ゾンビHP) = [0]> then\n        delete this clone\n    end\nend\n\nwhen flag clicked\nset rotation style [left-right v]\nhide\n\ngo to x: (245) y: (60)\nswitch costume to (ブレイズ v)\nset size to (60) %\nforever\n    if <(ステージ) = [21]> then\n        go to x: (160) y: (-66)\n        set [ゾンビhp v] to [15]\n        show\n        set rotation style [left-right v]\n        forever\n            repeat (10)\n                set [y v] to (pick random (2) to (5))\n                change y by (y)\n            end\n            repeat (10)\n                set [y v] to (pick random (-2) to (-5))\n                change y by (y)\n            end\n            repeat (10)\n                set [y v] to (pick random (-2) to (-5))\n                change y by (y)\n            end\n            repeat (10)\n                set [y v] to (pick random (2) to (5))\n                change y by (y)\n            end\n        end\n    else\n        hide\n    end\nend\n\nwait until <(ステージ) = [22]>\n\nwhen I receive [メッセージ1 v]\nstop [all v]\n\nwhen I start as a clone\nforever\n    if <touching (1 v)?> then\n        broadcast (弓当たる v)\n        wait (1) seconds\n    end\nend\n\nchange [y v] by (-1)\nif <([x position v] of [1 v]) > (x position)> then\n    point in direction (90)\n    change [x2 v] by (1)\nend\nif <([x position v] of [1 v]) < (x position)> then\n    point in direction (-90)\n    change [x2 v] by (-1)\nend\nset [x2 v] to ((X2) * (0.9))\nchange x by (X2)\nif <touching (2 v)?> then\n    change y by (6)\nend\nif <touching (2 v)?> then\n    change y by (-6)\n    change x by (() - (X2))\nend\nchange y by (y)\nif <touching (2 v)?> then\n    change y by ((-1) * (y))\n    set [y v] to [0]\n    if <([y position v] of [1 v]) > (y position)> then\n        change [y v] by (1)\n    end\nend\n\nset [y v] to [15]\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (180) y: (-66)\nend\n\nwait (pick random (5) to (15)) seconds\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [next v]\ndelete this clone\n\nwhen flag clicked\nforever\n    if <(ステージ) = [22]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\n@20\n\nwhen flag clicked\n\nif <(ステージ) = [12]> then\nelse\n    hide\nend\n\ngo to [back v] layer\nset rotation style [all around v]\nset size to (100) %\npoint in direction (45)\nforever\nend\n\nwait (0.8) seconds\ncreate clone of (_myself_ v)\n\ngo to x: (60) y: (85)\nhide\nforever\nend\n\nwhen I start as a clone\nswitch costume to (コスチューム1 \(21\) v)\ngo to [front v] layer\nset [ghost v] effect to (0)\nshow\nrepeat (18)\n    change x by (-20)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    go to (23 v)\nend\n\ngo to x: (160) y: ([y position v] of [19 v])\n\nwhen I start as a clone\nforever\n    if <touching (1 v)?> then\n        broadcast (弓当たる v)\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <(ステージ) = [13]> then\n        stop [other scripts in sprite v]\n        hide\n    end\nend\n\n@21\n\nwhen flag clicked\nset rotation style [left-right v]\nhide\ngo to x: (245) y: (60)\nswitch costume to (ウィザスケ先輩 v)\nset size to (80) %\nforever\n    if <(ステージ) = [15]> then\n        create clone of (_myself_ v)\n        wait until <(ステージ) = [16]>\n    end\nend\n\nwhen I receive [メッセージ1 v]\nstop [all v]\n\nwhen I start as a clone\nforever\n    if <touching (1 v)?> then\n        broadcast (弓当たる v)\n        wait (1) seconds\n    end\nend\n\nwhen I start as a clone\nset [ゾンビhp v] to [15]\nshow\nset rotation style [left-right v]\nforever\n    change [y v] by (-1)\n    if <([x position v] of [1 v]) > (x position)> then\n        point in direction (90)\n        change [x2 v] by (1)\n    end\n    if <([x position v] of [1 v]) < (x position)> then\n        point in direction (-90)\n        change [x2 v] by (-1)\n    end\n    set [x2 v] to ((X2) * (0.9))\n    change x by (X2)\n    if <touching (2 v)?> then\n        change y by (6)\n    end\n    if <touching (2 v)?> then\n        change y by (-6)\n        change x by (() - (X2))\n    end\n    change y by (y)\n    if <touching (2 v)?> then\n        change y by ((-1) * (y))\n        set [y v] to [0]\n        if <([y position v] of [1 v]) > (y position)> then\n            set [y v] to [15]\n        end\n    end\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwait (pick random (5) to (15)) seconds\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [next v]\nif <(ステージ) = [15]> then\n    if <not <(判定) = [撃破]>> then\n        change [ステージ v] by (-1)\n    end\nend\n\nwhen I receive [攻撃 v]\nif <touching (4 v)?> then\n    start sound [ダメージ v]\n    change [ゾンビhp v] by (-1)\n    wait () seconds\n    if <(ゾンビHP) = [0]> then\n        set [判定 v] to [撃破]\n        hide\n    end\nend\n\n@22\n\nwhen I receive [攻撃 v]\nif <touching (4 v)?> then\n    start sound [ダメージ v]\n    repeat (5)\n        change x by (10)\n    end\n    change [ゾンビhp v] by (-1)\n    wait () seconds\n    if <(ゾンビHP) = [0]> then\n        delete this clone\n    end\nend\n\nwhen flag clicked\nhide\ngo to x: (245) y: (-66)\nswitch costume to (エンダーマン（ノーマル） v)\nset size to (80) %\nforever\n    if <(ステージ) = [23]> then\n        create clone of (_myself_ v)\n        wait until <(ステージ) = [24]>\n    end\nend\n\nwhen I receive [メッセージ1 v]\nstop [all v]\n\nwhen I start as a clone\nforever\n    if <<(えんだ――変数) = [0]> and <touching (1 v)?>> then\n        broadcast (攻撃された v)\n        wait (1) seconds\n    end\n    if <<(えんだ――変数) = [威嚇]> and <touching (1 v)?>> then\n        broadcast (弓当たる v)\n        wait (1) seconds\n    end\nend\n\nwhen I start as a clone\nset [ゾンビhp v] to [20]\nshow\nset rotation style [left-right v]\nset rotation style [left-right v]\nforever\n    change [y v] by (-1)\n    if <([x position v] of [1 v]) > (x position)> then\n        point in direction (90)\n        change [x2 v] by (1)\n    end\n    if <([x position v] of [1 v]) < (x position)> then\n        point in direction (-90)\n        change [x2 v] by (-1)\n    end\n    set [x2 v] to ((X2) * (0.9))\n    change x by (X2)\n    if <touching (2 v)?> then\n        change y by (6)\n    end\n    if <touching (2 v)?> then\n        change y by (-6)\n        change x by (() - (X2))\n    end\n    change y by (y)\n    if <touching (2 v)?> then\n        change y by ((-1) * (y))\n        set [y v] to [0]\n        if <([y position v] of [1 v]) > (y position)> then\n            set [y v] to [15]\n        end\n    end\nend\n\nwhen I start as a clone\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwhen I start as a clone\ngo to x: (0) y: (90)\nset [brightness v] effect to (0)\nforever\n    wait (3) seconds\n    switch costume to (エンダーマン（威嚇） v)\n    set [えんだ――変数 v] to [威嚇]\n    repeat (12)\n        glide (0.01) secs to (1 v)\n        wait (0.1) seconds\n    end\n    go to x: (x position) y: (y position)\n    switch costume to (エンダーマン（ノーマル） v)\n    set [えんだ――変数 v] to [0]\nend\n\ngo to x: (pick random (-3) to (3)) y: (y position)\n\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nchange x by (3)\nchange x by (-3)\nchange x by (-3)\nchange x by (3)\n\nwhen I receive [next v]\ndelete this clone\n\n@23\n\nwhen flag clicked\nset [判定 v] to [No]\nset rotation style [left-right v]\nhide\ngo to x: (160) y: (0)\nswitch costume to (uxoooxxooxox v)\nset size to (80) %\n\nforever\n    if <(ステージ) = [12]> then\n        set [ゾンビhp v] to [15]\n        show\n        set rotation style [left-right v]\n        if <([x position v] of [1 v]) > (x position)> then\n            point in direction (90)\n            change [x2 v] by (0.5)\n        end\n        if <([x position v] of [1 v]) < (x position)> then\n            point in direction (-90)\n            change [x2 v] by (-0.5)\n        end\n        set [x2 v] to ((X2) * (0.9))\n        change x by (X2)\n        forever\n            repeat (10)\n                set [y v] to (pick random (2) to (5))\n                change y by (y)\n            end\n            repeat (10)\n                set [y v] to (pick random (-2) to (-5))\n                change y by (y)\n            end\n            repeat (10)\n                set [y v] to (pick random (-2) to (-5))\n                change y by (y)\n            end\n            repeat (10)\n                set [y v] to (pick random (2) to (5))\n                change y by (y)\n            end\n        end\n    else\n        hide\n    end\nend\n\nwhen I receive [メッセージ1 v]\nstop [all v]\n\nwhen I start as a clone\nforever\n    if <touching (1 v)?> then\nend\n\nwhen I start as a clone\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwait (pick random (5) to (15)) seconds\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [next v]\ndelete this clone\n\nbroadcast (うぉーでんざぱわー v)\nwait (1) seconds\n\nwait until <(ステージ) = [37]>\n\nwhen flag clicked\nforever\n    if <(ステージ) = [13]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\nrepeat (5)\n    change x by (10)\nend\n\n\n\nwhen I receive [攻撃 v]\nif <touching (4 v)?> then\n    start sound [ダメージ v]\n    change [ゾンビhp v] by (-1)\n    wait () seconds\n    if <(ゾンビHP) = [0]> then\n        set [判定 v] to [撃破]\n        hide\n    end\nend\n\nwhen I receive [next v]\ngo to x: (60) y: (0)\nif <(ステージ) = [13]> then\n    if <not <(判定) = [撃破]>> then\n        change [ステージ v] by (-1)\n    end\nend\n\nset [判定 v] to [No]\n\n@エンダードラゴン\n\nwhen flag clicked\nset [エンダードラゴン v] to [0]\nhide\nforever\n    if <(ステージ) = [11]> then\n        show\n        broadcast (エンダードラゴン1 v)\n        wait until <(ステージ) = [41]>\n    end\nend\n\nwhen I receive [エンダードラゴン1 v]\nforever\n    set [エンダードラゴン v] to [1]\n    repeat (9)\n        change [エンダードラゴン v] by (1)\n        wait (0.001) seconds\n    end\n    repeat (9)\n        change [エンダードラゴン v] by (-1)\n        wait (0.001) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    switch costume to (エンダードラゴン)\nend\n\nwhen I receive [攻撃 v]\nwait (0.15) seconds\nif <touching (4 v)?> then\n    start sound (pick random (1) to (3))\n    change [ｈp v] by (-1)\n    if <(Ｈp) < [1]> then\n        set [enndeorの判定 v] to [撃破]\n        hide\n    end\n    if <(ステージ) = [41]> then\n        change [エンダードラゴン v] by (10)\n        wait (0.2) seconds\n        change [エンダードラゴン v] by (-10)\n    end\nend\n\nwhen flag clicked\nset [enndeorの判定 v] to [No]\nhide variable [ｈp v]\nset [ｈp v] to [30]\nset [エンダードラゴン v] to [0]\nset rotation style [left-right v]\nset size to (80) %\nhide\nforever\n    if <(ステージ) = [40]> then\n        go to x: (-13) y: (-35)\n        show\n        repeat until <(ステージ) = [41]>\n            wait (1) seconds\n            point in direction (90)\n            repeat (50)\n                change x by (1)\n                change y by (1)\n            end\n            point in direction (-90)\n            repeat (50)\n                change x by (-1)\n                change y by (-1)\n            end\n            point in direction (-90)\n            repeat (50)\n                change x by (-1)\n                change y by (-1)\n            end\n            point in direction (90)\n            repeat (50)\n                change x by (1)\n                change y by (1)\n            end\n            wait (4) seconds\n        end\n    end\nend\n\nwhen flag clicked\n\nforever\nend\n\nif <touching (1 v)?> then\n    broadcast (弓当たる v)\n    wait (1) seconds\nend\n\nwhen flag clicked\nforever\n    if <(ステージ) = [41]> then\n        hide\n    end\nend\n\nif <not <(username) = [_Ma-in_]>> then\n\nwhen I receive [next v]\nif <(ステージ) = [12]> then\n    if <not <(enndeorの判定) = [撃破]>> then\n        change [ステージ v] by (-1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(ステージ) = [11]> and <not <(enndeorの判定) = [撃破]>>> then\n        wait (pick random (1) to (5)) seconds\n        broadcast (発射 v)\n    end\nend\n\n@24\n\nwhen flag clicked\nset rotation style [left-right v]\nhide\ngo to x: (245) y: (60)\nswitch costume to (スニファー v)\nset size to (100) %\nforever\nend\n\nif <(ステージ) = [1]> then\n    create clone of (_myself_ v)\n    wait until <(ステージ) = [2]>\nend\n\nwhen I receive [メッセージ1 v]\nstop [all v]\n\nwhen I start as a clone\nforever\n    if <touching (1 v)?> then\nend\n\nwhen I start as a clone\n\nset [ゾンビhp v] to [10]\nshow\nset rotation style [left-right v]\nforever\n    change [y v] by (-1)\n    if <([x position v] of [1 v]) > (x position)> then\n        point in direction (90)\n        change [x2 v] by (1.5)\n    end\n    if <([x position v] of [1 v]) < (x position)> then\n        point in direction (-90)\n        change [x2 v] by (-1.5)\n    end\n    set [x2 v] to ((X2) * (0.9))\n    if <([direction v] of [1 v]) = [-90]> then\n        point in direction (-90)\n    end\n    set x to (([x position v] of [1 v]) - (50))\n    if <touching (2 v)?> then\n        change y by (6)\n    end\n    if <touching (2 v)?> then\n        change y by (-6)\n        set x to (([x position v] of [1 v]) - (50))\n    end\n    change y by (y)\n    if <touching (2 v)?> then\n        change y by ((-1) * (y))\n        set [y v] to [0]\n    end\nend\n\nchange x by (10)\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (-180) y: (-66)\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwait (pick random (5) to (15)) seconds\n\nwhen I receive [next v]\n\nwhen I receive [next v]\n\nwhen I receive [攻撃 v]\n\nif <touching (4 v)?> then\n    start sound [ダメージ v]\n    repeat (5)\n        change x by (10)\n    end\n    change [ゾンビhp v] by (-1)\n    wait () seconds\n    if <(ゾンビHP) = [0]> then\n        delete this clone\n    end\nend\n\ndelete this clone\n\ndelete this clone\n\nset y to ([y position v] of [1 v])\n\nforever\nend\n\n@25\n\nwhen this sprite clicked\nif <not <(ステージ) = [1]>> then\n    broadcast (a v)\n    change [ステージ v] by (-1)\nend\n\nwhen flag clicked\nhide\nwait (0) seconds\nshow\nforever\n    go to [front v] layer\nend\n\n@27\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nwhen [timer v] > (0)\ngo to [front v] layer\nset [brightness v] effect to (100)\nshow\nrepeat (5)\n    change [brightness v] effect by (-20)\nend\n\nwhen [timer v] > (0)\nforever\n    reset timer\nend\n\nturn right (15) degrees\n\n@くも\n\nwhen I receive [スタート v]\n\nwhen I start as a clone\nwait until <[7] < (item (1) of [情報 v])>\ndelete this clone\n\nwhen I start as a clone\nif <[4] < (item (1) of [情報 v])> then\n    hide\n    delete this clone\nelse\n    go to [back v] layer\n    go [forward v] (1) layers\n    repeat until <[5] < (backdrop [number v])>\n        set [cloud y v] to (pick random (100) to (170))\n        if <(#Biome) = [2]> then\n            set [cloud y v] to (pick random (-80) to (0))\n            set [ghost v] effect to (50)\n        end\n        switch costume to ((1) + (pick random (1) to (10)))\n        set y to (cloud y)\n        repeat until <(cloud x) < [-400]>\n            show\n            set x to (cloud x)\n            change [cloud x v] by (-0.4)\n            set [ghost v] effect to (20)\n        end\n        change [cloud_num v] by (-1)\n        delete this clone\n    end\nend\n\ngo [forward v] (5) layers\n\nwhen flag clicked\nhide\nhide\nwait (0) seconds\nset [cloud_num v] to [0]\nset [cloud x v] to [-100]\ncreate clone of (_myself_ v)\nchange [cloud_num v] by (1)\nset [cloud x v] to [100]\ncreate clone of (_myself_ v)\nchange [cloud_num v] by (1)\nforever\n    if <(Cloud_Num) < [10]> then\n        if <(pick random (1) to (5)) = [1]> then\n            set [cloud x v] to [300]\n            change [cloud_num v] by (1)\n            create clone of (_myself_ v)\n        end\n        wait (3) seconds\n    end\nend\n\n@Oxygen\n\nwhen I receive [next v]\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    switch costume to ((酸素ゲージ) + (1))\nend\n\nwhen flag clicked\nforever\n    if <touching (14 v)?> then\n        wait (0.05) seconds\n        if <touching (14 v)?> then\n            show\n        end\n    else\n        if <(酸素ゲージ) = [20]> then\n            wait (0.5) seconds\n            hide\n        end\n    end\nend\n\n@スプライト1\n\nwhen flag clicked\nforever\n    if <(ステージ) = [12]> then\n        show\n        forever\n            switch costume to (ゾンビHP)\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(ステージ) = [12]> then\n        hide\n    end\nend\n\n@うぇ\n\nwhen flag clicked\nforever\n    if <(ステージ) = [15]> then\n        show\n        forever\n            switch costume to (ゾンビHP)\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(ステージ) = [12]> then\n        hide\n    end\nend\n\n@うぃざー\n\nwhen flag clicked\ngo to [front v] layer\nset rotation style [left-right v]\nhide\ngo to x: (245) y: (60)\nswitch costume to (コスチューム2 v)\nset size to (120) %\nset [ゾンビhp v] to [30]\nshow\nset rotation style [left-right v]\nforever\n    if <(ステージ) = [17]> then\n        forever\n            change [y v] by (-1)\n            if <([x position v] of [1 v]) > (x position)> then\n                point in direction (90)\n                change [x2 v] by (1)\n            end\n            if <([x position v] of [1 v]) < (x position)> then\n                point in direction (-90)\n                change [x2 v] by (-1)\n            end\n            set [x2 v] to ((X2) * (0.9))\n            change x by (X2)\n            if <touching (2 v)?> then\n                change x by (() - (X2))\n            end\n        end\n    else\n        hide\n    end\nend\n\nwhen I receive [メッセージ1 v]\nstop [all v]\n\nwhen I start as a clone\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwait (pick random (5) to (15)) seconds\n\nchange y by (-6)\n\nchange y by (y)\nif <touching (2 v)?> then\n    change y by ((-1) * (y))\n    set [y v] to [0]\n    if <([y position v] of [1 v]) > (y position)> then\n        set [y v] to [15]\n    end\nend\n\nif <touching (2 v)?> then\n    change y by (6)\nend\n\nbroadcast (弓当たる v)\nwait (1) seconds\n\nif <touching (1 v)?> then\n    forever\nend\n\nwait until <(ステージ) = [16]>\n\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nforever\n    if <<(ステージ) = [17]> and <not <(判定) = [撃破]>>> then\n        wait (pick random (1) to (5)) seconds\n        broadcast (発射 v)\n    end\nend\n\nwhen I receive [next v]\nif <(ステージ) = [16]> then\n    set [判定 v] to [No]\n    set [ゾンビhp v] to [30]\nend\n\nwhen I receive [攻撃 v]\nif <touching (4 v)?> then\n    start sound [ダメージ v]\n    change [ゾンビhp v] by (-1)\n    wait () seconds\n    if <(ゾンビHP) = [0]> then\n        set [判定 v] to [撃破]\n        hide\n    end\nend\n\nwhen I receive [next v]\nif <(ステージ) = [17]> then\n    show\nend\n\nwhen I receive [next v]\nif <(ステージ) = [18]> then\n    if <not <(判定) = [撃破]>> then\n        set [ゾンビhp v] to [30]\n        change [ステージ v] by (-1)\n    end\nend\n\n@うぇざー\n\nwhen flag clicked\nforever\n    if <(ステージ) = [11]> then\n        show\n        forever\n            switch costume to (Ｈp)\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(ステージ) = [12]> then\n        hide\n    end\nend\n\n@頭\n\nwhen flag clicked\ngo to x: (-160) y: (-90)\nset size to (800) %\nhide\n\nwhen I receive [発射 v]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nswitch costume to (ウィザー v)\nshow\ngo to (エンダードラゴン v)\npoint towards (1 v)\nforever\n    move (10) steps\n    if <<touching (_edge_ v)?> or <touching (地面 v)?>> then\n        repeat (6)\n            wait (0.000000001) seconds\n            next costume\n        end\n        start sound [get4 v]\n        delete this clone\n    end\n    if <touching (1 v)?> then\n        broadcast (弓当たる v)\n        repeat (6)\n            wait (0.000000001) seconds\n            next costume\n        end\n        delete this clone\n    end\nend\n\nwhen I receive [攻撃 v]\nif <touching (4 v)?> then\n    repeat (6)\n        wait (0.000000001) seconds\n        next costume\n    end\n    start sound [get4 v]\n    hide\n    wait (1) seconds\n    delete this clone\nend\n\nwhen I receive [攻撃準備 v]\nif <touching (4 v)?> then\n    repeat (6)\n        wait (0.000000001) seconds\n        next costume\n    end\n    start sound [get4 v]\n    hide\n    wait (1) seconds\n    delete this clone\nend\n\n