004  Minecraft platformer #Games


@Stage\n\nwhen flag clicked\nstart sound [å¤é£ã®ããã v]\n\n@サムネ\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nreset timer\nforever\n    set [タイム v] to (timer)\nend\n\nwhen [timer v] > (タイム)\nshow\nbroadcast (終わり v)\ngo to x: (0) y: (999)\nrepeat until <(round (y position)) = [0]>\n    change y by ((() - (y position)) / (10))\nend\n\n@プレーヤー\n\nwhen flag clicked\nset [xx v] to [0]\nset [yy v] to [25]\nhide\n\ndefine prayer\npoint in direction (90)\nif <(！) = [0]> then\n    if <not <(username) = []>> then\n        if <(チャット) = []> then\n            say (username)\n        else\n            say (join (username) (join [:] (item (チャット) of [chat v])))\n        end\n    end\n    if <<<mouse down?> and <[50] < (mouse x)>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        change [x v] by (1)\n    end\n    if <<<not <<[130] < (mouse y)> and <(mouse x) < [-100]>>> and <<mouse down?> and <(mouse x) < [-50]>>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        change [x v] by (-1)\n    end\n    set [x v] to ((x) * (0.87))\n    change x by (round (x))\n    if <touching (ステージブロック v)?> then\n        change y by (1)\n        if <touching (ステージブロック v)?> then\n            change y by (1)\n            if <touching (ステージブロック v)?> then\n                change y by (1)\n                if <touching (ステージブロック v)?> then\n                    change y by (1)\n                    if <touching (ステージブロック v)?> then\n                        change y by (1)\n                        if <touching (ステージブロック v)?> then\n                            change y by (1)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    if <touching (ステージブロック v)?> then\n        壁\n    end\n    change [y v] by (-1.5)\n    change y by (y)\n    if <touching (ステージブロック v)?> then\n        床\n    end\n    change [スクロールｘ v] by (round ((x position) / (10)))\n    change x by ((0) - ((round ((x position) / (10))) * <not <<(スクロールｘ) < [0]> or <[4500] < (スクロールｘ)>>>))\n    if <(スクロールｘ) < [0]> then\n        set [スクロールｘ v] to [0]\n    end\n    if <[4500] < (スクロールｘ)> then\n        set [スクロールｘ v] to [4500]\n    end\n    change [スクロールｙ v] by (round ((y position) / (10)))\n    change y by ((0) - ((round ((y position) / (10))) * <not <(スクロールｙ) < [0]>>))\n    if <(スクロールｙ) < [0]> then\n        set [スクロールｙ v] to [0]\n    end\n    if <(y) < [-21]> then\n        change [y v] by (1.5)\n    end\nend\nset y to (round (y position))\npoint in direction ((90) + (round (x)))\n\ndefine 初期化\nstart sound [Rip v]\nhide\nrepeat until <<([abs v] of ((スクロールｙ) - (YY)) ) < [3]> and <([abs v] of ((スクロールｘ) - (XX)) ) < [3]>>\n    change [スクロールｘ v] by (round (((XX) - (スクロールｘ)) / (5)))\n    change [スクロールｙ v] by (round (((YY) - (スクロールｙ)) / (5)))\nend\nset [エメラルド v] to [0]\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (0) y: (0)\nbroadcast (monster v)\nshow\n\ndefine 壁\nset [？ v] to [0]\nchange y by (-4.5)\nrepeat until <<[100] < (？)> or <not <touching (ステージブロック v)?>>>\n    change [？ v] by (1)\n    change x by ((-1) * ((x) / ([abs v] of (x) )))\nend\nif <[100] < (？)> then\n    repeat (？)\n        change x by ((1) * ((x) / ([abs v] of (x) )))\n    end\nelse\n    if <<<mouse down?> and <[0] < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y v] to [18]\n        set [x v] to ((-7) * ((x) / ([abs v] of (x) )))\n    else\n        set [x v] to [0]\n    end\nend\n\ndefine 床\nrepeat until <not <touching (ステージブロック v)?>>\n    change y by ((-1.5) * ((y) / ([abs v] of (y) )))\nend\nif <<(y) < [0]> and <<<not <<[130] < (mouse y)> and <(mouse x) < [-100]>>> and <<mouse down?> and <[0] < (mouse y)>>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>>> then\n    set [y v] to [18]\nelse\n    set [y v] to [0]\nend\n\nwhen I receive [start v]\nshow\nset [！ v] to [0]\nset [スクロールｘ v] to [0]\nset [スクロールｙ v] to [25]\ngo to x: (0) y: (0)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    prayer\nend\n\nwhen I receive [start v]\nforever\n    switch costume to (スティーブ1 v)\n    if <not <<<mouse down?> and <[0] < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>>> then\n        if <<<mouse down?> and <[50] < (mouse x)>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n            switch costume to (スティーブ1 v)\n        end\n        if <<<mouse down?> and <(mouse x) < [-50]>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n            switch costume to (スティーブ1 v)\n        end\n    else\n        if <not <<mouse down?> and <<[130] < (mouse y)> and <(mouse x) < [-100]>>>> then\n            switch costume to (スティーブ1 v)\n            if <<<mouse down?> and <[50] < (mouse x)>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n                switch costume to (スティーブ1 v)\n            end\n            if <<<mouse down?> and <(mouse x) < [-50]>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n                switch costume to (スティーブ1 v)\n            end\n        end\n    end\nend\n\nwhen I receive [start v]\nset [0 v] to [0]\nset [！ v] to [0]\nforever\n    if <<(y position) < [-180]> or <touching (トゲブロック v)?>> then\n        set [！ v] to [1]\n        初期化\n        set [！ v] to [0]\n        if <[0] < (0)> then\n            set [エメラルド v] to ((0) + (0))\n        else\n            set [エメラルド v] to [0]\n        end\n        if <[0] < (0.0)> then\n            set [ダイヤモンド v] to ((0) + (0.0))\n        else\n            set [ダイヤモンド v] to [0]\n        end\n    end\nend\n\nwhen I receive [初期化 v]\nset [！ v] to [1]\n初期化\nset [！ v] to [0]\n\nwhen flag clicked\nbroadcast (START v)\n\nwhen [timer v] > (タイム)\nhide\n\nwhen flag clicked\nset [time v] to [0]\nforever\n    wait (1) seconds\n    change [time v] by (1)\n    if <<key (right arrow v) pressed?> or <<(x position) < (mouse x)> and <mouse down?>>> then\n        set [time v] to [0]\n    end\n    if <<key (left arrow v) pressed?> or <<(mouse x) < (x position)> and <mouse down?>>> then\n        set [time v] to [0]\n    end\n    if <<key (up arrow v) pressed?> or <<(y position) < (mouse y)> and <mouse down?>>> then\n        set [time v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(time) = [15]> then\n        stop [all v]\n    end\nend\n\nif <<(y) < [0]> and <<<not <<[130] < (mouse y)> and <(mouse x) < [-100]>>> and <<mouse down?> and <[0] < (mouse y)>>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>>> then\n    set [y v] to [18]\nelse\n    set [y v] to [0]\nend\n\nwhen flag clicked\nset [y v] to [0]\n\nwhen flag clicked\nset [0 v] to [0]\nset [0.0 v] to [0]\n\n@オンラインブロック\n\nwhen I receive [オンライン v]\nset [オンライン v] to [1]\nwait (1) seconds\nset [☁ p1 v] to [0]\nset [☁ p2 v] to [0]\nset [☁ p3 v] to [0]\nset [☁ p4 v] to [0]\nset [☁ p5 v] to [0]\nset [☁ p6 v] to [0]\nset [☁ p6 v] to [0]\nset [☁ p8 v] to [0]\nset [☁ p9 v] to [0]\nset [☁ p10 v] to [0]\nset [1p？ v] to [0]\nwait (1) seconds\nbroadcast (オンライン！ v)\nforever\n    if <(☁ p1) = [0]> then\n        ユーザー名数値化\n        forever\n            set [1p？ v] to [1]\n            set [☁ p1 v] to (join (プレーヤー2) (join (join ((1500) + ((スクロールｘ) + ([x position v] of [プレーヤー v]))) (((スクロールｙ) + ([y position v] of [プレーヤー v])) + (1500))) (join (([costume # v] of [プレーヤー v]) + (10)) (join ((チャット) + (10)) (join (letter (length of ([floor v] of (timer) )) of ([floor v] of (timer) )) (join (！) ([direction v] of [プレーヤー v])))))))\n        end\n    else\n        if <(☁ p2) = [0]> then\n            ユーザー名数値化\n            forever\n                set [1p？ v] to [2]\n                set [☁ p2 v] to (join (プレーヤー2) (join (join ((1500) + ((スクロールｘ) + ([x position v] of [プレーヤー v]))) (((スクロールｙ) + ([y position v] of [プレーヤー v])) + (1500))) (join (([costume # v] of [プレーヤー v]) + (10)) (join ((チャット) + (10)) (join (letter (length of ([floor v] of (timer) )) of ([floor v] of (timer) )) (join (！) ([direction v] of [プレーヤー v])))))))\n            end\n        else\n            if <(☁ p3) = [0]> then\n                ユーザー名数値化\n                forever\n                    set [1p？ v] to [3]\n                    set [☁ p3 v] to (join (プレーヤー2) (join (join ((1500) + ((スクロールｘ) + ([x position v] of [プレーヤー v]))) (((スクロールｙ) + ([y position v] of [プレーヤー v])) + (1500))) (join (([costume # v] of [プレーヤー v]) + (10)) (join ((チャット) + (10)) (join (letter (length of ([floor v] of (timer) )) of ([floor v] of (timer) )) (join (！) ([direction v] of [プレーヤー v])))))))\n                end\n            else\n                if <(☁ p4) = [0]> then\n                    ユーザー名数値化\n                    forever\n                        set [1p？ v] to [4]\n                        set [☁ p4 v] to (join (プレーヤー2) (join (join ((1500) + ((スクロールｘ) + ([x position v] of [プレーヤー v]))) (((スクロールｙ) + ([y position v] of [プレーヤー v])) + (1500))) (join (([costume # v] of [プレーヤー v]) + (10)) (join ((チャット) + (10)) (join (letter (length of ([floor v] of (timer) )) of ([floor v] of (timer) )) (join (！) ([direction v] of [プレーヤー v])))))))\n                    end\n                else\n                    if <(☁ p5) = [0]> then\n                        ユーザー名数値化\n                        forever\n                            set [1p？ v] to [5]\n                            set [☁ p5 v] to (join (プレーヤー2) (join (join ((1500) + ((スクロールｘ) + ([x position v] of [プレーヤー v]))) (((スクロールｙ) + ([y position v] of [プレーヤー v])) + (1500))) (join (([costume # v] of [プレーヤー v]) + (10)) (join ((チャット) + (10)) (join (letter (length of ([floor v] of (timer) )) of ([floor v] of (timer) )) (join (！) ([direction v] of [プレーヤー v])))))))\n                        end\n                    else\n                        if <(☁ p6) = [0]> then\n                            ユーザー名数値化\n                            forever\n                                set [1p？ v] to [6]\n                                set [☁ p6 v] to (join (プレーヤー2) (join (join ((1500) + ((スクロールｘ) + ([x position v] of [プレーヤー v]))) (((スクロールｙ) + ([y position v] of [プレーヤー v])) + (1500))) (join (([costume # v] of [プレーヤー v]) + (10)) (join ((チャット) + (10)) (join (letter (length of ([floor v] of (timer) )) of ([floor v] of (timer) )) (join (！) ([direction v] of [プレーヤー v])))))))\n                            end\n                        else\n                            if <(☁ p7) = [0]> then\n                                ユーザー名数値化\n                                forever\n                                    set [1p？ v] to [7]\n                                    set [☁ p7 v] to (join (プレーヤー2) (join (join ((1500) + ((スクロールｘ) + ([x position v] of [プレーヤー v]))) (((スクロールｙ) + ([y position v] of [プレーヤー v])) + (1500))) (join (([costume # v] of [プレーヤー v]) + (10)) (join ((チャット) + (10)) (join (letter (length of ([floor v] of (timer) )) of ([floor v] of (timer) )) (join (！) ([direction v] of [プレーヤー v])))))))\n                                end\n                            else\n                                if <(☁ p8) = [0]> then\n                                    ユーザー名数値化\n                                    forever\n                                        set [1p？ v] to [8]\n                                        set [☁ p8 v] to (join (プレーヤー2) (join (join ((1500) + ((スクロールｘ) + ([x position v] of [プレーヤー v]))) (((スクロールｙ) + ([y position v] of [プレーヤー v])) + (1500))) (join (([costume # v] of [プレーヤー v]) + (10)) (join ((チャット) + (10)) (join (letter (length of ([floor v] of (timer) )) of ([floor v] of (timer) )) (join (！) ([direction v] of [プレーヤー v])))))))\n                                    end\n                                else\n                                    if <(☁ p9) = [0]> then\n                                        ユーザー名数値化\n                                        forever\n                                            set [1p？ v] to [9]\n                                            set [☁ p9 v] to (join (プレーヤー2) (join (join ((1500) + ((スクロールｘ) + ([x position v] of [プレーヤー v]))) (((スクロールｙ) + ([y position v] of [プレーヤー v])) + (1500))) (join (([costume # v] of [プレーヤー v]) + (10)) (join ((チャット) + (10)) (join (letter (length of ([floor v] of (timer) )) of ([floor v] of (timer) )) (join (！) ([direction v] of [プレーヤー v])))))))\n                                        end\n                                    else\n                                        if <(☁ p10) = [0]> then\n                                            ユーザー名数値化\n                                            forever\n                                                set [1p？ v] to [10]\n                                                set [☁ p10 v] to (join (プレーヤー2) (join (join ((1500) + ((スクロールｘ) + ([x position v] of [プレーヤー v]))) (((スクロールｙ) + ([y position v] of [プレーヤー v])) + (1500))) (join (([costume # v] of [プレーヤー v]) + (10)) (join ((チャット) + (10)) (join (letter (length of ([floor v] of (timer) )) of ([floor v] of (timer) )) (join (！) ([direction v] of [プレーヤー v])))))))\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine ユーザー名数値化\nset [プレーヤー v] to [0]\nset [プレーヤー2 v] to []\nrepeat (length of (username))\n    change [プレーヤー v] by (1)\n    switch costume to (letter (プレーヤー) of (username))\n    set [プレーヤー2 v] to (join (プレーヤー2) (costume [number v]))\nend\nrepeat ((40) - (length of (プレーヤー2)))\n    set [プレーヤー2 v] to (join (プレーヤー2) [0])\nend\n\nwhen I receive [オンライン v]\nbroadcast (言う v)\nforever\n    復元1\nend\n\ndefine 復元1\ndelete all of [user v]\nset [% v] to [0]\nrepeat (10)\n    switch costume to ( v)\n    change [% v] by (1)\n    set [〜 v] to [0]\n    set [4 v] to []\n    repeat (20)\n        if <not <(join (letter ((〜) + (1)) of (item (%) of [p1〜10 v])) (letter ((〜) + (2)) of (item (%) of [p1〜10 v]))) = [00]>> then\n            change [〜 v] by (2)\n            switch costume to (join (letter ((〜) - (1)) of (item (%) of [p1〜10 v])) (letter (〜) of (item (%) of [p1〜10 v])))\n            set [4 v] to (join (4) (costume [name v]))\n        end\n    end\n    add (4) to [user v]\nend\n\nwhen flag clicked\nforever\n    delete all of [p1〜10 v]\n    add (☁ p1) to [p1〜10 v]\n    add (☁ p2) to [p1〜10 v]\n    add (☁ p3) to [p1〜10 v]\n    add (☁ p4) to [p1〜10 v]\n    add (☁ p5) to [p1〜10 v]\n    add (☁ p6) to [p1〜10 v]\n    add (☁ p7) to [p1〜10 v]\n    add (☁ p8) to [p1〜10 v]\n    add (☁ p9) to [p1〜10 v]\n    add (☁ p10) to [p1〜10 v]\nend\n\nwhen I receive [オンライン！ v]\nforever\n    delete all of [1〜10 2 v]\n    add (☁ p1) to [1〜10 2 v]\n    add (☁ p2) to [1〜10 2 v]\n    add (☁ p3) to [1〜10 2 v]\n    add (☁ p4) to [1〜10 2 v]\n    add (☁ p5) to [1〜10 2 v]\n    add (☁ p6) to [1〜10 2 v]\n    add (☁ p7) to [1〜10 2 v]\n    add (☁ p8) to [1〜10 2 v]\n    add (☁ p9) to [1〜10 2 v]\n    add (☁ p10) to [1〜10 2 v]\n    wait (1.5) seconds\n    if <(letter (53) of (item (1) of [p1〜10 v])) = (letter (53) of (item (1) of [1〜10 2 v]))> then\n        set [☁ p1 v] to [0]\n    end\n    if <(letter (53) of (item (2) of [p1〜10 v])) = (letter (53) of (item (2) of [1〜10 2 v]))> then\n        set [☁ p2 v] to [0]\n    end\n    if <(letter (53) of (item (3) of [p1〜10 v])) = (letter (53) of (item (3) of [1〜10 2 v]))> then\n        set [☁ p3 v] to [0]\n    end\n    if <(letter (53) of (item (4) of [p1〜10 v])) = (letter (53) of (item (4) of [1〜10 2 v]))> then\n        set [☁ p4 v] to [0]\n    end\n    if <(letter (53) of (item (5) of [p1〜10 v])) = (letter (53) of (item (5) of [1〜10 2 v]))> then\n        set [☁ p5 v] to [0]\n    end\n    if <(letter (53) of (item (6) of [p1〜10 v])) = (letter (53) of (item (6) of [1〜10 2 v]))> then\n        set [☁ p6 v] to [0]\n    end\n    if <(letter (53) of (item (7) of [p1〜10 v])) = (letter (53) of (item (7) of [1〜10 2 v]))> then\n        set [☁ p7 v] to [0]\n    end\n    if <(letter (53) of (item (8) of [p1〜10 v])) = (letter (53) of (item (8) of [1〜10 2 v]))> then\n        set [☁ p8 v] to [0]\n    end\n    if <(letter (53) of (item (9) of [p1〜10 v])) = (letter (53) of (item (9) of [1〜10 2 v]))> then\n        set [☁ p9 v] to [0]\n    end\n    if <(letter (53) of (item (10) of [p1〜10 v])) = (letter (53) of (item (10) of [1〜10 2 v]))> then\n        set [☁ p10 v] to [0]\n    end\nend\n\nwhen flag clicked\nbroadcast (オンライン v)\n\n@中間スポット\n\ndefine 配置 (x) (y) (コスチューム)\nset [1 v] to (x)\nset [2 v] to (y)\nset [3 v] to (コスチューム)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nforever\n    switch costume to (コスチューム1 v)\n    go to x: ((1) - (スクロールｘ)) y: ((2) - (スクロールｙ))\n    if <<(x position) = ((1) - (スクロールｘ))> and <(y position) = ((2) - (スクロールｙ))>> then\n        show\n    else\n        hide\n    end\n    switch costume to ((1) + (3))\nend\n\nwhen I receive [start v]\nhide\n配置 [1450] [260] [1]\n配置 [3050] [120] [1]\n\nwhen I start as a clone\nforever\n    if <touching (プレーヤー v)?> then\n        start sound [通過音 v]\n        set [0 v] to (エメラルド)\n        set [0.0 v] to (ダイヤモンド)\n        set [xx v] to (1)\n        set [yy v] to (2)\n        change [3 v] by (1)\n        stop [this script v]\n    end\nend\n\n@ゴール旗\n\ndefine 配置 (x) (y) (コスチューム)\nset [1 v] to (x)\nset [2 v] to (y)\nset [3 v] to (コスチューム)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nforever\n    switch costume to (コスチューム1 v)\n    go to x: ((1) - (スクロールｘ)) y: ((2) - (スクロールｙ))\n    if <<(x position) = ((1) - (スクロールｘ))> and <(y position) = ((2) - (スクロールｙ))>> then\n        show\n    else\n        hide\n    end\n    switch costume to ((1) + (3))\nend\n\nwhen I receive [start v]\nhide\n配置 [4100] [240] [1]\n\nwhen I start as a clone\nforever\n    if <touching (プレーヤー v)?> then\n        set [！ v] to [1]\n        change [3 v] by (1)\n        wait (0) seconds\n        stop [all v]\n    end\nend\n\n@トゲブロック\n\nwhen flag clicked\nhide\n配置 [0] [0] [1]\n配置 [480] [0] [2]\n配置 [960] [0] [3]\n配置 [1440] [0] [4]\n配置 [1920] [0] [5]\n配置 ((1920) + (500)) [0] [6]\n配置 ((1920) + (1000)) [0] [7]\n配置 ((1920) + (1500)) [300] [8]\n配置 ((1920) + (2000)) [300] [9]\n配置 ((1920) + (2500)) [300] [10]\n\ndefine 配置 (1) (2) (3)\nset [1 v] to (1)\nset [2 v] to (2)\nset [3 v] to ((3) + (1))\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nforever\n    switch costume to (なし v)\n    go to x: ((1) - (スクロールｘ)) y: ((2) - (スクロールｙ))\n    show\n    switch costume to (3)\nend\n\n@ステージブロック\n\nwhen flag clicked\nset [チャット v] to []\nhide\n配置 [0] [0] [1]\n配置 [480] [0] [2]\n配置 [960] [0] [3]\n配置 [1440] [0] [4]\n配置 [1920] [0] [5]\n配置 ((1920) + (700)) [250] [6]\n配置 ((1920) + (1150)) [250] [7]\n配置 (((1920) + (1150)) + (500)) [250] [8]\n配置 (((1920) + (1150)) + (1000)) [250] [9]\n配置 (((1920) + (1150)) + (1000)) [250] [10]\n\ndefine 配置 (1) (2) (3)\nset [1 v] to (1)\nset [2 v] to (2)\nset [3 v] to ((3) + (1))\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nforever\n    switch costume to (コスチューム5 v)\n    go to x: ((1) - (スクロールｘ)) y: ((2) - (スクロールｙ))\n    show\n    switch costume to (3)\nend\n\n@アイテムブロック\n\ndefine 配置 (x) (y) (コスチューム)\nset [1 v] to (x)\nset [2 v] to (y)\nset [3 v] to (コスチューム)\ncreate clone of (_myself_ v)\nswitch costume to (コスチューム1 v)\n\nwhen I start as a clone\nforever\n    switch costume to (コスチューム1 v)\n    go to x: ((1) - (スクロールｘ)) y: ((2) - (スクロールｙ))\n    if <<(x position) = ((1) - (スクロールｘ))> and <<(OK？) = [0]> and <(y position) = ((2) - (スクロールｙ))>>> then\n        show\n    else\n        hide\n        set [ghost v] effect to (0)\n        set size to (100) %\n    end\n    switch costume to ((1) + (3))\nend\n\nwhen I receive [start v]\nhide\nset [monster coin？ v] to [0]\n配置 [130] [15] [1]\n配置 [180] [15] [1]\n配置 [340] [-25] [1]\n配置 [390] [-25] [1]\n配置 [630] [-25] [1]\n配置 [680] [-25] [1]\n配置 [730] [-25] [1]\n配置 [1200] [80] [1]\n配置 [2050] [60] [1]\n配置 [2200] [60] [1]\n配置 [2450] [45] [1]\n配置 [2600] [85] [1]\n配置 [3150] [50] [1]\n配置 [3400] [65] [1]\n配置 [3470] [65] [1]\n配置 [3600] [90] [1]\n配置 [3650] [90] [1]\n配置 [3700] [90] [1]\n配置 [3750] [90] [1]\n\nwhen I receive [monster v]\nset [ok？ v] to [0]\n\nwhen I start as a clone\nforever\n    if <touching (プレーヤー v)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n            change size by (5)\n        end\n        set [ok？ v] to [1]\n        change [コイン v] by (1)\n        if <(costume [number v]) = [2]> then\n            change [エメラルド v] by (1)\n        end\n        if <(costume [number v]) = [3]> then\n            change [ダイヤモンド v] by (1)\n        end\n    end\nend\n\nwhen flag clicked\nset [コイン v] to [0]\n\nwhen I receive [monster coin v]\nif <(costume [number v]) = [1]> then\n    wait (0.5) seconds\n    set [monster coin？ v] to [1]\n    配置 (モンコｘ) ((モンコｙ) + (10)) [1]\nend\n\nwhen I start as a clone\nif <(monster coin？) = [1]> then\n    wait until <<(！) = [1]> and <(OK？) = [1]>>\n    wait until <(！) = [0]>\n    delete this clone\nend\n\nwhen I start as a clone\nset [3 v] to (pick random (1) to (2))\n\n@チャット\n\nwhen flag clicked\nset [チャット表示 v] to [0]\nshow\nswitch costume to (コスチューム1 v)\ncreate clone of (_myself_ v)\nswitch costume to (コスチューム2 v)\ncreate clone of (_myself_ v)\nhide\n\nwhen I receive [チャット v]\nif <(costume [number v]) = [1]> then\n    wait (5) seconds\n    set [チャット v] to []\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    forever\n        go to x: (-1) y: (143)\n        set [ghost v] effect to (30)\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            set [ghost v] effect to (50)\n            set [チャット表示 v] to [1]\n            ask [] and wait\n            set [チャット表示 v] to [0]\n            if <<[0] < (answer)> and <(answer) < [11]>> then\n                set [チャット v] to (answer)\n                broadcast (チャット v)\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [2]> then\n    forever\n        go to x: (0) y: (0)\n        set [ghost v] effect to (50)\n        if <(チャット表示) = [1]> then\n            show\n        else\n            hide\n        end\n    end\nend\n\n@敵プレイヤー\n\ndefine 配置 (x) (y) (コスチューム) (動かす距離)\nset [+ v] to (動かす距離)\nset [1 v] to (x)\nset [2 v] to (y)\nset [3 v] to (コスチューム)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nforever\n    switch costume to (コスチューム1 v)\n    point in direction ((90) + (モンスターｘ))\n    go to x: (((1) + (+X)) - (スクロールｘ)) y: ((2) - (スクロールｙ))\n    if <<(x position) = (((1) + (+X)) - (スクロールｘ))> and <<(OK？) = [0]> and <(y position) = ((2) - (スクロールｙ))>>> then\n        show\n    else\n        if <[0] < (OK？)> then\n            set size to (100) %\n            set [ghost v] effect to (0)\n            hide\n        end\n    end\n    switch costume to ((0) + (3))\n    if <[0] < (モンスターｘ)> then\n        switch costume to ((3) + (1))\n    else\n        switch costume to ((3) + (2))\n    end\nend\n\nwhen I start as a clone\nset [+x v] to [0]\nset [モンスターｘ v] to [0]\nforever\n    repeat (+)\n        change [モンスターｘ v] by (1)\n        set [モンスターｘ v] to ((モンスターｘ) * (0.85))\n        change [+x v] by (モンスターｘ)\n        wait until <[-1] < (OK？)>\n    end\n    repeat (+)\n        change [モンスターｘ v] by (-1)\n        set [モンスターｘ v] to ((モンスターｘ) * (0.85))\n        change [+x v] by (モンスターｘ)\n        wait until <[-1] < (OK？)>\n    end\nend\n\nwhen I start as a clone\nset [ok？ v] to [0]\nforever\n    if <touching (プレーヤー v)?> then\n        if <(y) < [0]> then\n            set [y v] to [18]\n            set [モンコｘ v] to ((1) + (+X))\n            set [モンコｙ v] to (2)\n            broadcast (monster coin v)\n            set [ok？ v] to [-1]\n            repeat (10)\n                change [ghost v] effect by (10)\n                change size by (5)\n            end\n            set [ok？ v] to [1]\n        else\n            broadcast (初期化 v)\n        end\n    end\nend\n\nwhen I receive [monster v]\nset [ok？ v] to [0]\n\nwhen I receive [start v]\nhide\n配置 [850] [-35] [1] [40]\n配置 [3250] [150] [1] [20]\n配置 [3750] [100] [1] [10]\n\nwhen I receive [monster v]\nif <[0] < (0)> then\n    set [エメラルド v] to ((0) + (0))\nelse\n    set [エメラルド v] to [0]\nend\nif <[0] < (0.0)> then\n    set [ダイヤモンド v] to ((0) + (0.0))\nelse\n    set [ダイヤモンド v] to [0]\nend\n\n@プレーヤー２\n\nwhen I receive [オンライン！ v]\nhide\n配置\n\ndefine 配置\nset [prayer2 v] to [0]\nrepeat (10)\n    change [prayer2 v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nforever\n    show\n    set [ghost v] effect to (0)\n    if <<(1p？) = (prayer2)> or <<(item (prayer2) of [p1〜10 v]) = [0]> or <[1] = (letter (54) of (item (prayer2) of [p1〜10 v]))>>> then\n        hide\n    end\n    switch costume to (コスチューム7 v)\n    xy (((join (letter (41) of (item (prayer2) of [p1〜10 v])) (join (letter (42) of (item (prayer2) of [p1〜10 v])) (join (letter (43) of (item (prayer2) of [p1〜10 v])) (letter (44) of (item (prayer2) of [p1〜10 v]))))) - (1500)) - (スクロールｘ)) (((join (letter (45) of (item (prayer2) of [p1〜10 v])) (join (letter (46) of (item (prayer2) of [p1〜10 v])) (join (letter (47) of (item (prayer2) of [p1〜10 v])) (letter (48) of (item (prayer2) of [p1〜10 v]))))) - (1500)) - (スクロールｙ))\n    point in direction (join (letter (55) of (item (prayer2) of [p1〜10 v])) (letter (56) of (item (prayer2) of [p1〜10 v])))\n    switch costume to ((join (letter (49) of (item (prayer2) of [p1〜10 v])) (letter (50) of (item (prayer2) of [p1〜10 v]))) - (10))\n    if <((join (letter (51) of (item (prayer2) of [p1〜10 v])) (letter (52) of (item (prayer2) of [p1〜10 v]))) - (10)) = [0]> then\n        say (item (prayer2) of [user v])\n    else\n        say (join (item (prayer2) of [user v]) (join [:] (item ((join (letter (51) of (item (prayer2) of [p1〜10 v])) (letter (52) of (item (prayer2) of [p1〜10 v]))) - (10)) of [chat v])))\n    end\nend\n\ndefine xy (x) (y)\ngo to x: (x) y: (y)\nif <not <<(x position) = (x)> and <(y position) = (y)>>> then\n    set [ghost v] effect to (100)\nend\n\n@スプライト1\n\nwhen flag clicked\nforever\n    go to (mouse-pointer v)\nend\n\n