STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/34212102?noj=FRM34212102-22DC" width="1" height="1"></div>

Vulpin Adventure - Adventure RPG game..swf

This is the info page for
Flash #130215

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
movieClip 29 { } movieClip 31 { } movieClip 32 { frame 20 { stop(); } } movieClip 34 { } movieClip 35 { frame 16 { stop(); } } movieClip 36 { } movieClip 37 pfx_frost_flake { frame 41 { stop(); } } movieClip 47 pfx_sparklegreen { } movieClip 57 pfx_sparklegold { } movieClip 68 pfx_sparklepurple { } movieClip 75 pfx_sparklepink { } movieClip 77 bg_forest2 { } movieClip 80 { } movieClip 81 bg_blackbrush { } movieClip 83 bg_woods1 { } movieClip 85 bg_woods_boss { } movieClip 87 bg_woods3 { } movieClip 98 pfx_sparklesilver { } movieClip 100 bg_pinkbrush { } movieClip 103 bg_desert2 { } movieClip 110 { frame 28 { gotoAndPlay(1); } } movieClip 111 { frame 1 { pmax = 155; pcount = pmax; onEnterFrame = function () { if (pcount == pmax) { _root.AttachParticle('flamespark', [-1.9, -113], this); pcount = 0; } ++pcount; }; } } movieClip 113 bg_desert4 { } movieClip 115 bg_desert_boss { } movieClip 118 bg_desert3 { } movieClip 121 { } movieClip 122 { } movieClip 124 { } movieClip 125 { frame 1 { onEnterFrame = function () { sun._rotation += 0.5; }; } } movieClip 126 bg_bluebrush { } movieClip 129 bg_ocean1 { } movieClip 132 { } movieClip 134 bg_ocean_boss { } movieClip 137 { } movieClip 139 bg_ocean4 { } movieClip 146 { } movieClip 148 bg_ocean3 { } movieClip 153 { frame 1 { gotoAndPlay(1 + random(8)); } frame 11 { gotoAndPlay(2); } } movieClip 154 { frame 1 { gotoAndPlay(1 + random(40)); } frame 42 { gotoAndPlay(2); } } movieClip 155 bg_ocean2 { } movieClip 158 { } movieClip 159 { frame 1 { stop(); var l = 0; var lmax = 40; onEnterFrame = function () { if (l >= lmax) { if (Math.random() < 0.01) { gotoAndPlay('strike'); l = 0; } } ++l; }; } frame 28 { gotoAndStop(1); } } movieClip 161 bg_cloud_boss { } movieClip 164 bg_cloud3 { } movieClip 166 bg_whitebrush { } movieClip 168 bg_cloud2 { } movieClip 170 bg_bonus1 { } movieClip 172 bg_bonus0 { } movieClip 174 bg_cloud0 { } movieClip 176 bg_cloud1 { } movieClip 179 { } movieClip 180 { } movieClip 189 pfx_starblue { } movieClip 190 { frame 1 { star.gotoAndStop(1); } } movieClip 192 { } movieClip 193 bg_castle_boss { } movieClip 195 pfx_starglow_light_solid { } movieClip 197 pfx_stargloworange_solid { frame 1 { star.gotoAndStop(1); } } movieClip 198 bg_castle_boss2 { } movieClip 201 bg_castle3 { } movieClip 203 pfx_starglow { } movieClip 205 bg_castle2 { } movieClip 208 bg_castle_boss1 { } movieClip 211 bg_castle1 { } movieClip 213 bg_desert1 { } movieClip 215 bg_woods2 { } movieClip 217 bg_forest { } movieClip 219 bg_home { } movieClip 221 bg_green { } movieClip 225 { frame 1 { var hello = 'hello'; } } movieClip 227 { } movieClip 240 { frame 1 { stop(); } } movieClip 248 { frame 1 { stop(); } frame 11 { gotoAndStop(1); } } movieClip 251 mp_unit { frame 1 { stop(); } } // unknown tag 88 length 63 // unknown tag 88 length 67 movieClip 258 { frame 1 { var txtfmt = new TextFormat(); txtfmt.align = 'right'; current_txt.txt.setTextFormat(txtfmt); } } movieClip 263 { frame 1 { stop(); if (_root.currentarea == 'Home' && _root.savetick) { gotoAndPlay(2); _root.savetick = 0; } } frame 70 { gotoAndStop(1); } } movieClip 266 { frame 1 { stop(); } } movieClip 267 topmenu { } movieClip 270 { } movieClip 273 bottommenu { } movieClip 276 namestrip { } // unknown tag 88 length 68 movieClip 281 sidemenu { } movieClip 286 input_strip { } movieClip 288 { } movieClip 291 palette_square { frame 1 { stop(); } } movieClip 294 radiobtn { frame 1 { stop(); } } movieClip 304 { } movieClip 315 { } movieClip 320 { } movieClip 321 { } movieClip 326 equipment { frame 18 { onEnterFrame = function () { if (Math.random() < 0.1) { _root.AttachParticle('static', [0, 0], this); } }; } frame 20 { onEnterFrame = function () { if (Math.random() < 0.07000000000000001) { _root.AttachParticle('starburst', [20, 10], this); } }; } frame 21 { onEnterFrame = function () { if (Math.random() < 0.08) { _root.AttachParticle('suds', [20, 10], this); } }; } } movieClip 352 menubtn { frame 1 { stop(); } } movieClip 361 { frame 1 { stop(); } } movieClip 369 bigbtn { frame 1 { stop(); } } movieClip 373 itemdescription_light { } movieClip 377 itemdescription { } movieClip 379 equip_icon { } movieClip 380 lilbrownbg { } movieClip 383 APdisplay { } // unknown tag 88 length 153 movieClip 388 statdisplay { } movieClip 390 WorldMap { } movieClip 392 { } movieClip 393 apwon { frame 43 { removeMovieClip(this); } } movieClip 395 healdisplay { } movieClip 397 { } movieClip 399 { frame 30 { gotoAndPlay('idle'); } frame 64 { gotoAndPlay('Idle'); } frame 83 { _root.PC.anim.gotoAndPlay('hit'); _root.attachdamage = 1; } frame 87 { gotoAndPlay('Idle'); } } movieClip 400 foe_circle { } movieClip 402 sc_bush { } movieClip 443 { } movieClip 450 { } movieClip 460 pfx_bubble { } movieClip 471 items { frame 1 { stop(); } } movieClip 472 itembounce { frame 21 { stop(); } } movieClip 475 sharddisplay { } movieClip 478 sellbg { } movieClip 480 signpost_boss { } movieClip 482 infopost { } movieClip 484 signpost { } movieClip 492 { frame 1 { stop(); } } movieClip 494 foedisplay { } movieClip 500 addap { frame 1 { stop(); } } movieClip 502 { } movieClip 503 fade { frame 8 { stop(); } frame 16 { stop(); } frame 55 { stop(); } } movieClip 505 sc_torch { frame 1 { pmax = 155; pcount = pmax; onEnterFrame = function () { if (pcount == pmax) { _root.AttachParticle('flamespark', [18, -113], this); pcount = 0; } ++pcount; }; } } movieClip 507 sc_redmush { } movieClip 509 { } movieClip 511 { } movieClip 513 { } movieClip 515 { } movieClip 517 { } movieClip 519 { } movieClip 521 { } movieClip 522 { frame 27 { gotoAndPlay('Idle'); } frame 52 { _root.PC.anim.gotoAndPlay('hit'); _root.attachdamage = 1; } frame 80 { gotoAndPlay('Idle'); } frame 109 { gotoAndPlay('Idle'); } } movieClip 523 foe_hedgewolf { } movieClip 526 { frame 1 { onEnterFrame = function () { if (_parent.stopwings) { stop(); } }; } } movieClip 528 { } movieClip 530 { } movieClip 532 { } movieClip 533 { frame 1 { stopwings = 0; } frame 49 { gotoAndPlay('Idle'); } frame 50 { lwing.gotoAndStop(1); rwing.gotoAndStop(1); } frame 71 { lwing.gotoAndPlay(2); rwing.gotoAndPlay(2); gotoAndPlay('Idle'); } frame 88 { _root.PC.anim.gotoAndPlay('hit'); _root.attachdamage = 1; } frame 98 { gotoAndPlay('Idle'); } frame 99 { stopwings = 1; } frame 109 { stop(); } } movieClip 534 foe_mot { } movieClip 536 { } movieClip 538 { } movieClip 540 { } movieClip 542 { } movieClip 544 { } movieClip 546 { } movieClip 548 { } movieClip 550 { } movieClip 551 { frame 50 { gotoAndPlay('Idle'); } frame 66 { _root.PC.anim.gotoAndPlay('hit'); _root.attachdamage = 1; } frame 80 { gotoAndPlay('Idle'); } frame 102 { gotoAndPlay('Idle'); } frame 163 { _root.attachdamage = 1; if (_root.damage != null) { _root.PC.anim.gotoAndPlay('hit'); } } frame 178 { gotoAndPlay('Idle'); } } movieClip 552 foe_calyx2 { } movieClip 553 foe_calyx { } movieClip 555 { } movieClip 557 { } movieClip 559 { } movieClip 561 { } movieClip 563 { } movieClip 565 { } movieClip 567 { } movieClip 568 { frame 35 { gotoAndPlay('Idle'); } frame 50 { _root.PC.anim.gotoAndPlay('hit'); _root.attachdamage = 1; } frame 64 { gotoAndPlay('Idle'); } frame 90 { gotoAndPlay('Idle'); } } movieClip 569 foe_mushmuncher { } movieClip 570 pfx { frame 1 { var delcount = fx.del; var numcount = 0; var loopnum = 1; if (fx.del == 0) { loopnum = fx.num; } onEnterFrame = function () { if (numcount < fx.num) { if (fx.del > delcount) { ++delcount; } else { var v4 = 0; while (v4 < loopnum) { var v3 = 'P' + numcount; attachMovie('aparticle', v3, 10 + numcount); this[v3].attachMovie('particlemove', 'PM', 100); if (numcount == fx.num - 1) { this[v3].PM.rpfx = 1; } this[v3].PM.attachMovie(fx.mc[random(fx.mc.length)], 'PF', 10); this[v3]._x = _root.RandNum(fx.coord[0][0], fx.coord[0][1]); this[v3]._y = _root.RandNum(fx.coord[1][0], fx.coord[1][1]); this[v3].PM.PF._width *= fx.size; this[v3].PM.PF._height *= fx.size; this[v3].PM.xspeed = fx.spd[0]; this[v3].PM.yspeed = fx.spd[1]; this[v3]._rotation = _root.RandNum(fx.rot[0], fx.rot[1]) - 180; this[v3].PM.spin = fx.spn; this[v3].PM.acc = fx.acc; this[v3].PM.fade = fx.fade; delcount = 0; ++numcount; ++v4; } } } if (numcount == fx.num) { loopnum = 0; } }; } } movieClip 571 aparticle { } movieClip 572 particlemove { frame 1 { var accel = 0; var fcount = 0; onEnterFrame = function () { PF._rotation += spin; this._x += xspeed + accel; this._y += yspeed + accel; accel += acc; if (fcount < fade[1]) { ++fcount; } else { this._alpha -= fade[0]; if (this._alpha <= 0) { if (rpfx == 1) { removeMovieClip(this._parent._parent); } removeMovieClip(this._parent); } } }; } } movieClip 574 pfx_heart { } movieClip 575 pfx_heartmove2 { frame 40 { gotoAndPlay(1); } } movieClip 576 pfx_heartmove { frame 40 { gotoAndPlay(1); } } movieClip 579 pfx_closebtn { } movieClip 581 pfx_export { } movieClip 583 pfx_line { } movieClip 592 pfx_star { } movieClip 593 pfx_starspin { } movieClip 595 pfx_leaf { } movieClip 597 { } movieClip 598 pfx_flameswirl { } movieClip 600 pfx_cloudswirl { } movieClip 602 pfx_smokeswirl { } movieClip 604 pfx_bee { } movieClip 606 { } movieClip 608 { } movieClip 610 { } movieClip 612 { } movieClip 614 { } movieClip 616 { } movieClip 618 { } movieClip 620 { } movieClip 621 { frame 40 { gotoAndPlay('Idle'); } frame 55 { _root.PC.anim.gotoAndPlay('hit'); _root.attachdamage = 1; } frame 70 { gotoAndPlay('Idle'); } frame 89 { gotoAndPlay('Idle'); } } movieClip 622 foe_renegade_reptile { } movieClip 624 { } movieClip 626 { } movieClip 628 { } movieClip 630 { } movieClip 632 { } movieClip 634 { } movieClip 636 { } movieClip 638 { } movieClip 640 { } movieClip 641 { frame 43 { gotoAndPlay('Idle'); } frame 59 { _root.attachdamage = 1; if (_root.damage != null) { _root.PC.anim.gotoAndPlay('hit'); } } frame 80 { gotoAndPlay('Idle'); } frame 103 { gotoAndPlay('Idle'); } } movieClip 642 foe_inpu { frame 1 { stop(); } frame 22 { gotoAndStop(1); } } movieClip 647 { } movieClip 649 { } movieClip 651 { } movieClip 653 { } movieClip 655 { } movieClip 657 { } movieClip 658 { frame 40 { gotoAndPlay('Idle'); } frame 58 { _root.PC.anim.gotoAndPlay('hit'); _root.attachdamage = 1; } frame 70 { gotoAndPlay('Idle'); } frame 115 { gotoAndPlay('Idle'); } frame 137 { _root.attachdamage = 1; if (_root.damage != null) { _root.PC.anim.gotoAndPlay('hit'); } } } movieClip 659 foe_flaming_fossil { } movieClip 663 sleep_btn { } movieClip 665 brownbg { } movieClip 668 achvdescription { } movieClip 670 pfx_z { } movieClip 671 pfx_zmove { } movieClip 673 pfx_paintpink { } movieClip 675 pfx_paintblack { } movieClip 677 pfx_paintwhite { } movieClip 679 pfx_paintblue { } movieClip 683 { frame 1 { stop(); } } movieClip 696 mapicon { frame 1 { stop(); } } movieClip 698 { } movieClip 700 { } movieClip 702 blank { } movieClip 703 { } movieClip 705 { } movieClip 707 { } movieClip 709 { } movieClip 711 { } movieClip 713 { } movieClip 715 { } movieClip 717 { } movieClip 719 { } movieClip 721 { } movieClip 722 { frame 1 { stop(); var t = 0; var tmax = 120; onEnterFrame = function () { if (_root.menuselect != 'fileselect') { ++t; if (t >= tmax) { t = 0; if (Math.random() < 0.4) { gotoAndPlay('twitch'); } } } }; } frame 7 { gotoAndStop('rest'); } } movieClip 724 { } movieClip 726 { } movieClip 728 { } movieClip 730 { } movieClip 732 { } movieClip 734 { } movieClip 736 { } movieClip 738 { } movieClip 740 { } movieClip 742 { } movieClip 744 { } movieClip 746 { } movieClip 749 { frame 1 { stop(); } } movieClip 752 { frame 1 { stop(); } } movieClip 754 { frame 1 { stop(); var e = 0; onEnterFrame = function () { if (Math.random() < 0.005 && _root.menuselect != 'fileselect') { gotoAndPlay('blink'); } }; } frame 4 { gotoAndStop(1); } } movieClip 756 { } movieClip 761 { frame 1 { stop(); } } movieClip 762 { frame 24 { if (_root.turn == 'win2') { _root.turn = 'win3'; } if (!_root.noidle) { if (!_root.attachdamage || _root.healed != null || _root.breath[0] != 25) { gotoAndPlay('Idle'); } } } frame 62 { gotoAndPlay('loopstroke'); } frame 70 { gotoAndPlay('idle'); } frame 102 { if (!_root.walkan) { gotoAndPlay('Idle'); } if (_root.walkan) { gotoAndPlay('walk'); } } frame 188 { head.eyes.gotoAndStop('blink'); } frame 240 { gotoAndPlay('sleep'); } frame 241 { head.eyes.gotoAndStop(1); } frame 263 { gotoAndPlay('Idle'); } frame 264 { head.eyes.gotoAndStop('blink'); head.gotoAndStop('frown'); _root.facechange = 1; gotoAndPlay(265); } frame 275 { head.eyes.gotoAndStop(1); } frame 278 { head.eyes.gotoAndStop('blink'); } frame 280 { head.eyes.gotoAndStop(1); } frame 282 { head.gotoAndStop(1); _root.facechange = 0; } frame 283 { gotoAndPlay('Idle'); } frame 295 { _root.FOE.anim.gotoAndPlay('hit'); _root.attachdamage = 1; } frame 306 { gotoAndPlay('Idle'); } frame 346 { gotoAndPlay('Idle'); } frame 381 { gotoAndPlay('Idle'); } frame 390 { head.eyes.gotoAndStop('blink'); } frame 399 { _root.attachdamage = 1; if (_root.damage != null) { _root.FOE.anim.gotoAndPlay('hit'); } } frame 413 { head.eyes.gotoAndStop(1); } frame 418 { gotoAndPlay('Idle'); } frame 461 { gotoAndPlay('Idle'); } frame 472 { _root.attachdamage = 1; } frame 505 { gotoAndPlay('Idle'); } frame 515 { head.eyes.gotoAndStop('blink'); } frame 531 { stop(); _root.turn = 'lose2'; } frame 563 { if (_root.getstar) { gotoAndPlay('gfcont'); } } frame 575 { gotoAndPlay('Idle'); } } movieClip 763 pet { frame 1 { stop(); } frame 22 { gotoAndStop(1); } } movieClip 770 { } movieClip 773 deletefile { frame 1 { stop(); } } movieClip 774 file_mc { } movieClip 776 sc_pinkcrystal { } movieClip 778 sc_chest { } movieClip 780 pfx_snowflake { } movieClip 782 { } movieClip 784 { } movieClip 786 { } movieClip 787 { frame 53 { gotoAndPlay('Idle'); } frame 62 { _root.PC.anim.gotoAndPlay('hit'); _root.attachdamage = 1; } frame 74 { gotoAndPlay('Idle'); } frame 97 { gotoAndPlay('Idle'); } frame 118 { _root.attachdamage = 1; if (_root.damage != null) { _root.PC.anim.gotoAndPlay('hit'); } } frame 134 { gotoAndPlay('Idle'); } } movieClip 788 foe_seahorse { } movieClip 790 pfx_waterdrop { } movieClip 791 pfx_waterdrop_wiggle { } movieClip 793 { } movieClip 795 { } movieClip 797 { } movieClip 799 { } movieClip 801 { } movieClip 803 { } movieClip 805 { } movieClip 807 { } movieClip 808 { frame 34 { gotoAndPlay('Idle'); } frame 45 { _root.PC.anim.gotoAndPlay('hit'); _root.attachdamage = 1; } frame 63 { gotoAndPlay('Idle'); } frame 85 { gotoAndPlay('Idle'); } } movieClip 809 foe_lobstermonster { } movieClip 811 { } movieClip 813 { } movieClip 815 { } movieClip 817 { } movieClip 819 { } movieClip 821 { } movieClip 822 { frame 35 { gotoAndPlay('Idle'); } frame 48 { _root.PC.anim.gotoAndPlay('hit'); _root.attachdamage = 1; } frame 60 { gotoAndPlay('Idle'); } frame 80 { gotoAndPlay('Idle'); } } movieClip 823 foe_snoroceros { } movieClip 825 pfx_raindrop { } movieClip 827 { } movieClip 828 pfx_lightningbolt { frame 1 { _root.AttachParticle('sparks', [20, 100], this); } frame 27 { stop(); } } movieClip 830 { } movieClip 832 { } movieClip 834 { } movieClip 836 { } movieClip 838 { } movieClip 840 { } movieClip 842 { } movieClip 843 { frame 40 { gotoAndPlay('Idle'); } frame 68 { gotoAndPlay('Idle'); } frame 82 { _root.PC.anim.gotoAndPlay('hit'); _root.attachdamage = 1; } frame 97 { gotoAndPlay('Idle'); } frame 114 { _root.attachdamage = 1; if (_root.damage != null) { _root.PC.anim.gotoAndPlay('hit'); } } frame 147 { gotoAndPlay('Idle'); } frame 164 { _root.attachdamage = 1; } frame 210 { gotoAndPlay('Idle'); } } movieClip 844 foe_pterophor2 { } movieClip 845 foe_pterophor { } movieClip 847 { } movieClip 849 { } movieClip 851 { } movieClip 852 { } movieClip 854 { } movieClip 856 { } movieClip 858 { } movieClip 860 { } movieClip 861 { frame 20 { gotoAndPlay('Idle'); } frame 55 { gotoAndPlay('Idle'); } frame 73 { _root.PC.anim.gotoAndPlay('hit'); _root.attachdamage = 1; } frame 83 { gotoAndPlay('Idle'); } } movieClip 862 foe_scythewasp { } movieClip 864 { } movieClip 866 { } movieClip 868 { } movieClip 870 { } movieClip 872 { } movieClip 874 { } movieClip 876 { } movieClip 878 { } movieClip 880 { } movieClip 881 { frame 35 { gotoAndPlay('Idle'); } frame 60 { gotoAndPlay('Idle'); } frame 70 { _root.attachdamage = 1; } frame 105 { gotoAndPlay('Idle'); } } movieClip 882 foe_dragon { } movieClip 884 apneeded { } movieClip 886 { } movieClip 888 { } movieClip 890 { } movieClip 892 { } movieClip 893 { frame 60 { gotoAndPlay('Idle'); } frame 88 { gotoAndPlay('Idle'); } frame 98 { _root.PC.anim.gotoAndPlay('hit'); _root.attachdamage = 1; } frame 107 { gotoAndPlay('Idle'); } frame 128 { _root.attachdamage = 1; if (_root.damage != null) { _root.PC.anim.gotoAndPlay('hit'); } } frame 153 { gotoAndPlay('Idle'); } } movieClip 894 foe_chigrumpen { } movieClip 896 { } movieClip 898 { } movieClip 900 { } movieClip 902 { } movieClip 904 { } movieClip 905 { frame 40 { gotoAndPlay('Idle'); } frame 53 { _root.PC.anim.gotoAndPlay('hit'); _root.attachdamage = 1; } frame 67 { gotoAndPlay('Idle'); } frame 95 { gotoAndPlay('Idle'); } frame 115 { _root.attachdamage = 1; if (_root.damage != null) { _root.PC.anim.gotoAndPlay('hit'); } } frame 145 { gotoAndPlay('Idle'); } } movieClip 906 foe_iceboss2 { } movieClip 907 foe_iceboss { } movieClip 909 { } movieClip 916 { frame 1 { stop(); } } movieClip 918 { } movieClip 925 { frame 1 { stop(); } } movieClip 926 { frame 40 { gotoAndPlay('Idle'); } frame 68 { gotoAndPlay('Idle'); } frame 83 { _root.PC.anim.gotoAndPlay('hit'); _root.attachdamage = 1; } frame 97 { gotoAndPlay('Idle'); } } movieClip 927 foe_brushbeast_white { frame 1 { anim.head.gotoAndStop('white'); anim.tail.gotoAndStop('white'); } } movieClip 928 foe_brushbeast_blue { frame 1 { anim.head.gotoAndStop('blue'); anim.tail.gotoAndStop('blue'); } } movieClip 929 foe_brushbeast_pink { frame 1 { anim.head.gotoAndStop('pink'); anim.tail.gotoAndStop('pink'); } } movieClip 930 foe_brushbeast_black { } movieClip 933 { } movieClip 934 fselect_arrow { frame 1 { stop(); } frame 24 { gotoAndPlay('bounce'); } } movieClip 936 { } movieClip 945 { frame 1 { stop(); } } movieClip 947 delete_confirm { } movieClip 953 pfx_spark { } movieClip 955 pfx_airswirl { } movieClip 956 pfx_airswirl_move { } movieClip 958 pfx_orangeswirl { } movieClip 976 pfx_starglowrainbow { frame 1 { gotoAndPlay(1 + random(15)); } frame 17 { gotoAndPlay(2); } } movieClip 991 pfx_starrainbow { } movieClip 992 pfx_starglowlight { } movieClip 993 pfx_stargloworange { } movieClip 994 pfx_starglowpink { } movieClip 996 sc_hoverlamp { } movieClip 998 { } movieClip 999 sc_hoverlampmove { } movieClip 1001 { } movieClip 1003 { } movieClip 1005 { } movieClip 1007 { } movieClip 1009 { } movieClip 1011 { } movieClip 1013 { } movieClip 1015 { } movieClip 1017 { } movieClip 1018 { frame 40 { gotoAndPlay('Idle'); } frame 65 { gotoAndPlay('Idle'); } frame 81 { _root.PC.anim.gotoAndPlay('hit'); _root.attachdamage = 1; } frame 95 { gotoAndPlay('Idle'); } frame 114 { _root.attachdamage = 1; if (_root.damage != null) { _root.PC.anim.gotoAndPlay('hit'); } } frame 142 { gotoAndPlay('Idle'); } frame 153 { _root.attachdamage = 1; } frame 180 { gotoAndPlay('Idle'); } } movieClip 1019 foe_drakhbet2 { } movieClip 1020 foe_drakhbet { } movieClip 1022 pfx_waterglob { } movieClip 1023 pfx_waterglob_move { } movieClip 1028 { frame 1 { onEnterFrame = function () { if (Math.random() <= 0.01) { _root.AttachParticle('flowersparkle', [15, -60], this); } }; } frame 10 { gotoAndPlay(1); } } movieClip 1029 sc_hoverflower_move { } movieClip 1031 foe_starwisp_oarm { } movieClip 1033 { } movieClip 1035 { } movieClip 1037 { } movieClip 1038 { frame 40 { gotoAndPlay('Idle'); } frame 71 { gotoAndPlay('Idle'); } frame 88 { _root.PC.anim.gotoAndPlay('hit'); _root.attachdamage = 1; } frame 108 { gotoAndPlay('Idle'); } frame 130 { _root.attachdamage = 1; if (_root.damage != null) { _root.PC.anim.gotoAndPlay('hit'); } } } movieClip 1039 foe_starwisp { } movieClip 1041 pfx_rock { } movieClip 1043 pfx_pebble { } movieClip 1044 pfx_brownsmoke { } movieClip 1046 { } movieClip 1048 { } movieClip 1050 { } movieClip 1052 { } movieClip 1054 { } movieClip 1056 { } movieClip 1058 { } movieClip 1060 { } movieClip 1061 { frame 50 { gotoAndPlay('Idle'); } frame 80 { gotoAndPlay('Idle'); } frame 89 { _root.PC.anim.gotoAndPlay('hit'); _root.attachdamage = 1; } frame 106 { gotoAndPlay('Idle'); } frame 117 { _root.attachdamage = 1; } frame 158 { gotoAndPlay('Idle'); } frame 176 { _root.attachdamage = 1; if (_root.damage != null) { _root.PC.anim.gotoAndPlay('hit'); } } } movieClip 1062 foe_lightdragon { } movieClip 1063 foe_darkdragon { } movieClip 1065 pfx_moon { } movieClip 1066 pfx_moonglow { } movieClip 1068 { } movieClip 1070 { } movieClip 1072 { } movieClip 1074 { } movieClip 1076 { } movieClip 1077 { frame 41 { gotoAndPlay('Idle'); } frame 70 { gotoAndPlay('Idle'); } frame 81 { _root.PC.anim.gotoAndPlay('hit'); _root.attachdamage = 1; } frame 95 { gotoAndPlay('Idle'); } frame 121 { _root.attachdamage = 1; if (_root.damage != null) { _root.PC.anim.gotoAndPlay('hit'); } } frame 150 { gotoAndPlay('Idle'); } } movieClip 1078 foe_fluffpuff { } movieClip 1080 { } movieClip 1081 pfx_sunglow { } movieClip 1082 { frame 1 { onEnterFrame = function () { if (Math.random() <= 0.1) { _root.AttachParticle('bosssparkle', [0, 0], blank); } }; } } movieClip 1084 { } movieClip 1086 { } movieClip 1088 { } movieClip 1090 { } movieClip 1092 { } movieClip 1094 { } movieClip 1096 { } movieClip 1097 { frame 50 { gotoAndPlay('Idle'); } frame 70 { _root.attachdamage = 1; if (_root.damage != null) { _root.PC.anim.gotoAndPlay('hit'); } } frame 100 { gotoAndPlay('Idle'); } frame 118 { _root.attachdamage = 1; if (_root.damage != null) { _root.PC.anim.gotoAndPlay('hit'); } } frame 151 { gotoAndPlay('Idle'); } frame 180 { gotoAndPlay('Idle'); } } movieClip 1098 foe_finalboss { } movieClip 1113 achv_icons { frame 1 { stop(); } } movieClip 1114 gotachv { frame 21 { _root.AttachParticle('gainachv', [0, 0], this); } frame 115 { removeMovieClip(this); } } movieClip 1119 { frame 1 { stop(); } } movieClip 1120 damageanim { frame 4 { _root.AttachParticle('usebanapple', [0, 15], this); } frame 52 { removeMovieClip(this); } } movieClip 1122 lighttxt { } movieClip 1124 helptopic { } movieClip 1126 bigbrownbg { } movieClip 1129 { } movieClip 1130 { frame 1 { stop(); } frame 80 { gotoAndPlay(2); } } movieClip 1131 infotxt { } movieClip 1133 introtxt { } movieClip 1141 { frame 1 { stop(); } } movieClip 1143 starstone_noped { } movieClip 1146 starstone { } movieClip 1148 { } movieClip 1149 { } movieClip 1150 starpiece { frame 200 { _root.getstar = 0; } } movieClip 1152 { } movieClip 1153 guidearrow_anim { frame 35 { gotoAndPlay(1); } } movieClip 1155 { } movieClip 1156 clicktxt { } movieClip 1162 { frame 1 { stop(); } } movieClip 1163 { frame 1 { onEnterFrame = function () { TTX.onRollOver = function () { TTX.gotoAndStop('over'); }; TTX.onRollOut = function () { TTX.gotoAndStop(1); }; TTX.onDragOver = function () { TTX.gotoAndStop('over'); }; TTX.onDragOut = function () { TTX.gotoAndStop(1); }; TTX.onPress = function () { TTX.gotoAndStop('down'); }; TTX.onRelease = function () { TTX.gotoAndStop(1); removeMovieClip(_parent); }; }; } } movieClip 1164 TT { frame 11 { stop(); } } movieClip 1166 sc_lolly { } movieClip 1168 { } movieClip 1170 { } movieClip 1172 { } movieClip 1174 { } movieClip 1176 { } movieClip 1177 { frame 46 { gotoAndPlay(1); } frame 87 { gotoAndPlay('Idle'); } frame 99 { _root.attachdamage = 1; if (_root.damage != null) { _root.PC.anim.gotoAndPlay('hit'); } } frame 125 { gotoAndPlay('Idle'); } } movieClip 1178 foe_mrducky { } movieClip 1180 { } movieClip 1182 { } movieClip 1184 { } movieClip 1186 { } movieClip 1188 { } movieClip 1189 { frame 46 { gotoAndPlay(1); } frame 87 { gotoAndPlay('Idle'); } frame 99 { _root.attachdamage = 1; if (_root.damage != null) { _root.PC.anim.gotoAndPlay('hit'); } } frame 125 { gotoAndPlay('Idle'); } } movieClip 1190 foe_ducky { } movieClip 1192 pfx_petal { } movieClip 1195 lilbtn { frame 1 { stop(); } } movieClip 1198 titlestrip { } movieClip 1200 Title_logo { } frame 1 { function MuteControl() { if (!mute) { mute = 1; playMusic.stop(); } else { mute = 0; playMusic.start(0); } } _root._xscale = 150; _root._yscale = 150; var isKong = false; var k_domain = ['kongregate.com']; var local_file = 'file:///C|/Users/Firequill/Documents/GAMES/VirtualPet/%5FFINAL/VirtualPet.swf'; var kdomain = (_url.split('/'))[2].split('.'); if (_url != local_file) { var i = 0; while (i < k_domain.length) { var parts = k_domain[i].split('.'); if (parts[1] == kdomain[kdomain.length - 1] && parts[0] == kdomain[kdomain.length - 2]) { isKong = true; } ++i; } } else { isKong = true; } if (!isKong) { adBox._xscale = 67; adBox._yscale = 67; var CPMStarContentSpotID = '5199Q31D35C77'; System.security.allowDomain('server.cpmstar.com'); adBox.loadMovie('http://server.cpmstar.com/adviewas2.swf?contentspotid=' + CPMStarContentSpotID); } else { adBox._alpha = 0; attachMovie('Title_logo', 'TL', 10); TL._x = 20; TL._y = 50; TL._width *= 0.9; TL._height *= 0.9; } STAGE_WIDTH = 460; STAGE_HEIGHT = 340; var isSponsor = false; var sponsor_domain = ['flashgamesnexus.com']; var local_file = 'file:///C|/Users/Firequill/Documents/GAMES/VirtualPet/%5FFINAL/VirtualPet.swf'; var sdomain = (_url.split('/'))[2].split('.'); if (_url != local_file) { var i = 0; while (i < sponsor_domain.length) { var parts = sponsor_domain[i].split('.'); if (parts[1] == sdomain[sdomain.length - 1] && parts[0] == sdomain[sdomain.length - 2]) { isSponsor = true; } ++i; } } else { isSponsor = true; } var isNoBonus = false; var nb_domain = ['notdoppler.com']; var local_file = 'file:///C|/Users/Firequill/Documents/GAMES/VirtualPet/%5FFINAL/VirtualPet.swf'; var nbdomain = (_url.split('/'))[2].split('.'); if (_url != local_file) { var i = 0; while (i < nb_domain.length) { var parts = nb_domain[i].split('.'); if (parts[1] == nbdomain[nbdomain.length - 1] && parts[0] == nbdomain[nbdomain.length - 2]) { isNoBonus = true; } ++i; } } else { isNoBonus = true; } var cm = new ContextMenu(); cm.hideBuiltInItems(); cm.builtInItems.quality = true; var menu_mt = new ContextMenuItem('Mute/Unmute', MuteControl); cm.customItems.push(menu_mt); this.menu = cm; stop(); var percent = 0; loadbar.barmask._xscale = 0; onEnterFrame = function () { if (percent == 100) { onEnterFrame = null; preloadplay.gotoAndPlay(2); preloadplay.onRollOver = function () { var v2 = new flash.filters.GlowFilter(10092543, 0.5, 12, 12, 2, 2, false, false); this.filters = [v2]; }; preloadplay.onRollOut = function () { this.filters = []; }; preloadplay.onRelease = function () { removeMovieClip('TL'); gotoAndPlay('StartGame'); }; } percent = Math.floor((getBytesLoaded() / getBytesTotal()) * 100); perc.text = percent + '%'; loadbar.barmask._xscale = percent; if (!adBox.hitTest(_xmouse, _ymouse)) { Mouse.show(); } }; } movieClip 1204 { } movieClip 1207 { } movieClip 1209 { } movieClip 1211 { } movieClip 1213 { } movieClip 1216 { } movieClip 1218 { } button 1222 { on (release) { getURL('http://www.flashgamesnexus.com/', '_blank'); } } movieClip 1225 { } movieClip 1226 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 1235 { frame 1 { stop(); } } frame 3 { function RandNum(min, max) { var v1 = Math.floor(Math.random() * (max - min + 1)) + min; return v1; } function RandAmongst(array) { var v1 = array[random(array.length)]; return v1; } function PlayMusic(m) { if (boss) { playMusic.stop(); } if (m != musicplaying && !mute && !addboss) { playMusic.stop(); playMusic = new Sound(); playMusic.attachSound(m); playMusic.start(0); playMusic.onSoundComplete = function () { this.start(0); }; musicplaying = m; } } function PetColour(PET) { var v1 = 0; while (v1 < PARTS.length) { var v2 = new flash.geom.ColorTransform(); v2.rgb = petbase; if (PARTS[v1] == 'iear' || PARTS[v1] == 'oear') { var v5 = new flash.geom.Transform(PET.anim[PARTS[v1]].colours.basecolour); } else { var v5 = new flash.geom.Transform(PET.anim[PARTS[v1]].basecolour); } v5.colorTransform = v2; var v4 = new flash.geom.ColorTransform(); v4.rgb = petsec; if (PARTS[v1] == 'iear' || PARTS[v1] == 'oear') { v5 = new flash.geom.Transform(PET.anim[PARTS[v1]].colours.seccolour); } else { v5 = new flash.geom.Transform(PET.anim[PARTS[v1]].seccolour); } v5.colorTransform = v4; ++v1; } } function SaveGame() { var v13 = SharedObject.getLocal('VirtualPetSaves', '/'); var v11 = new Array(); var v19 = new Date(); var v17 = v19.getTime(); var v14 = v17 - startTime; if (!isNaN(v13.data[fileselect].playtime)) { var v18 = v13.data[fileselect].playtime + v14; } else { var v18 = v14; } StartDate = new Date(); startTime = StartDate.getTime(); var v15 = {'stamina': STATS.stamina, 'staminamax': STATS.staminamax, 'mp': STATS.mp, 'mpmax': STATS.mpmax, 'joy': STATS.joy, 'joymax': STATS.joymax, 'atk': STATS.atk, 'def': STATS.def, 'spd': STATS.spd, 'mc': 'PC', 'ap': STATS.ap, 'sfx': STATS.sfx}; var v12 = []; var v9 = []; var v8 = []; var v6 = []; var v7 = []; var v10 = []; var v1 = 0; while (v1 < ITEMS.length) { v12[v1] = {'name': ITEMS[v1].name, 'equip': ITEMS[v1].equip, 'limb': ITEMS[v1].limb}; ++v1; } v1 = 0; while (v1 < STORAGE.length) { v9[v1] = {'name': STORAGE[v1].name, 'equip': STORAGE[v1].equip, 'limb': STORAGE[v1].limb}; ++v1; } v1 = 0; while (v1 < ABILITIES.length) { v8.push(ABILITIES[v1]); ++v1; } v1 = 0; while (v1 < AREAS.length) { v6.push(AREAS[v1]); ++v1; } var v2 = 0; while (v2 < Achievements.length) { v11.push(Achievements[v2].unlocked); ++v2; } v2 = 0; while (v2 < byeboss.length) { v7.push(byeboss[v2]); ++v2; } v2 = 0; while (v2 < tooltip.length) { v10.push(tooltip[v2]); ++v2; } var v16 = {'fileselect': fileselect, 'playtime': v18, 'byeboss': v7, 'tooltip': v10, 'StrokeTotal': StrokeTotal, 'petname': petname, 'STATS': v15, 'colours': colours, 'petbase': petbase, 'petsec': petsec, 'shards': shards, 'starpieces': starpieces, 'ITEMS': v12, 'STORAGE': v9, 'ABILITIES': v8, 'AREAS': v6, 'Achievements': v11, 'endguide': endguide}; v13.data[fileselect] = v16; v13.flush(); v13.close(); } function AttachStuff() { this.attachMovie('pet', 'PC', 100); if (currentarea == 'Home') { PC._x = _root.STAGE_WIDTH / 2; } else { if (areatransition == 'SP1') { PC._x = _root.STAGE_WIDTH + PC._width / 2; d = -1; PC._xscale *= -1; } else { if (areatransition == 'SP2' || areatransition == 0) { PC._x = (PC._width / 2) * -1; } } } PC._y = 60; var v16 = 0; while (v16 < ITEMS.length) { if (ITEMS[v16].equip) { var v5 = 0; while (v5 < Items.length) { if (Items[v5].name == ITEMS[v16].name) { if (Items[v5].equip[0].indexOf('ear') < 0) { PC.anim[Items[v5].equip[0]][Items[v5].equip[1]].attachMovie('equipment', 'EQ', 10); PC.anim[Items[v5].equip[0]][Items[v5].equip[1]].EQ.gotoAndStop(Items[v5].name); } else { PC.anim[Items[v5].equip[0]].colours[Items[v5].equip[1]].attachMovie('equipment', 'EQ', 10); PC.anim[Items[v5].equip[0]].colours[Items[v5].equip[1]].EQ.gotoAndStop(Items[v5].name); } } ++v5; } } ++v16; } PetColour(PC); var v3 = 0; while (v3 < Areas.length) { if (Areas[v3].name == currentarea) { if (Areas[v3].weather != undefined) { weather = Areas[v3].weather; } else { weather = null; } if (Areas[v3].bgloop != undefined && !mute) { var v22 = new Sound(); v22.attachSound(Areas[v3].bgloop); v22.start(0, 9999); } if (Areas[v3].boss != null) { var v17 = 1; var v7 = 0; while (v7 < Monsters.length) { if (Monsters[v7].mdl == Areas[v3].boss) { var v11 = 0; while (v11 < byeboss.length) { if (byeboss[v11] == Monsters[v7].mdl) { v17 = 0; } ++v11; } var v9 = 0; while (v9 < Achievements.length) { if (Monsters[v7].achv == Achievements[v9].name && Achievements[v9].unlocked || !v17) { v17 = 0; var v4 = Monsters[v7].drop[0].name; v16 = 0; while (v16 < ITEMS.length + STORAGE.length) { if (ITEMS[v16].name == v4 && v16 < 10) { v4 = null; break; } if (STORAGE[v16].name == v4 && v16 > 9) { v4 = null; break; } ++v16; } v16 = 0; while (v16 < ABILITIES.length) { if (v4.indexOf(ABILITIES[v16]) > -1) { v4 = null; break; } ++v16; } var v19 = 0; if (v4 != null) { Areas[v3].special = v4; v19 = 1; } } ++v9; } } ++v7; } if (v17) { this.attachMovie(Areas[v3].boss, 'FOE', 50); FOE.onRollOver = function () { _root.attachMovie('foedisplay', 'FD', 999); }; FOE.onRollOut = function () { removeMovieClip(_root.FD); }; boss = 1; foe = Areas[v3].boss; FOE._xscale *= -1; FOE._x = _root.STAGE_WIDTH - (battlepos + FOE._width / 2); FOE._y = 195 - FOE._height; } } this.attachMovie(Areas[v3].bg, 'BG', 1); arealength = BG._width; if (areatransition == 'SP2' || areatransition == 0) { BG._x = 0; } else { if (areatransition == 'SP1' && currentarea != 'Home') { BG._x = arealength * -1 + _root.STAGE_WIDTH; } } BG._y = 0; if (Areas[v3].special != undefined) { var v15 = 1; v16 = 0; while (v16 < ITEMS.length) { if (ITEMS[v16].name == Areas[v3].special) { v15 = 0; } ++v16; } var v18 = 0; while (v18 < STORAGE.length) { if (STORAGE[v18].name == Areas[v3].special) { v15 = 0; } ++v18; } if (Areas[v3].special.indexOf('Paint') >= 0) { v16 = 0; while (v16 < Items.length) { if (Items[v16].name == Areas[v3].special) { var v12 = 0; while (v12 < colours.length) { if (colours[v12] == Items[v16].effect[0][1]) { v15 = 0; } ++v12; } } ++v16; } } if (Areas[v3].special.indexOf('Map') >= 0) { v16 = 0; while (v16 < Items.length) { if (Items[v16].name == Areas[v3].special) { v12 = 0; while (v12 < AREAS.length) { if (Items[v16].effect[0][1] == AREAS[v12]) { v15 = 0; } ++v12; } } ++v16; } } if (v15) { ItemPickup([BG._width - 50, 170], Areas[v3].special); } if (v19) { Areas[v3].special = undefined; } } var v10 = 0; while (v10 < Infoposts.length) { if (Infoposts[v10].area == currentarea) { var v14 = 'Info' + v10; BG.attachMovie('infopost', v14, 105 + v10); BG[v14]._x = Infoposts[v10].xpos; BG[v14]._y = 115; BG[v14].infotxt = Infoposts[v10].txt; BG[v14].onRelease = function () { if (!_root.battle) { if (_root.endguide == 1) { _root.endguide = 2; removeMovieClip(_root.BG.GA); } _root.walk = 0; _root.attachMovie('infotxt', 'IT', 6666); _root.IT.txt.text = this.infotxt; _root.IT._y = 60; _root.IT._x = _root.STAGE_WIDTH / 2 - _root.IT._width / 2; _root.IT.skipbtn.onRelease = function () { removeMovieClip(this._parent); }; _root.IT.skipbtn.onPress = function () { this.gotoAndStop('clicked'); }; _root.IT.skipbtn.onRollOver = function () { var v2 = new flash.filters.GlowFilter(10092543, 0.5, 12, 12, 2, 2, false, false); this.filters = [v2]; this.gotoAndPlay('move'); }; _root.IT.skipbtn.onDragOver = function () { var v2 = new flash.filters.GlowFilter(10092543, 0.5, 12, 12, 2, 2, false, false); this.filters = [v2]; this.gotoAndStop('clicked'); }; _root.IT.skipbtn.onRollOut = function () { this.filters = []; this.gotoAndStop(1); }; _root.IT.skipbtn.onDragOut = function () { this.filters = []; this.gotoAndStop(1); }; } }; } ++v10; } if (currentarea != 'Home') { areafoes = Areas[v3].foes; if (Areas[v3].connects[0] != null) { BG.attachMovie('signpost', 'SP1', 100); BG.SP1.loc = Areas[v3].connects[0]; BG.SP1._xscale *= -1; BG.SP1._x = 50 + BG.SP1._width; BG.SP1._y = 115; BG.SP1.onRelease = function () { if (!_root.battle && !_root.itemsearch[0] && _root.turn == null && _root.IT == undefined) { _root.areatransition = 'SP1'; } }; } if (Areas[v3].connects[1] != null) { if (Areas[v3 + 1].name.indexOf('Boss') > -1) { BG.attachMovie('signpost_boss', 'SP2', 101); } else { BG.attachMovie('signpost', 'SP2', 101); } BG.SP2.loc = Areas[v3].connects[1]; BG.SP2._x = arealength - 50 - BG.SP2._width; BG.SP2._y = 115; BG.SP2.onRelease = function () { if (!_root.battle && !_root.itemsearch[0] && _root.turn == null && _root.IT == undefined) { _root.areatransition = 'SP2'; } }; } areatransition = 'enter'; v11 = 0; while (v11 < 5) { var v6 = 'SC' + v11; if (Math.random() < 0.7) { var v20 = arealength / 5; BG.attachMovie(Areas[v3].scenery[random(Areas[v3].scenery.length)], v6, 7 + v11); BG[v6]._y = 180; BG[v6]._x = RandNum(v20 * v11, v20 * (v11 + 1) - (BG[v6]._width + PC._width)); if (BG[v6]._x < 100) { BG[v6]._x += 100; } var v13 = new Array(); var v8 = 0; while (v8 < Areas[v3].treasure.length) { if (Areas[v3].treasure[v8].chance >= Math.random()) { v13.push(Areas[v3].treasure[v8].name); } else { v13.push(null); } ++v8; } BG[v6].treasure = v13[random(v13.length)]; BG[v6].onRollOver = function () { var v2 = new flash.filters.GlowFilter(15051837, 0.7, 20, 10, 2, 2, false, false); this.filters = [v2]; }; BG[v6].onRollOut = function () { this.filters = []; }; BG[v6].onRelease = function () { if (!_root.itemsearch[0] && !_root.battle && !areatransition) { _root.itemsearch = [1, this]; delete this.onRelease; delete this.onRollOver; delete this.onRollOut; } }; } ++v11; } } break; } ++v3; } this.attachMovie('topmenu', 'TM', 1002); TM._y = 0; TM._x = 0; var v25 = new flash.geom.ColorTransform(); v25.rgb = healthcolour; var v26 = new flash.geom.Transform(TM.staminabar.colour); v26.colorTransform = v25; TM.stamina_nums.current_txt.text = STATS.stamina; TM.stamina_nums.max_txt.text = STATS.staminamax; TM.shards_txt.text = shards; var v24 = new TextFormat(); v24.align = 'right'; TM.stamina_nums.current_txt.txt.setNewTextFormat(v24); var v23 = new flash.geom.ColorTransform(); v23.rgb = joycolour; var v27 = new flash.geom.Transform(TM.joybar.colour); v27.colorTransform = v23; this.attachMovie('bottommenu', 'BM', 1003); BM._x = 0; BM._y = 225; } function BarDrain() { TM.shards_txt.text = shards; var v3 = Math.ceil(STATS.joy / 10); TM.mood.gotoAndStop('joy' + v3); if (v3 == 4 && tooltip[0].viewed == 0) { attachMovie('TT', 'TThappy', 8880); TThappy.TTI.txt.text = tooltip[0].msg; TThappy._x = 70; TThappy._y = 30; tooltip[0].viewed = 1; TThappy.attachMovie('guidearrow_anim', 'GA', 2); TThappy.GA._rotation = 130; TThappy.GA._x = -15; } if (!facechange && !attachdamage) { if (v3 < 3) { PC.anim.head.gotoAndStop('frown'); if (v3 <= 1) { PC.anim.head.eyes.eyemask.gotoAndStop('sad'); PC.anim.head.eyes.eyelid.gotoAndStop('sad'); } } if (v3 > 3) { PC.anim.head.gotoAndStop(1); } if (v3 == 3) { PC.anim.head.gotoAndStop('neutral'); } if (v3 > 1) { PC.anim.head.eyes.eyemask.gotoAndStop(1); PC.anim.head.eyes.eyelid.gotoAndStop(1); } } TM.staminabar.barmask._width = Math.round(TM.staminabar.colour._width * (STATS.stamina / STATS.staminamax)); TM.stamina_nums.current_txt.text = STATS.stamina; var v1 = 0; while (v1 < STATS.mpmax) { var v2 = 'mp' + v1; if (v1 < STATS.mp) { TM[v2].gotoAndStop(1); } else { TM[v2].gotoAndStop('drained'); } ++v1; } if (addarea != null && menuselect == 'Explore') { if (isNaN(addarea)) { AREAS.push(addarea); addarea = 0; } else { ++addarea; if (addarea == 40) { ExploreStuff(1); addarea = null; } } } if (BMtxt || BM.textline._y > -25 && BM.textline._y < 0 && BMtxtcount < 40) { if (BM.textline._y > -25) { BM.textline._y -= 5; } if (BM.textline._y < -25) { BM.textline._y = -25; } } else { if (BM.textline._y < 0) { if (BM.textline._y == -25 && BMtxtcount < 40) { ++BMtxtcount; } if (BMtxtcount >= 40) { BM.textline._y += 5; } if (BM.textline._y > 0) { BM.textline._y = 0; } if (BM.textline._y == 0) { BMtxtcount = 0; } } } } function AttachMenuButtons(blist) { var v3 = 0; while (v3 < blist.length) { N = blist[v3]; BM.attachMovie('menubtn', N, 100 + v3); BM[N]._y = 15; BM[N]._x = (BM[N]._width + 7) * v3 + 11; BM[N].iconname = blist[v3]; if (battle || beginbattle) { if (blist[v3] == 'Explore' || blist[v3] == 'Stats') { BM[N].gotoAndStop(blist[v3] + '_off'); } else { BM[N].gotoAndStop(blist[v3]); BM[N].onRollOver = function () { if (!_root.beginbattle && !_root.startbattle && !_root.foeattach) { this.gotoAndStop(this.iconname + '_on'); } }; BM[N].onRollOut = function () { if (!_root.beginbattle && !_root.startbattle && !_root.foeattach) { this.gotoAndStop(this.iconname); } }; } } ++v3; } } function AttachBigButtons(blist) { var v9 = 0; var v13 = 3; var v12 = 0; var v6 = 0; while (v6 < 50) { N = 'B' + v6; M = 'AP' + v6; O = 'APN' + v6; removeMovieClip(BM[N]); removeMovieClip(BM[M]); removeMovieClip(BM[O]); ++v6; } removeMovieClip(BM.Discard); removeMovieClip(BM.Storage); removeMovieClip(BM.ID); removeMovieClip(BM.EA); var v5 = 0; while (v5 < blist.length) { if (v5 == 6 && menuselect != 'Edit Abilities') { break; } N = 'B' + v5; BM.attachMovie('bigbtn', N, 200 + v5); if (menuselect == 'Abilities' && !battle && menuselect != 'Edit Abilities') { BM[N].gotoAndStop('dark'); } BM[N].num = v5; if (v9 >= v13) { v9 = 0; ++v12; } if (v5 < 6) { BM[N]._y = (BM[N]._height + 8) * v12 + 40; BM[N]._x = (BM[N]._width + 5) * v9 + 11; } else { if (menuselect == 'Edit Abilities') { BM[N]._y = (BM[N]._height + 8) * (v12 - 2) - 180; BM[N]._x = (BM[N]._width + 5) * v9 + 11; } } if (menuselect == 'Abilities' || menuselect == 'Edit Abilities') { if (!battle && turn == null) { BM.attachMovie('menubtn', 'EA', 50); BM.EA._x = 420; BM.EA._y = 15; BM.EA.gotoAndStop('EditAbilities'); BM.EA.onRollOver = function () { this.gotoAndStop('EditAbilities_on'); }; BM.EA.onRollOut = function () { this.gotoAndStop('EditAbilities'); }; BM.EA.onRelease = function () { if (_root.menuselect != 'Edit Abilities' && !areatransition) { _root.menuselect = 'Edit Abilities'; _root.AttachBigButtons(_root.ABILITIES); delete PC.onPress; delete PC.onRelease; _root.attachMovie('brownbg', 'BB', 101); removeMovieClip(_root.achv); } else { _root.menuselect = 'Abilities'; _root.BMtxtcount = 40; _root.AttachBigButtons(_root.ABILITIES); _root.StrokePC(); removeMovieClip(_root.BB); } }; } var v4 = 0; while (v4 < Abilities.length) { if (blist[v5] == Abilities[v4].name) { BM[N].elm.gotoAndStop(Abilities[v4].element); var v8 = Abilities[v4].mp; var v3 = 0; while (v3 < v8) { var M = 'm' + v3; BM[N].attachMovie('mp_unit', M, 50 + v3); BM[N][M]._y = 22; BM[N][M]._x = 125 - 13 * v3; ++v3; } break; } ++v4; } } if (menuselect == 'Explore' || menuselect == 'Abilities' && battle && v8 <= STATS.mp) { BM[N].onRelease = function () { if (_root.menuselect == 'Explore') { _root.menuselect = ''; var v3 = this.txt.text; _root.currentarea = v3; if (v3 == 'Home') { _root.gotoAndStop('Home'); } else { _root.gotoAndStop('Areas'); } } if (_root.menuselect == 'Abilities' && _root.turn[0] == 'STATS' && _root.turn[1] == 'Choose') { _root.movetouse = this.txt.text; _root.bt = 0; _root.turn[1] = 'Go'; } }; } if (menuselect == 'Edit Abilities' || battle) { BM[N].onRollOver = function () { if (_root.SelAb != this.txt.text) { this.gotoAndStop('hover'); if (menuselect == 'Edit Abilities') { var v3 = 0; while (v3 < Abilities.length) { if (this.txt.text == Abilities[v3].name) { _root.BMtxt = 1; BMtxtcount = 0; this._parent.textline.txt.text = Abilities[v3].desc; } ++v3; } } } }; BM[N].onRollOut = function () { if (_root.SelAb != this.txt.text) { this.gotoAndStop(1); BMtxt = 0; } }; if (!battle) { BM[N].onRelease = function () { if (_root.SelAb != this.txt.text) { if (_root.SelAb == null) { this.gotoAndStop('selected'); _root.SelAb = this.txt.text; } else { var v3 = 0; while (v3 < ABILITIES.length) { var v4 = 'B' + v3; if (_root.SelAb == _root.BM[v4].txt.text) { _root.ABILITIES[v3] = this.txt.text; _root.ABILITIES[this.num] = _root.SelAb; _root.SelAb = null; _root.AttachBigButtons(_root.ABILITIES); break; } ++v3; } } } else { this.gotoAndStop('hover'); _root.SelAb = null; } }; } } if (menuselect == 'Abilities' && battle && v8 > STATS.mp) { BM[N].gotoAndStop('dark'); delete BM[N].onRollOver; delete BM[N].onRollOut; } BM[N].txt.text = blist[v5]; ++v9; ++v5; } } function AttachItems(BM) { if (menuselect == 'Shop') { var v11 = 60; var v10 = 165; var v9 = 22; } else { var v11 = 11; var v10 = 40; var v9 = 50; BM.attachMovie('menubtn', 'Discard', 50); BM.Discard._x = 420; BM.Discard._y = 15; BM.Discard.gotoAndStop('Discard'); } var v5 = 0; while (v5 < v9) { N = 'B' + v5; M = 'AP' + v5; O = 'APN' + v5; removeMovieClip(BM[N]); removeMovieClip(BM[M]); removeMovieClip(BM[O]); ++v5; } if (currentarea == 'Home' && menuselect != 'Shop') { BM.attachMovie('menubtn', 'Storage', 51); BM.Storage._x = 385; BM.Storage._y = 15; BM.Storage.gotoAndStop('Storage'); if (menuselect == 'Storage') { var v4 = 0; var v8 = 10; var v6 = 0; var v3 = 0; while (v3 < 40) { N = 'B' + (v3 + 10); BM.attachMovie('lilbtn', N, 200 + (v3 + STORAGE.length)); if (v4 >= v8) { v4 = 0; ++v6; } BM[N]._y = (BM[N]._height + 8) * v6 - 170; BM[N]._x = (BM[N]._width + 10) * v4 + 37; if (v3 < STORAGE.length && STORAGE[v3].name != null) { BM[N].attachMovie('items', 'IT', 100); BM[N].IT.gotoAndStop(STORAGE[v3].name); BM[N].IT.onPress = function () { if (!_root.dragging && stdr == '') { _root.dragging = 1; } }; BM[N].IT.onRelease = function () { stopDrag(); dragging = 0; var v2 = new String(this._parent); stdr = v2.substr(-3, 3); }; } ++v4; ++v3; } } BM.Storage.onRelease = function () { if (_root.menuselect != 'Storage') { _root.menuselect = 'Storage'; delete PC.onPress; delete PC.onRelease; _root.attachMovie('brownbg', 'BB', 101); _root.AttachItems(BM); removeMovieClip(_root.achv); } else { _root.lastitemdepth = 'B9'; _root.menuselect = 'Items'; _root.StrokePC(); removeMovieClip(_root.BB); var v2 = 10; while (v2 < 50) { N = 'B' + v2; M = 'AP' + v2; O = 'APN' + v2; removeMovieClip(BM[N]); removeMovieClip(BM[M]); removeMovieClip(BM[O]); ++v2; } } }; } v8 = 5; v6 = 0; v4 = 0; if (menuselect == 'Shop') { BM.attachMovie('sellbg', 'sellbg', 198); BM.sellbg._x = 340; BM.sellbg._y = 245; BM.attachMovie('lilbtn', 'SELL', 199); BM.SELL._x = (BM.SELL._width + 10) * 2 + 340; BM.SELL._y = (BM.SELL._height + 8) * 4 + 95; BM.SELL.gotoAndStop(2); v8 = 3; v3 = 0; while (v3 < SHOP.length) { var M = 'B' + (v3 + 10); BM.attachMovie('lilbtn', M, 200 + v3 + 10); if (v4 >= v8) { v4 = 0; ++v6; } BM[M]._x = (BM[M]._width + 10) * v4 + 340; BM[M]._y = (BM[M]._height + 8) * v6 + 87; if (SHOP[v3] != null) { BM[M].attachMovie('items', 'IT', 100); BM[M].IT.gotoAndStop(SHOP[v3]); BM[M].IT.onPress = function () { if (!_root.dragging) { _root.dragging = 1; } }; BM[M].IT.onRelease = function () { this._x = 0; this._y = 0; stopDrag(); dragging = 0; var v2 = new String(this._parent); stdr = v2.substr(-3, 3); }; } ++v4; ++v3; } v8 = 5; v6 = 0; v4 = 0; } v4 = 0; v8 = 5; v6 = 0; v3 = 0; while (v3 < 10) { N = 'B' + v3; BM.attachMovie('lilbtn', N, 200 + v3); if (v4 >= v8) { v4 = 0; ++v6; } BM[N]._y = (BM[N]._height + 8) * v6 + v10; BM[N]._x = (BM[N]._width + 10) * v4 + v11; if (v3 < ITEMS.length && ITEMS[v3].name != null) { BM[N].attachMovie('items', 'IT', 100); BM[N].IT.gotoAndStop(ITEMS[v3].name); BM[N].IT.onPress = function () { if (!_root.dragging && stdr == '') { _root.dragging = 1; } }; BM[N].IT.onRelease = function () { stdr = 1; stopDrag(); dragging = 0; }; if (ITEMS[v3].equip) { BM[N].IT.attachMovie('equip_icon', 'EQP', 10); BM[N].IT.EQP._y = 15; BM[N].IT.EQP._x = 15; } } ++v4; ++v3; } if (menuselect == 'Items') { lastitemdepth = 'B9'; } else { if (menuselect == 'Shop') { lastitemdepth = 'B' + (SHOP.length + 9); } else { if (menuselect == 'Storage') { lastitemdepth = 'B49'; } } } } function ItemDrag(BM) { if (menuselect == 'Items' || menuselect == 'Shop' || menuselect == 'Storage') { if (dragging > 0) { if (BM[lastitemdepth].IT.hitTest(BM.Discard)) { BM.Discard.gotoAndStop('Discard_on'); } else { BM.Discard.gotoAndStop('Discard'); } } if (menuselect == 'Items') { IDx = 231; IDy = 38; } else { if (menuselect == 'Shop') { IDx = 50; IDy = 252; } } BM.attachMovie('itemdescription', 'ID', 99); BM.ID._x = IDx; BM.ID._y = IDy; BM.ID.itemname_txt.text = ''; BM.ID.itemtext_txt.text = 'Drag and drop to use, equip, discard, and swap items.'; var v24 = 0; if (menuselect == 'Shop') { v24 = SHOP.length; } else { if (menuselect == 'Storage') { v24 = STORAGE.length; } } var v6 = 0; while (v6 < 10 + v24) { N = 'B' + v6; if (BM[N].IT.hitTest(_xmouse, _ymouse)) { var v4 = 0; while (v4 < Items.length) { if (v6 < 10 && Items[v4].name == ITEMS[v6].name || v6 >= 10 && Items[v4].name == SHOP[v6 - 10] && menuselect == 'Shop' || v6 >= 10 && Items[v4].name == STORAGE[v6 - 10].name && menuselect == 'Storage') { BM.ID.itemname_txt.text = Items[v4].name; BM.ID.itemtext_txt.text = Items[v4].desc; if (menuselect == 'Shop' && v6 < 10 && Items[v4].cost != null) { SD.cost_txt.text = '+ ' + Math.floor(Items[v4].cost / 2); } else { if (menuselect == 'Shop' && v6 >= 10 && Items[v4].cost != null) { SD.cost_txt.text = '- ' + Items[v4].cost; } else { if (menuselect == 'Shop' && v6 < 10 && Items[v4].cost == null) { SD.cost_txt.text = ''; } } } if (stdr == 1) { stdr = N; } } ++v4; } if (dragging == 1) { BM[N].swapDepths(BM[lastitemdepth]); lastitemdepth = N; startDrag(BM[N].IT, false); dragging = 2; } } ++v6; } if (stdr != '' && stdr != 1 && !isNaN(stdr.charAt(2)) && menuselect == 'Shop') { stopDrag(); dragging = 0; IN = stdr.substr(1); var v11 = 0; while (v11 < 10) { var v23 = 'B' + v11; if (BM[v23].hitTest(_xmouse, _ymouse)) { if (ITEMS[v11].name == null) { var v10 = 0; while (v10 < Items.length) { if (Items[v10].name == SHOP[IN - 10]) { if (shards >= Items[v10].cost) { shards -= Items[v10].cost; SD.shardicon.gotoAndPlay('wiggle'); if (!mute) { var v17 = new Sound(); v17.attachSound('chling'); v17.start(); } ITEMS[v11].name = Items[v10].name; AttachItems(BM); if (Items[v10].name == '??? Map') { removeMovieClip(BM[stdr].IT); Items[v10].cost = null; } } else { BM[stdr].IT._x = 0; BM[stdr].IT._y = 0; } } ++v10; } } } ++v11; } stdr = ''; } if (stdr != '' && stdr != 1 && stdr.substr(1) < 10 || stdr != '' && stdr != 1 && menuselect == 'Storage') { stopDrag(); dragging = 0; IN = stdr.substr(1); if (BM[stdr].IT.hitTest(PC) && menuselect != 'Storage') { _root.bt = 0; v10 = 0; while (v10 < Items.length) { if (Items[v10].name == ITEMS[IN].name) { if (Items[v10].cat == 'use') { if (Items[v10].sound != null && !mute) { var v19 = new Sound(); v19.attachSound(Items[v10].sound); v19.start(); } var v3 = 0; while (v3 < Items[v10].effect.length) { if (Items[v10].effect[v3][0] == 'stamina') { STATS.stamina += Items[v10].effect[v3][1]; if (STATS.stamina > STATS.staminamax) { STATS.stamina = STATS.staminamax; } } else { if (Items[v10].effect[v3][0] == 'joy') { STATS.joy += Items[v10].effect[v3][1]; if (STATS.joy > STATS.joymax) { STATS.joy = STATS.joymax; } } else { if (Items[v10].effect[v3][0] == 'mp') { STATS.mp += Items[v10].effect[v3][1]; if (STATS.mp > STATS.mpmax) { STATS.mp = STATS.mpmax; } } else { if (Items[v10].effect[v3][0] == 'ability') { var v9 = 0; var v8 = 0; while (v8 < ABILITIES.length) { if (ABILITIES[v8] == Items[v10].effect[v3][1]) { v9 = 1; break; } ++v8; } if (!v9) { ABILITIES.push(Items[v10].effect[v3][1]); var v16 = 1; if (ABILITIES.length == Abilities.length) { GotAchv('Versatile'); } } } else { if (Items[v10].effect[v3][0] == 'colour') { colours.push(Items[v10].effect[v3][1]); if (colours.length == 12) { GotAchv('Full Palette'); } } else { if (Items[v10].effect[v3][0] == 'explore') { addarea = Items[v10].effect[v3][1]; ExploreStuff(); } } } } } } ++v3; } if (!storedv9) { AttachParticle(Items[v10].pfx, [0, PC._height / 2], PC); PC.gotoAndPlay('glow'); removeMovieClip(BM[stdr].IT); ITEMS[IN].name = null; if (battle) { turn[1] = 'Go'; movetouse = 'Item'; } } } else { if (Items[v10].cat == 'equip') { if (Items[v10].equip[0].indexOf('ear') < 0) { PC.anim[Items[v10].equip[0]][Items[v10].equip[1]].attachMovie('equipment', 'EQ', 10); PC.anim[Items[v10].equip[0]][Items[v10].equip[1]].EQ.gotoAndStop(Items[v10].name); } else { PC.anim[Items[v10].equip[0]].colours[Items[v10].equip[1]].attachMovie('equipment', 'EQ', 10); PC.anim[Items[v10].equip[0]].colours[Items[v10].equip[1]].EQ.gotoAndStop(Items[v10].name); } AttachParticle('equippoof', [0, PC._height / 2], PC); ITEMS[IN].equip = true; ITEMS[IN].limb = Items[v10].equip[0]; var v7 = 0; while (v7 < ITEMS.length) { if (ITEMS[v7].limb == ITEMS[IN].limb && v7 != IN) { ITEMS[v7].equip = false; ITEMS[v7].limb = null; break; } ++v7; } } } } ++v10; } if (storedv16) { menuselect = 'Abilities'; AttachBigButtons(ABILITIES); } else { AttachItems(BM); } } else { if (BM[stdr].IT.hitTest(BM.Discard)) { BM.Discard.gotoAndStop('Discard'); v10 = 0; while (v10 < Items.length) { if (Items[v10].name == ITEMS[IN].name) { if (Items[v10].cost != null && Items[v10].name != '??? Map' && ITEMS[IN].equip == false) { if (IN < 10) { ITEMS[IN].name = null; removeMovieClip(BM[stdr].IT); break; } else { STORAGE[IN - 10].name = null; removeMovieClip(BM[stdr].IT); break; } } } ++v10; } } else { if (BM[stdr].IT.hitTest(BM.SELL) && !ITEMS[IN].equip) { v10 = 0; while (v10 < Items.length) { if (Items[v10].name == ITEMS[IN].name && Items[v10].cost != null && Items[v10].name != '??? Map') { shards += Math.floor(Items[v10].cost / 2); if (shards > 9999) { shards = 9999; } SD.shardicon.gotoAndPlay('wiggle'); if (!mute) { var v17 = new Sound(); v17.attachSound('chling'); v17.start(); } ITEMS[IN].name = null; removeMovieClip(BM[stdr].IT); } ++v10; } } else { if (!BM[stdr].IT.hitTest(BM.Discard) && !BM[stdr].IT.hitTest(BM.SELL)) { if (!BM[stdr].IT.hitTest(PC) || menuselect == 'Storage') { var v25 = 10; if (menuselect == 'Storage') { v25 = 50; } var v12 = 0; while (v12 < v25) { if (v12 == IN) { } else { var v22 = 'B' + v12; var v13 = v12; if (IN > 9) { var v14 = 'STORAGE'; var v20 = IN - 10; } else { if (IN <= 9) { var v14 = 'ITEMS'; var v20 = IN; } } if (v13 > 9) { var v15 = 'STORAGE'; var v18 = v13 - 10; } else { if (v13 <= 9) { var v15 = 'ITEMS'; var v18 = v13; } } var v21 = this[v14][v20]; if (BM[stdr].IT.hitTest(BM[v22])) { if (v14 == 'ITEMS' && v15 == 'STORAGE' && ITEMS[IN].equip) { ITEMS[IN].equip = false; ITEMS[IN].limb = null; v10 = 0; while (v10 < Items.length) { if (Items[v10].name == ITEMS[IN].name) { if (Items[v10].equip[0].indexOf('ear') < 0) { removeMovieClip(PC.anim[Items[v10].equip[0]][Items[v10].equip[1]].EQ); } else { removeMovieClip(PC.anim[Items[v10].equip[0]].colours[Items[v10].equip[1]].EQ); } AttachParticle('equippoof', [0, PC._height / 2], PC); } ++v10; } } this[v14][v20] = this[v15][v18]; this[v15][v18] = v21; AttachItems(BM); break; } } ++v12; } if (ITEMS[IN].equip && _ymouse <= 240 && menuselect != 'Shop' && menuselect != 'Storage') { ITEMS[IN].equip = false; removeMovieClip(BM[stdr].IT.EQP); v10 = 0; while (v10 < Items.length) { if (Items[v10].name == ITEMS[IN].name) { if (Items[v10].equip[0].indexOf('ear') < 0) { removeMovieClip(PC.anim[Items[v10].equip[0]][Items[v10].equip[1]].EQ); } else { removeMovieClip(PC.anim[Items[v10].equip[0]].colours[Items[v10].equip[1]].EQ); } AttachParticle('equippoof', [0, PC._height / 2], PC); } ++v10; } } } } } } } BM[stdr].IT._x = 0; BM[stdr].IT._y = 0; stdr = ''; } } } function ExploreStuff(newplace) { removeMovieClip(_root.achv); menuselect = 'Explore'; RemoveAchieve(); attachMovie('WorldMap', 'WM', 101); var v7 = 0; while (v7 < 50) { removeMovieClip(BM['B' + v7]); removeMovieClip(BM['AP' + v7]); removeMovieClip(BM['APN' + v7]); ++v7; } _root.BM.attachMovie('achvdescription', 'MD', 200); _root.BM.MD.name_txt.text = 'World Map'; _root.BM.MD.desc_txt.text = 'Click on an icon to visit that location! You are currently where the red dot is.'; _root.BM.MD._x = 20; _root.BM.MD._y = 40; removeMovieClip(BM.EA); removeMovieClip(BM.Storage); delete PC.onPress; delete PC.onRelease; var v6 = 0; while (v6 < Areas.length) { var v4 = 0; while (v4 < AREAS.length) { if (Areas[v6].name == AREAS[v4]) { var v3 = 'M' + v4; WM.attachMovie('mapicon', v3, 10 + v4); WM[v3]._x = Areas[v6].map[0]; WM[v3]._y = Areas[v6].map[1]; WM[v3]._width *= 0.8; WM[v3]._height *= 0.8; if (newplace && v4 == AREAS.length - 1) { AttachParticle('equippoof', [Areas[v6].map[0], Areas[v6].map[1]]); } WM[v3].gotoAndStop(AREAS[v4]); if (currentarea.indexOf(AREAS[v4]) > -1) { WM[v3].bluedot.gotoAndStop(2); } WM[v3].area = AREAS[v4]; WM[v3].onRelease = function () { _root.menuselect = ''; _root.currentarea = this.area; if (this.area == 'Home') { _root.StrokePC(); _root.gotoAndStop('Home'); } else { _root.gotoAndStop('Areas'); } }; WM[v3].onRollOver = function () { var v3 = 0; while (v3 < _root.Areas.length) { if (this.area == _root.Areas[v3].name) { _root.BM.MD.name_txt.text = this.area; _root.BM.MD.desc_txt.text = _root.Areas[v3].desc; } ++v3; } var v4 = new flash.filters.GlowFilter(10092543, 0.5, 8, 8, 2, 2, false, false); this.filters = [v4]; }; WM[v3].onRollOut = function () { this.filters = []; }; } ++v4; } ++v6; } } function CheckStats() { if (STATS.staminamax == 100 && STATS.atk == 20 && STATS.def == 20 && STATS.spd == 20) { GotAchv('Diligent'); } } function ButtonActions(blist) { if (!dragging) { TM.savebtn.onRollOver = function () { this.gotoAndStop('over'); }; TM.savebtn.onRollOut = function () { this.gotoAndStop(1); }; TM.savebtn.onPress = function () { this.gotoAndStop('down'); }; TM.savebtn.onRelease = function () { _root.SaveGame(); this.savetick.gotoAndPlay(2); this.gotoAndStop(1); }; BM.Items.onRelease = function () { _root.menuselect = 'Items'; AttachItems(BM); _root.RemoveAchieve(); StrokePC(); }; BM.Abilities.onRelease = function () { _root.menuselect = 'Abilities'; AttachBigButtons(ABILITIES); _root.RemoveAchieve(); StrokePC(); }; if (!battle) { BM.Explore.onRelease = function () { if (!areatransition) { if (_root.menuselect != 'Explore') { _root.ExploreStuff(); } else { _root.menuselect = ''; _root.StrokePC(); removeMovieClip(_root.WM); removeMovieClip(_root.BM.MD); } } }; BM.Stats.onRelease = function () { _root.RemoveAchieve(); StrokePC(); removeMovieClip(_root.BM.EA); var v12 = 0; var v15 = 2; var v14 = 0; var v13 = 0; while (v13 < 50) { N = 'B' + v13; removeMovieClip(_root.BM[N]); ++v13; } removeMovieClip(_root.BM.Storage); var v5 = 0; while (v5 < _root.gamestats.length) { N = 'B' + v5; _root.BM.attachMovie('statdisplay', N, 200 + v5); if (v12 >= v15) { v12 = 0; ++v14; } _root.BM[N]._x = 200 * v12 + 11; _root.BM[N]._y = 38 * v14 + 37; _root.BM[N].statname_txt.text = _root.gamestats[v5].name; _root.BM[N].statnum_txt.text = _root.STATS[gamestats[v5].short]; var v11 = 0; var v7 = 0; while (v7 < ITEMS.length) { if (ITEMS[v7].equip) { var v3 = 0; while (v3 < Items.length) { if (ITEMS[v7].name == Items[v3].name) { var v4 = 0; while (v4 < Items[v3].effect.length) { if (Items[v3].effect[v4][0] == _root.gamestats[v5].short) { v11 += Items[v3].effect[v4][1]; } ++v4; } } ++v3; } } ++v7; } if (v11 > 0) { _root.BM[N].bonustxt.text = '+' + v11; } else { _root.BM[N].bonustxt.text = ''; } var v6 = 'AP' + v5; var v10 = 'APN' + v5; _root.BM.attachMovie('addap', v6, 300 + v5); _root.BM.attachMovie('apneeded', v10, 310 + v5); _root.BM[v10]._x = 138 + 200 * v12; _root.BM[v6]._x = 133 + 200 * v12; _root.BM[v10]._y = 42 + 39 * v14; _root.BM[v6]._y = 42 + 39 * v14; if (_root.gamestats[v5].short != 'staminamax') { if (_root.STATS[_root.gamestats[v5].short] < 20) { _root.BM[v10].txt.text = _root.STATS[_root.gamestats[v5].short] + 'AP'; } else { _root.BM[v10].txt.text = ''; } } else { if (_root.STATS[_root.gamestats[v5].short] < 100) { _root.BM[v10].txt.text = (_root.STATS[_root.gamestats[v5].short] - 5) / 5 + 'AP'; } else { _root.BM[v10].txt.text = ''; } } _root.BM[v6].stat = [gamestats[v5].short, N]; _root.BM[v6].onRollOver = function () { if (this.stat[0] == 'staminamax' && _root.STATS.ap >= (_root.STATS.staminamax - 5) / 5 && _root.STATS.staminamax < 100 || this.stat[0] != 'staminamax' && _root.STATS[this.stat[0]] < 20 && _root.STATS.ap >= _root.STATS[this.stat[0]]) { this.gotoAndStop('hover'); } }; _root.BM[v6].onRollOut = function () { if (this.stat[0] == 'staminamax' && _root.STATS.ap >= (_root.STATS.staminamax - 5) / 5 && _root.STATS.staminamax < 100 || this.stat[0] != 'staminamax' && _root.STATS[this.stat[0]] < 20 && _root.STATS.ap >= _root.STATS[this.stat[0]]) { this.gotoAndStop('default'); } }; if (_root.BM[v6].stat[0] == 'staminamax' && _root.STATS.ap < (_root.STATS.staminamax - 5) / 5 || _root.STATS.ap < _root.STATS[_root.BM[v6].stat[0]] && _root.BM[v6].stat[0] != 'staminamax') { _root.BM[v6].gotoAndStop('off'); } if (_root.BM[v6].stat[0] == 'staminamax' && _root.STATS.staminamax >= 100 || _root.BM[v6].stat[0] != 'staminamax' && _root.STATS[_root.BM[v6].stat[0]] >= 20) { _root.BM[v6].gotoAndStop('full'); } _root.BM[v6].onRelease = function () { if (this.stat[0] == 'staminamax' && _root.STATS.ap >= (_root.STATS.staminamax - 5) / 5) { if (_root.STATS.staminamax < 100) { _root.STATS.ap -= (_root.STATS.staminamax - 5) / 5; _root.STATS.staminamax += 5; _root.STATS.stamina += 5; _root.TM.stamina_nums.max_txt.text = _root.STATS.staminamax; _root.BM[this.stat[1]].statnum_txt.text = _root.STATS[this.stat[0]]; _root.BM['APN' + (String(this)).substr(-1)].txt.text = (_root.STATS[this.stat[0]] - 5) / 5 + 'AP'; _root.BM.B4.txt.text = _root.STATS.ap; if (_root.STATS.staminamax >= 100) { _root.BM['APN' + (String(this)).substr(-1)].txt.text = ''; this.gotoAndStop('full'); } else { if (_root.STATS.ap < (_root.STATS.staminamax - 5) / 5) { this.gotoAndStop('off'); } } _root.CheckStats(); } } else { if (_root.STATS[this.stat[0]] < 20 && _root.STATS.ap >= _root.STATS[this.stat[0]]) { _root.STATS.ap -= _root.STATS[this.stat[0]]; ++_root.STATS[this.stat[0]]; _root.BM[this.stat[1]].statnum_txt.text = _root.STATS[this.stat[0]]; _root.BM['APN' + (String(this)).substr(-1)].txt.text = _root.STATS[this.stat[0]] + 'AP'; _root.BM.B4.txt.text = _root.STATS.ap; if (_root.STATS[this.stat[0]] >= 20) { _root.BM['APN' + (String(this)).substr(-1)].txt.text = ''; this.gotoAndStop('full'); } else { if (_root.STATS.ap < _root.STATS[this.stat[0]]) { this.gotoAndStop('off'); } } _root.CheckStats(); } } var v4 = 0; while (v4 < 4) { var v3 = 'AP' + v4; if (_root.BM[v3].stat[0] == 'staminamax' && _root.STATS.ap < (_root.STATS.staminamax - 5) / 5 || _root.STATS.ap < _root.STATS[_root.BM[v3].stat[0]] && _root.BM[v3].stat[0] != 'staminamax') { _root.BM[v3].gotoAndStop('off'); } ++v4; } }; ++v12; ++v5; } _root.BM.attachMovie('APdisplay', 'B4', 10); _root.BM.B4._y = 82; _root.BM.B4._x = 390; _root.BM.B4.txt.text = _root.STATS.ap; _root.menuselect = 'Stats'; }; } else { delete BM.Stats.onRelease; delete BM.Explore.onRelease; } BM.Customise.onRelease = function () { _root.RemoveAchieve(); StrokePC(); _root.menuselect = 'Customise'; attachMovie('fade', 'fade', 99999); fade.gotoAndPlay('fadeout'); fading = 1; }; BM.Shop.onRelease = function () { _root.RemoveAchieve(); StrokePC(); _root.menuselect = 'Shop'; attachMovie('fade', 'fade', 99999); fade.gotoAndPlay('fadeout'); fading = 1; }; } } function GotAchv(ACHV) { attachMovie('gotachv', 'GA', 88888); var v2 = 0; while (v2 < Achievements.length) { if (Achievements[v2].name == ACHV) { GA.achv.gotoAndStop(Achievements[v2].mdl); Achievements[v2].unlocked = 1; } ++v2; } GA._width *= 1.3; GA._height *= 1.3; GA._x = _root.STAGE_WIDTH / 2 - 32.5; GA._y = 80; } function AttachParticle(pfx_name, coords, target) { var v4 = 0; while (v4 < PFX.length) { if (PFX[v4].name == pfx_name) { var v2 = 'PFX' + pfx_count; var v3 = this; var v5 = 0; if (weather != null) { v5 = 50; } if (!target) { attachMovie('pfx', v2, 700 + pfx_count + v5); } else { target.attachMovie('pfx', v2, 600 + pfx_count + v5); v3 = target; } v3[v2].fx = PFX[v4]; v3[v2]._x = coords[0]; v3[v2]._y = coords[1]; ++pfx_count; if (pfx_count > 30) { pfx_count = 0; } } ++v4; } } var currentarea = 'Home'; var petname = 'Name me'; var STATS = {'stamina': 10, 'staminamax': 10, 'mp': 5, 'mpmax': 5, 'joy': 50, 'joymax': 50, 'atk': 1, 'def': 1, 'spd': 1, 'mc': 'PC', 'ap': 0, 'sfx': []}; var gamestats = [{'name': 'HP', 'short': 'staminamax'}, {'name': 'Strength', 'short': 'atk'}, {'name': 'Defence', 'short': 'def'}, {'name': 'Speed', 'short': 'spd'}]; var PARTS = ['oear', 'iear', 'head', 'jaw', 'neck', 'body', 'oarm', 'iarm', 'oleg', 'ileg', 'otoe', 'itoe', 'tail']; var colours = ['0xA2876F', '0xC75959', '0xF4B159', '0xF3DE6D', '0x84C04B', '0x99D6DF', '0x916BA5', '0x888888']; var petbase = colours[random(colours.length)]; var petsec = colours[random(colours.length)]; var menuselect = ''; var dragging = 0; var stdr = ''; var lastitemdepth = 'B9'; var shards = 10; var battle = 0; var areatransition = 0; var fading = 0; var pfx_count = 0; var facechange = 0; var damage = null; var healed = null; var fileselect = null; var addarea = null; var weather = null; Mouse.show(); var mute = 0; var musicplaying = null; var byeboss = []; var endguide = 0; var tooltip = [{'name': 'Happy', 'viewed': 0, 'msg': 'Meditate in battle or use items on your vulpin to restore happiness!'}, {'name': 'AP', 'viewed': 0, 'msg': 'Use the Stats menu to apply the AP you\'ve earned. Do it often!'}, {'name': 'Start', 'viewed': 0, 'msg': 'Click on the Explore button to begin your adventure!'}, {'name': 'Achv', 'viewed': 0, 'msg': 'All your achievements can be viewed by clicking here!'}, {'name': 'Ability', 'viewed': 0, 'msg': 'Equip new abilities to prepare for your next adventure!'}, {'name': 'ShopCheck', 'viewed': 0, 'msg': 'Have you checked the shop at all lately?'}]; var SelAb = null; var BMtxt = 0; var BMtxtcount = 0; var StartDate = null; var startTime = null; var StrokeTotal = 0; var starpieces = 0; var ITEMS = [{'name': 'Banapple', 'equip': false, 'limb': null}, {'name': 'Banapple', 'equip': false, 'limb': null}, {'name': 'Banapple', 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}]; var STORAGE = [{'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}, {'name': null, 'equip': false, 'limb': null}]; var ABILITIES = ['Attack', 'Defend', 'Meditate']; var AREAS = ['Home', 'Woods']; var Elements = [{'name': 'Fire', 'weak': 'Water', 'strong': 'Air'}, {'name': 'Air', 'weak': 'Fire', 'strong': 'Earth'}, {'name': 'Earth', 'weak': 'Air', 'strong': 'Water'}, {'name': 'Water', 'weak': 'Earth', 'strong': 'Fire'}, {'name': 'Light', 'weak': 'Dark', 'strong': 'Dark'}, {'name': 'Dark', 'weak': 'Light', 'strong': 'Light'}]; Areas = [{'name': 'Home', 'bg': 'bg_home', 'music': 'MainTheme', 'map': [63, 163], 'desc': 'This is where you live and raise your beloved pet. But you knew that already, didn\'t you?'}, {'name': 'Woods', 'bg': 'bg_woods1', 'music': 'ForestMusic', 'map': [167, 180], 'desc': 'This nearby forest was once a peaceful place to Get Away From It All, but it has recently become overrun by monsters. ', 'connects': ['Home', 'Woods2'], 'foes': ['foe_mot'], 'scenery': ['sc_redmush'], 'treasure': [{'name': 'shard_5', 'chance': 0.8}, {'name': 'Banapple', 'chance': 0.6}, {'name': 'Stick', 'chance': 0.4}, {'name': 'Mushroom Earring', 'chance': 0.5}]}, {'name': 'Woods2', 'bg': 'bg_woods2', 'music': 'ForestMusic', 'connects': ['Woods', 'Woods3'], 'foes': ['foe_mot', 'foe_mushmuncher'], 'scenery': ['sc_redmush'], 'treasure': [{'name': 'shard_5', 'chance': 0.8}, {'name': 'Banapple', 'chance': 0.6}, {'name': 'Stick', 'chance': 0.4}, {'name': 'Mushroom Earring', 'chance': 0.5}]}, {'name': 'Woods3', 'bg': 'bg_woods3', 'music': 'ForestMusic', 'connects': ['Woods2', 'WoodsBoss'], 'foes': ['foe_mushmuncher', 'foe_hedgewolf'], 'scenery': ['sc_redmush'], 'treasure': [{'name': 'shard_5', 'chance': 0.8}, {'name': 'Banapple', 'chance': 0.6}, {'name': 'Stick', 'chance': 0.4}, {'name': 'Mushroom Earring', 'chance': 0.5}]}, {'name': 'WoodsBoss', 'bg': 'bg_woods_boss', 'music': 'ForestMusic', 'connects': ['Woods3', 'Woods5'], 'foes': null, 'scenery': null, 'treasure': null, 'boss': 'foe_calyx'}, {'name': 'Woods5', 'bg': 'bg_woods_boss', 'music': 'ForestMusic', 'connects': ['WoodsBoss', null], 'foes': null, 'scenery': null, 'treasure': null, 'special': 'Desert Map'}, {'name': 'Darkwood', 'bg': 'bg_blackbrush', 'music': 'ForestMusic', 'map': [150, 135], 'desc': 'A mysterious part of the woods nobody seems to know about.', 'connects': ['Home', null], 'foes': null, 'scenery': null, 'treasure': null, 'special': 'Black Paint'}, {'name': 'Desert Ruins', 'bg': 'bg_desert1', 'music': 'DesertMusic', 'map': [380, 162], 'desc': 'The ruins of a land once ruled by Pharaoh Drakhbet. Its oasis provides towns with water, but the monsters here make it a dangerous place indeed.', 'connects': ['Home', 'Desert Ruins2'], 'foes': ['foe_renegade_reptile'], 'scenery': ['sc_torch'], 'treasure': [{'name': 'shard_5', 'chance': 0.8}, {'name': 'shard_10', 'chance': 0.7}, {'name': 'Banapple', 'chance': 0.6}, {'name': 'Green Banapple', 'chance': 0.3}, {'name': 'Starberry', 'chance': 0.3}, {'name': 'Stick', 'chance': 0.4}, {'name': 'Tail Bandage', 'chance': 0.5}]}, {'name': 'Desert Ruins2', 'bg': 'bg_desert2', 'music': 'DesertMusic', 'connects': ['Desert Ruins', 'Desert Ruins3'], 'foes': ['foe_renegade_reptile', 'foe_inpu'], 'scenery': ['sc_torch'], 'treasure': [{'name': 'shard_5', 'chance': 0.8}, {'name': 'shard_10', 'chance': 0.7}, {'name': 'Banapple', 'chance': 0.6}, {'name': 'Green Banapple', 'chance': 0.3}, {'name': 'Starberry', 'chance': 0.3}, {'name': 'Stick', 'chance': 0.4}, {'name': 'Tail Bandage', 'chance': 0.5}]}, {'name': 'Desert Ruins3', 'bg': 'bg_desert3', 'music': 'DesertMusic', 'connects': ['Desert Ruins2', 'Desert RuinsBoss'], 'foes': ['foe_inpu', 'foe_flaming_fossil'], 'scenery': ['sc_torch'], 'treasure': [{'name': 'shard_5', 'chance': 0.8}, {'name': 'shard_10', 'chance': 0.7}, {'name': 'Banapple', 'chance': 0.6}, {'name': 'Green Banapple', 'chance': 0.3}, {'name': 'Starberry', 'chance': 0.3}, {'name': 'Stick', 'chance': 0.4}, {'name': 'Tail Bandage', 'chance': 0.5}]}, {'name': 'Desert RuinsBoss', 'bg': 'bg_desert_boss', 'music': 'DesertMusic', 'connects': ['Desert Ruins3', 'Desert Ruins5'], 'foes': null, 'scenery': null, 'treasure': null, 'boss': 'foe_drakhbet'}, {'name': 'Desert Ruins5', 'bg': 'bg_desert_boss', 'music': 'DesertMusic', 'connects': ['Desert RuinsBoss', null], 'foes': null, 'scenery': null, 'treasure': null, 'boss': null, 'special': 'Sea Cave Map'}, {'name': 'Desert Edge', 'bg': 'bg_pinkbrush', 'music': 'DesertMusic', 'map': [306, 185], 'desc': 'A somewhat green area nestled in a difficult-to-reach location at the base of a treacherous mountain range.', 'connects': ['Home', null], 'foes': null, 'scenery': null, 'treasure': null, 'special': 'Pink Paint'}, {'name': 'Sea Cave', 'bg': 'bg_ocean1', 'music': 'SeaCaveMusic', 'map': [117, 62], 'desc': 'Tourists and hydromaniacs of all sorts visited this place regularly until monsters began emerging from the nearby caves...', 'connects': ['Home', 'Sea Cave2'], 'foes': ['foe_seahorse', 'foe_lobstermonster'], 'scenery': ['sc_chest'], 'treasure': [{'name': 'shard_10', 'chance': 0.8}, {'name': 'shard_25', 'chance': 0.7}, {'name': 'shard_50', 'chance': 0.5}, {'name': 'Suds', 'chance': 0.6}, {'name': 'Green Banapple', 'chance': 0.6}, {'name': 'Banapurple', 'chance': 0.3}, {'name': 'Golden Banapple', 'chance': 0.2}, {'name': 'Starberry', 'chance': 0.3}]}, {'name': 'Sea Cave2', 'bg': 'bg_ocean2', 'music': 'SeaCaveMusic', 'connects': ['Sea Cave', 'Sea Cave3'], 'foes': ['foe_seahorse', 'foe_lobstermonster'], 'scenery': ['sc_pinkcrystal'], 'treasure': [{'name': 'shard_10', 'chance': 0.8}, {'name': 'shard_25', 'chance': 0.7}, {'name': 'shard_50', 'chance': 0.5}, {'name': 'Swirly Pink Thing', 'chance': 0.6}, {'name': 'Icicles', 'chance': 0.6}, {'name': 'Suds', 'chance': 0.6}, {'name': 'Green Banapple', 'chance': 0.6}, {'name': 'Banapurple', 'chance': 0.3}, {'name': 'Golden Banapple', 'chance': 0.2}, {'name': 'Starberry', 'chance': 0.3}]}, {'name': 'Sea Cave3', 'bg': 'bg_ocean3', 'music': 'SeaCaveMusic', 'connects': ['Sea Cave2', 'Sea Cave4'], 'foes': ['foe_snoroceros', 'foe_seahorse'], 'scenery': ['sc_pinkcrystal'], 'treasure': [{'name': 'shard_10', 'chance': 0.8}, {'name': 'shard_25', 'chance': 0.7}, {'name': 'shard_50', 'chance': 0.5}, {'name': 'Swirly Pink Thing', 'chance': 0.6}, {'name': 'Icicles', 'chance': 0.6}, {'name': 'Suds', 'chance': 0.6}, {'name': 'Green Banapple', 'chance': 0.6}, {'name': 'Banapurple', 'chance': 0.3}, {'name': 'Golden Banapple', 'chance': 0.2}, {'name': 'Starberry', 'chance': 0.3}]}, {'name': 'Sea Cave4', 'bg': 'bg_ocean4', 'music': 'SeaCaveMusic', 'connects': ['Sea Cave3', 'Sea CaveBoss'], 'foes': ['foe_snoroceros'], 'scenery': ['sc_pinkcrystal'], 'treasure': [{'name': 'shard_10', 'chance': 0.8}, {'name': 'shard_25', 'chance': 0.7}, {'name': 'shard_50', 'chance': 0.5}, {'name': 'Swirly Pink Thing', 'chance': 0.6}, {'name': 'Icicles', 'chance': 0.6}, {'name': 'Green Banapple', 'chance': 0.6}, {'name': 'Banapurple', 'chance': 0.3}, {'name': 'Golden Banapple', 'chance': 0.2}, {'name': 'Starberry', 'chance': 0.3}], 'weather': 'snowfall'}, {'name': 'Sea CaveBoss', 'bg': 'bg_ocean_boss', 'music': 'SeaCaveMusic', 'connects': ['Sea Cave4', 'Sea Cave5'], 'foes': null, 'scenery': null, 'treasure': null, 'weather': 'snowfall', 'boss': 'foe_iceboss'}, {'name': 'Sea Cave5', 'bg': 'bg_ocean_boss', 'music': 'SeaCaveMusic', 'connects': ['Sea CaveBoss', null], 'foes': null, 'scenery': null, 'treasure': null, 'weather': 'snowfall', 'special': 'Cloudy Peaks Map'}, {'name': 'Azure Beach', 'bg': 'bg_bluebrush', 'music': 'SeaCaveMusic', 'map': [227, 49], 'desc': 'For some reason, nobody really seems to be aware of this oddly-blue beach. Maybe it\'s too much of a bother to walk that far to reach it.', 'connects': ['Home', null], 'foes': null, 'scenery': null, 'treasure': null, 'special': 'Blue Paint'}, {'name': 'Cloudy Peaks', 'bg': 'bg_cloud0', 'music': 'CloudyPeaksMusic', 'map': [370, 36], 'desc': 'The mountains here really do touch the sky! The novelty of walking on clouds may be great, but beware of storms.', 'connects': ['Home', 'Cloudy Peaks1'], 'foes': ['foe_chigrumpen', 'foe_scythewasp'], 'scenery': ['sc_hoverflower_move'], 'treasure': [{'name': 'shard_25', 'chance': 0.7}, {'name': 'Flower Earring', 'chance': 0.6}, {'name': 'Thorny Flower', 'chance': 0.6}, {'name': 'shard_50', 'chance': 0.4}, {'name': 'shard_100', 'chance': 0.2}, {'name': 'Green Banapple', 'chance': 0.6}, {'name': 'Banapurple', 'chance': 0.5}, {'name': 'Golden Banapple', 'chance': 0.3}, {'name': 'Starberry', 'chance': 0.4}, {'name': 'Glowing Starberry', 'chance': 0.3}]}, {'name': 'Cloudy Peaks1', 'bg': 'bg_cloud1', 'music': 'CloudyPeaksMusic', 'connects': ['Cloudy Peaks', 'Cloudy Peaks2'], 'foes': ['foe_chigrumpen', 'foe_scythewasp'], 'scenery': ['sc_hoverflower_move'], 'treasure': [{'name': 'shard_25', 'chance': 0.7}, {'name': 'Flower Earring', 'chance': 0.6}, {'name': 'Thorny Flower', 'chance': 0.6}, {'name': 'shard_50', 'chance': 0.4}, {'name': 'shard_100', 'chance': 0.2}, {'name': 'Green Banapple', 'chance': 0.6}, {'name': 'Banapurple', 'chance': 0.3}, {'name': 'Golden Banapple', 'chance': 0.3}, {'name': 'Starberry', 'chance': 0.4}, {'name': 'Glowing Starberry', 'chance': 0.3}]}, {'name': 'Cloudy Peaks2', 'bg': 'bg_cloud2', 'music': 'CloudyPeaksMusic', 'connects': ['Cloudy Peaks', 'Cloudy Peaks3'], 'foes': ['foe_chigrumpen', 'foe_scythewasp', 'foe_dragon'], 'scenery': ['sc_hoverflower_move'], 'treasure': [{'name': 'shard_25', 'chance': 0.7}, {'name': 'Flower Earring', 'chance': 0.6}, {'name': 'Thorny Flower', 'chance': 0.6}, {'name': 'shard_50', 'chance': 0.4}, {'name': 'shard_100', 'chance': 0.2}, {'name': 'Static', 'chance': 0.6}, {'name': 'Green Banapple', 'chance': 0.6}, {'name': 'Banapurple', 'chance': 0.4}, {'name': 'Golden Banapple', 'chance': 0.3}, {'name': 'Starberry', 'chance': 0.4}, {'name': 'Glowing Starberry', 'chance': 0.3}], 'weather': 'rain'}, {'name': 'Cloudy Peaks3', 'bg': 'bg_cloud3', 'music': 'CloudyPeaksMusic', 'connects': ['Cloudy Peaks2', 'Cloudy PeaksBoss'], 'foes': ['foe_scythewasp', 'foe_dragon'], 'scenery': ['sc_hoverflower_move'], 'treasure': [{'name': 'shard_25', 'chance': 0.7}, {'name': 'Flower Earring', 'chance': 0.6}, {'name': 'shard_50', 'chance': 0.4}, {'name': 'shard_100', 'chance': 0.2}, {'name': 'Thorny Flower', 'chance': 0.6}, {'name': 'Static', 'chance': 0.6}, {'name': 'Green Banapple', 'chance': 0.6}, {'name': 'Banapurple', 'chance': 0.5}, {'name': 'Golden Banapple', 'chance': 0.3}, {'name': 'Starberry', 'chance': 0.4}, {'name': 'Glowing Starberry', 'chance': 0.3}], 'weather': 'rain'}, {'name': 'Cloudy PeaksBoss', 'bg': 'bg_cloud_boss', 'music': 'CloudyPeaksMusic', 'connects': ['Cloudy Peaks3', 'Cloudy Peaks4'], 'foes': null, 'scenery': null, 'treasure': null, 'boss': 'foe_pterophor', 'weather': 'rain'}, {'name': 'Cloudy Peaks4', 'bg': 'bg_cloud_boss', 'music': 'CloudyPeaksMusic', 'connects': ['Cloudy PeaksBoss', null], 'foes': null, 'scenery': null, 'treasure': null, 'special': 'Darklight Castle Map', 'weather': 'rain'}, {'name': 'Brightcloud', 'bg': 'bg_whitebrush', 'music': 'CloudyPeaksMusic', 'map': [414, 71], 'desc': 'A lone bit of cloud with probably some mysterious secret to hide, but you\'re not interested in that, are you?', 'connects': ['Home', null], 'foes': ['foe_brushbeast_black', 'foe_brushbeast_pink', 'foe_brushbeast_blue', 'foe_brushbeast_white'], 'scenery': null, 'treasure': null, 'special': 'White Paint'}, {'name': 'Darklight Castle', 'music': 'DarklightCastleMusic', 'bg': 'bg_castle1', 'map': [242, 134], 'desc': 'This castle wasn\'t here before the monster problem and it seems to have difficulty deciding on what time of day it is.', 'connects': ['Home', 'Darklight CastleBoss1'], 'foes': ['foe_starwisp', 'foe_darkdragon'], 'scenery': ['sc_hoverlampmove'], 'treasure': [{'name': 'shard_25', 'chance': 0.7}, {'name': 'shard_50', 'chance': 0.4}, {'name': 'shard_100', 'chance': 0.2}, {'name': 'Sun and Moon Staff', 'chance': 0.6}, {'name': 'Blue Flame', 'chance': 0.6}, {'name': 'Starry Earring', 'chance': 0.6}, {'name': 'Starburst', 'chance': 0.6}, {'name': 'Green Banapple', 'chance': 0.6}, {'name': 'Banapurple', 'chance': 0.5}, {'name': 'Golden Banapple', 'chance': 0.4}, {'name': 'Starberry', 'chance': 0.4}, {'name': 'Glowing Starberry', 'chance': 0.3}], 'weather': 'starshower'}, {'name': 'Darklight CastleBoss1', 'music': 'DarklightCastleMusic', 'bg': 'bg_castle_boss', 'connects': ['Darklight Castle', 'Darklight Castle2'], 'foes': null, 'scenery': null, 'treasure': null, 'boss': 'foe_calyx2', 'weather': 'starshower'}, {'name': 'Darklight Castle2', 'music': 'DarklightCastleMusic', 'bg': 'bg_castle2', 'connects': ['Darklight CastleBoss1', 'Darklight CastleBoss2'], 'foes': ['foe_starwisp', 'foe_lightdragon'], 'scenery': ['sc_hoverlampmove'], 'treasure': [{'name': 'shard_25', 'chance': 0.7}, {'name': 'shard_50', 'chance': 0.4}, {'name': 'shard_100', 'chance': 0.2}, {'name': 'Sun and Moon Staff', 'chance': 0.6}, {'name': 'Blue Flame', 'chance': 0.6}, {'name': 'Starry Earring', 'chance': 0.6}, {'name': 'Starburst', 'chance': 0.6}, {'name': 'Green Banapple', 'chance': 0.6}, {'name': 'Banapurple', 'chance': 0.5}, {'name': 'Golden Banapple', 'chance': 0.4}, {'name': 'Starberry', 'chance': 0.4}, {'name': 'Glowing Starberry', 'chance': 0.3}], 'weather': 'starshowerlight'}, {'name': 'Darklight CastleBoss2', 'music': 'DarklightCastleMusic', 'bg': 'bg_castle_boss1', 'connects': ['Darklight Castle2', 'Darklight Castle3'], 'foes': null, 'scenery': null, 'treasure': null, 'boss': 'foe_drakhbet2', 'weather': 'starshowerlight'}, {'name': 'Darklight Castle3', 'music': 'DarklightCastleMusic', 'bg': 'bg_castle1', 'connects': ['Darklight CastleBoss2', 'Darklight CastleBoss3'], 'foes': ['foe_starwisp', 'foe_darkdragon', 'foe_fluffpuff'], 'scenery': ['sc_hoverlampmove'], 'treasure': [{'name': 'shard_25', 'chance': 0.7}, {'name': 'shard_50', 'chance': 0.4}, {'name': 'shard_100', 'chance': 0.2}, {'name': 'Sun and Moon Staff', 'chance': 0.6}, {'name': 'Blue Flame', 'chance': 0.6}, {'name': 'Starry Earring', 'chance': 0.6}, {'name': 'Starburst', 'chance': 0.6}, {'name': 'Green Banapple', 'chance': 0.6}, {'name': 'Banapurple', 'chance': 0.5}, {'name': 'Golden Banapple', 'chance': 0.4}, {'name': 'Starberry', 'chance': 0.4}, {'name': 'Glowing Starberry', 'chance': 0.3}], 'weather': 'starshower'}, {'name': 'Darklight CastleBoss3', 'music': 'DarklightCastleMusic', 'bg': 'bg_castle_boss', 'connects': ['Darklight Castle3', 'Darklight Castle4'], 'foes': null, 'scenery': null, 'treasure': null, 'boss': 'foe_iceboss2', 'weather': 'starshower'}, {'name': 'Darklight Castle4', 'music': 'DarklightCastleMusic', 'bg': 'bg_castle2', 'connects': ['Darklight CastleBoss3', 'Darklight CastleBoss4'], 'foes': ['foe_starwisp', 'foe_lightdragon', 'foe_fluffpuff'], 'scenery': ['sc_hoverlampmove'], 'treasure': [{'name': 'shard_25', 'chance': 0.7}, {'name': 'shard_50', 'chance': 0.4}, {'name': 'shard_100', 'chance': 0.2}, {'name': 'Sun and Moon Staff', 'chance': 0.6}, {'name': 'Blue Flame', 'chance': 0.6}, {'name': 'Starry Earring', 'chance': 0.6}, {'name': 'Starburst', 'chance': 0.6}, {'name': 'Green Banapple', 'chance': 0.6}, {'name': 'Banapurple', 'chance': 0.5}, {'name': 'Golden Banapple', 'chance': 0.4}, {'name': 'Starberry', 'chance': 0.4}, {'name': 'Glowing Starberry', 'chance': 0.3}], 'weather': 'starshowerlight'}, {'name': 'Darklight CastleBoss4', 'music': 'DarklightCastleMusic', 'bg': 'bg_castle_boss1', 'connects': ['Darklight Castle4', 'Darklight Castle5'], 'foes': null, 'scenery': null, 'treasure': null, 'boss': 'foe_pterophor2', 'weather': 'starshowerlight'}, {'name': 'Darklight Castle5', 'music': 'DarklightCastleMusic', 'bg': 'bg_castle3', 'connects': ['Darklight CastleBoss4', 'Darklight CastleBoss5'], 'foes': ['foe_starwisp', 'foe_lightdragon', 'foe_darkdragon', 'foe_fluffpuff'], 'scenery': ['sc_hoverlampmove'], 'treasure': [{'name': 'shard_25', 'chance': 0.7}, {'name': 'shard_50', 'chance': 0.4}, {'name': 'shard_100', 'chance': 0.2}, {'name': 'Sun and Moon Staff', 'chance': 0.6}, {'name': 'Blue Flame', 'chance': 0.6}, {'name': 'Starry Earring', 'chance': 0.6}, {'name': 'Starburst', 'chance': 0.6}, {'name': 'Green Banapple', 'chance': 0.6}, {'name': 'Banapurple', 'chance': 0.5}, {'name': 'Golden Banapple', 'chance': 0.4}, {'name': 'Starberry', 'chance': 0.4}, {'name': 'Glowing Starberry', 'chance': 0.3}], 'weather': 'starshowerorange'}, {'name': 'Darklight CastleBoss5', 'music': 'DarklightCastleMusic', 'bg': 'bg_castle_boss2', 'connects': ['Darklight Castle5', null], 'foes': null, 'scenery': null, 'treasure': null, 'boss': 'foe_finalboss', 'weather': 'starshowerorange'}, {'name': '???', 'music': 'MainTheme', 'bg': 'bg_bonus0', 'map': [40, 110], 'desc': 'What IS this place?', 'connects': ['Home', '???2'], 'foes': ['foe_ducky'], 'scenery': ['sc_lolly'], 'treasure': [{'name': 'shard_25', 'chance': 0.7}, {'name': 'shard_50', 'chance': 0.6}, {'name': 'shard_100', 'chance': 0.5}, {'name': 'Green Banapple', 'chance': 0.9}, {'name': 'Banapurple', 'chance': 0.7}, {'name': 'Golden Banapple', 'chance': 0.5}, {'name': 'Starberry', 'chance': 0.5}, {'name': 'Glowing Starberry', 'chance': 0.4}]}, {'name': '???2', 'music': 'MainTheme', 'bg': 'bg_bonus0', 'connects': ['???', '???3'], 'foes': ['foe_ducky'], 'scenery': ['sc_lolly'], 'treasure': [{'name': 'shard_25', 'chance': 0.7}, {'name': 'shard_50', 'chance': 0.6}, {'name': 'shard_100', 'chance': 0.5}, {'name': 'Green Banapple', 'chance': 0.9}, {'name': 'Banapurple', 'chance': 0.7}, {'name': 'Golden Banapple', 'chance': 0.5}, {'name': 'Starberry', 'chance': 0.5}, {'name': 'Glowing Starberry', 'chance': 0.4}], 'weather': 'petals'}, {'name': '???3', 'bg': 'bg_bonus1', 'music': 'MainTheme', 'connects': ['???2', '??? Boss'], 'foes': null, 'scenery': null, 'treasure': null, 'weather': 'petals', 'special': 'Gold Ducky Spoon'}, {'name': '??? Boss', 'bg': 'bg_bonus1', 'music': 'MainTheme', 'connects': ['???3', null], 'foes': null, 'scenery': null, 'treasure': null, 'boss': 'foe_mrducky', 'weather': 'petals'}]; Infoposts = [{'area': 'Woods', 'txt': 'For lost travellers:\nNavigate your surroundings by \'hovering the cursor\' near the edges of the \'screen\', if you know what I mean.', 'xpos': 300}, {'area': 'Woods', 'txt': 'Did you know?!\nYou can click on a left- or right-pointing signpost to move to the next area!', 'xpos': 1600}, {'area': 'Woods2', 'txt': 'Unhappy vulpins battle poorly! The brighter the circle at the top left of the screen, the happier the vulpin. Stroking, feeding, and meditating improve moods.', 'xpos': 1600}, {'area': 'Woods2', 'txt': 'Don\'t forget to apply that AP you\'re earning from battles! You can do so in the Stats menu.', 'xpos': 300}, {'area': 'Woods3', 'txt': 'WARNING!\nThere\'s a powerful monster up ahead! Are you prepared for battle? Having a few banapples with you couldn\'t hurt!', 'xpos': 1600}, {'area': 'Desert Ruins', 'txt': 'Running out of inventory space? Discard an item by dragging it to the bin icon, or store it when you\'re at home!', 'xpos': 1300}, {'area': 'Desert Ruins', 'txt': 'A madman once told me that \'hovering cursors\' over your foes revealed their secrets to you, whatever that means. But he was quite mad.', 'xpos': 300}, {'area': 'Desert Ruins2', 'txt': 'Are you paying attention to elements? This desert attracts fire creatures, so water attacks like Frost Strike do extra damage to them!', 'xpos': 600}, {'area': 'Sea Cave', 'txt': 'Water monsters are weak against Earth!\nEarth > Water > Fire > Air > Earth\nDark <-> Light ', 'xpos': 300}, {'area': 'Darklight Castle', 'txt': 'Beware the earthen guardian.\nLightning and gusts of wind are your best friends.', 'xpos': 1600}]; Achievements = [{'name': 'Earthly Protector', 'mdl': 'earthboss', 'desc': 'You saved the forest from monsters! Congratulations.', 'unlocked': false}, {'name': 'Sandy Toes', 'mdl': 'fireboss', 'desc': 'The desert will also no longer be plagued by monsters! Congratulations again.', 'unlocked': false}, {'name': 'Sea Dog', 'mdl': 'waterboss', 'desc': 'And now the sea is safe from monsters?! You\'re just too kind! Sniffle.', 'unlocked': false}, {'name': 'Storm Chaser', 'mdl': 'airboss', 'desc': 'You\'ve gone to the trouble or ridding the sky from monsters! Who knew it was even possible to walk on clouds.', 'unlocked': false}, {'name': 'Hero', 'mdl': 'finalboss', 'desc': 'Wow! You saved the whole world! You really outdid yourself this time!', 'unlocked': false}, {'name': 'Animal Lover', 'mdl': 'stroke', 'desc': 'You spend lots of time stroking your pet, you big softy, you!', 'unlocked': false}, {'name': 'Versatile', 'mdl': 'abilities', 'desc': 'You\'ve mastered all there is to learn. It must have taken years of study and practise.', 'unlocked': false}, {'name': 'Full Palette', 'mdl': 'colours', 'desc': 'All the colours have been unlocked! You could paint several rainbows with them all.', 'unlocked': false}, {'name': 'Diligent', 'mdl': 'maxstats', 'desc': 'Give yourself a good, heartfelt pat on the back for maximising all your stats!', 'unlocked': false}]; var BonusAchv = {'name': 'Ducky Slayer', 'mdl': 'duckslayer', 'desc': 'Thanks to you, the world need no longer fear the evil that is ducks.', 'unlocked': false}; if (isSponsor) { Achievements.push(BonusAchv); } Abilities = [{'name': 'Attack', 'mp': 0, 'target': 'FOE', 'element': null, 'cat': 'off', 'anim': 'attack', 'power': 1, 'sfx': 'soft_smack', 'pfx': null, 'duration': null, 'desc': 'A basic, damage-dealing attack. What a surprise.'}, {'name': 'Leaf Strike', 'mp': 1, 'target': 'FOE', 'element': 'Earth', 'cat': 'off', 'anim': 'attack', 'power': 1, 'sfx': 'debris_hit', 'pfx': 'leafswirl', 'duration': null, 'desc': 'A basic, damage-dealing earth attack.'}, {'name': 'Vortex Strike', 'mp': 1, 'target': 'FOE', 'element': 'Air', 'cat': 'off', 'anim': 'attack', 'power': 1, 'sfx': 'airystrike', 'pfx': 'vortexy', 'duration': null, 'desc': 'A basic, damage-dealing air attack.'}, {'name': 'Defend', 'mp': 0, 'target': 'SELF', 'element': null, 'cat': 'def', 'anim': 'defend', 'power': 0.5, 'pfx': null, 'duration': null, 'desc': 'Halves the damage you\'ll receive this turn.'}, {'name': 'Meditate', 'mp': 1, 'target': 'SELF', 'element': null, 'cat': 'joy', 'anim': 'spell', 'power': null, 'sfx': 'tinklies', 'pfx': 'meditation', 'duration': null, 'desc': 'Clear your mind to increase your happiness.'}, {'name': 'Heal', 'mp': 2, 'target': 'SELF', 'element': 'Light', 'cat': 'heal', 'anim': 'spell', 'power': 10, 'sfx': 'tinklies', 'pfx': 'healhearts', 'duration': null, 'desc': 'Restores your HP.'}, {'name': 'Swarm', 'mp': 2, 'target': 'FOE', 'element': 'Earth', 'cat': 'off', 'anim': 'spell', 'power': 1.3, 'sfx': 'bees', 'pfx': 'swarm', 'duration': null, 'desc': 'Send out hordes of bees to do earth damage.'}, {'name': 'Boulder Breath', 'mp': 4, 'target': 'FOE', 'element': 'Earth', 'cat': 'off', 'anim': 'breath', 'power': 1.5, 'sfx': 'boulder_breath2', 'pfx': 'boulderbreath', 'duration': null, 'desc': 'Bombard foes with oral boulders! Does much big earth damage.'}, {'name': 'Flame Strike', 'mp': 1, 'target': 'FOE', 'element': 'Fire', 'cat': 'off', 'anim': 'attack', 'power': 1, 'sfx': 'flamesmack', 'pfx': 'flamestrike', 'duration': null, 'desc': 'A basic, damage-dealing fire attack.'}, {'name': 'Blaze', 'mp': 2, 'target': 'FOE', 'element': 'Fire', 'cat': 'off', 'anim': 'spell', 'power': 1.3, 'sfx': 'blaze_sound', 'pfx': 'blaze', 'sfx': 'flame_sound', 'duration': null, 'desc': 'Impose combustion upon your poor foes.'}, {'name': 'Fire Breath', 'mp': 4, 'target': 'FOE', 'element': 'Fire', 'cat': 'off', 'anim': 'breath', 'power': 1.5, 'sfx': 'flame_sound', 'pfx': 'firebreath', 'duration': null, 'desc': 'Vomit flames to do lots of damage!'}, {'name': 'Frost Strike', 'mp': 1, 'target': 'FOE', 'element': 'Water', 'cat': 'off', 'anim': 'attack', 'power': 1, 'sfx': 'froststrike', 'pfx': 'frosty', 'duration': null, 'desc': 'A basic, damage-dealing water attack.'}, {'name': 'Bubble Fountain', 'mp': 2, 'target': 'FOE', 'element': 'Water', 'cat': 'off', 'anim': 'spell', 'power': 1.3, 'sfx': 'bubbling_short', 'pfx': 'bubbleup', 'duration': null, 'desc': 'Oh no, not... bubbles! They\'d do water damage to things!'}, {'name': 'Aqua Breath', 'mp': 4, 'target': 'FOE', 'element': 'Water', 'cat': 'off', 'anim': 'breath', 'power': 1.5, 'sfx': 'bubbling_short', 'pfx': 'waterbreath', 'duration': null, 'desc': 'Unleash the damp contents of your mouth on your foes!'}, {'name': 'Bolt', 'mp': 2, 'target': 'FOE', 'element': 'Air', 'cat': 'off', 'anim': 'spell', 'power': 1.3, 'sfx': 'lightningcrack', 'pfx': 'lightning', 'duration': null, 'desc': 'Air damage caused by the preferred method of yellow rodents.'}, {'name': 'Hurricane Breath', 'mp': 4, 'target': 'FOE', 'element': 'Air', 'cat': 'off', 'anim': 'breath', 'power': 1.5, 'sfx': 'airywhoosh', 'pfx': 'hurricanebreath', 'duration': null, 'desc': 'Do severe damage with the air and lightning you keep in your mouth.'}, {'name': 'Lunar Rain', 'mp': 3, 'target': 'FOE', 'element': 'Dark', 'cat': 'off', 'anim': 'spell', 'power': 1.4, 'sfx': 'starfall', 'pfx': 'celestialrain', 'duration': null, 'desc': 'Wield the power of the moon to rain spacestuff and do dark damage.'}, {'name': 'Sunburst', 'mp': 3, 'target': 'FOE', 'element': 'Light', 'cat': 'off', 'anim': 'spell', 'power': 1.4, 'sfx': 'sunburstsound', 'pfx': 'sunburst', 'duration': null, 'desc': 'Blast your foes with the might of the sun itself!'}]; Items = [{'name': 'Banapple', 'cost': 5, 'effect': [['stamina', 15], ['joy', 10]], 'cat': 'use', 'pfx': 'usebanapple', 'sound': 'ItemTinkle', 'desc': 'A confusing fruit which restores a whopping 15 HP.'}, {'name': 'Green Banapple', 'cost': 15, 'effect': [['stamina', 40], ['joy', 10]], 'cat': 'use', 'pfx': 'usegreenbanapple', 'sound': 'ItemTinkle', 'desc': 'A more potent banapple which restores 45 HP.'}, {'name': 'Banapurple', 'cost': 30, 'effect': [['stamina', 90], ['joy', 10]], 'cat': 'use', 'pfx': 'usebanapurple', 'sound': 'ItemTinkle', 'desc': 'This banapple has a lovely, 90 HP restoring purple colour.'}, {'name': 'Golden Banapple', 'cost': 100, 'effect': [['stamina', 500], ['joy', 50]], 'cat': 'use', 'pfx': 'usegoldbanapple', 'sound': 'ItemTinkle', 'desc': 'It\'s too beautiful NOT to be fully healed by!'}, {'name': 'Starberry', 'cost': 10, 'effect': [['mp', 2], ['joy', 10]], 'cat': 'use', 'pfx': 'usestarberry', 'sound': 'ItemTinkle', 'desc': 'This delightful berry cuts up your mouth and restores 2 MP.'}, {'name': 'Glowing Starberry', 'cost': 50, 'effect': [['mp', 5], ['joy', 10]], 'cat': 'use', 'pfx': 'useglowstarberry', 'sound': 'ItemTinkle', 'desc': 'A sharp, glowy berry that fully restores MP.'}, {'name': 'Stick', 'cost': 15, 'effect': [['atk', 2]], 'cat': 'equip', 'equip': ['oarm', 'WA'], 'sound': null, 'desc': 'This stick would easily succumb to the ravages of fire. Atk +2'}, {'name': 'Burning Stick', 'cost': 30, 'effect': [['atk', 4]], 'cat': 'equip', 'equip': ['oarm', 'WA'], 'sound': null, 'desc': 'This stick is succumbing to the ravages of fire. Atk +4'}, {'name': 'Bone', 'cost': 60, 'effect': [['atk', 5]], 'cat': 'equip', 'equip': ['oarm', 'WA'], 'sound': null, 'desc': 'This is a bone. Wow.\n Atk +5.'}, {'name': 'Cobra', 'cost': 90, 'effect': [['atk', 8]], 'cat': 'equip', 'equip': ['oarm', 'WA'], 'sound': null, 'desc': 'Using this probably isn\'t a form of animal cruelty.'}, {'name': 'Swirly Pink Thing', 'cost': 110, 'effect': [['atk', 10]], 'cat': 'equip', 'equip': ['oarm', 'WA'], 'sound': 'swordhit', 'desc': 'Its mighty, swirly pinkness increases attack by 10! Yay!'}, {'name': 'Metal Stick', 'cost': 90, 'effect': [['atk', 12]], 'cat': 'equip', 'equip': ['oarm', 'WA'], 'sound': null, 'desc': 'A metal stick resistant to fire. Atk +12'}, {'name': 'Thorny Flower', 'cost': 160, 'effect': [['atk', 14]], 'cat': 'equip', 'equip': ['oarm', 'WA'], 'sound': null, 'desc': 'Mmmm, it smells just like Granny\'s wig. Atk +14'}, {'name': 'Sun and Moon Staff', 'cost': 240, 'effect': [['atk', 20]], 'cat': 'equip', 'equip': ['oarm', 'WA'], 'sound': null, 'desc': 'A fancy staff infused with both lunar and solar power. Atk +20'}, {'name': 'Ducky Spoon', 'cost': 300, 'effect': [['atk', 30]], 'cat': 'equip', 'equip': ['oarm', 'WA'], 'sound': 'sound_RubberDuck', 'desc': 'Quack.\nAtk +30'}, {'name': 'Gold Ducky Spoon', 'cost': null, 'effect': [['atk', 50]], 'cat': 'equip', 'equip': ['oarm', 'WA'], 'sound': 'sound_RubberDuck', 'desc': 'Le quack.\nAtk+50'}, {'name': 'Tail Bandage', 'cost': 15, 'effect': [['def', 1]], 'cat': 'equip', 'equip': ['tail', 'equip'], 'sound': null, 'desc': 'Provides slight protection to tails. Def +1.'}, {'name': 'Flame', 'cost': 15, 'effect': [['def', 1], ['atk', 1]], 'cat': 'equip', 'equip': ['tail', 'equip'], 'sound': null, 'desc': 'Don\'t worry, this fire doesn\'t actually hurt. Def +1, Atk +1.'}, {'name': 'Icicles', 'cost': 15, 'effect': [['def', 2]], 'cat': 'equip', 'equip': ['tail', 'equip'], 'sound': null, 'desc': 'A frozen tail is a good defence! Def +2.'}, {'name': 'Silver Ring', 'cost': 25, 'effect': [['def', 2]], 'cat': 'equip', 'equip': ['tail', 'equip'], 'sound': null, 'desc': 'You\'ll be the talk of the town with this lovely ring. Def +2.'}, {'name': 'Gold Ring', 'cost': 50, 'effect': [['def', 3]], 'cat': 'equip', 'equip': ['tail', 'equip'], 'sound': null, 'desc': 'Wow! Solid gold! Your favourite! Def +3.'}, {'name': 'Blue Flame', 'cost': 80, 'effect': [['def', 1], ['atk', 2]], 'cat': 'equip', 'equip': ['tail', 'equip'], 'sound': null, 'desc': 'Such an invigorating blue flame! Def +1, Atk +2.'}, {'name': 'Ice Horn', 'cost': 40, 'effect': [['atk', 1], ['def', 1]], 'cat': 'equip', 'equip': ['head', 'equip'], 'sound': null, 'desc': 'Look like a Pweeetty Unicoooorn! Def +1, Atk +1.'}, {'name': 'Mushroom Earring', 'cost': 15, 'effect': [['def', 1]], 'cat': 'equip', 'equip': ['oear', 'equip'], 'sound': null, 'desc': 'This tiny mushroom has an ear fetish. Def +1.'}, {'name': 'Spiny Earring', 'cost': 15, 'effect': [['atk', 2]], 'cat': 'equip', 'equip': ['oear', 'equip'], 'sound': null, 'desc': 'All the trendy people are wearing these! Atk +2.'}, {'name': 'Flower Earring', 'cost': 15, 'effect': [['def', 2]], 'cat': 'equip', 'equip': ['oear', 'equip'], 'sound': null, 'desc': 'Your ear will never smell bad again. Def +2.'}, {'name': 'Starry Earring', 'cost': 15, 'effect': [['def', 1], ['atk', 1]], 'cat': 'equip', 'equip': ['oear', 'equip'], 'sound': null, 'desc': 'It\'s like a tiny piece of space is living on your ear! Atk +1, Def +1.'}, {'name': 'Heart Earring', 'cost': 30, 'effect': [['def', 1], ['spd', 1]], 'cat': 'equip', 'equip': ['oear', 'equip'], 'sound': null, 'desc': 'This heart makes you feel more lively than ever. Def +1, Spd +1.'}, {'name': 'Eye Patch', 'cost': 15, 'effect': [['spd', 1], ['atk', 1]], 'cat': 'equip', 'equip': ['head', 'equip'], 'sound': null, 'desc': 'Only SISSIES use both eyes in combat! Atk +1, Spd +1.'}, {'name': 'Nose Horn', 'cost': 15, 'effect': [['atk', 1], ['def', 1]], 'cat': 'equip', 'equip': ['head', 'equip'], 'sound': null, 'desc': 'Experience the joy of being a rhinoceros! Atk +1, Def +1.'}, {'name': 'Glasses', 'cost': 60, 'effect': [['spd', 3]], 'cat': 'equip', 'equip': ['head', 'equip'], 'sound': null, 'desc': 'Anticipate your foe\'s movements with improved vision. Spd +3.'}, {'name': 'Monocle', 'cost': 60, 'effect': [['spd', 1], ['def', 1], ['atk', 1]], 'cat': 'equip', 'equip': ['head', 'equip'], 'sound': null, 'desc': 'So classy that three stats get a boost! Atk +1, Def +1, Spd +1.'}, {'name': 'Fluffpuff Antennae', 'cost': 60, 'effect': [['atk', 3]], 'cat': 'equip', 'equip': ['head', 'equip'], 'sound': null, 'desc': 'These fell off a Fluffpuff. Its magic enhances strength! Atk +3.'}, {'name': 'Suds', 'cost': 40, 'effect': [['spd', 2]], 'cat': 'equip', 'equip': ['body', 'equip'], 'sound': null, 'desc': 'Look like you\'ve just come out of the bath! Spd +2.'}, {'name': 'Static', 'cost': 40, 'effect': [['spd', 2]], 'cat': 'equip', 'equip': ['body', 'equip'], 'sound': null, 'desc': 'Zap zop zoop! Spd +2.'}, {'name': 'Starburst', 'cost': 40, 'effect': [['spd', 2]], 'cat': 'equip', 'equip': ['body', 'equip'], 'sound': null, 'desc': 'Glittery good fun! Spd +2.'}, {'name': 'Leaf Strike Tome', 'cost': 50, 'effect': [['ability', 'Leaf Strike']], 'cat': 'use', 'pfx': 'newability', 'sound': null, 'desc': 'Use this on your pet to learn the ability Leaf Strike.'}, {'name': 'Flame Strike Tome', 'cost': 50, 'effect': [['ability', 'Flame Strike']], 'cat': 'use', 'pfx': 'newability', 'sound': null, 'desc': 'Use this on your pet to learn the ability Flame Strike.'}, {'name': 'Frost Strike Tome', 'cost': 50, 'effect': [['ability', 'Frost Strike']], 'cat': 'use', 'pfx': 'newability', 'sound': null, 'desc': 'Use this on your pet to learn the ability Frost Strike.'}, {'name': 'Vortex Strike Tome', 'cost': 50, 'effect': [['ability', 'Vortex Strike']], 'cat': 'use', 'pfx': 'newability', 'sound': null, 'desc': 'Use this on your pet to learn the ability Vortex Strike.'}, {'name': 'Heal Tome', 'cost': 75, 'effect': [['ability', 'Heal']], 'cat': 'use', 'pfx': 'newability', 'sound': null, 'desc': 'Use this on your pet to learn the ability Heal.'}, {'name': 'Swarm Tome', 'cost': null, 'effect': [['ability', 'Swarm']], 'cat': 'use', 'pfx': 'newability', 'sound': null, 'desc': 'Use this on your pet to learn the ability Swarm.'}, {'name': 'Blaze Tome', 'cost': null, 'effect': [['ability', 'Blaze']], 'cat': 'use', 'pfx': 'newability', 'sound': null, 'desc': 'Use this on your pet to learn the ability Blaze.'}, {'name': 'Bubble Fountain Tome', 'cost': null, 'effect': [['ability', 'Bubble Fountain']], 'cat': 'use', 'pfx': 'newability', 'sound': null, 'desc': 'Use this on your pet to learn the ability Bubble Fountain.'}, {'name': 'Bolt Tome', 'cost': null, 'effect': [['ability', 'Bolt']], 'cat': 'use', 'pfx': 'newability', 'sound': null, 'desc': 'Use this on your pet to learn the ability Bolt.'}, {'name': 'Boulder Breath Tome', 'cost': null, 'effect': [['ability', 'Boulder Breath']], 'cat': 'use', 'pfx': 'newability', 'sound': null, 'desc': 'Use this on your pet to learn the ability Boulder Breath.'}, {'name': 'Fire Breath Tome', 'cost': null, 'effect': [['ability', 'Fire Breath']], 'cat': 'use', 'pfx': 'newability', 'sound': null, 'desc': 'Use this on your pet to learn the ability Fire Breath.'}, {'name': 'Aqua Breath Tome', 'cost': null, 'effect': [['ability', 'Aqua Breath']], 'cat': 'use', 'pfx': 'newability', 'sound': null, 'desc': 'Use this on your pet to learn the ability Aqua Breath.'}, {'name': 'Hurricane Breath Tome', 'cost': null, 'effect': [['ability', 'Hurricane Breath']], 'cat': 'use', 'pfx': 'newability', 'sound': null, 'desc': 'Use this on your pet to learn the ability Hurricane Breath.'}, {'name': 'Sunburst Tome', 'cost': 400, 'effect': [['ability', 'Sunburst']], 'cat': 'use', 'pfx': 'newability', 'sound': null, 'desc': 'Use this on your pet to learn the ability Sunburst.'}, {'name': 'Lunar Rain Tome', 'cost': 400, 'effect': [['ability', 'Lunar Rain']], 'cat': 'use', 'pfx': 'newability', 'sound': null, 'desc': 'Use this on your pet to learn the ability Lunar Rain.'}, {'name': 'White Paint', 'cost': null, 'effect': [['colour', '0xFFFFFF']], 'cat': 'use', 'pfx': 'whitepaint', 'sound': null, 'desc': 'Use this on your pet to unlock a new colour.'}, {'name': 'Black Paint', 'cost': null, 'effect': [['colour', '0x333333']], 'cat': 'use', 'pfx': 'blackpaint', 'sound': null, 'desc': 'Use this on your pet to unlock a new colour.'}, {'name': 'Pink Paint', 'cost': null, 'effect': [['colour', '0xFF99CC']], 'cat': 'use', 'pfx': 'pinkpaint', 'sound': null, 'desc': 'Use this on your pet to unlock a new colour.'}, {'name': 'Blue Paint', 'cost': null, 'effect': [['colour', '0x324185']], 'cat': 'use', 'pfx': 'bluepaint', 'sound': null, 'desc': 'Use this on your pet to unlock a new colour.'}, {'name': 'Desert Map', 'cost': null, 'effect': [['explore', 'Desert Ruins']], 'cat': 'use', 'pfx': 'usebanapple', 'sound': null, 'desc': 'Show this to your pet and you can find the Desert Ruins! Yay!'}, {'name': 'Sea Cave Map', 'cost': null, 'effect': [['explore', 'Sea Cave']], 'cat': 'use', 'pfx': 'usebanapple', 'sound': null, 'desc': 'Show this to your pet and you can find the Sea Cave! Yay!'}, {'name': 'Cloudy Peaks Map', 'cost': null, 'effect': [['explore', 'Cloudy Peaks']], 'cat': 'use', 'pfx': 'usebanapple', 'sound': null, 'desc': 'Show this to your pet and you can find Cloudy Peaks! Yay!'}, {'name': 'Darklight Castle Map', 'cost': null, 'effect': [['explore', 'Darklight Castle']], 'cat': 'use', 'pfx': 'usebanapple', 'sound': null, 'desc': 'Show this to your pet and you can find Darklight Casle! Yay!'}, {'name': 'Darkwood Map', 'cost': null, 'effect': [['explore', 'Darkwood']], 'cat': 'use', 'pfx': 'usebanapple', 'sound': null, 'desc': 'This map seems to lead to a mysterious place...!'}, {'name': 'Desert Edge Map', 'cost': null, 'effect': [['explore', 'Desert Edge']], 'cat': 'use', 'pfx': 'usebanapple', 'sound': null, 'desc': 'This map seems to lead to a mysterious place...!'}, {'name': 'Azure Beach Map', 'cost': null, 'effect': [['explore', 'Azure Beach']], 'cat': 'use', 'pfx': 'usebanapple', 'sound': null, 'desc': 'This map seems to lead to a mysterious place...!'}, {'name': 'Brightcloud Map', 'cost': null, 'effect': [['explore', 'Brightcloud']], 'cat': 'use', 'pfx': 'usebanapple', 'sound': null, 'desc': 'This map seems to lead to a mysterious place...!'}, {'name': '??? Map', 'cost': 50, 'effect': [['explore', '???']], 'cat': 'use', 'pfx': 'usebanapple', 'sound': null, 'desc': 'This map seems to lead to a mysterious place...!'}]; if (isNoBonus) { Items[23].desc = 'Enjoy the trendy new Ear Fungus look! Def +1'; } Monsters = [{'name': 'Circle', 'mdl': 'foe_circle', 'stamina': 3, 'atk': 2, 'def': 0, 'spd': 1, 'ap': 1, 'abilities': ['Attack'], 'pfx': null}, {'name': 'Hedgewolf', 'mdl': 'foe_hedgewolf', 'ele': 'Earth', 'stamina': 6, 'atk': 3, 'def': 1, 'spd': 2, 'ap': 1, 'abilities': ['Attack'], 'sfx': 'slashclaws', 'pfx': null, 'drop': [{'name': 'shard_5', 'chance': 0.8}]}, {'name': 'Mot', 'mdl': 'foe_mot', 'ele': 'Earth', 'stamina': 3, 'atk': 2, 'def': 0, 'spd': 2, 'ap': 1, 'abilities': ['Attack'], 'pfx': null, 'drop': [{'name': 'shard_5', 'chance': 0.8}]}, {'name': 'Mushmuncher', 'mdl': 'foe_mushmuncher', 'ele': 'Earth', 'stamina': 5, 'atk': 3, 'def': 1, 'spd': 1, 'ap': 1, 'sfx': 'munchsound', 'abilities': ['Attack'], 'pfx': null, 'drop': [{'name': 'shard_5', 'chance': 0.8}, {'name': 'Banapple', 'chance': 0.6}]}, {'name': 'Calyx', 'mdl': 'foe_calyx', 'ele': 'Earth', 'stamina': 50, 'atk': 4, 'def': 1, 'spd': 4, 'ap': 5, 'abilities': ['Leaf Strike', 'Swarm'], 'sfx': null, 'pfx': null, 'drop': [{'name': 'Swarm Tome', 'chance': 1}], 'achv': 'Earthly Protector'}, {'name': 'Renegade Reptile', 'mdl': 'foe_renegade_reptile', 'ele': 'Fire', 'stamina': 10, 'atk': 5, 'def': 2, 'spd': 3, 'ap': 2, 'abilities': ['Attack'], 'sfx': 'swordhit', 'pfx': null, 'drop': [{'name': 'shard_5', 'chance': 0.8}, {'name': 'shard_10', 'chance': 0.5}, {'name': 'Banapple', 'chance': 0.6}]}, {'name': 'Flaming Fossil', 'mdl': 'foe_flaming_fossil', 'ele': 'Fire', 'stamina': 15, 'atk': 5, 'def': 2, 'spd': 5, 'ap': 2, 'abilities': ['Attack', 'Blaze'], 'pfx': null, 'drop': [{'name': 'shard_25', 'chance': 0.8}, {'name': 'shard_50', 'chance': 0.4}, {'name': 'Green Banapple', 'chance': 0.4}, {'name': 'Bone', 'chance': 0.8}]}, {'name': 'Inpu', 'mdl': 'foe_inpu', 'ele': 'Fire', 'stamina': 13, 'atk': 4, 'def': 2, 'spd': 5, 'ap': 2, 'abilities': ['Heal', 'Blaze', 'Blaze'], 'pfx': null, 'drop': [{'name': 'shard_10', 'chance': 0.8}, {'name': 'shard_25', 'chance': 0.5}, {'name': 'Banapple', 'chance': 0.6}, {'name': 'Tail Bandage', 'chance': 0.5}, {'name': 'Heal Tome', 'chance': 0.4}]}, {'name': 'Drakhbet', 'mdl': 'foe_drakhbet', 'ele': 'Fire', 'stamina': 100, 'atk': 6, 'def': 3, 'spd': 6, 'ap': 10, 'abilities': ['Flame Strike', 'Fire Breath', 'Blaze'], 'pfx': null, 'drop': [{'name': 'Blaze Tome', 'chance': 1}], 'achv': 'Sandy Toes'}, {'name': 'Seahorse', 'mdl': 'foe_seahorse', 'ele': 'Water', 'stamina': 22, 'atk': 6, 'def': 3, 'spd': 6, 'ap': 2, 'abilities': ['Attack', 'Bubble Fountain'], 'pfx': null, 'drop': [{'name': 'shard_10', 'chance': 0.8}, {'name': 'shard_25', 'chance': 0.5}, {'name': 'Spiny Earring', 'chance': 0.5}, {'name': 'Green Banapple', 'chance': 0.6}]}, {'name': 'LobsterMonster', 'mdl': 'foe_lobstermonster', 'ele': 'Water', 'stamina': 28, 'atk': 8, 'def': 4, 'spd': 5, 'ap': 2, 'abilities': ['Attack', 'Frost Strike'], 'pfx': null, 'drop': [{'name': 'shard_10', 'chance': 0.8}, {'name': 'shard_25', 'chance': 0.5}, {'name': 'Green Banapple', 'chance': 0.6}]}, {'name': 'Snoroceros', 'mdl': 'foe_snoroceros', 'ele': 'Water', 'stamina': 40, 'atk': 9, 'def': 6, 'spd': 4, 'ap': 3, 'abilities': ['Attack', 'Frost Strike'], 'pfx': null, 'drop': [{'name': 'shard_25', 'chance': 0.8}, {'name': 'shard_50', 'chance': 0.5}, {'name': 'Ice Horn', 'chance': 0.5}, {'name': 'Green Banapple', 'chance': 0.6}]}, {'name': 'Hydrex', 'mdl': 'foe_iceboss', 'ele': 'Water', 'stamina': 200, 'atk': 8, 'def': 5, 'spd': 7, 'ap': 15, 'abilities': ['Frost Strike', 'Bubble Fountain'], 'pfx': null, 'drop': [{'name': 'Bubble Fountain Tome', 'chance': 1}], 'achv': 'Sea Dog'}, {'name': 'Pterophor', 'mdl': 'foe_pterophor', 'ele': 'Air', 'stamina': 300, 'atk': 10, 'def': 9, 'spd': 8, 'ap': 20, 'abilities': ['Vortex Strike', 'Bolt', 'Vortex Strike', 'Bolt', 'Heal'], 'pfx': null, 'drop': [{'name': 'Bolt Tome', 'chance': 1}], 'achv': 'Storm Chaser'}, {'name': 'Scythe Wasp', 'mdl': 'foe_scythewasp', 'ele': 'Air', 'stamina': 50, 'atk': 9, 'def': 7, 'spd': 8, 'ap': 3, 'abilities': ['Attack'], 'sfx': 'slashclaws', 'pfx': null, 'drop': [{'name': 'shard_10', 'chance': 0.8}, {'name': 'Green Banapple', 'chance': 0.6}]}, {'name': 'Chigrumpen', 'mdl': 'foe_chigrumpen', 'ele': 'Air', 'stamina': 60, 'atk': 10, 'def': 6, 'spd': 7, 'ap': 3, 'abilities': ['Attack', 'Bolt'], 'pfx': null, 'drop': [{'name': 'shard_10', 'chance': 0.8}, {'name': 'Green Banapple', 'chance': 0.6}]}, {'name': 'Dragon', 'mdl': 'foe_dragon', 'ele': 'Air', 'stamina': 70, 'atk': 9, 'def': 5, 'spd': 10, 'ap': 4, 'sfx': 'munchsound', 'abilities': ['Boulder Breath', 'Fire Breath', 'Aqua Breath', 'Hurricane Breath'], 'pfx': null, 'drop': [{'name': 'shard_25', 'chance': 0.8}, {'name': 'Green Banapple', 'chance': 0.6}]}, {'name': 'Starwisp', 'mdl': 'foe_starwisp', 'ele': 'Light', 'stamina': 80, 'atk': 11, 'def': 8, 'spd': 8, 'ap': 4, 'abilities': ['Attack', 'Lunar Rain', 'Sunburst'], 'pfx': null, 'drop': [{'name': 'shard_10', 'chance': 0.8}, {'name': 'Green Banapple', 'chance': 0.6}, {'name': 'Banapurple', 'chance': 0.4}]}, {'name': 'Darkdragon', 'mdl': 'foe_darkdragon', 'ele': 'Dark', 'stamina': 120, 'atk': 10, 'def': 9, 'spd': 9, 'ap': 5, 'sfx': 'munchsound', 'abilities': ['Attack', 'Lunar Rain', 'Boulder Breath', 'Aqua Breath'], 'pfx': null, 'drop': [{'name': 'shard_25', 'chance': 0.8}, {'name': 'shard_50', 'chance': 0.4}, {'name': 'Green Banapple', 'chance': 0.6}, {'name': 'Lunar Rain Tome', 'chance': 0.5}, {'name': 'Banapurple', 'chance': 0.4}]}, {'name': 'Lightdragon', 'mdl': 'foe_lightdragon', 'ele': 'Light', 'stamina': 120, 'atk': 10, 'def': 9, 'spd': 9, 'ap': 5, 'sfx': 'munchsound', 'abilities': ['Attack', 'Sunburst', 'Fire Breath', 'Hurricane Breath'], 'pfx': null, 'drop': [{'name': 'shard_25', 'chance': 0.8}, {'name': 'shard_50', 'chance': 0.4}, {'name': 'Green Banapple', 'chance': 0.6}, {'name': 'Sunburst Tome', 'chance': 0.5}, {'name': 'Banapurple', 'chance': 0.4}]}, {'name': 'Fluffpuff', 'mdl': 'foe_fluffpuff', 'ele': 'Light', 'stamina': 150, 'atk': 13, 'def': 10, 'spd': 10, 'ap': 4, 'abilities': ['Attack', 'Sunburst', 'Lunar Rain', 'Blaze', 'Bolt', 'Swarm'], 'pfx': null, 'drop': [{'name': 'shard_25', 'chance': 0.8}, {'name': 'shard_50', 'chance': 0.4}, {'name': 'Fluffpuff Antennae', 'chance': 0.6}, {'name': 'Green Banapple', 'chance': 0.6}, {'name': 'Banapurple', 'chance': 0.4}]}, {'name': 'Ducky', 'mdl': 'foe_ducky', 'ele': null, 'stamina': 300, 'atk': 17, 'def': 10, 'spd': 18, 'ap': 5, 'abilities': ['Sunburst', 'Lunar Rain', 'Blaze', 'Bolt', 'Swarm', 'Bubble Fountain'], 'pfx': null, 'drop': [{'name': 'shard_25', 'chance': 0.8}, {'name': 'shard_50', 'chance': 0.4}, {'name': 'Green Banapple', 'chance': 0.6}, {'name': 'Banapurple', 'chance': 0.4}]}, {'name': 'Monsieur Ducky', 'mdl': 'foe_mrducky', 'ele': null, 'stamina': 5000, 'atk': 18, 'def': 8, 'spd': 18, 'ap': 50, 'abilities': ['Sunburst', 'Lunar Rain', 'Blaze', 'Bolt', 'Swarm', 'Bubble Fountain'], 'pfx': null, 'drop': null, 'achv': 'Ducky Slayer'}, {'name': 'Brushbeast', 'mdl': 'foe_brushbeast_black', 'ele': null, 'stamina': 5, 'atk': 2, 'def': 0, 'spd': 2, 'ap': 1, 'abilities': ['Attack'], 'pfx': 'blackpaint', 'drop': [{'name': 'Darkwood Map', 'chance': 1}]}, {'name': 'Brushbeast', 'mdl': 'foe_brushbeast_pink', 'ele': null, 'stamina': 16, 'atk': 4, 'def': 2, 'spd': 4, 'ap': 1, 'abilities': ['Attack'], 'pfx': 'pinkpaint', 'drop': [{'name': 'Desert Edge Map', 'chance': 1}]}, {'name': 'Brushbeast', 'mdl': 'foe_brushbeast_blue', 'ele': null, 'stamina': 45, 'atk': 8, 'def': 4, 'spd': 6, 'ap': 1, 'abilities': ['Attack'], 'pfx': 'bluepaint', 'drop': [{'name': 'Azure Beach Map', 'chance': 1}]}, {'name': 'Brushbeast', 'mdl': 'foe_brushbeast_white', 'ele': null, 'stamina': 70, 'atk': 10, 'def': 7, 'spd': 11, 'ap': 1, 'abilities': ['Attack'], 'pfx': 'whitepaint', 'drop': [{'name': 'Brightcloud Map', 'chance': 1}]}, {'name': 'Calyx', 'mdl': 'foe_calyx2', 'ele': 'Earth', 'stamina': 400, 'atk': 12, 'def': 8, 'spd': 9, 'ap': 25, 'abilities': ['Leaf Strike', 'Swarm'], 'sfx': null, 'pfx': null, 'drop': [{'name': 'Boulder Breath Tome', 'chance': 1}]}, {'name': 'Drakhbet', 'mdl': 'foe_drakhbet2', 'ele': 'Fire', 'stamina': 450, 'atk': 12, 'def': 9, 'spd': 10, 'ap': 30, 'abilities': ['Flame Strike', 'Blaze', 'Fire Breath'], 'sfx': null, 'pfx': null, 'drop': [{'name': 'Fire Breath Tome', 'chance': 1}]}, {'name': 'Hydrex', 'mdl': 'foe_iceboss2', 'ele': 'Water', 'stamina': 500, 'atk': 14, 'def': 9, 'spd': 10, 'ap': 35, 'abilities': ['Frost Strike', 'Bubble Fountain'], 'pfx': null, 'drop': [{'name': 'Aqua Breath Tome', 'chance': 1}]}, {'name': 'Pterophor', 'mdl': 'foe_pterophor2', 'ele': 'Air', 'stamina': 550, 'atk': 14, 'def': 10, 'spd': 11, 'ap': 40, 'abilities': ['Vortex Strike', 'Bolt', 'Hurricane Breath', 'Heal'], 'pfx': null, 'drop': [{'name': 'Hurricane Breath Tome', 'chance': 1}]}, {'name': 'Final Boss', 'mdl': 'foe_finalboss', 'ele': null, 'stamina': 1500, 'atk': 15, 'def': 9, 'spd': 12, 'ap': 50, 'abilities': ['Lunar Rain', 'Sunburst', 'Lunar Rain', 'Sunburst', 'Heal'], 'pfx': null, 'drop': null, 'achv': 'Hero'}]; PFX = [{'name': 'strokeheart', 'mc': ['pfx_heartmove'], 'size': 1.2, 'spd': [0, -2], 'coord': [0, 0, 0, 0], 'rot': [180, 180], 'acc': 0, 'num': 1, 'del': 0, 'fade': [5, 20]}, {'name': 'heartsparkle', 'mc': ['pfx_sparklepink'], 'size': 1.5, 'spd': [0, 0.8], 'coord': [[0, 20], [0, 20]], 'rot': [180, 180], 'acc': 0, 'num': 2, 'del': 20, 'fade': [20, 30]}, {'name': 'starsmack', 'mc': ['pfx_starspin'], 'size': 1, 'spd': [4, 4], 'coord': [[0, 0], [0, 0]], 'rot': [-50, 90], 'acc': -0.3, 'num': 4, 'del': 1, 'fade': [20, 14]}, {'name': 'leafswirl', 'mc': ['pfx_leaf'], 'size': 1.2, 'spd': [4, 4], 'coord': [[0, 0], [40, 40]], 'spn': 5, 'rot': [0, 360], 'acc': -0.2, 'num': 8, 'del': 1, 'fade': [20, 25]}, {'name': 'gentlesparkle', 'mc': ['pfx_sparklepink', 'pfx_sparklegreen'], 'size': 0.7, 'spd': [0.8, 0.8], 'coord': [[0, 0], [0, 0]], 'spn': 0, 'rot': [0, 360], 'acc': -0.01, 'num': 6, 'del': 1, 'fade': [2, 10]}, {'name': 'shardsparkle', 'mc': ['pfx_sparklegold', 'pfx_sparklesilver'], 'size': 0.7, 'spd': [0.8, 0.8], 'coord': [[0, 0], [0, 0]], 'spn': 0, 'rot': [0, 360], 'acc': -0.01, 'num': 6, 'del': 1, 'fade': [2, 10]}, {'name': 'monsterpoof', 'mc': ['pfx_smokeswirl', 'pfx_sparklepurple', 'pfx_smokeswirl'], 'size': 1, 'spd': [3.5, 2.5], 'coord': [[0, 30], [0, 30]], 'spn': 5, 'rot': [-40, 360], 'acc': -0.1, 'num': 15, 'del': 0, 'fade': [5, 13]}, {'name': 'monsterpoof2', 'mc': ['pfx_smokeswirl', 'pfx_sparklepurple', 'pfx_smokeswirl'], 'size': 1.3, 'spd': [3.5, 2.5], 'coord': [[0, 30], [0, 30]], 'spn': 5, 'rot': [-40, 360], 'acc': -0.1, 'num': 20, 'del': 1, 'fade': [5, 13]}, {'name': 'equippoof', 'mc': ['pfx_cloudswirl', 'pfx_sparklegold'], 'size': 1.5, 'spd': [3, 3], 'coord': [[0, 20], [0, 20]], 'spn': 5, 'rot': [0, 360], 'acc': -0.1, 'num': 10, 'del': 0, 'fade': [10, 20]}, {'name': 'usebanapple', 'mc': ['pfx_sparklegold', 'pfx_sparklepink'], 'size': 1.5, 'spd': [2, 2], 'coord': [[0, 20], [0, 20]], 'spn': 0, 'rot': [0, 360], 'acc': -0.06, 'num': 5, 'del': 1, 'fade': [10, 35]}, {'name': 'usegreenbanapple', 'mc': ['pfx_sparklegold', 'pfx_sparklegreen'], 'size': 1.5, 'spd': [2, 2], 'coord': [[0, 20], [0, 20]], 'spn': 0, 'rot': [0, 360], 'acc': -0.06, 'num': 5, 'del': 1, 'fade': [10, 35]}, {'name': 'usebanapurple', 'mc': ['pfx_sparklegold', 'pfx_sparklepurple'], 'size': 1.5, 'spd': [2, 2], 'coord': [[0, 20], [0, 20]], 'spn': 0, 'rot': [0, 360], 'acc': -0.06, 'num': 5, 'del': 1, 'fade': [10, 35]}, {'name': 'usegoldbanapple', 'mc': ['pfx_sparklegold', 'pfx_sparklepink', 'pfx_sparklesilver', 'pfx_sparklepurple'], 'size': 1.5, 'spd': [2, 2], 'coord': [[0, 20], [0, 20]], 'spn': 0, 'rot': [0, 360], 'acc': -0.06, 'num': 5, 'del': 1, 'fade': [10, 35]}, {'name': 'swarm', 'mc': ['pfx_bee', 'pfx_sparklegold'], 'size': 1, 'spd': [6.5, 6.5], 'coord': [[-10, 10], [-10, 10]], 'spn': 3, 'rot': [0, 360], 'acc': -0.5, 'num': 25, 'del': 1, 'fade': [10, 23]}, {'name': 'healhearts', 'mc': ['pfx_sparklepink', 'pfx_sparklegold', 'pfx_heartmove2'], 'size': 1, 'spd': [4, 4], 'coord': [[0, 50], [80, 80]], 'spn': 4, 'rot': [20, 70], 'acc': -0.1, 'num': 10, 'del': 2, 'fade': [2, 18]}, {'name': 'flamespark', 'mc': ['pfx_sparklegold'], 'size': 0.5, 'spd': [1.5, 1.5], 'coord': [[0, 0], [0, 0]], 'spn': 5, 'rot': [0, 90], 'acc': -0.02, 'num': 10, 'del': 20, 'fade': [5, 30]}, {'name': 'flowersparkle', 'mc': ['pfx_sparklepink', 'pfx_sparklepurple', 'pfx_sparklegold'], 'size': 0.5, 'spd': [1.5, 1.5], 'coord': [[0, 0], [0, 0]], 'spn': 5, 'rot': [0, 90], 'acc': -0.02, 'num': 10, 'del': 20, 'fade': [5, 30]}, {'name': 'flamestrike', 'mc': ['pfx_sparklepink', 'pfx_flameswirl', 'pfx_stargloworange', 'pfx_flameswirl'], 'size': 1.3, 'spd': [6, 6], 'coord': [[0, 30], [0, 30]], 'spn': 5, 'rot': [-35, 30], 'acc': -0.253, 'num': 10, 'del': 1, 'fade': [10, 17]}, {'name': 'blaze', 'mc': ['pfx_flameswirl', 'pfx_sparklegold', 'pfx_orangeswirl', 'pfx_flameswirl'], 'size': 1.5, 'spd': [4, 1.5], 'coord': [[0, 0], [0, 0]], 'spn': 8, 'rot': [0, 360], 'acc': -0.15, 'num': 15, 'del': 1, 'fade': [10, 25]}, {'name': 'zzz', 'mc': ['pfx_zmove'], 'size': 1, 'spd': [1, 0.5], 'coord': [[0, 0], [0, 0]], 'spn': -2.5, 'rot': [100, 120], 'acc': 0, 'num': 1, 'del': 0, 'fade': [6, 24]}, {'name': 'bluepaint', 'mc': ['pfx_paintblue', 'pfx_cloudswirl', 'pfx_sparklesilver'], 'size': 1.5, 'spd': [3, 3], 'coord': [[-10, 10], [-10, 10]], 'spn': 5, 'rot': [0, 360], 'acc': -0.1, 'num': 10, 'del': 0, 'fade': [10, 20]}, {'name': 'pinkpaint', 'mc': ['pfx_paintpink', 'pfx_cloudswirl', 'pfx_sparklegold'], 'size': 1.5, 'spd': [3, 3], 'coord': [[-10, 10], [-10, 10]], 'spn': 5, 'rot': [0, 360], 'acc': -0.1, 'num': 10, 'del': 0, 'fade': [10, 20]}, {'name': 'blackpaint', 'mc': ['pfx_paintblack', 'pfx_cloudswirl', 'pfx_sparklegold'], 'size': 1.5, 'spd': [3, 3], 'coord': [[-10, 10], [-10, 10]], 'spn': 5, 'rot': [0, 360], 'acc': -0.1, 'num': 10, 'del': 0, 'fade': [10, 20]}, {'name': 'whitepaint', 'mc': ['pfx_paintwhite', 'pfx_cloudswirl', 'pfx_sparklesilver'], 'size': 1.5, 'spd': [3, 3], 'coord': [[-10, 10], [-10, 10]], 'spn': 5, 'rot': [0, 360], 'acc': -0.1, 'num': 10, 'del': 0, 'fade': [10, 20]}, {'name': 'firebreath', 'mc': ['pfx_flameswirl', 'pfx_sparklegold', 'pfx_smokeswirl'], 'size': 1.3, 'spd': [-10, -1], 'coord': [[0, 0], [0, 0]], 'spn': 5, 'rot': [-15, 13], 'acc': 0.1, 'num': 25, 'del': 1, 'fade': [10, 25]}, {'name': 'snowfall', 'mc': ['pfx_snowflake'], 'size': 1.2, 'spd': [0, -1.5], 'coord': [[0, 460], [0, 0]], 'spn': 4, 'rot': [-50, 50], 'acc': 0, 'num': 2, 'del': 15, 'fade': [5, 200]}, {'name': 'petals', 'mc': ['pfx_petal'], 'size': 1, 'spd': [0, -1.5], 'coord': [[0, 460], [0, 0]], 'spn': 4, 'rot': [-50, 50], 'acc': 0, 'num': 2, 'del': 15, 'fade': [5, 200]}, {'name': 'bubbleup', 'mc': ['pfx_sparklesilver', 'pfx_bubble', 'pfx_bubble'], 'size': 1.3, 'spd': [5, 5], 'coord': [[-25, 25], [100, 100]], 'spn': 5, 'rot': [25, 65], 'acc': -0.12, 'num': 30, 'del': 1, 'fade': [10, 40]}, {'name': 'rain', 'mc': ['pfx_raindrop'], 'size': 1, 'spd': [0, 15], 'coord': [[-100, 100], [0, 0]], 'spn': 0, 'rot': [160, 150], 'acc': 0, 'num': 25, 'del': 2, 'fade': [20, 10]}, {'name': 'starshower', 'mc': ['pfx_starglow', 'pfx_starglowpink'], 'size': 1, 'spd': [0.2, 3], 'coord': [[-200, 200], [0, 0]], 'spn': 10, 'rot': [160, 150], 'acc': 0, 'num': 2, 'del': 15, 'fade': [10, 80]}, {'name': 'starshowerlight', 'mc': ['pfx_starglowlight', 'pfx_starglowpink'], 'size': 1, 'spd': [0.2, 3], 'coord': [[-200, 200], [0, 0]], 'spn': 10, 'rot': [160, 150], 'acc': 0, 'num': 2, 'del': 15, 'fade': [20, 75]}, {'name': 'starshowerorange', 'mc': ['pfx_starglowlight', 'pfx_stargloworange'], 'size': 1, 'spd': [0.2, 3], 'coord': [[-200, 200], [0, 0]], 'spn': 10, 'rot': [160, 150], 'acc': 0, 'num': 2, 'del': 15, 'fade': [20, 75]}, {'name': 'lightning', 'mc': ['pfx_lightningbolt'], 'size': 1, 'spd': [0, 0], 'coord': [[-20, -20], [-90, -90]], 'spn': 0, 'rot': [180, 180], 'acc': 0, 'num': 2, 'del': 10, 'fade': [100, 40]}, {'name': 'sparks', 'mc': ['pfx_spark', 'pfx_sparklegold', 'pfx_spark'], 'size': 1, 'spd': [0, 0.5], 'coord': [[0, 80], [0, 80]], 'spn': 0, 'rot': [0, 360], 'acc': 0, 'num': 13, 'del': 3, 'fade': [20, 20]}, {'name': 'vortexy', 'mc': ['pfx_airswirl_move', 'pfx_spark'], 'size': 1.2, 'spd': [3, 3], 'coord': [[0, 0], [40, 40]], 'spn': 7, 'rot': [0, 360], 'acc': -0.1, 'num': 10, 'del': 1, 'fade': [10, 30]}, {'name': 'usestarberry', 'mc': ['pfx_starblue', 'pfx_sparklesilver'], 'size': 1.2, 'spd': [3, 2], 'coord': [[0, 0], [0, 0]], 'spn': 5, 'rot': [0, 360], 'acc': -0.07000000000000001, 'num': 13, 'del': 1, 'fade': [10, 20]}, {'name': 'useglowstarberry', 'mc': ['pfx_starglow', 'pfx_starblue', 'pfx_sparklesilver'], 'size': 1.2, 'spd': [3, 2], 'coord': [[0, 0], [0, 0]], 'spn': 5, 'rot': [0, 360], 'acc': -0.07000000000000001, 'num': 15, 'del': 1, 'fade': [10, 20]}, {'name': 'meditation', 'mc': ['pfx_starglowrainbow', 'pfx_starrainbow', 'pfx_starglowlight', 'pfx_heartmove2', 'pfx_sparklegold'], 'size': 1.6, 'spd': [0, 4], 'coord': [[-50, 50], [100, 100]], 'spn': 5, 'rot': [-20, 10], 'acc': -0.02, 'num': 15, 'del': 2, 'fade': [10, 40]}, {'name': 'waterbreath', 'mc': ['pfx_sparklesilver', 'pfx_raindrop', 'pfx_waterglob_move', 'pfx_bubble'], 'size': 1.3, 'spd': [0, 9], 'coord': [[-20, -20], [0, 0]], 'spn': 0.8, 'rot': [60, 72], 'acc': -0.08, 'num': 30, 'del': 1, 'fade': [10, 30]}, {'name': 'hurricanebreath', 'mc': ['pfx_spark', 'pfx_sparklegold', 'pfx_airswirl'], 'size': 1, 'spd': [0, 9], 'coord': [[-20, -20], [0, 0]], 'spn': 20, 'rot': [65, 85], 'acc': -0.1, 'num': 25, 'del': 1, 'fade': [20, 30]}, {'name': 'frosty', 'mc': ['pfx_frost_flake'], 'size': 1.3, 'spd': [0, 1], 'coord': [[-20, 20], [0, 40]], 'spn': 2, 'rot': [0, 360], 'acc': 0, 'num': 8, 'del': 2, 'fade': [10, 40]}, {'name': 'boulderbreath', 'mc': ['pfx_pebble', 'pfx_rock', 'pfx_brownsmoke'], 'size': 1, 'spd': [0, 9], 'coord': [[-20, -20], [0, 0]], 'spn': 5, 'rot': [60, 72], 'acc': -0.1, 'num': 25, 'del': 1, 'fade': [10, 30]}, {'name': 'celestialrain', 'mc': ['pfx_sparklesilver', 'pfx_moonglow', 'pfx_starglowlight', 'pfx_starglow', 'pfx_moonglow'], 'size': 1.5, 'spd': [0, 6], 'coord': [[50, 50], [-50, -50]], 'spn': 6, 'rot': [180, 240], 'acc': -0.05, 'num': 20, 'del': 1, 'fade': [10, 30]}, {'name': 'sunburst', 'mc': ['pfx_sunglow', 'pfx_sparklegold', 'pfx_starglowlight'], 'size': 1.3, 'spd': [6, 2], 'coord': [[0, 30], [0, 30]], 'spn': 10, 'rot': [0, 360], 'acc': -0.3, 'num': 30, 'del': 0, 'fade': [4, 20]}, {'name': 'bosssparkle', 'mc': ['pfx_sparklesilver', 'pfx_sparklegold', 'pfx_starglowlight', 'pfx_stargloworange', 'pfx_starglow'], 'size': 1.5, 'spd': [0, 3], 'coord': [[0, 0], [0, 0]], 'spn': 5, 'rot': [0, 360], 'acc': 0, 'num': 1, 'del': 0, 'fade': [10, 30]}, {'name': 'static', 'mc': ['pfx_spark'], 'size': 1, 'spd': [1.5, 1.5], 'coord': [[0, 30], [0, 30]], 'spn': 5, 'rot': [0, 360], 'acc': 0, 'num': 1, 'del': 0, 'fade': [20, 15]}, {'name': 'gainachv', 'mc': ['pfx_sparklegold', 'pfx_starglowlight', 'pfx_starglowrainbow', 'pfx_sparklesilver', 'pfx_stargloworange', 'pfx_sparklepink'], 'size': 1, 'spd': [3, 3], 'coord': [[0, 40], [0, 40]], 'spn': 5, 'rot': [0, 360], 'acc': -0.06, 'num': 30, 'del': 0, 'fade': [5, 20]}, {'name': 'starburst', 'mc': ['pfx_starglowrainbow', 'pfx_starglowlight', 'pfx_sparklesilver'], 'size': 1.2, 'spd': [2, 2], 'coord': [[0, 0], [0, 0]], 'spn': 5, 'rot': [0, 360], 'acc': -0.05, 'num': 1, 'del': 0, 'fade': [10, 20]}, {'name': 'suds', 'mc': ['pfx_bubble'], 'size': 0.5, 'spd': [2, 2], 'coord': [[0, 0], [0, 0]], 'spn': 5, 'rot': [0, 360], 'acc': -0.05, 'num': 1, 'del': 0, 'fade': [10, 20]}, {'name': 'newability', 'mc': ['pfx_starglowrainbow'], 'size': 1, 'spd': [3, 3], 'coord': [[0, 0], [0, 0]], 'spn': 5, 'rot': [0, 360], 'acc': -0.1, 'num': 10, 'del': 1, 'fade': [10, 20]}, {'name': 'starassemble', 'mc': ['starpiece'], 'size': 1, 'spd': [5, 5], 'coord': [[0, 0], [0, 0]], 'spn': 2, 'rot': [0, 360], 'acc': -0.14, 'num': 5, 'del': 0, 'fade': [15, 75]}]; } frame 4 { stop(); c = 0; onEnterFrame = function () { ++c; if (c == 120) { gotoAndStop('TitleScreen'); } }; } movieClip 1237 { } movieClip 1239 { } movieClip 1241 { } movieClip 1243 { } movieClip 1246 { } movieClip 1248 { } movieClip 1249 { } movieClip 1250 { } movieClip 1252 { } movieClip 1254 { } movieClip 1255 { frame 109 { stop(); } } frame 5 { stop(); osturl = 'http://fighunter.bandcamp.com/album/vulpin-adventure-ost'; startbtn.btn_txt.text = 'Play'; helpbtn.btn_txt.text = 'Help'; var music = 'MainTheme'; var nextloc = null; vnum.text = 'v 1.01'; attachMovie('fade', 'fade', 99999); fade.gotoAndPlay('fadein'); PlayMusic(music); mutebtn.onRelease = function () { if (!_root.mute) { _root.mute = 1; _root.playMusic.stop(); } else { _root.mute = 0; _root.playMusic.start(0); } }; mutebtn.onRollOver = function () { var v2 = new flash.filters.GlowFilter(10092543, 0.5, 12, 12, 2, 2, false, false); this.filters = [v2]; }; mutebtn.onRollOut = function () { this.filters = []; }; fnclogo.onRelease = function () { getURL('http://www.flashninjaclan.com/fncgames.php', '_blank'); }; moregames.btn_txt.text = 'More Games'; moregames.onRollOver = function () { var v2 = new flash.filters.GlowFilter(10092543, 0.5, 12, 12, 2, 2, false, false); this.filters = [v2]; }; moregames.onRollOut = function () { this.filters = []; }; moregames.onRelease = function () { getURL('http://www.flashgamenexus.com', '_blank'); }; if (!isNoBonus) { if (isSponsor) { bonuslink.txt.text = 'Bonus level exclusive to this site!'; } else { bonuslink.txt.text = 'Bonus level available only at Flash Game Nexus!'; bonuslink.onRelease = function () { bonuslink.getURL('http://www.flashgamesnexus.com/flash-games/Vulpin-Adventures.php', '_blank'); }; bonuslink.onRollOver = function () { var v2 = new flash.filters.GlowFilter(10092543, 0.5, 12, 12, 2, 2, false, false); this.filters = [v2]; }; bonuslink.onRollOut = function () { this.filters = []; }; } } if (isNoBonus) { bonuslink.txt.text = ''; } startbtn.onRelease = function () { if (_root.fade.fade._alpha == 0) { _root.fade.gotoAndPlay('fadeout'); } _root.nextloc = 'FileSelect'; }; startbtn.onRollOver = function () { var v2 = new flash.filters.GlowFilter(10092543, 0.5, 12, 12, 2, 2, false, false); this.filters = [v2]; }; startbtn.onRollOut = function () { this.filters = []; }; helpbtn.onRelease = function () { if (_root.fade.fade._alpha == 0) { _root.fade.gotoAndPlay('fadeout'); } _root.nextloc = 'Help'; }; helpbtn.onRollOver = function () { var v2 = new flash.filters.GlowFilter(10092543, 0.5, 12, 12, 2, 2, false, false); this.filters = [v2]; }; helpbtn.onRollOut = function () { this.filters = []; }; sanctumbtn.onRelease = function () { getURL('http://www.sabressanctum.com', '_blank'); }; sanctumbtn.onRollOver = function () { var v2 = new flash.filters.GlowFilter(10092543, 0.5, 8, 8, 2, 2, false, false); this.filters = [v2]; }; sanctumbtn.onRollOut = function () { this.filters = []; }; MusicCredit.onRelease = function () { getURL('http://www.fighunter.com', '_blank'); }; MusicCredit.onRollOver = function () { var v2 = new flash.filters.GlowFilter(10092543, 0.5, 8, 8, 2, 2, false, false); this.filters = [v2]; }; MusicCredit.onRollOut = function () { this.filters = []; }; buyost.onRollOver = function () { buyost.gotoAndStop(2); }; buyost.onRollOut = function () { buyost.gotoAndStop(1); }; buyost.onRelease = function () { getURL(osturl, '_blank'); }; onEnterFrame = function () { if (!mute) { mutebtn.gotoAndStop(1); } else { mutebtn.gotoAndStop(2); } if (nextloc != null) { if (fade.fade._alpha >= 100) { gotoAndStop(nextloc); } } }; } movieClip 1258 { } movieClip 1262 { } movieClip 1265 { } movieClip 1268 { frame 1 { stop(); } } movieClip 1273 { } movieClip 1275 { } movieClip 1279 { frame 1 { stop(); } } movieClip 1283 { frame 1 { stop(); } } movieClip 1285 { } frame 6 { stop(); info_txt.text = 'Click on a help topic to view information about it.\n\nControls:\nThis game is entirely mouse-based, so you don\'t need to worry about complicated controls! Wow!'; var pg = 0; var nextloc = null; music = 'MainTheme'; PlayMusic(music); attachMovie('fade', 'fade', 99999); fade.gotoAndPlay('fadein'); attachMovie('helptopic', 'back', 9); back._x = 15; back._y = 300; back.txt.text = 'Back'; back.onRelease = function () { if (fade.fade._alpha == 0) { fade.gotoAndPlay('fadeout'); } nextloc = 'TitleScreen'; }; back.onRollOver = function () { var v2 = new flash.filters.GlowFilter(10092543, 0.7, 20, 10, 2, 2, false, false); this.filters = [v2]; }; back.onRollOut = function () { this.filters = []; }; var topics = [{'name': 'Credits', 'desc': 'Vulpin Adventure © 2011 Firequill.\n\nThis game was made by Firequill (www.sabressanctum.com). She wrote all the code, drew all the graphics by hand, and made a number of the sound effects in the game. The music was composed by Pseudolonewolf, owner of Fighunter.com and creator of the MARDEK series.'}, {'name': 'Vulpin Care', 'desc': 'Vulpins aren\'t too difficult to take care of, but if you do a poor job of it, that\'s likely to be reflected by its battle performance. You can keep your vulpin in a good mood by feeding it banapples and starberries, having it meditate in battle, or stroking it when you\'re not out on an adventure.\n\nYour vulpin\'s mood is indicated by the circle at the top left corner of the screen. The brighter the colour, the happier the vulpin, and a happy vulpin does its best in battle. A miserable vulpin will put significantly less effort into attacking its foes, so the damage it does gets cut.\\gA vulpin becomes unhappy when you either ignore it for a long period of time, or when it is attacked in battle. Counter this by using healing items on it or having it meditate.\n\nIf your vulpin is knocked out in battle, you will return home with a rather miserable vulpin. Stroking it for a while will cheer it up and mentally prepare it for the battles ahead. Click and drag the mouse over your vulpin to give it some love!'}, {'name': 'Items', 'desc': 'Items function entirely by dragging and dropping. Drag an item onto another item to swap those two items. Drag an item and drop it onto your vulpin to use or equip it. Unequip an item by dragging it from the inventory to a location on the background which your vulpin doesn\'t occupy. Items can be discarded by dragging them to the bin icon.\n\nYou can open item storage by clicking on the treasure chest icon. Up to 40 items may be stored, but cannot open storage while out exploring. Choose your inventory items wisely! You cannot store or discard equipped items.'}, {'name': 'Stats', 'desc': 'Your stats are HP, MP, Strength, Defence, and Speed. Out of those, only MP cannot be upgraded. Strength determines the damage you do both magically and physically, defence affects the damage you receive and the amount of HP healing moves restore, and speed determines turn order in battle and increases your critical hit chance.\n\nAs you battle monsters, you will be rewarded with Ability Points (AP). You can use these to increase your stats by pressing the large + button next to your stat of choice. More AP will be required to increase a stat upon every upgrade.'}, {'name': 'Abilities', 'desc': 'Moves you can use in battle are Abilities. This includes basic Attack and Defend commands. You can find a variety of abilities in the game, many of which are associated with a specific element. You can have up to six abilities equipped at one time, but you can swap your abilities around by clicking on the Edit Abilities icon. Abilities cannot be edited during battle.\n\nElements each have a strength and weakness. Each element below points to the element it\'s good against:\nFire -> Air -> Earth -> Water -> Fire again\nLight <-> Dark'}, {'name': 'Customise', 'desc': 'The Customise screen allows you to name your vulpin and choose a base colour and a secondary colour for it by clicking on one of the two top squares, then clicking on the desired colour below. You can change these at any time, and maybe even end up with a wider palette eventually...!'}, {'name': 'Shop', 'desc': 'You can drag and drop items from your inventory on the left to the green \'Sell\' box on the right to sell items, or you can drag shop items from the right to an empty slot in your inventory. The worth of an item will display beside your total shards. Some items can\'t be sold.\n\nAs you progress through the game, more items will be added to the shop, so keep checking back to see what\'s available!'}, {'name': 'Exploring', 'desc': 'You can explore different areas displayed on the world map. When in an area, you can guide your vulpin left and right by hovering the mouse near the right and left edges of the screen. You may encounter conspicuous pieces of scenery which you can click on to have your vulpin search them for treasure. There are signposts at the extreme ends of most areas. Clicking on them will let you proceed to the next screen. You\'ll randomly encounter monsters during your travels, but you can read more about that in the Battle section of this Help thing.'}, {'name': 'Battle', 'desc': 'General Battling\nBattles are turn-based and always one-on-one. During battle, the only menus you\'ll have access to are Items and Abilities, but keep in mind that you won\'t be able to edit your abilities during battle. You can click on an ability to use it, or you can go to your inventory and use an item on your vulpin. Using a healing item will end your turn, but equipping/unequipping items will not.\n\nMP\nMP is required to use most abilities, and at the beginning of each turn, a point of MP will be restored.\\gMood Affects Battle\nAs your vulpin takes damage, its mood may begin to drop. As your vulpin becomes less happy, it loses the will to fight and begins to perform poorly, doing less damage. To make sure your vulpin is always doing its best, give it healing items or have it Meditate.'}, {'name': 'Achievements', 'desc': 'As you progress through the game, you may end up getting Achievements! You\'ll know you\'ve earned one when a big icon appears on the screen in a burst of sparkles and things. You can check which achievements you\'ve acquired by clicking on the star icon near the top left corner of the screen in the \'Home\' area. Try to collect them all!'}]; var i = 0; while (i < topics.length) { var N = 'T' + i; attachMovie('helptopic', N, 10 + i); this[N]._x = 15; this[N]._y = i * this[N]._height + 55; this[N].txt.text = topics[i].name; this[N].desc = topics[i].desc; this[N].onRollOver = function () { var v2 = new flash.filters.GlowFilter(10092543, 0.7, 20, 10, 2, 2, false, false); this.filters = [v2]; }; this[N].onRollOut = function () { this.filters = []; }; this[N].onRelease = function () { removeMovieClip(_root.LA); removeMovieClip(_root.RA); pg = 0; var alltxt = []; alltxt = this.desc.split('\\g'); if (alltxt.length > 1) { _root.attachMovie('fselect_arrow', 'RA', 8); _root.attachMovie('fselect_arrow', 'LA', 7); _root.LA._alpha = 50; _root.RA._x = 427; _root.RA._y = 334; _root.RA._height *= 0.9; _root.RA._width *= 0.9; _root.RA._rotation -= 90; _root.LA._x = 410; _root.LA._y = 313.5; _root.LA._height *= 0.9; _root.LA._width *= 0.9; _root.LA._rotation += 90; _root.RA.onRollOver = function () { if (_root.pg < alltxt.length - 1) { this.gotoAndPlay('bounce'); } }; _root.RA.onRollOut = function () { this.gotoAndStop(1); }; _root.RA.onDragOut = function () { this.gotoAndStop(1); }; _root.RA.onRelease = function () { if (_root.pg < alltxt.length - 1) { ++_root.pg; _root.info_txt.text = alltxt[_root.pg]; if (_root.pg == alltxt.length - 1) { this._alpha = 50; this.gotoAndStop(1); } _root.LA._alpha = 100; } }; _root.LA.onRollOver = function () { if (_root.pg > 0) { this.gotoAndPlay('bounce'); } }; _root.LA.onRollOut = function () { this.gotoAndStop(1); }; _root.LA.onDragOut = function () { this.gotoAndStop(1); }; _root.LA.onRelease = function () { if (_root.pg > 0) { --_root.pg; _root.info_txt.text = alltxt[_root.pg]; } if (_root.pg == 0) { this._alpha = 50; this.gotoAndStop(1); } _root.RA._alpha = 100; }; } _root.info_txt.text = alltxt[0]; }; ++i; } onEnterFrame = function () { if (nextloc != null && fade.fade._alpha >= 100) { for (var v2 in _root) { removeMovieClip(_root[v2]); } gotoAndStop(nextloc); } }; } frame 7 { function AttachFiles() { for (o in this) { if (o != 'SM' && o != 'back' && o != 'fade') { removeMovieClip(o); } } if (startfile > 0) { attachMovie('fselect_arrow', 'Fup', 2); Fup._x = 431; Fup._yscale *= -1; Fup._y = 67; Fup.onRelease = function () { if (!filemove) { --_root.startfile; --_root.endfile; filemove = 'do'; } }; } if (startfile < maxfiles - 3) { attachMovie('fselect_arrow', 'Fdo', 3); Fdo._x = 431; Fdo._y = 316; Fdo.onRelease = function () { if (!filemove) { ++_root.startfile; ++_root.endfile; filemove = 'up'; } }; } var v9 = 0; var v7 = startfile; while (v7 < endfile + 1) { var v3 = 'F' + v9; var v14 = 'DF' + v9; attachMovie('file_mc', v3, 10 + v7); this[v3]._x = 13; this[v3]._y = 106 * v9 + 55; this[v3].pos = this[v3]._y; this[v3].filenum.text = 'File ' + (v7 + 1); this[v3].pet.anim.stop(); this[v3].fnum = 'File' + (v7 + 1); this[v3].name = v3; if (fadetop && v9 == 0) { this[v3]._alpha = 0; } if (!SaveGames.data['File' + (v7 + 1)]) { this[v3].petname.text = 'EMPTY'; this[v3].shardnum.text = '0'; var v10 = new flash.geom.ColorTransform(); v10.rgb = '0xBD9D7D'; var v12 = new flash.geom.Transform(this[v3].pet.anim); v12.colorTransform = v10; var v11 = new flash.filters.GlowFilter(16777215, 0.6, 16, 16, 2, 2, false, false); this[v3].pet.filters = [v11]; } else { var v13 = SaveGames.data[this[v3].fnum].playtime; var v6 = Math.floor(v13 / 1000); var v5 = Math.floor(v6 / 60); var v8 = Math.floor(v5 / 60); v6 -= 60 * v5; v5 -= 60 * v8; if ((String(v6)).length == 1) { v6 = '0' + v6; } if ((String(v5)).length == 1) { v5 = '0' + v5; } if ((String(v8)).length == 1) { v8 = '0' + v8; } this[v3].playtime.text = v8 + ':' + v5 + ':' + v6; this[v3].petname.text = SaveGames.data[this[v3].fnum].petname; this[v3].shardnum.text = SaveGames.data[this[v3].fnum].shards; petbase = SaveGames.data[this[v3].fnum].petbase; petsec = SaveGames.data[this[v3].fnum].petsec; PetColour(this[v3].pet); this[v3].DF.onRollOver = function () { if (_root.DC.fnum == undefined) { this.gotoAndStop('red'); } }; this[v3].DF.onRollOut = function () { if (_root.DC.fnum == undefined) { this.gotoAndStop('brown'); } }; this[v3].DF.onRelease = function () { if (_root.DC.fnum == undefined) { _root.attachMovie('delete_confirm', 'DC', 50); _root.DC.fnum = this._parent.fnum; _root.DC.ss = this._parent.name; _root.DC._x = _root.STAGE_WIDTH / 2 - _root.DC._width / 2; _root.DC._y = 85; _root.DC.yes.onRollOver = function () { this.gotoAndStop('yes_on'); }; _root.DC.yes.onRollOut = function () { this.gotoAndStop('yes'); }; _root.DC.no.gotoAndStop('no'); _root.DC.no.onRollOver = function () { this.gotoAndStop('no_on'); }; _root.DC.no.onRollOut = function () { this.gotoAndStop('no'); }; _root.DC.no.onRelease = function () { _root[this._parent.ss].pet.anim.stop(); _root[this._parent.ss].DF.gotoAndStop('brown'); removeMovieClip(_root.DC); }; _root.DC.yes.onRelease = function () { delete _root.SaveGames.data[this._parent.fnum]; _root[this._parent.ss].pet.anim.stop(); removeMovieClip(_root.DC); _root.AttachFiles(); }; } }; } this[v3].HA.onRollOver = function () { if (_root.DC.fnum == this._parent.fnum || _root.DC.fnum == undefined) { this._parent.pet.anim.play(); } }; this[v3].HA.onRollOut = function () { if (_root.DC.fnum == undefined) { if (_xmouse < 0 || _xmouse > this._width + this._x || _ymouse < this._parent._y + this._y || _ymouse > this._height + this._parent._y) { this._parent.pet.anim.stop(); } } }; this[v3].HA.onRelease = function () { _root.menuselect = ''; _root.fileselect = this._parent.fnum; _root.StartDate = new Date(); _root.startTime = _root.StartDate.getTime(); if (this._parent.petname.text == 'EMPTY') { _root.petbase = _root.colours[random(_root.colours.length)]; _root.petsec = _root.colours[random(_root.colours.length)]; _root.gotoAndStop('Intro'); } else { for (var v4 in _root.SaveGames.data[this._parent.fnum]) { if (v4 == 'SHOP') { delete _root.SaveGames.data[this._parent.fnum][v4]; } if (v4 != 'Achievements') { _root[v4] = _root.SaveGames.data[this._parent.fnum][v4]; } else { var v3 = 0; while (v3 < _root.Achievements.length) { _root.Achievements[v3].unlocked = _root.SaveGames.data[this._parent.fnum][v4][v3]; ++v3; } } } _root.gotoAndStop('Home'); } }; ++v9; ++v7; } } stop(); for (var o in _root) { removeMovieClip(o); } menuselect = 'fileselect'; var SaveGames = SharedObject.getLocal('VirtualPetSaves', '/'); attachMovie('fade', 'fade', 99999); fade.gotoAndPlay('fadein'); music = 'MainTheme'; PlayMusic(music); var nextloc = null; attachMovie('sidemenu', 'SM', 9); SM._x = -167; SM._y = -11.6; attachMovie('lighttxt', 'back', 99); back._x = 410; back._y = 10; back.txt.text = 'Back'; back.onRelease = function () { if (_root.fade.fade._alpha == 0) { _root.fade.gotoAndPlay('fadeout'); } nextloc = 'TitleScreen'; }; back.onRollOver = function () { var v2 = new flash.filters.GlowFilter(10092543, 0.7, 20, 10, 2, 2, false, false); this.filters = [v2]; }; back.onRollOut = function () { this.filters = []; }; var startfile = 0; var endfile = startfile + 3; var maxfiles = 6; var bouncing = 0; var filemove = 0; var movey = 0; var fadetop = 0; AttachFiles(); var spacebetween = F1._y - F0._y; var movemax = 24; var movey = movemax; onEnterFrame = function () { if (nextloc != null && fade.fade._alpha >= 100) { for (var v6 in _root) { removeMovieClip(_root[v6]); } gotoAndStop(nextloc); } if (fadetop) { if (F0._alpha < 100) { F0._alpha += 15; } else { F0._alpha = 100; fadetop = 0; } } if (filemove != 0) { movey /= 1.2; if (filemove == 'up') { F0._alpha /= 1.2; } var v4 = 0; while (v4 < 4) { var v3 = 'F' + v4; if (filemove == 'up') { var v5 = this[v3].pos - spacebetween; if (this[v3]._y > v5) { this[v3]._y -= movey; } if (this[v3]._y <= v5) { this[v3]._y = v5; filemove = 0; movey = movemax; bouncing = 0; AttachFiles(); } } else { if (filemove == 'do') { var v5 = this[v3].pos + spacebetween; if (this[v3]._y < v5) { this[v3]._y += movey; } if (this[v3]._y >= v5) { this[v3]._y = v5; filemove = 0; movey = movemax; bouncing = 0; fadetop = 1; AttachFiles(); } } } ++v4; } } if (Fup.hitTest(_xmouse, _ymouse)) { if (!bouncing) { Fup.gotoAndPlay('bounce'); bouncing = 1; } } else { Fup.gotoAndStop(1); } if (Fdo.hitTest(_xmouse, _ymouse)) { if (!bouncing) { Fdo.gotoAndPlay('bounce'); bouncing = 1; } } else { Fdo.gotoAndStop(1); } if (!Fup.hitTest(_xmouse, _ymouse) && !Fdo.hitTest(_xmouse, _ymouse)) { bouncing = 0; } }; } frame 8 { stop(); for (o in _root) { removeMovieClip(o); } attachMovie('fade', 'fade', 99999); fade.gotoAndPlay('fadein'); if (starpieces != 5) { music = 'MainTheme'; PlayMusic(music); } attachMovie('introtxt', 'IT', 10); IT._x = _root.STAGE_WIDTH / 2 - IT._width / 2; IT._y = _root.STAGE_HEIGHT / 2 - IT._height / 2; IT.txt.text = ''; turn = null; var introtext = 'Hello, traveller! You seem like a clever, spry, go-getter of a person. And very good-looking too, might I add. Mrrow. We need someone strong and kind like yourself to go out and deal with the monster problems we\'ve been having lately!\\gYou see, our land is protected by a mighty Starstone, the light of which repels monsters. Unfortunately for us, a monster even more powerful than the light of the Starstone itself has shattered the stone into pieces! Woe is us, for we cannot be bothered to help ourselves.\\gWith our Starstone in fragments, its power is too weak to keep monsters away, which is why we need you to venture into the wilderness and collect the pieces! I\'ll even give you one of these creature things called a \'vulpin\' to help you!\\gThat, and I\'m getting desperate to get rid of them. Just go out there into the big, open world and fight some monsters! And do a thorough job of it! Just uh... think of all the fame and glory you\'ll get to enjoy! It would be even better if you found and defeated the powerful monster that caused this problem in the first place! Good luck!'; if (starpieces == 5) { introtext = 'You\'re still alive?!\\gI mean uh... You collected all the fragments of the Starstone! I knew you could do it all along! It\'s why I chose you to undergo this task after all.\\gLet\'s assemble these pieces so the Starstone\'s light can shine across the land once again and drive the monsters back to whatever land they came from!'; } var splittext = introtext.split('\\g'); var dtext = ''; var p = 0; var c = 0; var sr = 10; var srmax = 10; var srdir = 1; var SA = 0; var whitecount = 0; IT.skipbtn.onRelease = function () { this.gotoAndPlay('move'); if (dtext == splittext[p]) { if (p < splittext.length - 1) { ++p; dtext = ''; c = 0; } else { if (starpieces != 5) { gotoAndStop('Customise'); } else { SA = 1; } } } else { dtext = splittext[p]; c = splittext[p].length; } }; IT.skipbtn.onPress = function () { this.gotoAndStop('clicked'); }; IT.skipbtn.onRollOver = function () { var v2 = new flash.filters.GlowFilter(10092543, 0.5, 12, 12, 2, 2, false, false); this.filters = [v2]; this.gotoAndPlay('move'); }; IT.skipbtn.onDragOver = function () { var v2 = new flash.filters.GlowFilter(10092543, 0.5, 12, 12, 2, 2, false, false); this.filters = [v2]; this.gotoAndStop('clicked'); }; IT.skipbtn.onRollOut = function () { this.filters = []; this.gotoAndStop(1); }; IT.skipbtn.onDragOut = function () { this.filters = []; this.gotoAndStop(1); }; onEnterFrame = function () { IT.txt.text = dtext; if (c < splittext[p].length) { dtext += splittext[p].charAt(c); ++c; } if (SA) { if (IT._alpha != 0) { IT._alpha -= 5; if (IT._alpha < 0) { IT._alpha = 0; } } else { removeMovieClip(IT); AttachParticle('starassemble', [_root.STAGE_WIDTH / 2, _root.STAGE_HEIGHT / 2], this); var v3 = new flash.geom.ColorTransform(); v3.rgb = 16777215; var v5 = new flash.geom.Transform(fade); v5.colorTransform = v3; } if (IT == undefined) { if (whitecount < 70) { ++whitecount; } else { if (whitecount == 70 && fade.fade._alpha == 0) { fade.gotoAndPlay('fadeout'); } } if (fade.fade._alpha == 100 && whitecount >= 70) { if (whitecount < 110) { ++whitecount; } else { if (whitecount == 110 && fade.fade._alpha == 100) { fade.gotoAndPlay('fadein'); attachMovie('starstone_noped', 'SS', 900); SS.starmask.gotoAndStop(6); SS._y = _root.STAGE_HEIGHT / 2; SS._x = _root.STAGE_WIDTH / 2; SS._height *= 1.5; SS._width *= 1.5; AttachParticle('gainachv', [_root.STAGE_WIDTH / 2, _root.STAGE_HEIGHT / 2], this); var v4 = new Sound(); v4.attachSound('tinklesound'); v4.start(); } } } if (whitecount >= 110 && fade.fade._alpha == 0) { ++whitecount; if (whitecount == 150) { v3 = new flash.geom.ColorTransform(); v3.rgb = 0; v5 = new flash.geom.Transform(fade); v5.colorTransform = v3; } if (whitecount == 280) { fade.gotoAndPlay('slowfadeout'); } } if (fade.fade._alpha == 100 && whitecount >= 280) { ++whitecount; if (whitecount == 320) { currentarea = 'Home'; gotoAndStop('Home'); } } } } }; } frame 9 { stop(); for (var o in this) { this[o].removeMovieClip(); } var updatecolour = 1; music = 'MainTheme'; PlayMusic(music); this.attachMovie('namestrip', 'NS', 101); NS._x = 238; NS._y = 226; NS.txt.text = petname; this.attachMovie('sidemenu', 'SM', 100); SM._x = 0; SM._y = -2; SM.titletxt.text = 'Customise'; SM.descrtxt.text = 'Choose colours for your vulpin with the boxes below and give it a loving, meaningful name! You can come back and change these at any time.'; var cselect = 'base'; SM.attachMovie('palette_square', 'base', 98); SM.attachMovie('palette_square', 'sec', 99); SM.base.gotoAndStop('selected'); SM.base._x = 80; SM.base._y = 155; SM.sec._x = SM.base._x + 50; SM.sec._y = SM.base._y; SM.attachMovie('lilbrownbg', 'LBB', 97); SM.LBB._x = 62.6; SM.LBB._y = 147.3; SM.attachMovie('bigbrownbg', 'BBB', 96); SM.BBB._x = 26.6; SM.BBB._y = 186.3; var hmax = 4; var h = 0; var rows = 0; var ccols = ['base', 'sec']; var c = 0; while (c < colours.length) { var N = colours[c]; SM.attachMovie('palette_square', N, 100 + c); if (h >= hmax) { h = 0; ++rows; } SM[N]._x = 40 * h + 45; SM[N]._y = 30 * rows + 200; var pcol = new flash.geom.ColorTransform(); pcol.rgb = colours[c]; var ptrans = new flash.geom.Transform(SM[N].palette_fill); ptrans.colorTransform = pcol; ++h; ++c; } this.attachMovie('pet', 'PC', 102); PC._height *= 1.3; PC._width *= 1.3; PC._x = 330; PC._y = 25; PC._xscale *= -1; begin.btn_txt.text = 'Finish'; pfx_edit.btn_txt.text = 'PFX'; pfx_edit._alpha = 0; begin.onRollOver = function () { var v2 = new flash.filters.GlowFilter(10092543, 0.5, 12, 12, 2, 2, false, false); this.filters = [v2]; }; begin.onRollOut = function () { this.filters = []; }; begin.onRelease = function () { attachMovie('fade', 'fade', 99999); fade.gotoAndPlay('fadeout'); fading = 1; }; attachMovie('fade', 'fade', 99999); fade.gotoAndPlay('fadein'); onEnterFrame = function () { if (fading) { if (fade.fade._alpha == 100) { fading = 0; gotoAndStop('Home'); menuselect = ''; } } petname = NS.txt.text; if (updatecolour) { PetColour(PC); var v2 = 0; while (v2 < ccols.length) { var v5 = 'pet' + ccols[v2]; var v4 = new flash.geom.ColorTransform(); v4.rgb = this[v5]; var v6 = new flash.geom.Transform(SM[ccols[v2]].palette_fill); v6.colorTransform = v4; ++v2; } updatecolour = 0; } onMouseUp = function () { var v3 = 0; while (v3 < colours.length) { if (SM[colours[v3]].hitTest(_xmouse, _ymouse)) { var v4 = 'pet' + cselect; this[v4] = colours[v3]; updatecolour = 1; } ++v3; } var v2 = 0; while (v2 < ccols.length) { if (SM[ccols[v2]].hitTest(_xmouse, _ymouse)) { cselect = ccols[v2]; } else { SM[ccols[v2]].gotoAndStop(1); } ++v2; } SM[cselect].gotoAndStop('selected'); }; }; } frame 10 { function RefreshShop() { endat = startat + 12; var v1 = 0; while (v1 < 12) { if (allshop[v1 + startat] != undefined) { SHOP[v1] = allshop[v1 + startat]; } else { SHOP[v1] = null; } ++v1; } AttachItems(SM); } stop(); for (var o in this) { this[o].removeMovieClip(); } music = 'MainTheme'; PlayMusic(music); var startat = 0; var endat = startat + 12; var SHOP = [null, null, null, null, null, null, null, null, null, null, null, null]; var allshop = []; var newitems = ['Banapple', 'Stick', 'Leaf Strike Tome', 'Flame Strike Tome', 'Frost Strike Tome', 'Vortex Strike Tome', 'Heal Tome']; var i = 0; while (i < Achievements.length) { if (Achievements[i].name == 'Earthly Protector' && Achievements[i].unlocked) { newitems.push('Green Banapple', 'Nose Horn'); } if (Achievements[i].name == 'Sandy Toes' && Achievements[i].unlocked) { newitems.push('Starberry', 'Burning Stick', 'Silver Ring'); } if (Achievements[i].name == 'Sea Dog' && Achievements[i].unlocked) { newitems.push('Gold Ring', 'Metal Stick', 'Eye Patch', 'Flame'); } if (Achievements[i].name == 'Storm Chaser' && Achievements[i].unlocked) { newitems.push('Banapurple', 'Glasses', 'Monocle', 'Heart Earring'); } if (Achievements[i].name == 'Hero' && Achievements[i].unlocked) { newitems.push('Ducky Spoon'); if (isSponsor) { var havemap = false; var m = 0; while (m < ITEMS.length) { if (ITEMS[m].name == '??? Map') { havemap = true; break; } ++m; } if (!havemap) { var n = 0; while (n < AREAS.length) { if (AREAS[n] == '???') { havemap = true; break; } ++n; } } if (!havemap) { newitems.push('??? Map'); } } } ++i; } var k = 0; while (k < Items.length) { var l = 0; while (l < newitems.length) { if (Items[k].name == newitems[l]) { allshop.push(newitems[l]); break; } ++l; } ++k; } this.attachMovie('sidemenu', 'SM', 100); SM._x = -40; SM._y = -2; SM.titletxt.text = 'Shop'; SM.titletxt._x += 20; SM.descrtxt.text = 'Drag items from your inventory to the green \'Sell\' box to sell them, or drag shop items to your inventory to buy them. Some items cannot be sold at all.'; SM.descrtxt._x += 25; this.attachMovie('sharddisplay', 'SD', 101); SD._y = 117; SD._x = 20; attachMovie('fselect_arrow', 'a_left', 50); a_left._y = 50; a_left._x = 330; a_left._rotation = 90; a_left._alpha = 50; a_left.onRollOver = function () { if (_root.startat > 0) { this.gotoAndPlay('bounce'); } }; a_left.onRollOut = function () { this.gotoAndStop(1); }; a_left.onRelease = function () { if (_root.startat > 0) { _root.startat -= 12; _root.RefreshShop(); if (_root.endat < _root.allshop.length) { _root.a_right._alpha = 100; } if (_root.startat < 1) { this._alpha = 50; this.gotoAndStop(1); } } }; attachMovie('fselect_arrow', 'a_right', 51); a_right._y = 54.5 + a_right._height; a_right._x = 377; a_right._rotation = 270; if (allshop.length < 13) { a_right._alpha = 50; } a_right.onRollOver = function () { if (_root.endat < _root.allshop.length) { this.gotoAndPlay('bounce'); } }; a_right.onRollOut = function () { this.gotoAndStop(1); }; a_right.onRelease = function () { if (_root.endat < _root.allshop.length) { _root.startat += 12; _root.RefreshShop(); if (_root.endat >= _root.allshop.length) { this._alpha = 50; this.gotoAndStop(1); } if (_root.startat > 0) { _root.a_left._alpha = 100; } } }; RefreshShop(); begin.btn_txt.text = 'Finish'; begin.onRollOver = function () { var v2 = new flash.filters.GlowFilter(10092543, 0.5, 12, 12, 2, 2, false, false); this.filters = [v2]; }; begin.onRollOut = function () { this.filters = []; }; begin.onRelease = function () { attachMovie('fade', 'fade', 99999); fade.gotoAndPlay('fadeout'); fading = 1; }; attachMovie('fade', 'fade', 99999); fade.gotoAndPlay('fadein'); onEnterFrame = function () { if (fading) { if (fade.fade._alpha == 100) { fading = 0; gotoAndStop('Home'); menuselect = ''; } } SD.cost_txt.text = ''; ItemDrag(SM); SD.txt.text = shards; }; } frame 11 { function AttachAchieveBtn() { attachMovie('achv_icons', 'achv', 250); achv.gotoAndStop('blank'); achv._x = 8; achv._y = 42; achv.onRelease = function () { if (_root.menuselect != 'Achievements') { var v4 = 0; while (v4 < 10) { N = 'B' + v4; M = 'AP' + v4; O = 'APN' + v4; removeMovieClip(BM[N]); removeMovieClip(BM[M]); removeMovieClip(BM[O]); ++v4; } removeMovieClip(BM.Discard); removeMovieClip(BM.Storage); removeMovieClip(BM.ID); _root.menuselect = 'Achievements'; delete PC.onPress; delete PC.onRelease; _root.attachMovie('brownbg', 'BB', 101); _root.BM.attachMovie('achvdescription', 'AD', 200); _root.BM.AD._x = 20; _root.BM.AD._y = 40; var v5 = 0; var v8 = 5; var v7 = 1; var v3 = 0; while (v3 < _root.Achievements.length) { var N = 'A' + v3; _root.BB.attachMovie('achv_icons', N, 200 + v3); if (_root.Achievements[v3].unlocked) { _root.BB[N].gotoAndStop(_root.Achievements[v3].mdl); _root.BB[N].inf = [_root.Achievements[v3].name, _root.Achievements[v3].desc]; _root.BB[N].onRollOver = function () { _root.BM.AD.name_txt.text = this.inf[0]; _root.BM.AD.desc_txt.text = this.inf[1]; var v3 = new flash.filters.GlowFilter(16763904, 0.5, 15, 15, 3, 2, false, false); this.filters = [v3]; }; _root.BB[N].onRollOut = function () { this.filters = []; }; } else { _root.BB[N].gotoAndStop('qmark'); } _root.BB[N]._x = 65 * v5 + 95; _root.BB[N]._y = 60 * v7; ++v5; if (v5 >= v8) { v5 = 0; ++v7; } ++v3; } } else { _root.menuselect = ''; StrokePC(); removeMovieClip(_root.BB); removeMovieClip(_root.BM.AD); } }; } function RemoveAchieve() { removeMovieClip(_root.BB); removeMovieClip(_root.BB.AD); } function StrokePC() { if (currentarea == 'Home') { PC.onPress = function () { if (!stroke && menuselect != 'Explore' && menuselect != 'Achievements') { if (!sleeping) { stroke = 1; walk = 0; p = 0; jo = 0; PC.anim.gotoAndPlay('stroked'); } else { if (sleeping == 1) { sleeping = 2; walkan = 0; PC.anim.gotoAndPlay('sleepend'); stc = 0; } } } }; PC.onRelease = function () { endstroke = 1; }; } } stop(); for (var o in this) { this[o].removeMovieClip(); } music = 'MainTheme'; PlayMusic(music); var healthcolour = '0x9AD728'; var joycolour = '0xFFFF99'; var savetick = 1; var petmove = 50; var p = 0; var d = 1; var walk = 0; var walkan = null; var scrolling = 0; var stroke = 0; var sleeping = 0; var PChalf = 75; var heart_count = 0; var heart_max = 20; var st = 0; var stmax = 80; var sdelay = 0; var sleeptime = 2400; var stc = 0; var s = 1; var jo = 0; var jo2 = 0; var jomax = 120; var jomax2 = 1200; var endstroke = 0; var ST = 0; var blist = ['Items', 'Stats', 'Abilities', 'Customise', 'Shop', 'Explore']; var arealength = 460; STATS.stamina = STATS.staminamax; STATS.mp = STATS.mpmax; AttachStuff(); AttachMenuButtons(blist); ButtonActions(blist); areatransition = 0; attachMovie('fade', 'fade', 99999); fade.gotoAndPlay('fadein'); if (menuselect == 'Items') { AttachItems(BM); } else { if (menuselect == 'Abilities') { AttachBigButtons(ABILIITES); } } AttachAchieveBtn(); if (!endguide) { BM.attachMovie('guidearrow_anim', 'GA', 70); } if (tooltip[2].viewed == 0) { attachMovie('TT', 'TTstart', 8880); TTstart.txt.text = tooltip[2].msg; TTstart._x = Stage.width / 2 - TTstart._width - 40; TTstart._y = Stage.height / 2 - 120; tooltip[2].viewed = 1; } attachMovie('starstone', 'starstone', 99); starstone._x = _root.STAGE_WIDTH / 2 - starstone._width / 2; starstone._y = 30; starstone.starmask.gotoAndStop(starpieces + 1); StrokePC(); onMouseUp = function () { if (stroke) { endstroke = 1; } dragging = 0; }; SaveGame(); if (Achievements[0].unlocked == true && tooltip[3].viewed == 0) { attachMovie('TT', 'TTachv', 8881); TTachv.TTI.txt.text = tooltip[3].msg; TTachv._x = 70; TTachv._y = 50; tooltip[3].viewed = 1; TTachv.attachMovie('guidearrow_anim', 'GA', 2); TTachv.GA._rotation = 90; TTachv.GA._x = -15; } if (ABILITIES.length > 6 && tooltip[4].viewed == 0) { attachMovie('TT', 'TTab', 8882); TTab.TTI.txt.text = tooltip[4].msg; TTab._x = 120; TTab._y = 195; tooltip[4].viewed = 1; TTab.attachMovie('guidearrow_anim', 'GA', 2); TTab.GA._x = -25; } if (Achievements[4].unlocked && tooltip[5].viewed == 0) { attachMovie('TT', 'TTab', 8883); TTab.TTI.txt.text = tooltip[5].msg; TTab._x = 200; TTab._y = 195; tooltip[5].viewed = 1; TTab.attachMovie('guidearrow_anim', 'GA', 2); TTab.GA._x = -25; } onEnterFrame = function () { if (BM.GA != undefined) { if (menuselect == 'Explore') { BM.GA._x = 145; BM.GA._y = -50; BM.GA._rotation = -45; } else { BM.GA._x = 238; BM.GA._y = -15; BM.GA._rotation = 45; } } ItemDrag(BM); BarDrain(); if (menuselect != 'Explore') { removeMovieClip(WM); if (achv == undefined && menuselect != 'Storage' && menuselect != 'Edit Abilities') { AttachAchieveBtn(); } } if (menuselect != 'Items' && menuselect != 'Storage') { removeMovieClip(BM.Discard); removeMovieClip(BM.ID); } BM.menu_txt.text = menuselect; var v1 = 0; while (v1 < blist.length) { if (BM[blist[v1]].hitTest(_xmouse, _ymouse)) { BM.menu_txt.text = blist[v1]; } ++v1; } if (achv.hitTest(_xmouse, _ymouse)) { } if (fading) { if (fade.fade._alpha == 100) { fading = 0; gotoAndStop(menuselect); } } if (sleeping == 2) { ++sdelay; if (sdelay == 40) { sleeping = 0; sdelay = 0; } } if (STATS.joy > 0 && !sleeping && !stroke) { ++jo2; if (jo2 >= jomax2) { --STATS.joy; jo2 = 0; } } if (!stroke) { ++stc; } if (!sleeping && stc == sleeptime) { PC.anim.gotoAndPlay('startsleep'); sleeping = 1; stc = 0; } if (sleeping == 1 && Math.random() < 0.005 && stc > 400) { sleeping = 2; walkan = 0; PC.anim.gotoAndPlay('sleepend'); stc = 0; } if (sleeping == 1) { PC.anim.head.eyes.gotoAndStop('blink'); ++st; if (st >= stmax) { AttachParticle('zzz', [0, 70], PC); st = 0; } } if (!stroke && !sleeping) { ++p; if (p == petmove) { p = 0; var v3 = [1, -1]; var v4 = d; d *= RandAmongst(v3); if (v4 != d) { PC._xscale *= -1; } walk = RandNum(0, 1); } } if (stroke) { if (StrokeTotal < 121) { if (ST == 40) { ++StrokeTotal; ST = 0; } ++ST; } if (StrokeTotal == 120 && ST == 10) { GotAchv('Animal Lover'); } if (heart_count < heart_max) { ++heart_count; } else { AttachParticle('strokeheart', [_xmouse, _ymouse], null); heart_count = 0; AttachParticle('heartsparkle', [_xmouse, _ymouse - 20], null); } PC.anim.head.eyes.gotoAndStop('blink'); ++jo; if (jo >= jomax) { STATS.joy += 10; if (STATS.joy > STATS.joymax) { STATS.joy = STATS.joymax; } jo = 0; } } if (!PC.hitTest(_xmouse, _ymouse)) { endstroke = 1; } if (endstroke && stroke) { stroke = 0; PC.anim.gotoAndPlay('endstroke'); PC.anim.head.eyes.gotoAndStop(1); } endstroke = 0; if (!walk && walkan) { walkan = 0; if (!stroke) { PC.anim.gotoAndPlay('endwalk'); } } if (walk && !stroke && !sleeping) { if (!walkan) { walkan = 1; PC.anim.gotoAndPlay('walk'); } var v2 = s * d; if (d < 0 && PC._x - PChalf > v2 * -1 || d > 0 && arealength - (PC._x + PChalf) > v2) { if (!scrolling) { PC._x += v2; } } else { walk = 0; } } }; } frame 12 { gotoAndStop('Areas2'); } frame 13 { function DarkenAbilities() { var v1 = 0; while (v1 < ABILITIES.length) { delete BM['B' + v1].onRelease; delete BM['B' + v1].onRollOver; delete BM['B' + v1].onRollOut; BM['B' + v1].gotoAndStop('dark'); ++v1; } } function ItemPickup(searchobj, treasure) { if (treasure != null) { if (!isNaN(searchobj[0])) { ++IC; var v4 = 'IT' + IC; BG.attachMovie('items', v4, 300 + IC); BG[v4]._x = searchobj[0]; BG[v4]._y = searchobj[1]; BG[v4].gotoAndStop(treasure); } else { ++IC; var v4 = 'IT' + IC; BG.attachMovie('itembounce', v4, 300 + IC); BG[v4].IT.gotoAndStop(treasure); BG[v4]._y = 170; if (searchobj != FOE) { BG[v4]._x = searchobj._x + searchobj._width / 2 - 13; } else { BG[v4]._x = searchobj._x + BG._x * -1; } } BG[v4].ITEM = treasure; BG[v4].onRelease = function () { if (_root.turn != 'win' && turn != 'win2' && turn != 'win3' && turn != 'lose' && turn != 'lose2' && IT == undefined) { if (this.ITEM.indexOf('shard') >= 0) { var v4 = this.ITEM.split('_'); _root.shards += Number(v4[1]); if (_root.shards > 9999) { _root.shards = 9999; } _root.TM.shardicon.gotoAndPlay('wiggle'); _root.AttachParticle('shardsparkle', [this._x, this._y], _root.BG); removeMovieClip(this); } else { var v3 = 0; while (v3 < _root.ITEMS.length) { if (_root.ITEMS[v3].name == null && !battle) { _root.ITEMS[v3].name = this.ITEM; _root.AttachParticle('gentlesparkle', [this._x, this._y], _root.BG); removeMovieClip(this); if (_root.menuselect != 'Items') { _root.menuselect = 'Items'; } _root.AttachItems(BM); break; } ++v3; } } } }; } } stop(); for (var o in this) { this[o].removeMovieClip(); } if (endguide == 0) { endguide = 1; } var healthcolour = '0x9AD728'; var joycolour = '0xFFFF99'; var petmove = 50; var p = 0; var d = 1; var walk = 0; var walkan = null; var scrolling = 0; var stroke = 0; var sleeping = 0; var PChalf = 75; var s = 2; var blist = ['Items', 'Stats', 'Abilities', 'Explore']; var arealength = 1164; var startbattle = 0; var bmintime = 160; var bmin = 0; var battlepos = 0; var foe = null; var areafoes = null; var movetouse = null; var turn = null; var target = null; var bt = 0; var btmax = 60; var attachability = 0; var attachdamage = 0; var mpup = 0; var wcount = 0; var breath = [0, false]; var getstar = 0; var mcount = 0; var noidle = 0; var battleson = 1; var itemsearch = 0; var IC = 0; var searchdelay = 80; var searchd = 0; var boss = 0; var useparticle = null; var critical = 0; var asound = null; var foestats = null; AttachStuff(); AttachMenuButtons(blist); ButtonActions(blist); if (endguide == 1) { BG.attachMovie('guidearrow_anim', 'GA', 7777); BG.GA._x = 315; BG.GA._y = 90; } var i = 0; while (i < Areas.length) { if (Areas[i].name == currentarea) { music = Areas[i].music; } ++i; } PlayMusic(music); if (menuselect == 'Items') { AttachItems(BM); } else { if (menuselect == 'Abilities') { AttachBigButtons(ABILIITES); } } attachMovie('fade', 'fade', 99999); fade.gotoAndPlay('fadein'); onEnterFrame = function () { ItemDrag(BM); BarDrain(); if (menuselect != 'Explore') { removeMovieClip(WM); } if (menuselect != 'Items' && menuselect != 'Storage') { removeMovieClip(BM.Discard); removeMovieClip(BM.ID); } BM.menu_txt.text = menuselect; var v16 = 0; while (v16 < blist.length) { if (BM[blist[v16]].hitTest(_xmouse, _ymouse)) { BM.menu_txt.text = blist[v16]; } ++v16; } if (bmintime > bmin && !battle && walk && areafoes != null) { ++bmin; } if (boss && !areatransition) { startbattle = 1; battle = 1; battlepos = 30; ButtonActions(blist); } if (weather != null) { ++wcount; if (wcount == 25) { AttachParticle(weather, [30 + random(400), 0]); wcount = 0; } } if (!walk && walkan && turn != 'win2' && itemsearch[0] != 2) { walkan = 0; PC.anim.gotoAndPlay('endwalk'); } if (walk) { if (!walkan) { walkan = 1; PC.anim.gotoAndPlay('walk'); } var v25 = s * d; if (Math.random() < 0.0075 && bmintime == bmin && !battle && battleson && !itemsearch[0] && !areatransition && areafoes != null) { bmin = 0; startbattle = 1; battle = 1; scrolling = 0; d *= -1; PC._xscale *= -1; battlepos = 30; var v40 = null; if (Math.random() < 0.13) { var v18 = new Array(); var v6 = 0; while (v6 < 40) { if (v6 < 10) { if (ITEMS[v6].name == 'Darkwood Map' || ITEMS[v6].name == 'Desert Edge Map' || ITEMS[v6].name == 'Azure Beach Map' || ITEMS[v6].name == 'Brightcloud Map') { v18.push(ITEMS[v6].name); } } else { if (v6 > 9) { if (STORAGE[v6 - 10].name == 'Darkwood Map' || STORAGE[v6 - 10].name == 'Desert Edge Map' || STORAGE[v6 - 10].name == 'Azure Beach Map' || STORAGE[v6 - 10].name == 'Brightcloud Map') { v18.push(STORAGE[v6 - 10].name); } } } ++v6; } v6 = 0; while (v6 < AREAS.length) { if (AREAS[v6] == 'Darkwood' || AREAS[v6] == 'Desert Edge' || AREAS[v6] == 'Azure Beach' || AREAS[v6] == 'Brightcloud') { v18.push(AREAS[v6] + ' Map'); } ++v6; } v6 = 0; while (v6 < IC) { var v10 = 'IT' + (v6 + 1); if (BG[v10].ITEM == 'Darkwood Map' || BG[v10].ITEM == 'Desert Edge Map' || BG[v10].ITEM == 'Azure Beach Map' || BG[v10].ITEM == 'Brightcloud Map') { v18.push(BG[v10].ITEM); } ++v6; } v18 = v18.toString(); if (currentarea.indexOf('Woods') > -1) { if (v18.indexOf('Darkwood Map') < 0) { v40 = 'foe_brushbeast_black'; } } else { if (currentarea.indexOf('Desert Ruins') > -1) { if (v18.indexOf('Desert Edge Map') < 0) { v40 = 'foe_brushbeast_pink'; } } else { if (currentarea.indexOf('Sea Cave') > -1) { if (v18.indexOf('Azure Beach Map') < 0) { v40 = 'foe_brushbeast_blue'; } } else { if (currentarea.indexOf('Cloudy Peaks') > -1) { if (v18.indexOf('Brightcloud Map') < 0) { v40 = 'foe_brushbeast_white'; } } } } } } if (v40 != null) { areafoes.push(v40); } foe = areafoes[random(areafoes.length)]; if (areafoes[areafoes.length - 1].indexOf('foe_brushbeast') > -1) { areafoes.pop(); } ButtonActions(blist); removeMovieClip(BM.EA); var v3 = 0; while (v3 < blist.length) { delete eval(BM[blist[v3]].onRollOver()); delete eval(BM[blist[v3]].onRollOut()); delete eval(BM[blist[v3]].onRelease()); BM[blist[v3]].gotoAndStop(blist[v3] + '_off'); ++v3; } if (menuselect == 'Abilities') { DarkenAbilities(); } } if (!battle) { battlepos = 0; } else { v25 = s * 2 * d; } if (d < 0 && PC._x - PChalf - battlepos > v25 * -1 || d > 0 && _root.STAGE_WIDTH - (PC._x + PChalf) - battlepos > v25 || areatransition != 0) { if (!scrolling) { PC._x += v25; } } else { walk = 0; } } if (!walk && startbattle) { if (!boss) { PC._xscale *= -1; d *= -1; this.attachMovie(foe, 'FOE', 50); FOE.onRollOver = function () { _root.attachMovie('foedisplay', 'FD', 999); }; FOE.onRollOut = function () { removeMovieClip(_root.FD); }; FOE._y = FOE._height * -1 - 10; if (d < 0) { FOE._x = battlepos + FOE._width / 2; } else { FOE._xscale *= -1; FOE._x = _root.STAGE_WIDTH - (battlepos + FOE._width / 2); } } menuselect = 'Abilities'; AttachMenuButtons(blist); AttachBigButtons(ABILITIES); DarkenAbilities(); attachability = 0; if (!boss) { foeattach = 1; } if (boss) { if (foe != 'foe_finalboss') { music = 'BossBattleMusic'; } else { music = 'FinalBoss'; } PlayMusic(music); } boss = 0; startbattle = 0; var v5 = 0; while (v5 < Monsters.length) { if (Monsters[v5].mdl == foe) { foestats = {'name': Monsters[v5].name, 'stamina': Monsters[v5].stamina, 'staminamax': Monsters[v5].stamina, 'atk': Monsters[v5].atk, 'def': Monsters[v5].def, 'spd': Monsters[v5].spd, 'element': Monsters[v5].ele, 'mc': 'FOE', 'ap': Monsters[v5].ap, 'abilities': Monsters[v5].abilities, 'pfx': Monsters[v5].pfx, 'sfx': Monsters[v5].sfx, 'drop': Monsters[v5].drop, 'achv': Monsters[v5].achv, 'sfx': []}; break; } ++v5; } if (STATS.spd > foestats.spd) { turn = ['STATS', 'Choose', 'PC']; } else { if (STATS.spd < foestats.spd) { turn = ['foestats', 'Choose', 'FOE']; } else { if (STATS.spd == foestats.spd) { var v44 = [['STATS', 'Choose', 'PC'], ['foestats', 'Choose', 'FOE']]; turn = v44[random(v44.length)]; } } } if (turn[0] == 'foestats') { DarkenAbilities(); } if (turn[0] == 'STATS') { bt = btmax; } } if (foeattach && !boss) { if (mcount == 0) { AttachParticle('monsterpoof2', [FOE._x, 195 - FOE._height / 2], this); } ++mcount; if (mcount == 10) { FOE._alpha = 0; FOE._y = 195 - FOE._height; } if (FOE._alpha < 100) { FOE._alpha += 10; } else { if (mcount > 10) { mcount = 0; foeattach = 0; } } } if (turn == 'win') { removeMovieClip(DD); if (PC._x < 227 || PC._x > 233) { walk = 1; s = 3; } else { if (STATS.joy >= 20) { PC.anim.gotoAndPlay('victory'); } else { PC.anim.gotoAndPlay('victory2'); } walk = 0; walkanim = 0; s = 2; turn = 'win2'; } } if (turn == 'win3') { if (!getstar && GA == undefined) { if (SP != undefined) { removeMovieClip('SP'); } if (foe == 'foe_finalboss' && SP == undefined) { if (fade.fade._alpha == 0) { fade.gotoAndPlay('slowfadeout'); } if (fade.fade._alpha >= 100) { gotoAndStop('Intro'); } } else { if (menuselect != 'Items') { AttachBigButtons(ABILITIES); } turn = null; AttachMenuButtons(blist); ButtonActions(blist); BM.Stats.gotoAndStop('Stats'); BM.Explore.gotoAndStop('Explore'); BM.Items.gotoAndStop('Items'); } } else { if (SP == undefined && foe != 'foe_mrducky') { attachMovie('starpiece', 'SP', 333); SP._y = PC._y + 60; SP._x = PC._x; PC.anim.gotoAndPlay('getfragment'); } } } if (turn == 'lose') { removeMovieClip(DD); STATS.joy = 0; } if (turn == 'lose2') { if (fade.fade._alpha == 0) { fade.gotoAndPlay('slowfadeout'); } if (fade.fade._alpha >= 100) { ++bt; if (bt == 20) { turn = null; menuselect = ''; currentarea = 'Home'; gotoAndStop('Home'); } } } if (!foeattach && !beginbattle && battle) { if (d == 1) { FD._x = _xmouse; } else { if (d == -1) { FD._x = _xmouse + FD._width - 30; } } FD._y = _ymouse - 20; FD.nametxt.text = foestats.name; FD.statnums.current_txt.text = foestats.stamina; FD.statnums.max_txt.text = foestats.staminamax; if (foestats.element != null) { FD.elmnt.gotoAndStop(foestats.element); } noidle = 0; if (attachdamage) { if (!breath[1]) { AttachParticle(useparticle, [0, this[target[0]]._height - 100], this[target[0]]); } else { if (breath[1] && breath[0] == 0) { if (target[0] == 'FOE') { var v43 = 'PC'; } else { var v43 = 'FOE'; } AttachParticle(useparticle, [100, this[v43].anim.jaw._y + this[v43].anim.jaw._height / 1.5], this[v43]); } } if (breath[1]) { if (breath[0] == 0 && !mute) { var v21 = new Sound(); v21.attachSound(asound); v21.start(); asound = null; } ++breath[0]; } if (!breath[1] || breath[0] == 25 && breath[1]) { if (breath[0] == 25) { noidle = 1; this[target[0]].anim.gotoAndPlay('hit'); } breath = [0, false]; if (healed != null || damage != null) { noidle = 1; attachMovie('damageanim', 'DD', 250); } if (healed == null && damage != null) { if (target[0] == 'PC') { STATS.joy -= 2; if (STATS.joy == 0) { STATS.joy = 0; } } if (critical) { DD.anim.gotoAndStop('critical'); critical = 0; } DD.anim.txt.text = damage; if (!breath[1] && !mute) { v21 = new Sound(); v21.attachSound(asound); v21.start(); asound = null; } this[target[1]].stamina -= damage; if (this[target[1]].stamina < 0) { this[target[1]].stamina = 0; } } else { if (healed != null && damage == null) { DD.anim.gotoAndStop('heal'); this[target[0]].gotoAndPlay('glow'); if (!mute) { v21 = new Sound(); v21.attachSound(asound); v21.start(); asound = null; } DD.anim.txt.text = healed; this[target[1]].stamina += healed; if (this[target[1]].stamina > this[target[1]].staminamax) { this[target[1]].stamina = this[target[1]].staminamax; } } } if (healed != null || damage != null) { DD._x = this[target[0]]._x; DD._y = 60; } damage = null; healed = null; attachdamage = 0; bt = 0; } } if (turn[1] == 'Choose' && bt < btmax) { ++bt; } if (turn[1] == 'Choose' && bt >= btmax) { if (facechange) { facechange = 0; } if (foestats.stamina == 0) { var v24 = new Array(); var v15 = 0; while (v15 < foestats.drop.length) { if (foestats.drop[v15].chance >= Math.random()) { v24.push(foestats.drop[v15].name); } else { v24.push(null); } ++v15; } var v48 = v24[random(v24.length)]; ItemPickup(FOE, v48); AttachParticle('monsterpoof', [FOE._x, FOE._y + FOE._height / 2]); if (!mute) { var v46 = new Sound(); v46.attachSound('poof'); v46.start(); } attachMovie('apwon', 'APW', 250); APW._x = FOE._x; APW._y = 80; APW.aptxt.txt.text = 'AP +' + foestats.ap; if (tooltip[1].viewed == 0) { attachMovie('TT', 'TTap', 8880); TTap.TTI.txt.text = tooltip[1].msg; TTap._x = 80; TTap._y = 195; tooltip[1].viewed = 1; TTap.attachMovie('guidearrow_anim', 'GA', 2); TTap.GA._x = -25; } if (STATS.ap < 999) { STATS.ap += foestats.ap; } else { STATS.ap = 999; } if (currentarea.indexOf('Darklight Castle') > -1) { byeboss.push(foe); v6 = 0; while (v6 < Areas.length) { if (Areas[v6].name == currentarea) { music = Areas[v6].music; PlayMusic(music); } ++v6; } } if (foestats.achv != undefined) { var v9 = 0; while (v9 < Achievements.length) { if (foestats.achv == Achievements[v9].name) { Achievements[v9].unlocked = true; GotAchv(Achievements[v9].name); if (foestats.achv != 'Ducky Slayer') { ++starpieces; getstar = 1; } v6 = 0; while (v6 < Areas.length) { if (Areas[v6].name == currentarea) { music = Areas[v6].music; if (foe != 'FinalBoss') { PlayMusic(music); } } ++v6; } } ++v9; } } removeMovieClip(FOE); removeMovieClip(FD); battle = 0; beginbattle = 0; foeattach = 0; foestats = null; turn = 'win'; bt = 0; } if (STATS.stamina == 0) { PC.anim.gotoAndPlay('defeat'); removeMovieClip('FD'); battle = 0; beginbattle = 0; foeattach = 0; foestats = null; turn = 'lose'; bt = 0; } removeMovieClip(DD); if (turn[0] == 'STATS') { if (STATS.mp < STATS.mpmax && !mpup) { ++STATS.mp; mpup = 1; } v6 = 0; while (v6 < STATS.sfx.length) { if (STATS.sfx[v6].name == 'defend') { delete STATS.sfx[v6]; } ++v6; } if (menuselect == 'Items') { attachability = 0; } if (menuselect == 'Abilities' && !attachability) { AttachBigButtons(ABILITIES); AttachMenuButtons(blist); ButtonActions(blist); BM.Items.gotoAndStop('Items'); attachability = 1; } } else { if (turn[0] == 'foestats') { BM.Items.gotoAndStop('Items_off'); movetouse = foestats.abilities[random(foestats.abilities.length)]; turn[1] = 'Go'; } } } if (turn[1] == 'Go') { mpup = 0; ++bt; if (turn[0] == 'STATS') { bt = btmax; delete BM.Items.onRelease; delete BM.Items.onRollOver; delete BM.Items.onRollOut; delete BM.Abilities.onRelease; delete BM.Abilities.onRollOver; delete BM.Abilities.onRollOut; BM.Items.gotoAndStop('Items_off'); if (menuselect == 'Items') { menuselect = 'Abilities'; AttachBigButtons(ABILITIES); } } DarkenAbilities(); } if (turn[1] == 'Go' && bt >= btmax && movetouse != 'Item') { bt = 0; v3 = 0; while (v3 < Abilities.length) { if (movetouse == Abilities[v3].name) { if (turn[0] == 'STATS') { STATS.mp -= Abilities[v3].mp; } if (Abilities[v3].target == 'FOE') { if (turn[0] == 'STATS') { target = ['FOE', 'foestats']; } else { target = ['PC', 'STATS']; } } else { target = [turn[2], turn[0]]; } if (Abilities[v3].cat == 'off') { var v11 = 0; var v13 = 0; var v12 = 0; var v20 = 1; if (Abilities[v3].anim == 'breath') { breath = [0, true]; } if (turn[0] == 'STATS') { v20 = (Math.ceil(STATS.joy / 10) + 5) * 0.1; var v8 = 0; while (v8 < ITEMS.length) { if (ITEMS[v8].equip) { v6 = 0; while (v6 < Items.length) { if (ITEMS[v8].name == Items[v6].name) { var v4 = 0; while (v4 < Items[v6].effect.length) { if (Items[v6].effect[v4][0] == 'atk') { v11 += Items[v6].effect[v4][1]; } if (Items[v6].effect[v4][0] == 'spd') { v13 += Items[v6].effect[v4][1]; } ++v4; } } ++v6; } } ++v8; } } if (turn[0] == 'foestats') { v8 = 0; while (v8 < ITEMS.length) { if (ITEMS[v8].equip) { v6 = 0; while (v6 < Items.length) { if (ITEMS[v8].name == Items[v6].name) { v4 = 0; while (v4 < Items[v6].effect.length) { if (Items[v6].effect[v4][0] == 'def') { v12 += Items[v6].effect[v4][1]; } ++v4; } } ++v6; } } ++v8; } } var v14 = 1; if (this[target[1]].element != null && this[target[1]].element != undefined) { var v7 = 0; while (v7 < Elements.length) { if (Elements[v7].name == Abilities[v3].element) { if (Elements[v7].weak == this[target[1]].element) { v14 = 0.5; } if (Elements[v7].strong == this[target[1]].element) { v14 = 1.5; } } ++v7; } } healed = null; damage = Math.round((this[turn[0]].atk + v11) * v20 * Abilities[v3].power * (this[turn[0]].atk * 0.1 + 1) * (RandNum(90, 110) * 0.01) - this[target[1]].def * ((this[target[1]].def + v12) * 0.07000000000000001 + 1)); var v23 = Math.random() * 100; if (turn[0] == 'STATS') { var v22 = 10; } else { var v22 = 0; } if (v23 <= this[turn[0]].spd + v13 + v22) { damage *= 2; critical = 1; } damage = Math.floor(damage * v14); v6 = 0; while (v6 < this[target[1]].sfx.length) { if (this[target[1]].sfx[v6].name == 'defend') { damage = Math.round(damage / 2); } ++v6; } if (damage <= 0) { damage = 1; } useparticle = 'starsmack'; if (Abilities[v3].pfx != null) { useparticle = Abilities[v3].pfx; } var v17 = Abilities[v3].anim; if (turn[0] == 'foestats' && foe == 'foe_finalboss' && Abilities[v3].anim == 'spell') { if (Abilities[v3].element == 'Light') { v17 = 'spell'; } else { if (Abilities[v3].element == 'Dark') { v17 = 'spell2'; } else { var v19 = ['spell', 'spell2']; v17 = v19[random(v19.length)]; } } } this[turn[2]].anim.gotoAndPlay(v17); asound = Abilities[v3].sfx; if (turn[0] == 'foestats') { if (foestats.sfx != undefined && movetouse == 'Attack') { asound = foestats.sfx; } if (foestats.pfx != null && Abilities[v3].pfx == null) { useparticle = foestats.pfx; } } if (turn[0] == 'STATS' && movetouse == 'Attack') { v6 = 0; while (v6 < ITEMS.length) { if (ITEMS[v6].equip && ITEMS[v6].limb == 'oarm') { v4 = 0; while (v4 < Items.length) { if (ITEMS[v6].name == Items[v4].name && Items[v4].sound != null) { asound = Items[v4].sound; } ++v4; } } ++v6; } } turn = [target[1], 'Choose', target[0]]; } else { if (Abilities[v3].cat == 'def') { damage = null; healed = null; this[turn[0]].sfx.push({'name': 'defend', 'dur': 1}); if (turn[0] == 'STATS') { turn = ['foestats', 'Choose', 'FOE']; } else { turn = ['STATS', 'Choose', 'PC']; } } else { if (Abilities[v3].cat == 'heal') { asound = Abilities[v3].sfx; damage = null; healed = Math.round(this[turn[0]].def * Abilities[v3].power * 0.3 * (RandNum(90, 110) * 0.01)); this[turn[2]].anim.gotoAndPlay('spell'); useparticle = 'starsmack'; if (Abilities[v3].pfx != null) { useparticle = Abilities[v3].pfx; } if (turn[0] == 'STATS') { turn = ['foestats', 'Choose', 'FOE']; } else { turn = ['STATS', 'Choose', 'PC']; } } else { if (Abilities[v3].cat == 'joy') { asound = Abilities[v3].sfx; damage = null; healed = null; PC.anim.gotoAndPlay(Abilities[v3].anim); useparticle = Abilities[v3].pfx; if (!mute) { v21 = new Sound(); v21.attachSound(asound); v21.start(); asound = null; } STATS.joy += 10; if (STATS.joy > STATS.joymax) { STATS.joy = STATS.joymax; } turn = ['foestats', 'Choose', 'FOE']; } } } } if (turn[0] == 'STATS') { attachability = 0; } } ++v3; } } if (movetouse == 'Item') { turn = ['foestats', 'Choose', 'FOE']; } } if (areatransition != 0 && menuselect != 'Edit Abilities') { if (!fading && areatransition != 'enter') { if (PC._x < PChalf * -1 + 16 || PC._x > _root.STAGE_WIDTH - 16 + PChalf) { fading = 1; attachMovie('fade', 'fade', 99999); fade.gotoAndPlay('fadeout'); } } if (areatransition == 'SP1') { if (d != -1) { d = -1; PC._xscale *= -1; } walk = 1; if (PC._x < PChalf * -1) { if (BG.SP1.loc == 'Home') { currentarea = 'Home'; fading = 0; gotoAndStop('Home'); } else { currentarea = BG.SP1.loc; fading = 0; gotoAndStop('Areas'); } } } else { if (areatransition == 'SP2') { if (d != 1) { d = 1; PC._xscale *= -1; } walk = 1; if (PC._x > _root.STAGE_WIDTH + PChalf) { currentarea = BG.SP2.loc; fading = 0; gotoAndStop('Areas'); } } else { if (areatransition == 'enter') { if (PC._x < 100 || PC._x > _root.STAGE_WIDTH - 100) { walk = 1; } else { walk = 0; areatransition = 0; } } } } } if (!battle && IT == undefined && !dragging && !boss && menuselect != 'Edit Abilities') { if (!itemsearch[0] && turn != 'win' && turn != 'win2' && turn != 'win3' && turn != 'lose' && turn != 'lose2' && !areatransition) { scrolling = 0; var v41 = _xmouse - PC._x; if (_ymouse > 55 && _ymouse < 200) { var v47 = d; if (v41 > 50) { d = 1; } else { if (v41 < -50) { d = -1; } } if (_xmouse > 390 || _xmouse < 70) { walk = 1; } else { if (_xmouse < 390 && _xmouse > 70 || v41 > -70 && v41 < 70) { walk = 0; } } if (v47 != d) { PC._xscale *= -1; } } else { walk = 0; } } if (itemsearch[0] == 1 && turn != 'win' && IT == undefined && turn != 'win2' && turn != 'win3' && turn != 'lose' && turn != 'lose2' && areatransition == 0) { s = 3; var v42 = itemsearch[1]._x + (itemsearch[1]._width + 30) + BG._x; var v47 = d; if (v42 > PC._x) { d = 1; if (d != v47) { PC._xscale *= -1; } walk = 1; } else { if (v42 < PC._x) { d = -1; if (d != v47) { PC._xscale *= -1; } walk = 1; } } if (PC._x < v42 + 5 && PC._x > v42 - 5) { walk = 0; itemsearch[0] = 2; lastx = 0; if (d == 1) { PC._xscale *= -1; } d = -1; } } if (itemsearch[0] == 2) { s = 2; if (searchd < searchdelay) { ++searchd; } if (searchd == 1) { PC.anim.gotoAndPlay('search'); if (!mute) { var v45 = new Sound(); v45.attachSound('shuffle'); v45.start(); } } else { if (searchd == 40) { itemsearch[1].filters = []; if (itemsearch[1].treasure != null) { ItemPickup(itemsearch[1], itemsearch[1].treasure); itemsearch[1].treasure = null; } } else { if (searchd == searchdelay) { searchd = 0; itemsearch[0] = 0; } } } } if (PC._x >= _root.STAGE_WIDTH * 0.55 && d > 0) { BG._x -= v25; scrolling = 1; if (BG._x < arealength * -1 + _root.STAGE_WIDTH) { BG._x = arealength * -1 + _root.STAGE_WIDTH; scrolling = 0; } } else { if (PC._x <= _root.STAGE_WIDTH * 0.45 && BG._x > arealength * -1 && d < 0) { BG._x -= v25; scrolling = 1; if (BG._x > 0) { BG._x = 0; scrolling = 0; } } } } }; } frame 14 { function AttachParticle2(pfx, coords, target) { var v2 = 'PFX' + pfx_count; var v3 = this; if (!target) { attachMovie('pfx', v2, 1000 + pfx_count); } else { target.attachMovie('pfx', v2, 100 + pfx_count); v3 = target; } v3[v2].fx = pfx; v3[v2]._x = coords[0]; v3[v2]._y = coords[1]; ++pfx_count; if (pfx_count > 10) { pfx_count = 0; } } stop(); for (var o in this) { this[o].removeMovieClip(); } var pfx_params = [{'name': 'mc', 'txt': 'Particle', 'vlu': 'pfx_sparklepink'}, {'name': 'size', 'txt': 'Size', 'vlu': 1}, {'name': 'spdx', 'txt': 'Xspeed', 'vlu': 0}, {'name': 'spdy', 'txt': 'Yspeed', 'vlu': 0}, {'name': 'coordx', 'txt': 'X', 'vlu': '0,0'}, {'name': 'coordy', 'txt': 'Y', 'vlu': '0,0'}, {'name': 'spn', 'txt': 'Spin', 'vlu': 0}, {'name': 'rot', 'txt': 'Rotate', 'vlu': '0,360'}, {'name': 'acc', 'txt': 'Acceleration', 'vlu': 0}, {'name': 'num', 'txt': 'Number', 'vlu': 0}, {'name': 'del', 'txt': 'Delay', 'vlu': 0}, {'name': 'fade', 'txt': 'Fade', 'vlu': '0,0'}]; var p = 0; while (p < pfx_params.length) { var N = 'P_' + pfx_params[p].name; this.attachMovie('input_strip', N, 100 + p); this[N]._x = -10; this[N]._y = this[N]._height * p + 8; this[N].txt.text = pfx_params[p].txt; this[N].input_txt.text = pfx_params[p].vlu; ++p; } exp.onPress = function () { _root.attachMovie('pfx_export', 'PEX', 900); _root.PEX.txt.text = aparticle2; _root.PEX._x = 40; _root.PEX._y = 100; _root.PEX.closebtn.onPress = function () { removeMovieClip(_root.PEX); }; }; var aparticle = null; onMouseDown = function () { if (_xmouse > 200) { var v8 = P_mc.input_txt.text.split(','); var v1 = P_coordx.input_txt.text.split(','); var v15 = Number(v1[0]); var v12 = Number(v1[1]); v1 = [v15, v12]; var v2 = P_coordy.input_txt.text.split(','); var v13 = Number(v2[0]); var v11 = Number(v2[1]); v2 = [v13, v11]; var v3 = P_rot.input_txt.text.split(','); var v9 = Number(v3[0]); var v17 = Number(v3[1]); v3 = [v9, v17]; var v5 = Number(P_spdx.input_txt.text); var v4 = Number(P_spdy.input_txt.text); var v6 = Number(P_acc.input_txt.text); var v10 = P_fade.input_txt.text.split(','); var v16 = Number(v10[0]); var v14 = Number(v10[1]); v10 = [v16, v14]; var v7 = Number(P_spn.input_txt.text); aparticle = {'mc': v8, 'size': P_size.input_txt.text, 'spd': [v5, v4], 'coord': [v1, v2], 'spn': v7, 'rot': v3, 'acc': v6, 'num': P_num.input_txt.text, 'del': P_del.input_txt.text, 'fade': v10}; aparticle2 = '{mc:["' + v8 + '"],size:' + P_size.input_txt.text + ',spd:[' + v5 + ',' + v4 + '],coord:[[' + v1 + '],[' + v2 + ']],spn:' + v7 + ',rot:[' + v3 + '],acc:' + v6 + ',num:' + P_num.input_txt.text + ',del:' + P_del.input_txt.text + ',fade:[' + v10 + ']}'; AttachParticle2(aparticle, [_xmouse - v1[1] / 2, _ymouse - v2[1] / 2]); } }; }




http://swfchan.com/27/130215/info.shtml
Created: 10/8 -2019 04:21:45 Last modified: 10/8 -2019 04:21:45 Server time: 22/12 -2024 17:13:39