Wings of Fire platformer 6

Instructions: Theres a secret ending for those who read the book.. :)\nWelcome to Wings of fire platformer 6!\nGo through and adventure with the five dragonets of destiny to finally choose the Sand Wing queen... \n\nThis is the remastered version of Wings of Fire 5.5!\n\nThis may be the final Wings of Fire of this series... I've had so much fun making these! Possibly, there might be a second series with new dragonets..?\n\n[1-6] Dragon Change\n[SPACE] Skip Intro\n[R] Reset dragon\n[Z] Activate certain dragon abilities\n\nHave fun!

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop20 v)\nhide variable [dragon: v]\nhide variable [treasure v]\n\nwhen flag clicked\n\nwhen backdrop switches to [b5 rock v]\nforever\n    \nend\n\nswitch backdrop to (thumbnail v)\n\n@lvl\n\nwhen flag clicked\nhide\n\nwhen I receive [go to back ground 7 v]\nshow\nswitch backdrop to (b7 ice v)\nswitch costume to (l 7 artic glacier v)\n\nwhen I receive [get out v]\nswitch costume to (l 2 intro v)\nswitch backdrop to (b2 powers v)\nshow\n\nwhen I receive [go to background 4 v]\nshow\nswitch costume to (l 4 desert entrance v)\nswitch backdrop to (b4 sand intro v)\nwait (0.2) seconds\ngo to [front v] layer\n\nwhen I receive [go to 5 v]\nswitch backdrop to (b5 rock v)\nswitch costume to (l 5 desert rock v)\ngo to [back v] layer\n\nwhen I receive [go to 6 v]\nswitch costume to (l 6 artic enter v)\nswitch backdrop to (b6 ice intro v)\n\nwhen I receive [go to 8 v]\nswitch costume to (l 8 queen glacier v)\nswitch backdrop to (b8 glacier v)\n\nwhen I receive [go to 9 v]\nswitch backdrop to (b9 talonspeaceintro v)\nswitch costume to (l 9 2 rocks v)\n\nwhen I receive [go to 10 v]\nswitch backdrop to (b10 night1 mountain v)\nswitch costume to (l 10 mountain v)\n\nwhen I receive [the game is on v]\nwait (2) seconds\nshow\nswitch costume to (l 1 v)\nswitch backdrop to (b1 intro v)\n\nwhen I receive [go to 11 v]\nswitch backdrop to (b11 nautlius v)\nswitch costume to (l 11 nautic v)\n\nwhen flag clicked\nset volume to (100) %\nforever\n    play sound [\(Wings of Fire- The Journey\) Calmest Night - Sandwing Kingdom Night Theme v] until done\nend\n\nwhen I receive [fates v]\nif <<<key (z v) pressed?> and <(dragon:) = [Fatespeaker]>> and <(costume [number v]) = [5]>> then\n    switch costume to (fates v)\nelse\n    switch costume to (l 5 desert rock v)\nend\n\nwhen I receive [go to 12 v]\nswitch backdrop to (b12 mudintro v)\nswitch costume to (l 12 mudencamp1 v)\n\nwhen I receive [go to background 3 v]\nswitch costume to (l 3 treasure v)\nswitch backdrop to (b3 treasure v)\n\nwhen I receive [go to 13 v]\nswitch backdrop to (b13 mohern sleep v)\nswitch costume to (l 13 mudencamp2 v)\n\nwhen I receive [go to 14 v]\nswitch backdrop to (b14 dreamvisitor v)\nswitch costume to (l 14 dream vis v)\n\nwhen flag clicked\n\nwhen I receive [go to 15 \(dream\) v]\nswitch backdrop to (b15 thedream v)\nswitch costume to (l 15 thedream v)\n\nwhen I receive [go to 16 v]\nswitch backdrop to (b16 to the palace.. v)\nswitch costume to (l 16 to the palace.. v)\n\nwhen I receive [go to 17 v]\nswitch backdrop to (b17 stronghold entrance v)\nswitch costume to (l 17 stronghold entrance v)\n\nwhen I receive [go to 18 v]\nswitch backdrop to (b18 stronghold v)\nswitch costume to (l 18 stronghold v)\n\nwhen I receive [burn chosen v]\nstop [other scripts in sprite v]\n\nwhen I receive [blister chosen v]\nstop [other scripts in sprite v]\n\nwhen I receive [thorn chosen v]\nstop [other scripts in sprite v]\n\nwhen I receive [blaze chosen v]\nstop [other scripts in sprite v]\n\nwhen I receive [sound again v]\nset volume to (100) %\nforever\n    play sound [\(Wings of Fire- The Journey\) Calmest Night - Sandwing Kingdom Night Theme v] until done\nend\n\n@player\n\nwhen flag clicked\nhide\ngo to x: (-208) y: (-111)\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nforever\n    platform gravity: [-1] jump height: [15] side movement speed: [3] friction: [.7] slope: [8]\nend\n\ndefine platform gravity: (gravity) jump height: (jump height) side movement speed: (side movement speed) friction: (friction) slope: (slope)\nchange [y velocity v] by (gravity)\nchange y by (y velocity)\nif <touching (lvl v)?> then\n    repeat until <not <touching (lvl v)?>>\n        change y by ((([abs v] of (y velocity) ) / (y velocity)) * (-1))\n    end\n    set [y velocity v] to [0]\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        set [y velocity v] to (jump height)\n    end\nend\nset [x velocity v] to (((x velocity) + ((<<key (left arrow v) pressed?> or <key (a v) pressed?>> * ((side movement speed) * (-1))) + (<<key (right arrow v) pressed?> or <key (d v) pressed?>> * (side movement speed)))) * (friction))\nchange x by (x velocity)\nset [slope v] to [0]\nrepeat until <<(slope) = ((slope) * (-1))> or <not <touching (lvl v)?>>>\n    change y by (1)\n    change [slope v] by (-1)\nend\nif <touching (lvl v)?> then\n    change y by (slope)\n    repeat until <not <touching (lvl v)?>>\n        change x by ((([abs v] of (x velocity) ) / (x velocity)) * (-1))\n    end\nend\n\nwhen flag clicked\n\nwhen I receive [go to background 3 v]\ngo to x: (-199) y: (25)\n\nwhen flag clicked\nset [dragon: v] to [Clay]\nset size to (250) %\nswitch costume to (clay right v)\nrepeat until <<key (6 v) pressed?> or <<key (2 v) pressed?> or <<key (3 v) pressed?> or <<key (4 v) pressed?> or <key (5 v) pressed?>>>>>\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (clay right v)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (clay left v)\n    end\nend\n\nwhen backdrop switches to [b7 ice v]\ngo to x: (-211) y: (57)\n\nwhen [4 v] key pressed\nset [dragon: v] to [Glory]\nset size to (250) %\nswitch costume to (glory right v)\nrepeat until <<key (1 v) pressed?> or <<key (2 v) pressed?> or <<key (3 v) pressed?> or <<key (6 v) pressed?> or <key (5 v) pressed?>>>>>\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (glory right v)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (glory left v)\n    end\nend\n\nwhen [3 v] key pressed\nset [dragon: v] to [Sunny]\nset size to (250) %\nswitch costume to (sun right v)\nrepeat until <<key (1 v) pressed?> or <<key (2 v) pressed?> or <<key (6 v) pressed?> or <<key (4 v) pressed?> or <key (5 v) pressed?>>>>>\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (sun right v)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (sun left v)\n    end\n    if <key (z v) pressed?> then\n        repeat until <(size) = [150]>\n            change size by (-10)\n        end\n    else\n        if <not <touching color (#95e1ed)?>> then\n            repeat until <(size) = [250]>\n                change size by (10)\n            end\n        end\n    end\nend\n\nwhen [2 v] key pressed\nset [dragon: v] to [Tsunami]\nset size to (250) %\nswitch costume to (tsu right v)\nrepeat until <<key (1 v) pressed?> or <<key (6 v) pressed?> or <<key (3 v) pressed?> or <<key (4 v) pressed?> or <key (5 v) pressed?>>>>>\n    if <key (z v) pressed?> then\n        set [glow v] to [1]\n        if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n            switch costume to (tsu right light v)\n        end\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            switch costume to (tsu left light v)\n        end\n    else\n        set [glow v] to [0]\n        if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n            switch costume to (tsu right v)\n        end\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            switch costume to (tsu left v)\n        end\n    end\nend\n\nwhen [1 v] key pressed\nset [dragon: v] to [Clay]\nset size to (250) %\nswitch costume to (clay right v)\nrepeat until <<key (6 v) pressed?> or <<key (2 v) pressed?> or <<key (3 v) pressed?> or <<key (4 v) pressed?> or <key (5 v) pressed?>>>>>\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (clay right v)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (clay left v)\n    end\nend\n\nwhen I receive [get out v]\ngo to x: (-211) y: (-108)\n\nforever\n    if <touching color (#43c7ff)?> then\n        broadcast (go to background 3 v)\n        go to x: (-199) y: (25)\n    end\nend\n\nwhen I receive [go to background 4 v]\ngo to x: (-199) y: (25)\n\nwhen I receive [go to 5 v]\ngo to x: (-211) y: (-80)\n\nwhen I receive [go to 6 v]\ngo to x: (-211) y: (-68)\n\nwhen [r v] key pressed\ngo to x: (-186) y: (-89)\n\nwhen I receive [go to 8 v]\ngo to x: (-206) y: (-66)\n\nwhen I receive [go to 9 v]\ngo to x: (-234) y: (-101)\n\nwhen I receive [i found u v]\ngo to x: (-199) y: (-68)\n\nwhen I receive [go to 10 v]\ngo to x: (-234) y: (-101)\n\nwhen I receive [the game is on v]\nshow\n\nwhen [5 v] key pressed\nset [dragon: v] to [Starflight]\nset size to (250) %\nswitch costume to (star right v)\nrepeat until <<key (1 v) pressed?> or <<key (6 v) pressed?> or <<key (3 v) pressed?> or <<key (4 v) pressed?> or <key (2 v) pressed?>>>>>\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (star right v)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (star left v)\n    end\nend\n\nwhen I receive [go to 11 v]\ngo to x: (-197) y: (-81)\n\nwhen [4 v] key pressed\nwait (0.5) seconds\nrepeat until <<key (1 v) pressed?> or <<key (2 v) pressed?> or <<key (3 v) pressed?> or <key (5 v) pressed?>>>>\n    if <key (z v) pressed?> then\n        if <(costume [number v]) = [10]> then\n            broadcast (Spit v)\n            wait (3) seconds\n        else\n            broadcast (Spit G v)\n            wait (3) seconds\n        end\n    end\nend\n\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    switch costume to (tsu right v)\nend\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    switch costume to (tsu left v)\nend\n\nwhen [2 v] key pressed\nrepeat until <<key (1 v) pressed?> or <<key (6 v) pressed?> or <<key (3 v) pressed?> or <<key (4 v) pressed?> or <key (5 v) pressed?>>>>>\n    if <key (z v) pressed?> then\n        broadcast (tsunami v)\n    end\nend\n\nforever\n\nwhen I receive [lavaaaaa v]\ngo to x: (-196) y: (-55)\nsay [>.< too hot for me!] for (0.2) seconds\n\nwhen I receive [boooom v]\nforever\n    hide\nend\n\nwhen [4 v] key pressed\nset [dragon: v] to [Glory]\nset size to (250) %\nswitch costume to (glory right v)\nrepeat until <<key (1 v) pressed?> or <<key (2 v) pressed?> or <<key (3 v) pressed?> or <<key (6 v) pressed?> or <key (5 v) pressed?>>>>>\n    if <key (q v) pressed?> then\n        change [color v] effect by (25)\n    end\nend\nset [color v] effect to (0)\n\nwhen [6 v] key pressed\nset [dragon: v] to [Thorn]\nset size to (250) %\nswitch costume to (thorn right v)\nrepeat until <<key (1 v) pressed?> or <<key (5 v) pressed?> or <<key (3 v) pressed?> or <<key (4 v) pressed?> or <key (2 v) pressed?>>>>>\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (thorn right v)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (thorn left v)\n    end\nend\n\nwhen I receive [cactus v]\ngo to x: (-201) y: (-50)\n\nwhen backdrop switches to [b11 nautlius v]\nsay [Tell Blister to meet us ten midnights from tonight. In the stronghold's courtyard...] for (3) seconds\nbroadcast (Blister msg v)\n\nwhen backdrop switches to [b8 glacier v]\nsay [Tell Blaze to meet us at the stronghold in 3 midnights...] for (3) seconds\nbroadcast (Blaze msg v)\n\nwhen I receive [go to 11 v]\ngo to x: (-211) y: (-68)\n\nwhen I receive [go to 12 v]\ngo to x: (-211) y: (-68)\n\nwhen I receive [go to 13 v]\ngo to x: (-211) y: (-68)\n\nwhen I receive [go to 14 v]\ngo to x: (-211) y: (-68)\n\nwhen flag clicked\nforever\n    set [x dragon v] to (x position)\n    set [y dragon v] to (y position)\nend\n\nwhen [5 v] key pressed\nrepeat until <<key (1 v) pressed?> or <<key (6 v) pressed?> or <<key (3 v) pressed?> or <<key (4 v) pressed?> or <key (2 v) pressed?>>>>>\n    if <<key (z v) pressed?> and <(Dream) = [1]>> then\n        broadcast (dream v)\n        say [Hello!] for (2) seconds\n        forever\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [go to 15 \(dream\) v]\ngo to x: (-211) y: (-68)\n\nwhen backdrop switches to [b15 thedream v]\nwait (0.3) seconds\nsay [Tell Burn to meet us at her stronghold.. the war may be finished and your children won't have to die...] for (3) seconds\nbroadcast (Burn msg v)\n\nwhen I receive [go to 16 v]\ngo to x: (-197) y: (-81)\n\nwhen I receive [go to 17 v]\ngo to x: (-197) y: (-81)\n\nwhen I receive [go to 18 v]\ngo to x: (-44) y: (-90)\n\n@Level Changer\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (get out v)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [b2 powers v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (go to background 3 v)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [b3 treasure v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (go to background 4 v)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [b4 sand intro v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (go to 5 v)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [b5 rock v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (go to 6 v)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [b6 ice intro v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (go to back ground 7 v)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [b7 ice v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (go to 8 v)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [b8 glacier v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (go to 9 v)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [b9 talonspeaceintro v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (go to 10 v)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [b10 night1 mountain v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (go to 11 v)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [b11 nautlius v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (go to 12 v)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [b12 mudintro v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (go to 13 v)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [b13 mohern sleep v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (go to 14 v)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [b1 intro v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (get out v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [dream v]\nbroadcast (go to 15 \(Dream\) v)\n\nwhen flag clicked\nforever\n    if <key (9 v) pressed?> then\n        broadcast (go to 13 v)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [b15 thedream v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (go to 16 v)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [b16 to the palace.. v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (go to 17 v)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [b17 stronghold entrance v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (go to 18 v)\n        stop [other scripts in sprite v]\n        stop [this script v]\n    end\nend\n\n@Artifacts\n\nwhen flag clicked\nset [treasure v] to [0]\nhide\n\nforever\n    change y by (3)\n    wait (0.3) seconds\n    change y by (-3)\n    wait (0.3) seconds\nend\n\nwhen I start as a clone\n\nwhen backdrop switches to [b3 treasure v]\ngo to x: (5) y: (-15)\nshow\nswitch costume to (pick random (1) to (3))\nforever\n    if <touching (player v)?> then\n        hide\n        change [treasure v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen I start as a clone\n\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [b4 sand intro v]\ngo to [back v] layer\ngo to x: (49) y: (-100)\nswitch costume to (pick random (1) to (3))\nshow\nforever\n    if <touching (player v)?> then\n        hide\n        change [treasure v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [b5 rock v]\ngo to x: (83) y: (65)\nshow\nswitch costume to (pick random (1) to (3))\ngo to [back v] layer\nforever\n    if <touching (player v)?> then\n        hide\n        change [treasure v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [b6 ice intro v]\ngo to x: (185) y: (-100)\nshow\ngo to [front v] layer\nforever\n    if <touching (player v)?> then\n        hide\n        change [treasure v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [b7 ice v]\ngo to x: (-104) y: (-99)\nshow\nswitch costume to (pick random (1) to (3))\ngo to [back v] layer\nforever\n    if <touching (player v)?> then\n        hide\n        change [treasure v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [b8 glacier v]\ngo to x: (-81) y: (2)\nshow\nswitch costume to (pick random (1) to (3))\ngo to [front v] layer\nforever\n    if <touching (player v)?> then\n        hide\n        change [treasure v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [b9 talonspeaceintro v]\ngo to x: (171) y: (-18)\nshow\nswitch costume to (pick random (1) to (3))\ngo to [front v] layer\nforever\n    if <touching (player v)?> then\n        hide\n        change [treasure v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen I receive [boooom v]\nhide\n\nswitch costume to (pick random (1) to (3))\n\nwhen flag clicked\nforever\n    set size to (70) %\n    set [v1 v] to [-5]\n    repeat (10)\n        change size by (V1)\n        change [v1 v] by (1)\n    end\nend\n\nwhen flag clicked\npoint in direction (90)\nturn right (15) degrees\nforever\n    repeat (10)\n        turn left (3) degrees\n    end\n    repeat (10)\n        turn left (-3) degrees\n    end\nend\n\nwhen backdrop switches to [b18 stronghold v]\nforever\n    hide\nend\n\n@PlayButton\n\nwhen flag clicked\ngo to x: (114) y: (158)\n\nwhen this sprite clicked\nhide\nbroadcast (the game is on v)\nset [start v] to [1]\nshow variable [dragon: v]\nshow variable [treasure v]\n\nwhen flag clicked\nset [start v] to [0]\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (on v)\n    else\n        switch costume to (off v)\n    end\nend\n\nwhen flag clicked\nhide\nwait (2.8) seconds\nset [ghost v] effect to (100)\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\n@Magical death spit\n\nwhen I receive [spit v]\nswitch costume to (costume1 v)\nshow\ngo to (player v)\nchange y by (13)\nchange x by (31)\nrepeat until <<touching (_edge_ v)?> or <touching (lvl v)?>>\n    move (15) steps\nend\nswitch costume to (costume2 d v)\nwait (0.02) seconds\nswitch costume to (costume3 d v)\nwait (0.02) seconds\nswitch costume to (costume4 d v)\nwait (0.02) seconds\nhide\n\nwhen I receive [spit g v]\nswitch costume to (costume1 v)\nshow\ngo to (player v)\nchange y by (13)\nchange x by (-31)\nrepeat until <<touching (_edge_ v)?> or <touching (lvl v)?>>\n    move (-15) steps\nend\nswitch costume to (costume2 g v)\nwait (0.02) seconds\nswitch costume to (costume3 g v)\nwait (0.02) seconds\nswitch costume to (costume4 g v)\nwait (0.02) seconds\nhide\n\nwhen I receive [boooom v]\nhide\n\n@Tsunami Glowww\n\nwhen flag clicked\nhide\nforever\n    wait (0.18) seconds\n    next costume\nend\n\nwhen flag clicked\nhide\nforever\n    go to (player v)\nend\n\nwhen I receive [tsunami v]\nrepeat until <not <key (z v) pressed?>>\n    show\nend\nhide\n\nwhen I receive [boooom v]\nhide\n\n@Text\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [the game is on v]\ngo to [front v] layer\nhide variable [treasure v]\nhide variable [dragon: v]\nbroadcast (fade 2 v)\nwait (1.4) seconds\nswitch costume to (costume1 v)\nshow\nwait (2) seconds\nbroadcast (fade 1 v)\nwait (0.6) seconds\nnext costume\nwait (4) seconds\nbroadcast (fade 1 v)\nwait (0.6) seconds\nnext costume\nwait (4) seconds\nbroadcast (fade 1 v)\nwait (0.6) seconds\nnext costume\nwait (4) seconds\nbroadcast (fade 1 v)\nwait (0.6) seconds\nnext costume\nwait (3) seconds\nbroadcast (fade 1 v)\nwait (0.6) seconds\nnext costume\nbroadcast (fade 1 v)\nwait (0.6) seconds\nhide\n\nwhen [space v] key pressed\nstop [other scripts in sprite v]\nrepeat (10)\n    change [ghost v] effect by (10)\n    change [whirl v] effect by (3)\nend\n\n@Fade in/out\n\nwhen I receive [fade 1 v]\ngo to [front v] layer\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\nwhen I receive [fade 2 v]\ngo to [front v] layer\nrepeat (40)\n    change [ghost v] effect by (-2.5)\nend\nwait (0.10) seconds\ngo to [front v] layer\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\nwhen [space v] key pressed\nstop [other scripts in sprite v]\nrepeat (10)\n    change [ghost v] effect by (10)\n    change [whirl v] effect by (3)\nend\n\n@Powers Tab\n\nwhen backdrop switches to [b1 intro v]\nshow\ngo to x: (-6) y: (240)\nswitch costume to (arrow down v)\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    glide (0.35) secs to x: (-6) y: (119)\n    switch costume to (arrow up v)\nelse\n    glide (0.35) secs to x: (-6) y: (240)\n    switch costume to (arrow down v)\nend\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\nend\n\n@Dragon INDICATOR\n\nwhen flag clicked\nhide\n\nwhen [space v] key pressed\nshow\n\nwhen I receive [the game is on v]\nwait (3) seconds\nshow\n\nwhen flag clicked\nforever\n    if <(dragon:) = [Clay]> then\n        switch costume to (costume1 v)\n    end\n    if <(dragon:) = [Tsunami]> then\n        switch costume to (costume2 v)\n    end\n    if <(dragon:) = [Sunny]> then\n        switch costume to (costume3 v)\n    end\n    if <(dragon:) = [Glory]> then\n        switch costume to (costume4 v)\n    end\n    if <(dragon:) = [Starflight]> then\n        switch costume to (costume5 v)\n    end\n    if <(dragon:) = [Thorn]> then\n        switch costume to (costume6 v)\n    end\nend\n\n@TREASURE N0\n\nwhen flag clicked\nhide\nswitch costume to (0 v)\nforever\n    if <(Treasure) = [1]> then\n        switch costume to (1 v)\n    end\n    if <(Treasure) = [2]> then\n        switch costume to (2 v)\n    end\n    if <(Treasure) = [3]> then\n        switch costume to (3 v)\n    end\n    if <(Treasure) = [4]> then\n        switch costume to (4 v)\n    end\nend\n\nwhen backdrop switches to [b1 intro v]\nshow\n\n@Cacti\n\nwhen backdrop switches to [b5 rock v]\nstop [other scripts in sprite v]\ngo to x: (-120) y: (-81)\nswitch costume to (costume2 v)\ngo to [back v] layer\nshow\nforever\n    if <touching (player v)?> then\n        broadcast (Cactus v)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [b7 ice v]\nhide\n\nwhen backdrop switches to [b6 ice intro v]\nhide\n\nwhen backdrop switches to [b18 stronghold v]\nforever\n    hide\nend\n\n@Snowflake\n\nwhen I start as a clone\nif <(backdrop [number v]) > [8]> then\n    delete this clone\nelse\n    set [s v] to (pick random (1) to (pick random (2) to (pick random (4) to (pick random (7) to (pick random (11) to (15))))))\n    go to x: (pick random (-240) to (240)) y: (170)\n    set size to ((s) * (50)) %\n    show\n    set [st v] to ((s) * (s))\n    forever\n        if <(s) > [3]> then\n            go to [front v] layer\n        else\n            go [backward v] (10) layers\n        end\n        change [st v] by (0.01)\n        move (st) steps\n        if <<(y position) < [-150]> or <touching (_edge_ v)?>> then\n            delete this clone\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nif <(backdrop [number v]) > [8]> then\n    delete this clone\nelse\n    set [d v] to (pick random (170) to (190))\n    forever\n        set [d2 v] to (pick random (170) to (190))\n        repeat until <(d) = (d2)>\n            point in direction (d)\n            if <(d) < (d2)> then\n                change [d v] by (1)\n            else\n                change [d v] by (-1)\n            end\n        end\n    end\nend\n\nwhen backdrop switches to [b7 ice v]\nhide\nforever\n    create clone of (snowflake v)\nend\n\nwhen backdrop switches to [b7 ice v]\nhide\nforever\n    create clone of (snowflake v)\nend\n\nwhen backdrop switches to [b9 talonspeaceintro v]\nhide\nforever\n    stop [other scripts in sprite v]\nend\n\ndelete this clone\n\n\nend\n\n@3 queens\n\nwhen flag clicked\nhide\n\n@Snow Thumbnail\n\nwhen I start as a clone\nshow\nset [s v] to (pick random (1) to (pick random (2) to (pick random (4) to (pick random (7) to (pick random (11) to (15))))))\ngo to x: (pick random (-240) to (0)) y: (200)\nset size to ((s) * (50)) %\nshow\nset [st v] to ((s) * (s))\nforever\n    if <(s) > [3]> then\n        go to [front v] layer\n    else\n        go [backward v] (10) layers\n    end\n    change [st v] by (0.01)\n    move (st) steps\n    if <<(y position) < [-150]> or <touching (_edge_ v)?>> then\n        delete this clone\n    end\nend\n\nwhen flag clicked\nhide\nwait (2) seconds\nrepeat until <(start) = [1]>\n    go to [front v] layer\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [d v] to (pick random (170) to (190))\nforever\n    set [d2 v] to (pick random (170) to (190))\n    repeat until <(d) = (d2)>\n        point in direction (d)\n        if <(d) < (d2)> then\n            change [d v] by (1)\n        else\n            change [d v] by (-1)\n        end\n    end\nend\n\nwhen backdrop switches to [b1 intro v]\nhide\n\nforever\nend\n\nwhen backdrop switches to [b7 ice v]\nhide\nforever\n    create clone of (snowflake v)\nend\n\nshow\n\nwhen I start as a clone\nforever\n    if <(x position) > [0]> then\n        delete this clone\n    end\nend\n\n@Mouse pointer\n\nwhen flag clicked\nforever\n    go to (mouse-pointer v)\nend\n\n@Letter\n\nwhen I receive [blaze msg v]\nswitch costume to (blaze3 v)\nshow\npoint in direction (90)\ngo to [front v] layer\nset size to (10) %\nset [ghost v] effect to (100)\nrepeat (10)\n    turn right (36) degrees\n    change [ghost v] effect by (-10)\n    change size by (8)\nend\nrepeat (2)\n    next costume\nend\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nrepeat (10)\n    turn right (36) degrees\n    change [ghost v] effect by (10)\n    change size by (-10)\nend\n\nwhen I receive [blister msg v]\nswitch costume to (blister3 v)\nshow\npoint in direction (90)\ngo to [front v] layer\nset size to (10) %\nset [ghost v] effect to (100)\nrepeat (10)\n    turn right (36) degrees\n    change [ghost v] effect by (-10)\n    change size by (8)\nend\nrepeat (2)\n    next costume\nend\n\nbroadcast (Blaze msg v)\n\nwait (0) seconds\n\ngo to x: (0) y: (0)\n\nwhen I receive [burn msg v]\nswitch costume to (burn3 v)\nshow\npoint in direction (90)\ngo to [front v] layer\nset size to (10) %\nset [ghost v] effect to (100)\nrepeat (10)\n    turn right (36) degrees\n    change [ghost v] effect by (-10)\n    change size by (8)\nend\nrepeat (2)\n    next costume\nend\n\n@Dark\n\nwhen backdrop switches to [b10 night1 mountain v]\nswitch costume to (costume1 v)\nshow\nrepeat until <(backdrop [number v]) = [12]>\n    if <(glow) = [1]> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n    else\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\nend\n\nhide\n\nshow\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [b11 nautlius v]\nswitch costume to (costume2 v)\nshow\nrepeat until <(backdrop [number v]) = [12]>\n    if <(glow) = [1]> then\n        hide\n    else\n        show\n    end\nend\n\ngo to [front v] layer\n\nwhen backdrop switches to [thumbnail v]\nstop [other scripts in sprite v]\nforever\n    hide\nend\n\nwhen backdrop switches to [b12 mudintro v]\nhide\n\n@Dark2\n\nwhen backdrop switches to [b10 night1 mountain v]\nrepeat until <(backdrop [number v]) = [11]>\n    if <(glow) = [1]> then\n        show\n    else\n        hide\n    end\nend\nhide\n\nwhen flag clicked\nhide\nforever\n    go to (player v)\nend\n\nwhen backdrop switches to [b11 nautlius v]\nrepeat until <(backdrop [number v]) = [11]>\n    if <(glow) = [1]> then\n        show\n    else\n        hide\n    end\nend\nhide\n\nwhen backdrop switches to [b12 mudintro v]\nhide\n\n@Dreams..\n\nwhen backdrop switches to [b14 dreamvisitor v]\nshow\nforever\n    if <<(dragon:) = [Starflight]> and <touching (player v)?>> then\n        broadcast (follow v)\n        set [dream v] to [1]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset [dream v] to [0]\nhide\n\nglide (0.3) secs to (player v)\n\nwait (0) seconds\n\ngo to x: (114) y: (-106)\n\nwhen I receive [follow v]\nforever\n    go to [front v] layer\n    go to x: (x dragon) y: (y dragon)\nend\n\nwhen I receive [go to 16 v]\nhide\n\n@Opening Spr2\n\nwhen flag clicked\ngo to x: (0) y: (-80)\nhide\nshow\nglide (00.25) secs to x: (0) y: (0)\n\nwhen I receive [the game is on v]\ngo to [back v] layer\nwait (2) seconds\nhide\n\n@Opening Spr3\n\nwhen flag clicked\ngo to x: (0) y: (-80)\nhide\nwait (0.15) seconds\nshow\nglide (00.25) secs to x: (0) y: (0)\n\nwhen I receive [the game is on v]\ngo to [back v] layer\nwait (2) seconds\nhide\n\n@Opening Spr4\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (0) y: (900)\nhide\nwait (00.34) seconds\nshow\nglide (00.25) secs to x: (0) y: (0)\n\nwhen I receive [the game is on v]\ngo to [back v] layer\nwait (2) seconds\nhide\n\n@Opening Spr5\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to [back v] layer\ngo to x: (0) y: (-200)\nhide\nwait (0.4) seconds\nshow\nglide (00.25) secs to x: (0) y: (0)\n\nwhen I receive [the game is on v]\ngo to [back v] layer\nwait (2) seconds\nhide\n\n@Opening Spr6\n\nwhen flag clicked\nhide\ngo to x: (0) y: (-200)\nhide\nwait (0.55) seconds\nshow\nglide (00.25) secs to x: (0) y: (0)\n\nwhen I receive [the game is on v]\ngo to [back v] layer\nwait (2) seconds\nhide\n\n@Opening Spr7\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (0) y: (900)\nhide\nwait (0.6) seconds\nshow\nglide (00.25) secs to x: (0) y: (0)\n\nwhen I receive [the game is on v]\ngo to [back v] layer\nwait (2) seconds\nhide\n\n@Opening Spr8\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (0) y: (900)\nhide\nwait (0.65) seconds\nshow\nglide (00.25) secs to x: (0) y: (0)\n\nwhen I receive [the game is on v]\nhide\n\nwhen I receive [the game is on v]\ngo to [back v] layer\nwait (2) seconds\nhide\n\n@Opening Spr9\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (0) y: (900)\nhide\nwait (0.7) seconds\nshow\nglide (00.25) secs to x: (0) y: (0)\n\nwhen I receive [the game is on v]\nhide\n\nwhen I receive [the game is on v]\ngo to [back v] layer\nwait (2) seconds\nhide\n\n@Opening Spr10\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (0) y: (900)\nhide\nwait (0.75) seconds\nshow\nglide (00.25) secs to x: (0) y: (0)\n\nwhen I receive [the game is on v]\ngo to [back v] layer\nwait (2) seconds\nhide\n\n@Opening Spr11\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (0) y: (900)\nhide\nwait (0.8) seconds\nshow\nglide (00.25) secs to x: (0) y: (0)\n\nwhen I receive [the game is on v]\nhide\n\nwhen I receive [the game is on v]\ngo to [back v] layer\nwait (2) seconds\nhide\n\n@Opening Spr12\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to [back v] layer\ngo to x: (500) y: (0)\nhide\nwait (1) seconds\nshow\nglide (00.25) secs to x: (0) y: (0)\n\nwhen I receive [the game is on v]\nhide\n\nwhen I receive [the game is on v]\ngo to [back v] layer\nwait (2) seconds\nhide\n\n@Opening Spr13\n\nwhen flag clicked\nhide\nwait (1.5) seconds\nset size to (200) %\nset [ghost v] effect to (100)\nshow\nrepeat (5)\n    change size by (-20)\n    change [ghost v] effect by (-20)\nend\n\nwhen I receive [the game is on v]\nhide\n\nwhen I receive [the game is on v]\ngo to [back v] layer\nwait (2) seconds\nhide\n\n@Opening Spr14\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nhide\nwait (2) seconds\nset size to (200) %\nset [ghost v] effect to (100)\nshow\nrepeat (5)\n    change size by (-20)\n    change [ghost v] effect by (-20)\nend\n\nwhen I receive [the game is on v]\nhide\n\nwhen I receive [the game is on v]\ngo to [back v] layer\nwait (2) seconds\nhide\n\n@Opening Spr15\n\nwhen flag clicked\nhide\nwait (2.2) seconds\nset size to (200) %\nset [ghost v] effect to (100)\nshow\nrepeat (5)\n    change size by (-20)\n    change [ghost v] effect by (-20)\nend\n\nwhen I receive [the game is on v]\nhide\n\nwhen I receive [the game is on v]\ngo to [back v] layer\nwait (2) seconds\nhide\n\n@Opening Spr\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nhide\nwait (2.5) seconds\nset [ghost v] effect to (100)\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [the game is on v]\nhide\n\nwhen I receive [the game is on v]\ngo to [back v] layer\nwait (2) seconds\nhide\n\n@Dream Visitor Glow\n\nwhen flag clicked\nhide\nforever\n    go to [back v] layer\n    go to (dreams.. v)\nend\n\nwhen flag clicked\nset size to (20) %\nforever\n    repeat (10)\n        change size by (1)\n        wait (0.1) seconds\n    end\n    repeat (10)\n        change size by (-1)\n        wait (0.1) seconds\n    end\nend\n\nwhen backdrop switches to [b14 dreamvisitor v]\nshow\n\nwhen I receive [go to 16 v]\nhide\n\n@TumbleWeed\n\nwhen flag clicked\nhide\ngo to [front v] layer\nwait (2) seconds\nset [ghost v] effect to (100)\ngo to x: (257) y: (-135)\nshow\nrepeat (60)\n    change x by (-4)\nend\n\nhide\nchange x by (-4)\n\nwhen flag clicked\nforever\n    turn left (7.5) degrees\nend\n\nwhen flag clicked\nwait (2) seconds\nforever\n    go to [front v] layer\n    set [ghost v] effect to (0)\n    wait (pick random (1) to (2)) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    go to x: (257) y: (-135)\nend\n\nwhen flag clicked\ngo to [front v] layer\nwait (2) seconds\nset [ghost v] effect to (100)\ngo to x: (257) y: (-135)\nforever\n    change x by (-4)\nend\n\nwait (2) seconds\n\nwhen backdrop switches to [b1 intro v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [the game is on v]\nhide\nstop [other scripts in sprite v]\n\n@Xploding cacti\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [b6 ice intro v]\nstop [other scripts in sprite v]\ngo to x: (-32) y: (-69)\nswitch costume to (costume3 v)\ngo to [back v] layer\nshow\nforever\n    if <touching (player v)?> then\n        broadcast (Cactus v)\n    end\nend\n\nwhen backdrop switches to [b7 ice v]\nhide\n\n@Cactiproj\n\nwhen backdrop switches to [b6 ice intro v]\nhide\nset [cacti v] to [0]\nforever\n    go to [back v] layer\n    create clone of (_myself_ v)\n    wait (0.6) seconds\nend\n\nwhen I start as a clone\nshow\nif <(cacti) = [0]> then\n    go to (xploding cacti v)\n    change y by (-25)\n    go to [back v] layer\n    point in direction (-90)\n    if <not <touching (player v)?>> then\n        repeat (15)\n            move (10) steps\n        end\n    end\n    change [cacti v] by (1)\n    delete this clone\nend\nif <(cacti) = [1]> then\n    go to (xploding cacti v)\n    change y by (-25)\n    go to [back v] layer\n    point in direction (-45)\n    if <not <touching (player v)?>> then\n        repeat (15)\n            move (10) steps\n        end\n    end\n    change [cacti v] by (1)\n    delete this clone\nend\nif <(cacti) = [2]> then\n    go to (xploding cacti v)\n    change y by (-25)\n    go to [back v] layer\n    point in direction (45)\n    if <not <touching (player v)?>> then\n        repeat (15)\n            move (10) steps\n        end\n    end\n    change [cacti v] by (1)\n    delete this clone\nend\nif <(cacti) = [3]> then\n    go to (xploding cacti v)\n    change y by (-25)\n    go to [back v] layer\n    point in direction (90)\n    if <not <touching (player v)?>> then\n        repeat (15)\n            move (10) steps\n        end\n    end\n    change [cacti v] by (-3)\n    delete this clone\nend\n\nwhen I start as a clone\nforever\n    if <touching (player v)?> then\n        broadcast (Cactus v)\n        delete this clone\n    end\nend\n\nwhen backdrop switches to [b7 ice v]\nstop [other scripts in sprite v]\nhide\n\n@Trail\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (0)\nset size to (100) %\ngo to (mouse-pointer v)\nchange x by (5)\nchange y by (-13)\nrepeat (10)\n    change size by (-10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I start as a clone\nif <(dragon:) = [Clay]> then\n    switch costume to (clay v)\nend\nif <(dragon:) = [Tsunami]> then\n    switch costume to (tsu v)\nend\nif <(dragon:) = [Sunny]> then\n    switch costume to (sun v)\nend\nif <(dragon:) = [Glory]> then\n    switch costume to (glory v)\nend\nif <(dragon:) = [Starflight]> then\n    switch costume to (starf v)\nend\nif <(dragon:) = [Thorn]> then\n    switch costume to (thorn v)\nend\n\nnext costume\n\nset [trail v] to [1]\n\nwhen [t v] key pressed\n\nwhen I receive [trail v]\n\nbroadcast (trail v)\n\nif <(trail) = [1]> then\n    stop [other scripts in sprite v]\n    set [trail v] to [0]\nend\n\nif <(trail) = [0]> then\n    set [trail v] to [1]\n    broadcast (trail v)\nend\n\nwhen [t v] key pressed\n\n@Fire in dream\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen backdrop switches to [b15 thedream v]\nshow\nforever\n    glide (pick random (0.3) to (1.2)) secs to x: (0) y: (-100)\n    glide (pick random (0.3) to (1.2)) secs to x: (0) y: (0)\nend\n\nwhen I receive [go to 16 v]\nhide\n\n@Burn\n\nwhen flag clicked\ngo to x: (95) y: (200)\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen backdrop switches to [b18 stronghold v]\nshow\nglide (0.1) secs to x: (95) y: (6)\n\nwhen this sprite clicked\nbroadcast (Burn chosen v)\n\nwhen I receive [blister chosen v]\nstop [other scripts in sprite v]\nswitch costume to (costume3 v)\n\nwhen I receive [blaze chosen v]\nstop [other scripts in sprite v]\nswitch costume to (costume3 v)\n\nwhen I receive [kill all v]\nstop [other scripts in sprite v]\nswitch costume to (costume3 v)\n\n@Blister\n\nwhen flag clicked\ngo to x: (-150) y: (200)\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen backdrop switches to [b18 stronghold v]\nshow\nglide (0.1) secs to x: (-150) y: (16)\n\nwhen I receive [burn chosen v]\nstop [other scripts in sprite v]\nswitch costume to (costume3 v)\n\nwhen this sprite clicked\nbroadcast (Blister Chosen v)\n\nwhen I receive [blaze chosen v]\nstop [other scripts in sprite v]\nswitch costume to (costume3 v)\n\nwhen I receive [kill all v]\nstop [other scripts in sprite v]\nswitch costume to (costume3 v)\n\n@Blaze\n\nwhen flag clicked\ngo to x: (157) y: (200)\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen backdrop switches to [b18 stronghold v]\nshow\nglide (0.1) secs to x: (157) y: (-106)\n\nwhen I receive [burn chosen v]\nstop [other scripts in sprite v]\nswitch costume to (costume3 v)\n\nwhen I receive [blister chosen v]\nstop [other scripts in sprite v]\nswitch costume to (costume3 v)\n\nwhen this sprite clicked\nbroadcast (Blaze chosen v)\n\n@Dune\n\nwhen flag clicked\ngo to x: (36) y: (28)\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        if <(dragon:) = [Thorn]> then\n            switch costume to (costume2 v)\n        end\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen backdrop switches to [b18 stronghold v]\nshow\n\nwhen this sprite clicked\nif <(dragon:) = [Thorn]> then\n    broadcast (Thorn chosen v)\n    stop [other scripts in sprite v]\n    switch costume to (costume3 v)\nend\n\n@ray\n\nwhen flag clicked\nset pen color to (#000000)\ngo to x: (-25) y: (-112)\nhide\nerase all\n\nwhen I receive [thorn chosen v]\nerase all\nwait (0.5) seconds\npen down\ngo to (burn v)\nwait (0.5) seconds\ngo to x: (-25) y: (-112)\nwait (0.5) seconds\ngo to (blister v)\nbroadcast (kill all v)\nwait (0.5) seconds\nerase all\n\ngo to (dune v)\n\npen down\n\ngo to x: (36) y: (28)\n\n@End\n\nwhen I receive [blaze chosen v]\nrepeat (10)\n    change volume by (-10)\nend\nstop all sounds\nswitch costume to (blaze v)\nwait (3) seconds\nshow\nbroadcast (sound again v)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nhide\n\nwhen I receive [blister chosen v]\nrepeat (10)\n    change volume by (-10)\nend\nstop all sounds\nswitch costume to (blister v)\nwait (3) seconds\nshow\nbroadcast (sound again v)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [burn chosen v]\nrepeat (10)\n    change volume by (-10)\nend\nstop all sounds\nswitch costume to (burn v)\nwait (3) seconds\nshow\nbroadcast (sound again v)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [thorn chosen v]\nrepeat (10)\n    change volume by (-10)\nend\nstop all sounds\nswitch costume to (credits to shinobiifoxx  v)\nwait (3) seconds\nshow\nbroadcast (sound again v)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\n