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

<div style="position:absolute;top:-99px;left:-99px;"><img src="https://tools.swfchan.com/stathit.asp?noj=FRM53774530-8DC&rnd=53774530" width="1" height="1"></div>

armorgames the-adventures-of-zo-13009.swf

This is the info page for
Flash #264433

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


ActionScript [AS1/AS2]
Combined Code
movieClip 13 HandPointer { frame 1 { stop(); } frame 4 { gotoAndStop(1); } } movieClip 17 muteButton { frame 1 { stop(); } } movieClip 19 mySolid { } frame 1 { function visitAA() { getURL('http://www.arcticarcade.net/', '_blank'); } function sitelock(url_to_lock) { var v8 = _url; var v5 = false; var v6 = v8.split('/'); var v4 = 0; while (v4 < v6.length) { var v3 = v6[v4].split('.'); var v2 = 0; while (v2 < v3.length) { if (v3[v2] == url_to_lock) { v5 = true; } ++v2; } ++v4; } if (!v5) { _root._alpha = 0; } } function start_loop(my_loop) { if (my_loop == curr_sound) { return undefined; } curr_sound = my_loop; if (sound_on) { stopAllSounds(); my_loop.start(0, 999); my_loop.setVolume(100); loop_called = true; curr_sound = my_loop; } } function fade_sound(fade) { fade_var = fade; } function toggle_sound() { if (sound_on) { stopAllSounds(); sound_on = false; sound_clip.gotoAndStop(2); myUI.sound_clip.gotoAndStop(2); } else { sound_on = true; sound_clip.gotoAndStop(1); myUI.sound_clip.gotoAndStop(1); do_sound(click_sound); if (curr_sound != undefined) { do_sound(curr_sound); } } } function toggle_menu_sound() { if (sound_on) { stopAllSounds(); sound_on = false; sound_clip.gotoAndStop(2); } else { sound_on = true; start_loop(menu_loop); sound_clip.gotoAndStop(1); } } function do_sound(my_sound) { if (sound_on) { my_sound.start(); } } function make_sound(my_name) { var v2 = core.createEmptyMovieClip(my_name, core.getNextHighestDepth()); var v1 = new Sound(v2); v1.attachSound(my_name); v1.my_name = my_name; return v1; } function addQuest(num) { if (quests[num][0] == 2) { return undefined; } do_sound(add_sound); quests[num][0] = 1; questSO[num] = 1; myUI.q.play(); popText('Quest Added', quests[num][1]); } function completeQuest(num) { if (quests[num][0] == 2) { return undefined; } quests[num][0] = 2; questSO[num] = 2; if (debugging) { trace('Quest Completed: ' + num); } popText('Quest Complete', quests[num][1]); do_sound(complete_sound); switch (num) { case 0: break; case 1: altVar = 2; _root.attachMovie('altFadeOutClip', 'altFadeOutClip', _root.getNextHighestDepth()); break; case 2: altVar = 3; _root.attachMovie('altFadeOutClip', 'altFadeOutClip', _root.getNextHighestDepth()); break; case 3: altVar = 4; _root.attachMovie('altFadeOutClip', 'altFadeOutClip', _root.getNextHighestDepth()); break; case 4: changeScene('houseNight'); break; case 5: if (hoboBit) { doSpeech(68); } break; case 6: changeScene('house'); break; case 8: break; default: } } function endAltFade() { switch (altVar) { case 2: var v3 = getUINum('key_0_exterior'); if (v3 == -1) { trace('error jar'); } else { removeUIItem(v3); } baseLayer.charGirlCrying.removeMovieClip(); break; case 3: baseLayer.charCafe.removeMovieClip(); addCharacter('charCafeBack', 725, 208); updateCharScale(); hand.swapDepths(this.getNextHighestDepth()); break; case 4: doSpeech(64); break; default: } _root.attachMovie('fadeInClip', 'fadeInClip', _root.getNextHighestDepth()); } function doCheats() {} function init_SO() { questSO = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; fireflySO = quests[5][2]; articleSO = quests[10][2]; magazineSO = quests[11][2]; mapSO = quests[8][2]; } function load_SO() {} function popHelp() { _root.attachMovie('myHelp', 'myHelp', _root.getNextHighestDepth()); changeHelp(lastHelp); hand.swapDepths(_root.getNextHighestDepth()); lastState = myState; myState = 'help'; } function changeHelp(hNum) { if (myHelp._currentframe == hNum) { return undefined; } myHelp.gotoAndStop(hNum); var v4 = 0; if (hNum != 1) { var v3 = 0; while (v3 < quests.length) { var v5 = myHelp.aclip['l' + v3]; v5.md = ''; v5.mt = ''; ++v3; } } if (hNum == 2) { v3 = 0; while (v3 < quests.length) { if (quests[v3][0] == 1) { v5 = myHelp.aclip['l' + v4]; v5.mt = quests[v3][1]; if (quests[v3][2] != undefined) { var v2 = 0; if (v3 == 8) { ++v2; } var v1 = 0; while (v1 < quests[v3][2].length) { if (quests[v3][2][v1] != 0) { ++v2; } ++v1; } if (v3 == 8) { v5.md = questInfo[v3] + ': ' + v2 + '/' + (quests[v3][2].length + 1); } else { v5.md = questInfo[v3] + ': ' + v2 + '/' + quests[v3][2].length; } } else { v5.md = questInfo[v3]; } ++v4; } ++v3; } } else { if (hNum == 3) { v3 = 0; while (v3 < quests.length) { if (quests[v3][0] == 2) { v5 = myHelp.aclip['l' + v4]; v5.mt = quests[v3][1]; ++v4; } ++v3; } } } } function closeHelp() { lastHelp = myHelp._currentframe; myHelp.removeMovieClip(); myState = lastState; } function startGame() { gotoAndStop('game'); if (lastX != 0 || lastY != 0) { buildScene(lastScene, lastX, lastY); } else { fv = 0; myNextScene = 'house'; doIntro(); } myEnterFrame(); _root.onMouseUp = function () { if (myDrag != undefined) { if (char.hitTest(_root._xmouse, _root._ymouse)) { dropItem('char', 0); return undefined; } var v2 = 0; while (v2 < UIArray.length) { var v4 = myUI['inv' + (v2 + 1)]; if (v4.hitTest(_root._xmouse, _root._ymouse)) { dropItem('button', v2 + 1); return undefined; } ++v2; } v2 = 0; while (v2 < sceneCharacters.length) { var v3 = baseLayer[sceneCharacters[v2]]; if (v3.hitTest(_root._xmouse, _root._ymouse)) { dropItem('otherChar', v3); return undefined; } ++v2; } dropItem('none'); } }; doCheats(); } function buildUI() { if (myUI == undefined) { _root.attachMovie('myUI', 'myUI', _root.getNextHighestDepth()); } myUI.swapDepths(_root.getNextHighestDepth()); hand.swapDepths(_root.getNextHighestDepth()); var v2 = 0; while (v2 < UIArray.length) { var v3 = myUI['inv' + (v2 + 1)]; v3[v3.myItem].removeMovieClip(); v3.my_var = v2 + 1; var v4 = UIArray[v2]; if (v4 != 0) { setUIItem(v2, v4); } ++v2; } myUI._x = 320; if (quests[0][0] == 1) { myUI.my_help.text = 'Pick up items by clicking them'; } if (!sound_on) { myUI.sound_clip.gotoAndStop(2); } } function setUIItem(num, myItem) { if (myItem == undefined) { return undefined; } var v3 = myUI['inv' + (num + 1)]; var v2 = v3.attachMovie(myItem, myItem, v3.getNextHighestDepth()); v3.myItem = myItem; if (myItem == 'emptyJar_0_cafe' && quests[5][0] == 2) { v2.gotoAndStop(6); } v3.myVar = num; v3.onPress = function () { dragItem(this); }; if (v2._width > 48) { v2._width = 48; v2._yscale = v2._xscale; } if (v2._height > 48) { v2._height = 48; v2._xscale = v2._yscale; } v2._x = v3._width / 2 - v2._width / 2; v2._y = v3._height / 2 - v2._height / 2; UIArray[num] = myItem; } function removeUIItem(bVar) { UIArray[bVar] = 0; var v1 = myUI['inv' + (bVar + 1)]; v1[v1.myItem].removeMovieClip(); } function dragItem(myButton) { if (myButton.myItem == undefined) { return undefined; } myDrag = _root.attachMovie(myButton.myItem, 'my_drag', _root.getNextHighestDepth()); myDrag._x = myUI._x + myButton._x; myDrag._y = myUI._y + myButton._y; myDrag.myItem = myButton.myItem; myDrag.pUI = myButton.myVar; myDrag.startDrag(); hand.swapDepths(_root.getNextHighestDepth()); removeUIItem(myButton.myVar); myButton.myItem = undefined; } function dropItem(type, myVar) { switch (type) { case 'button': var v1 = myUI['inv' + myVar]; if (v1.myItem == undefined) { setUIItem(myVar - 1, myDrag.myItem); } else { switch (myDrag.myItem) { case 'can_0_house': if (v1.myItem == 'opener_0_house') { do_sound(click_sound); removeUIItem(v1.myVar); setUIItem(v1.myVar, 'openCan'); myUI.my_help.text = 'Give Zomboy something to eat'; } else { setUIItem(myDrag.pUI, myDrag.myItem); } break; case 'opener_0_house': if (v1.myItem == 'can_0_house') { do_sound(click_sound); removeUIItem(v1.myVar); setUIItem(v1.myVar, 'openCan'); myUI.my_help.text = 'Give Zomboy something to eat'; } else { setUIItem(myDrag.pUI, myDrag.myItem); } break; case 'magnet_0_cafe': if (v1.myItem == 'rod_0_exterior') { do_sound(click_sound); removeUIItem(v1.myVar); setUIItem(v1.myVar, 'magnetRod'); } else { setUIItem(myDrag.pUI, myDrag.myItem); } break; case 'rod_0_exterior': if (v1.myItem == 'magnet_0_cafe') { do_sound(click_sound); removeUIItem(v1.myVar); setUIItem(v1.myVar, 'magnetRod'); } else { setUIItem(myDrag.pUI, myDrag.myItem); } break; default: trace('cannot combine: ' + myDrag.myItem + ',' + myDrag.pUI); setUIItem(myDrag.pUI, myDrag.myItem); } } break; case 'char': switch (myDrag.myItem) { case 'openCan': do_sound(click_sound); charAnim('Brains'); myUI.my_help.text = ''; completeQuest(0); break; default: setUIItem(myDrag.pUI, myDrag.myItem); } break; case 'otherChar': setUIItem(myDrag.pUI, myDrag.myItem); break; default: setUIItem(myDrag.pUI, myDrag.myItem); } myDrag.stopDrag(); myDrag.removeMovieClip(); } function popText(myTitle, myText) { if (infoPop != undefined) { infoPop.removeMovieClip(); } _root.attachMovie('infoPop', 'infoPop', _root.getNextHighestDepth()); infoPop.myContainer.popTitle.text = myTitle; infoPop.myContainer.popText.text = myText; } function fadeOut() { _root.attachMovie('fadeOutClip', 'fadeOutClip', _root.getNextHighestDepth()); } function endFade() { switch (fv) { case 0: if (previousScene == myNextScene) { previousScene = currScene; } switch (myNextScene) { case 'exterior': switch (previousScene) { case 'house': buildScene(myNextScene, 550, 340); break; case 'girl': buildScene(myNextScene, 815, 340); break; case 'cafe': buildScene(myNextScene, 370, 300); break; case 'garden': buildScene(myNextScene, 50, 370); break; case 'guard': buildScene(myNextScene, 1040, 370); break; default: trace('not set'); } break; case 'exteriorNight': switch (previousScene) { case 'houseNight': buildScene(myNextScene, 550, 340); break; case 'guardNight': buildScene(myNextScene, 1040, 370); break; default: trace('not set'); } break; case 'house': if (previousScene == 'exterior') { buildScene(myNextScene, 340, 300); } else { buildScene(myNextScene, 100, 350); } break; case 'houseNight': if (previousScene == 'exteriorNight') { buildScene(myNextScene, 340, 300); } else { buildScene(myNextScene, 100, 350); } break; case 'cafe': buildScene(myNextScene, 1050, 380); break; case 'guard': case 'guardNight': buildScene(myNextScene, 100, 350); break; default: buildScene(myNextScene, 540, 370); } _root.attachMovie('fadeInClip', 'fadeInClip', _root.getNextHighestDepth()); break; case 1: if (!bitHobo) { _root.attachMovie('fadeInClip', 'fadeInClip', _root.getNextHighestDepth()); fadeInClip.stop(); doSpeech(73); } else { buildScene(myNextScene, 1040, 370); } break; case 2: _root.attachMovie('fadeInClip', 'fadeInClip', _root.getNextHighestDepth()); break; case 4: endGame(); break; default: } } function collectMapPiece(pieceNum) { trace('collect piece: ' + pieceNum); if (quests[8][0] == 0) { doSpeech(83); return undefined; } if (quests[8][2][pieceNum] == 1) { trace('Already have: ' + pieceNum); return undefined; } quests[8][2][pieceNum] = 1; var v2 = 0; var v1 = 0; while (v1 < quests[8][2].length) { if (quests[8][2][v1] == 1) { ++v2; } ++v1; } if (v2 == quests[8][2].length) { completeMap(); } else { popText(v2 + 1 + '/7', ''); } pushCollected('mapPiece_0_' + currScene); } function completeMap() { trace('complete map'); completeQuest(8); addQuest(9); } function doIntro() { myState = 'anim'; _root.attachMovie('intro', 'myAnim', _root.getNextHighestDepth()); hand.swapDepths(_root.getNextHighestDepth()); } function endAnim() { if (!bitHobo && currScene != 'garden') { myAnim.removeMovieClip(); fadeOut(); } else { fadeOutClip = undefined; exiting = false; myAnim.removeMovieClip(); } myState = 'playing'; } function myEnterFrame() { this.onEnterFrame = function () { switch (myState) { case 'anim': if (myAnim._currentframe >= myAnim._totalframes - 2) { fadeInClip.removeMovieClip(); if (currScene == 'garden') { collectMapPiece(0); } endAnim(); } break; case 'pAnim': if (animType == 'Pickup' && char.clip._currentframe == 25) { pickUpItem(); } if (char.clip._currentframe >= char.clip._totalframes) { if (quests[0][0] == 2) { char.gotoAndStop('Breathing'); } else { char.gotoAndStop('BreathingZombie'); } if (animType == 'Fishing') { collectItem('key_0_exterior'); } else { if (animType == 'Brains') { doSpeech(79); } } myState = 'game'; } break; break; case 'help': default: if (scalingChar) { char._xscale += scalingDir; char._yscale += scalingDir; } if (char._x != destX || char._y != destY && !isNaN(destX)) { if (destX > char._x) { char._x += charXSpeed; if (destX <= char._x) { char._x = destX; charXSpeed = 0; } setFacing('right'); } else { if (destX < char._x) { char._x -= charXSpeed; if (destX >= char._x) { char._x = destX; charXSpeed = 0; } setFacing('left'); } else { charXSpeed = 0; } } if (destY > char._y) { char._y += charYSpeed; if (destY <= char._y) { char._y = destY; charYSpeed = 0; } } else { if (destY < char._y) { char._y -= charYSpeed; if (destY >= char._y) { char._y = destY; charYSpeed = 0; } } else { charYSpeed = 0; } } if ((charXSpeed != 0 || charYSpeed != 0) && charXSpeed != undefined) { if (quests[0][0] == 2) { char.gotoAndStop('Walking'); } else { char.gotoAndStop('WalkingZombie'); } } else { if (moveStep >= movementArray.length - 1) { if (quests[0][0] == 2) { char.gotoAndStop('Breathing'); } else { char.gotoAndStop('BreathingZombie'); } if (myItem != undefined) { collectItem(myItem); myItem = undefined; return undefined; } else { if (myConvo != undefined) { startConvo(myConvo); return undefined; } else { if (myProp != undefined) { propText(); return undefined; } else { if (myExit != undefined) { char._x = destX; char._y = destY; return undefined; } } } } } } updateLayers(); getFloor(char, false); } else { if (moveStep < movementArray.length) { ++moveStep; setMovement(); } if (exiting && fadeOutClip == undefined && moveStep == movementArray.length) { switch (currScene) { case 'exterior': switch (myExit) { case 0: changeScene('garden'); break; case 1: changeScene('cafe'); break; case 2: changeScene('house'); break; case 3: if (quests[1][0] != 2) { exiting = false; doSpeech(91); } else { changeScene('girl'); } break; case 4: changeScene('guard'); break; default: trace('exit: ' + myExit); } break; case 'exteriorNight': switch (myExit) { case 0: changeScene('houseNight'); break; case 1: changeScene('guardNight'); break; default: trace('exit: ' + myExit); } break; case 'houseNight': changeScene('exteriorNight'); break; case 'guardNight': if (!bitHobo) { fv = 1; fadeOut(); } else { changeScene('exteriorNight'); } break; case 'guard': trace('exit: ' + myExit); if (myExit == 1) { if (quests[9][0] == 1) { fv = 4; fadeOut(); } else { myExit = undefined; exiting = false; doSpeech(90); } } else { changeScene('exterior'); } break; default: changeScene('exterior'); } } } } }; } function updateLayers() { if (scrolling) { if (char._x <= Stage.width / 2) { baseLayer._x = 0; } else { if (char._x + 20 >= baseLayer._width - Stage.width / 2) { baseLayer._x = 20 - baseLayer._width + Stage.width; } else { baseLayer._x = -char._x + Stage.width / 2; } } frontLayer._x = baseLayer._x; } } function buildScene(myScene, sx, sy) { exiting = undefined; hand.gotoAndStop(1); currScene = myScene; gotoAndStop(myScene); c.removeMovieClip(); c = _root.createEmptyMovieClip('c', _root.getNextHighestDepth()); backLayer = c.attachMovie(myScene + 'Back', 'sceneBack', c.getNextHighestDepth()); baseLayer = c.attachMovie(myScene + 'Base', 'sceneBase', c.getNextHighestDepth()); frontLayer = c.attachMovie(myScene + 'Front', 'sceneFront', c.getNextHighestDepth()); var v4 = 0; while (v4 < 8) { var v3 = baseLayer['floorButton' + v4]; v3._alpha = 0; if (v3 != undefined) { v3.my_var = v4; v3.onRelease = function () { _root.do_sound(_root.click_sound); _root.myConvo = undefined; _root.myItem = _root.myConvo; _root.myProp = _root.myConvo; _root.endFloor = this.my_var; _root.hand.gotoAndPlay(1); if (!_root.exiting) { _root.selectPosition(_root._xmouse - baseLayer._x, _root._ymouse); } }; v3.onRollOver = function () { _root.hand.gotoAndStop('walk'); }; onDragOut = function () { _root.hand.gotoAndStop(1); }; v3.onRollOut = onDragOut; } var v5 = baseLayer['e' + v4]; if (v5 != undefined) { v5.my_var = v4; v5.onRollOver = function () { _root.hand.gotoAndStop('walkout'); }; onDragOut = function () { _root.hand.gotoAndStop(1); }; v5.onRollOut = onDragOut; } ++v4; } switch (myScene) { case 'guard': case 'guardNight': case 'garden': start_loop(wind_sound); scrolling = false; break; case 'house': case 'houseNight': case 'girl': scrolling = false; start_loop(quiet_sound); break; case 'cafe': scrolling = true; if (!collected('radio_0_cafe')) { start_loop(radio_sound); } else { start_loop(quiet_sound); } break; default: start_loop(wind_sound); scrolling = true; } destX = undefined; destY = undefined; charXSpeed = undefined; endFloor = undefined; charYSpeed = undefined; setProps(); placeItems(); placeCharacters(); placeCharacter(sx, sy); updateCharScale(); updateLayers(); buildUI(); hand.swapDepths(this.getNextHighestDepth()); lastX = sx; lastY = sy; } function placeCharacter(sx, sy) { if (char != undefined) { char.removeMovieClip(); } char = baseLayer.attachMovie(myChar, 'zomboy', baseLayer.getNextHighestDepth()); if (quests[0][0] == 0) { addQuest(0); char.gotoAndStop('BreathingZombie'); } if (sx != undefined) { char._x = sx; char._y = sy; } else { switch (currScene) { case 'house': case 'houseNight': char._x = 750; char._y = 370; break; case 'girl': case 'garden': char._x = 560; char._y = 360; facingDir = 'left'; break; case 'cafe': char._x = 890; char._y = 360; break; case 'guard': case 'guardNight': char._x = 45; char._y = 360; break; case 'exterior': char._x = 560; char._y = 360; break; default: trace('place character: ' + currScene); } } switch (currScene) { case 'cafe': case 'girl': case 'garden': setFacing('left'); break; case 'guard': setFacing('right'); break; default: } getFloor(char, true); } function updateCharScale() { var v3 = 100; switch (currScene) { case 'exterior': case 'exteriorNight': v3 = 40; char._yscale = v3; char._xscale = char._yscale; break; default: char._yscale = 100; char._xscale = 100; } var v1 = 0; while (v1 < sceneCharacters.length) { var v2 = baseLayer[sceneCharacters[v1]]; v2._yscale = v3; v2._xscale = v2._yscale; ++v1; } if (facingDir == 'left') { char._xscale *= -1; } } function changeScene(myScene) { fv = 0; previousScene = myNextScene; myNextScene = myScene; convoPop.removeMovieClip(); fadeOut(); } function placeControls() { trace('controls disabled'); } function scaling(dir) { scalingChar = true; scalingDir = dir; } function stopScaling() { scalingChar = false; } function selectPosition(bx, by) { movementArray = new Array(); movementArray.push([char._x, char._y]); moveStep = 1; destX = undefined; destY = undefined; currFloor = getFloorByX(char._x); if (endFloor == undefined) { getEnd(bx); } if (currFloor != endFloor) { if (currFloor < endFloor) { var v4 = currFloor; while (v4 < endFloor) { var v2 = baseLayer['floorButton' + v4]; var v1 = baseLayer['floorButton' + (v4 + 1)]; var v7 = movementArray[movementArray.length - 1][1]; var v6 = v2._y + v2._height; var v5 = v1._y + v1._height; if (v7 < v1._y) { movementArray.push([v1._x, v1._y]); } else { if (v7 > v1._y + v1._height) { movementArray.push([v1._x, v5]); } else { if (by <= v2._y || by <= v1._y) { if (v2._y < v1._y) { movementArray.push([v1._x, v1._y]); } else { movementArray.push([v1._x, v2._y]); } } else { if (by > v6 || by > v5) { if (v6 > v5) { movementArray.push([v1._x, v5]); } else { movementArray.push([v1._x, v6]); } } } } } ++v4; } movementArray.push([bx, by]); } else { var v4 = currFloor; while (v4 > endFloor) { var v2 = baseLayer['floorButton' + v4]; var v1 = baseLayer['floorButton' + (v4 - 1)]; var v6 = v2._y + v2._height; var v5 = v1._y + v1._height; var v7 = movementArray[movementArray.length - 1][1]; if (v7 < v1._y) { movementArray.push([v2._x, v1._y]); } else { if (v7 > v1._y + v1._height) { movementArray.push([v2._x, v1._y + v1._height]); } else { if (by <= v2._y || by <= v1._y) { if (v2._y < v1._y) { movementArray.push([v2._x, v1._y]); } else { movementArray.push([v2._x, v2._y]); } } else { if (by > v6 || by > v5) { if (v6 > v5) { movementArray.push([v2._x, v5]); } else { movementArray.push([v2._x, v6]); } } } } } --v4; } movementArray.push([bx, by]); } } else { movementArray.push([bx, by]); } setMovement(); } function getEnd(ex) { var v2 = 10; while (v2 >= 0) { var v1 = baseLayer['floorButton' + v2]; if (ex == undefined) { var v3 = baseLayer['e' + myExit]; if (v1._x <= v3._x && v1._x + v1._width >= v3._x && v1 != undefined) { endFloor = v2; return undefined; } } else { if (v1._x <= ex && v1._x + v1._width >= ex && v1 != undefined) { endFloor = v2; return undefined; } } --v2; } } function setMovement() { var v5 = movementArray[moveStep - 1]; var v2 = movementArray[moveStep]; var v3 = v2[0] - v5[0]; var v1 = v2[1] - v5[1]; var v7 = Math.sqrt(v3 * v3 + v1 * v1); var v4 = 5 * Math.abs(char._xscale) / 100; if (quests[0][0] != 2) { v4 /= 2; } var v6 = v4 / v7; charXSpeed = v3 * v6; if (v3 < 0) { charXSpeed *= -1; } charYSpeed = v1 * v6; if (v1 < 0) { charYSpeed *= -1; } charXSpeed = Math.round(charXSpeed * 10) / 10; charYSpeed = Math.round(charYSpeed * 10) / 10; destX = Math.round(v2[0]); destY = Math.round(v2[1]); if (isNaN(destX)) { currFloor = endFloor; charXSpeed = undefined; charYSpeed = undefined; } } function setFacing(dir) { if (dir != facingDir) { char._xscale *= -1; facingDir = dir; } } function getFloor(myItem, myBool) { if (myItem._x == undefined) { myItem = baseLayer[myItem]; } var v1 = 1; while (v1 < 10) { var v2 = baseLayer['floorButton' + v1]; if (myItem.charPosX != undefined) { if (myItem.charPosX < v2._x + v2._width && myItem.charPosX >= v2._x) { if (myBool) { currFloor = v1; } else { endFloor = v1; } return undefined; } } if (myItem._x < v2._x + v2._width && myItem._x >= v2._x) { if (myBool) { currFloor = v1; } else { endFloor = v1; } return undefined; } ++v1; } } function getFloorByX(fx) { var v1 = 1; while (v1 < 10) { var v2 = baseLayer['floorButton' + v1]; if (fx < v2._x + v2._width) { return v1; } ++v1; } return undefined; } function moveToExit(exitVar) { myProp = undefined; myConvo = myProp; myItem = myConvo; if (convoPop != undefined || myItem != undefined || myConvo != undefined || myState == 'pAnim') { trace('error move: ' + myItem + ',' + myConvo + ',' + myState + ',' + convoPop); return undefined; } if (quests[0][0] != 2) { var v1 = Math.floor(Math.random() * 3); if (v1 == 0) { popSpeech('???', 'Eat braaaains firrrst...'); } else { if (v1 == 1) { popSpeech('???', 'Want braaaains...'); } else { popSpeech('???', 'WAAANT. BRAAAAINS...'); } } return undefined; } myExit = exitVar; getEnd(); switch (currScene) { case 'house': case 'houseNight': selectPosition(340, 280); break; case 'exterior': switch (exitVar) { case 0: selectPosition(60, 360); break; case 1: selectPosition(390, 300); break; case 2: selectPosition(550, 340); break; case 3: selectPosition(815, 340); break; case 4: selectPosition(1040, 370); break; default: trace('no exit set'); } break; case 'exteriorNight': switch (exitVar) { case 0: selectPosition(550, 340); break; case 1: selectPosition(1040, 370); break; default: trace('no exit set'); } break; case 'girl': selectPosition(560, 370); break; case 'cafe': selectPosition(1050, 360); break; case 'garden': selectPosition(550, 375); break; case 'guard': if (myExit == 0) { selectPosition(45, 375); } else { selectPosition(550, 375); } break; case 'guardNight': selectPosition(45, 375); break; default: trace('moveToExit not set'); return undefined; } exiting = true; } function placeItems() { switch (currScene) { case 'house': placeItem('opener', 482, 316, 5, 470, 330); placeItem('diary', 555, 285, 0, 500, 370); placeItem('can', 36, 360, 5, 70, 380); break; case 'exterior': break; break; case 'girl': case 'cafe': placeItem('radio', 770, 180, 0, 780, 350); placeItem('jar', 670, 170, 0, 680, 350); break; case 'garden': placeItem('leak0', 243, 277, 0, 243, 320); placeItem('leak1', 426, 271, 0, 426, 310); if (openedGate) { placeItem('gateOpen', 3, 219, 0, 160, 380); } else { placeItem('gateClosed', -4, 220, 0, 160, 380); } break; break; case 'guard': case 'houseNight': placeItem('diary', 555, 285, 0, 500, 370); break; case 'guardNight': if (bitHobo) { placeItem('mapPiece', 260, 340, 0, 260, 390); } break; case 'exteriorNight': placeItem('firefly', 210, 270, 0, 210, 360, 0); placeItem('firefly', 215, 272, 60, 215, 360, 1); placeItem('firefly', 282, 265, 110, 282, 360, 2); break; default: trace('items not placed: ' + currScene); } } function placeItem(myItem, ix, iy, ir, icx, icy, itemCount) { if (itemCount == undefined) { itemCount = 0; } var v5 = myItem + '_' + itemCount + '_' + currScene; if (collected(v5)) { return undefined; } var v4 = baseLayer; if (myItem == 'diary' || myItem == 'gateOpen') { v4 = frontLayer; } var v3 = v4.attachMovie(myItem, v5, v4.getNextHighestDepth()); v3.myItem = v5; v3.myCount = itemCount; if (myItem == 'firefly') { v3._yscale = 20; v3._xscale = 20; } v3.onRelease = function () { _root.do_sound(_root.click_sound); hand.gotoAndStop(this.lastHand); _root.myItem = this.myItem; _root.getFloor(this, false); selectPosition(this.charPosX, this.charPosY); }; v3.onRollOver = function () { this.lastHand = hand._currentframe; switch (this.myItem) { case 'diary_0_house': case 'diary_0_houseNight': case 'leak0_0_garden': case 'leak1_0_garden': case 'radio_0_cafe': hand.gotoAndStop('question'); break; case 'gateOpen_0_garden': case 'gateClosed_0_garden': case 'jar_0_cafe': break; default: hand.gotoAndStop('pickup'); } }; v3.onDragOut = function () { hand.gotoAndStop(this.lastHand); }; v3.onRollOut = v3.onDragOut; v3.myType = myItem; v3._x = ix; v3._y = iy; if (icx == undefined) { v3.charPosX = v3._x + 20; v3.charPosY = v3._y + 10; } else { v3.charPosX = icx; v3.charPosY = icy; } v3.charFace = 'left'; v3._rotation = ir; } function collected(iName) { var v1 = 0; while (v1 < collectedArray.length) { if (iName == collectedArray[v1]) { return true; } ++v1; } v1 = 0; while (v1 < UIArray.length) { if (iName == UIArray[v1]) { return true; } ++v1; } return false; } function getUINum(iName) { var v1 = 0; while (v1 < UIArray.length) { if (iName == UIArray[v1]) { return v1; } ++v1; } return -1; } function collectItem(iName) { toPickUp = iName; switch (iName) { case 'can_0_house': charAnim('Pickup'); if (facingDir == 'right') { char._xscale *= -1; facingDir = 'left'; } if (collected('opener_0_house')) { myUI.my_help.text = 'You can combine some items'; } else { myUI.my_help.text = 'Pick up a can opener'; } break; case 'opener_0_house': charAnim('Pickup'); if (facingDir == 'left') { char._xscale *= -1; facingDir = 'right'; } if (collected('can_0_house')) { myUI.my_help.text = 'You can combine some items'; } else { myUI.my_help.text = 'Pick up a can of brains'; } break; case 'gateOpen_0_garden': return undefined; case 'gateClosed_0_garden': if (collected('key_0_cafe')) { baseLayer[iName].removeMovieClip(); myItem = undefined; placeItem('gateOpen', 3, 219, 0, 160, 380); openedGate = true; do_sound(gate_sound); } else { doSpeech(91); } break; default: pickUpItem(); } } function pickUpItem() { var v2 = toPickUp; myConvo = undefined; myProp = myConvo; switch (v2) { case 'diary_0_house': case 'diary_0_houseNight': if (quests[0][0] != 2) { doSpeech(38); return undefined; } else { if (quests[3][0] != 2) { doSpeech(37); return undefined; } else { if (quests[7][0] != 2) { doSpeech(66); return undefined; } else { readBook('Diary', 0); return undefined; } } } break; case 'radio_0_cafe': doSpeech(40); return undefined; case 'jar_0_cafe': if (quests[2][0] != 2) { doSpeech(95); return undefined; } break; case 'leak0_0_garden': if (quests[2][0] == 0) { doSpeech(46); } else { doSpeech(48); } return undefined; case 'leak1_0_garden': if (quests[2][0] == 0) { doSpeech(47); } else { doSpeech(49); } return undefined; case 'firefly_0_exteriorNight': case 'firefly_1_exteriorNight': case 'firefly_2_exteriorNight': var v6 = baseLayer[myItem].myCount; var v3 = quests[5][2]; v3[v6] = 1; fireflySO = v3; var v4 = 0; var v1 = 0; while (v1 < v3.length) { if (v3[v1] == 1) { ++v4; } ++v1; } var v7 = getUINum('emptyJar_0_cafe'); if (v7 == -1) { trace('error jar'); collectItem('emptyJar_0_cafe'); v7 = getUINum('emptyJar_0_cafe'); } var v5 = myUI['inv' + (v7 + 1)]; v5[v5.myItem].nextFrame(); if (v4 == v3.length) { completeQuest(5); if (collected('mapPiece_0_guardNight')) { doSpeech(68); } } else { popText(v4 + '/3', ''); } pushCollected(v2); baseLayer[v2].removeMovieClip(); myItem = undefined; return undefined; case 'mapPiece_0_guardNight': doSpeech(94); break; default: } var v1 = 0; while (v1 < UIArray.length) { if (UIArray[v1] == 0 && myDrag.pUI != v1) { setUIItem(v1, v2); UIArray[v1] = v2; pushCollected(v2); baseLayer[v2].removeMovieClip(); myItem = undefined; return undefined; } ++v1; } if (debugging) { trace('Cannot collect: ' + v2); } } function pushCollected(iName) { collectedArray.push(iName); } function charAnim(aType) { animType = aType; if (quests[0][0] != 2) { char.gotoAndStop(aType + 'Zombie'); } else { char.gotoAndStop(aType); } if (aType == 'Fishing') { if (facingDir == 'right') { facingDir = 'left'; char._xscale *= -1; } } myState = 'pAnim'; } function readBook(bookType, bookVar) { myBookType = bookType; switch (bookType) { case 'Diary': var v5 = _root.attachMovie('diaryBase', 'bookBase', _root.getNextHighestDepth()); v5.myBase.onRelease = function () { nextPage(); }; v5.prevPage.onRelease = function () { prevPage(); }; v5.myBack.onRelease = function () { _root.do_sound(_root.click_sound); closeBook(); }; if (lastDiaryPage == undefined || lastDiaryPage < 0) { lastDiaryPage = 0; } if (lastDiaryPage >= diaryText.length) { lastDiaryPage = diaryText.length - 1; } v5.myText.text = diaryText[lastDiaryPage]; v5.myTextBase.text = diaryText[lastDiaryPage]; v5.pageNum.text = lastDiaryPage + 1 + '/' + diaryText.length; break; case 'Newspaper': var v5 = _root.attachMovie('newspaperBase', 'bookBase', _root.getNextHighestDepth()); v5.myBase.onRelease = function () { _root.do_sound(_root.click_sound); closeBook(); }; v5.myText.text = newspaperText[bookVar]; v5.myTextBase.text = newspaperText[bookVar]; quests[10][2][bookVar] = 1; articleSO = quests[10][2]; var v3 = true; var v2 = 0; while (v2 < quests[10][2].length) { if (quests[10][2][v2] == 0) { v3 = false; } ++v2; } if (v3) { completeQuest(10); } break; case 'Magazine': var v5 = _root.attachMovie('magazineBase', 'bookBase', _root.getNextHighestDepth()); v5.myBase.onRelease = function () { _root.do_sound(_root.click_sound); closeBook(); }; v5.myText.text = magazineText[bookVar]; v5.myTextBase.text = magazineText[bookVar]; quests[11][2][bookVar] = 1; magazineSO = quests[11][2]; var v3 = true; var v2 = 0; while (v2 < quests[11][2].length) { if (quests[11][2][v2] == 0) { v3 = false; } ++v2; } if (v3) { completeQuest(11); } if (bookVar == 6) { collectMapPiece(3); } break; default: trace('No book selected'); } hand.swapDepths(_root.getNextHighestDepth()); } function nextPage() { if (myBookType !== 'Diary') { } else { ++lastDiaryPage; if (lastDiaryPage >= diaryText.length) { completeQuest(7); collectMapPiece(1); closeBook(); } else { do_sound(page_sound); bookBase.myText.text = diaryText[lastDiaryPage]; bookBase.myTextBase.text = diaryText[lastDiaryPage]; bookBase.pageNum.text = lastDiaryPage + 1 + '/' + diaryText.length; } } } function prevPage() { if (myBookType !== 'Diary') { } else { --lastDiaryPage; if (lastDiaryPage < 0) { closeBook(); } else { do_sound(page_sound); bookBase.myText.text = diaryText[lastDiaryPage]; bookBase.myTextBase.text = diaryText[lastDiaryPage]; bookBase.pageNum.text = lastDiaryPage + 1 + '/' + diaryText.length; } } } function closeBook(bookType, bookVar) { bookBase.removeMovieClip(); } function setProps() { var v4 = 0; while (v4 < _root[currScene + 'PropArray'].length) { if (baseLayer['p' + v4] != undefined) { var v3 = baseLayer['p' + v4]; v3.myVar = v4; v3.onRelease = function () { _root.do_sound(_root.click_sound); clickProp(this.myVar); }; if (currScene == 'house' && v4 == 5) { if (quests[4][0] == 1) { v3.onRollOver = function () { hand.gotoAndStop('question'); }; v3.onDragOut = function () { hand.gotoAndStop(1); }; v3.onRollOut = v3.onDragOut; } } else { if (currScene == 'houseNight' && v4 == 5) { if (quests[6][0] == 1) { v3.onRollOver = function () { hand.gotoAndStop('question'); }; v3.onDragOut = function () { hand.gotoAndStop(1); }; v3.onRollOut = v3.onDragOut; } } else { if (v4 == 3 && currScene == 'exterior') { v3.onRollOver = function () { hand.gotoAndStop('question'); }; v3.onDragOut = function () { hand.gotoAndStop(1); }; v3.onRollOut = v3.onDragOut; } } } } ++v4; } } function clickProp(pNum) { if (fadeOutClip != undefined) { return undefined; } if (quests[0][0] != 2) { viewItem('zombie', pNum); } else { viewItem(currScene, pNum); } } function viewItem(iScene, iNum) { myConvo = undefined; myExit = myConvo; myItem = myExit; exiting = false; switch (iScene) { case 'house': if (quests[4][0] == 1 && iNum == 5) { completeQuest(4); return undefined; } break; case 'houseNight': if (quests[6][0] == 1 && iNum == 5) { completeQuest(6); return undefined; } break; case 'garden': if (iNum == 5) { if (openedGate) { return undefined; } else { if (collected('key_0_cafe')) { trace('open gate'); } } } break; case 'girl': if (quests[3][0] == 2) { switch (iNum) { case 12: readBook('Newspaper', 0); return undefined; case 13: readBook('Newspaper', 1); return undefined; case 15: readBook('Newspaper', 2); return undefined; case 16: readBook('Newspaper', 3); return undefined; } } else {} break; case 'cafe': if (quests[3][0] == 2) { switch (iNum) { case 3: readBook('Magazine', 0); return undefined; case 4: readBook('Magazine', 1); return undefined; case 5: readBook('Magazine', 2); return undefined; case 6: readBook('Magazine', 3); return undefined; case 7: readBook('Magazine', 4); return undefined; case 8: readBook('Magazine', 5); return undefined; case 11: readBook('Magazine', 6); return undefined; case 21: readBook('Magazine', 7); return undefined; case 22: readBook('Magazine', 8); return undefined; } } else {} break; default: } myProp = iNum; myPropScene = iScene; var v3 = _root[iScene + 'PropArray'][iNum]; if (v3[1] != undefined) { endFloor = getFloorByX(v3[1]); selectPosition(v3[1], v3[2]); } } function propText() { if (myPropScene == 'garden' && myProp == 1) { if (quests[8][2][0] == 0) { if (openedGate) { myAnim = _root.attachMovie('digAnim', 'myAnim', _root.getNextHighestDepth()); myAnim.gotoAndPlay(1); hand.swapDepths(_root.getNextHighestDepth()); myState = 'anim'; hand.swapDepths(_root.getNextHighestDepth()); myProp = undefined; } else { myProp = undefined; } return undefined; } } var v3 = _root.attachMovie('convoSingle', 'convoPop', _root.getNextHighestDepth()); v3.myBase.onRelease = function () { _root.do_sound(_root.click_sound); if (myPropScene == 'girl' && this._parent.myProp == 7) { collectMapPiece(2); } else { if (myPropScene == 'guard' && this._parent.myProp == 0) { collectMapPiece(4); } } endSpeech(); }; if (quests[0][0] != 2) { v3.charName1.text = '???'; v3.charName1b.text = '???'; v3.charName2.text = ''; v3.charName2b.text = ''; } else { v3.charName1.text = 'Zomboy'; v3.charName1b.text = 'Zomboy'; v3.charName2.text = ''; v3.charName2b.text = ''; } var v4 = _root[myPropScene + 'PropArray'][myProp][0]; if (myPropScene == 'exterior') { if (myProp == 3) { seenKey = true; if (collected('key_0_exterior')) { v4 = 'Nothing else down there'; } else { doSpeech(51); myProp = undefined; return undefined; } } } else { if (myPropScene == 'cafe') { if (myProp == 25) { if (!collected('magnet_0_cafe')) { doSpeech(41); } else { doSpeech(45); } } } } v3.charText.text = v4; hand.swapDepths(_root.getNextHighestDepth()); v3.myProp = myProp; myProp = undefined; } function placeCharacters() { sceneCharacters = new Array(); switch (currScene) { case 'exterior': if (quests[1][0] != 2) { addCharacter('charGirlCrying', 770, 330); } addCharacter('charSalesman', 1020, 300); if (quests[3][0] == 1 && !collected('mapPiece_0_guardNight')) { doSpeech(61); } break; case 'girl': if (quests[1][0] == 2) { addCharacter('charGirl', 170, 275); } break; case 'cafe': trace('check quest: ' + quests[2][0]); if (quests[2][0] != 2) { addCharacter('charCafe', 740, 210); } else { addCharacter('charCafeBack', 725, 208); } if (!collected('key_0_cafe')) { addCharacter('charGardener', 250, 320); } break; case 'guard': if (quests[6][0] == 0) { addCharacter('charGuard', 420, 283); } if (quests[6][0] == 0) { addCharacter('charHobo', 31, 329); } break; case 'guardNight': if (!bitHobo) { addCharacter('charGuard', 420, 283); addCharacter('charNightHobo', 180, 344); } break; case 'exteriorNight': if (quests[5][0] == 0) { doSpeech(67); } break; case 'garden': if (collected('key_0_cafe')) { addCharacter('charGardenerStanding', 290, 310); } break; default: } } function addCharacter(charName, charX, charY) { var v5 = baseLayer; if (charName == 'charGardener') { v5 = frontLayer; } var v3 = v5.attachMovie(charName, charName, v5.getNextHighestDepth()); v3._x = charX; v3._y = charY; switch (charName) { case 'charCafe': v3.charPosX = charX + 20; v3.charPosY = charY + 150; break; case 'charGardener': v3.charPosX = charX + 100; v3.charPosY = charY - 55; break; case 'charGuard': v3.charPosX = 360; v3.charPosY = 360; break; case 'charGirl': v3.charPosX = 300; v3.charPosY = 380; break; case 'charCafeBack': return undefined; default: v3.charPosX = charX + 20; v3.charPosY = charY + 20; } v3.myConvo = charName; v3.onRelease = function () { _root.do_sound(_root.click_sound); if (this.speechBubble != undefined) { endSpeech(this.speechVar); } else { myConvo = this.myConvo; selectPosition(this.charPosX, this.charPosY); } }; v3.onRollOver = function () { hand.gotoAndStop('talk'); }; v3.onDragOut = function () { hand.gotoAndStop(1); }; v3.onRollOut = v3.onDragOut; sceneCharacters.push(charName); } function startConvo(charName) { if (fadeOutClip != undefined) { return undefined; } myExit = undefined; myProp = myExit; myItem = myProp; myConvo = myItem; exiting = false; switch (charName) { case 'charGirlCrying': if (quests[1][0] == 0) { doSpeech(0); } else { doSpeech(7); } break; case 'charSalesman': doSpeech(13); break; case 'charCafe': doSpeech(23); break; case 'charGuard': doSpeech(31); break; case 'charHobo': doSpeech(32); break; case 'charGardener': if (!collected('key_0_cafe')) { doSpeech(33); } else { doSpeech(96); } break; case 'charGardenerStanding': doSpeech(84); break; case 'charGirl': if (quests[3][0] == 0) { doSpeech(54); } else { if (quests[3][0] == 1) { if (quests[4][0] == 2) { doSpeech(62); } else { doSpeech(60); } } else { if (!collected('mapPieceCopy_0_girl')) { doSpeech(85); } else { doSpeech(89); } } } break; case 'charNightGuard': doSpeech(69); break; case 'charNightHobo': doSpeech(70); break; default: } } function doSpeech(num) { trace('speech: ' + num); convoPop.removeMovieClip(); speechChar = [conversation[num][0]]; var v4 = new Array(); var v5 = 0; while (v5 < conversation[num][1].length) { v4.push(conversation[num][1][v5]); ++v5; } switch (num) { case 9: if (collected('key_0_exterior')) { v4.push(['Here, I found it!', 12]); } else { if (seenKey) { v4.push(['I\'m sorry to say, but it\'s down a drain...', 11]); } } v4.push(['Bye.']); break; case 13: if (quests[8][0] != 2) { v4.push(['Why hello friend! Would you like to see what I have for sale?', 14]); } else { v4.push(['Hello again, I\'ve currenty run out of stock but will have more soon!']); } break; case 15: var v8 = 'I currently have this '; if (!collected('rod_0_exterior')) { v8 += 'fishing rod'; if (!collected('map_0_exterior')) { v8 += ' and this piece of paper'; } } else { if (!collected('map_0_exterior')) { v8 += 'piece of paper'; } } v8 += ', which might come in handy to someone.'; v4.push([v8, 16]); break; case 16: if (!collected('rod_0_exterior')) { v4.push(['What would you like for the fishing rod?', 17]); } if (!collected('map_0_exterior')) { v4.push(['Can I have that piece of paper?', 18]); } v4.push(['Bye.']); break; case 19: if (collected('jar_0_cafe')) { v4.push(['Sure, I\'ll take it.', 21]); } v4.push(['Never mind.']); break; case 20: if (quests[8][0] == 1) { if (collected('mapPieceCopy_0_girl')) { v4.push(['Fair trade.', 22]); v4.push(['Never mind.']); } else { v4.push(['This seems too valuable to trade. Maybe if I copied it first?']); } } else { v4.push(['Never mind.']); } break; case 23: if (quests[2][0] == 0) { v4.push(['Sorry, our coffee machine is broken.', 24]); } else { if (quests[2][0] == 1) { if (collected('leak0_0_garden') && collected('leak1_0_garden')) { v4.push(['Hey, it works! Thank you so much! Here, please accept this as a thank you.', 1005]); } else { v4.push(['How\'d you get on?', 28]); } } } break; case 28: if (collected('leak0_0_garden') || collected('leak1_0_garden')) { v4.push(['I fixed a leak, does it work now?', 50]); } else { v4.push(['Not quite there just yet.', 30]); } break; case 36: if (quests[5][0] == 2) { v4.push(['Here, this might help.', 1006]); } else { v4.push(['Hmm, that\'s a shame.']); } v4.push(['Bye.']); break; case 51: if (quests[1][0] == 0) { v4.push(['Looks like something metallic is down there..']); } else { if (quests[1][0] == 2) { v4.push(['I don\'t think there\'s anything else down there.']); } else { if (collected('magnetRod')) { v4.push(['Use the magnet to fish up the key.', 1012]); } else { if (collected('magnet_0_cafe')) { v4.push(['Maybe I could use the magnet?', 52]); } if (collected('rod_0_exterior')) { v4.push(['Maybe I can fish it out?', 53]); } } v4.push(['Leave.']); } } break; case 1000: addQuest(1); return undefined; case 1001: completeQuest(1); return undefined; case 1002: var v9 = getUINum('jar_0_cafe'); if (v9 == -1) { trace('error jar'); } else { removeUIItem(v9); collectItem('emptyJar_0_cafe'); collectItem('rod_0_exterior'); } return undefined; case 1003: var v9 = getUINum('mapPieceCopy_0_girl'); if (v9 == -1) { trace('error jar'); } else { removeUIItem(v9); collectMapPiece(5); } return undefined; case 1004: addQuest(2); return undefined; case 1005: baseLayer.jar_0_cafe.removeMovieClip(); completeQuest(2); collectItem('jar_0_cafe'); return undefined; case 1006: var v9 = getUINum('emptyJar_0_cafe'); if (v9 == -1) { trace('error jar'); } else { removeUIItem(v9); doSpeech(93); } return undefined; case 1007: pushCollected('radio_0_cafe'); baseLayer.radio_0_cafe.removeMovieClip(); stopAllSounds(); do_sound(switch_sound); myItem = undefined; return undefined; case 1008: collectItem('magnet_0_cafe'); return undefined; case 1009: pushCollected('leak0_0_garden'); baseLayer.leak0_0_garden.removeMovieClip(); return undefined; case 1010: pushCollected('leak1_0_garden'); baseLayer.leak1_0_garden.removeMovieClip(); return undefined; case 1011: if (quests[3][0] == 0) { addQuest(3); } return undefined; case 1012: charAnim('Fishing'); return undefined; case 1013: addQuest(4); return undefined; case 1014: completeQuest(3); return undefined; case 1015: readBook('Diary', 0); return undefined; case 1016: addQuest(5); return undefined; case 1017: addQuest(6); return undefined; case 1018: myExit = undefined; bitHobo = true; placeItem('mapPiece', 260, 340, 0, 260, 390); char.swapDepths(baseLayer.getNextHighestDepth()); myAnim = _root.attachMovie('biteAnim', 'myAnim', _root.getNextHighestDepth()); myAnim.gotoAndPlay(1); baseLayer.charNightHobo.removeMovieClip(); baseLayer.charGuard.removeMovieClip(); hand.swapDepths(_root.getNextHighestDepth()); myState = 'anim'; return undefined; case 1019: addQuest(6); return undefined; case 1020: addQuest(7); return undefined; case 1021: addQuest(9); return undefined; case 1022: collectItem('mapPieceCopy_0_girl'); return undefined; case 1023: collectItem('key_0_cafe'); return undefined; case 1024: addQuest(8); if (quests[5][0] == 2) { doSpeech(68); } return undefined; default: } if (v4.length > 1) { var v7 = _root.attachMovie('convoOptions', 'convoPop', _root.getNextHighestDepth()); v7.myBase.onRelease = function () { _root.do_sound(_root.click_sound); }; v5 = 0; while (v5 < 4) { var v3 = v7['b' + v5]; if (v4[v5][0] != undefined) { v3.myText = v4[v5][0]; v3.charText.text = v3.myText; v3.speechVar = v4[v5][1]; v3.onRelease = function () { _root.do_sound(_root.click_sound); endSpeech(this.speechVar); }; v3.onRollOver = function () { this.gotoAndStop(2); this.charText.text = this.myText; }; v3.onReleaseOutside = function () { this.gotoAndStop(1); this.charText.text = this.myText; }; v3.onDragOut = v3.onReleaseOutside; v3.onRollOut = v3.onReleaseOutside; } else { v3.charText.text = ''; } ++v5; } } else { var v10 = v4[0][0]; var speechVar = v4[0][1]; var v7 = _root.attachMovie('convoSingle', 'convoPop', _root.getNextHighestDepth()); v7.charText.text = v10; v7.speechVar = speechVar; v7.myBase.onRelease = function () { _root.do_sound(_root.click_sound); endSpeech(this._parent.speechVar); }; } if (speechChar == 'Zomboy') { v7.charName1.text = speechChar; v7.charName1b.text = speechChar; } else { v7.charName2.text = speechChar; v7.charName2b.text = speechChar; } hand.swapDepths(_root.getNextHighestDepth()); } function popSpeech(myName, myText, myVar) { var v3 = _root.attachMovie('convoSingle', 'convoPop', _root.getNextHighestDepth()); v3.charName1.text = myName; v3.charName1b.text = myName; v3.charName2.text = myName; v3.charName2b.text = myName; v3.charText.text = myText; v3.speechVar = myVar; v3.myBase.onRelease = function () { _root.do_sound(_root.click_sound); endSpeech(this._parent.speechVar); }; hand.swapDepths(_root.getNextHighestDepth()); } function endSpeech(num) { convoPop.removeMovieClip(); speechChar = undefined; if (num != undefined) { doSpeech(num); } } function endGame() { c.removeMovieClip(); _root.gotoAndStop('completion'); var v2 = _root.attachMovie('completion', 'completion', _root.getNextHighestDepth()); v2.myBack.onRelease = function () { _root.do_sound(_root.click_sound); }; hand.swapDepths(_root.getNextHighestDepth()); hand.gotoAndStop(1); completeQuest(9); } function clearGame() { quests = [[0, 'Can \'O\' Brains'], [0, 'The Key to my heart'], [0, 'Water works'], [0, 'A is for Apple'], [0, 'YAAAAWN!'], [0, 'Pretty!', [0, 0, 0]], [0, 'YAAAAWN! (Part 2)'], [0, 'Who am I?'], [0, 'Maptastic', [0, 0, 0, 0, 0, 0]], [0, 'See ya later, Alligator'], [0, 'Learned', [0, 0, 0, 0]], [0, 'Well read', [0, 0, 0, 0, 0, 0, 0, 0, 0]]]; var v1 = new Array(); v1 = [0, 0, 0, 0, 0]; collectedArray = new Array(); fv = 0; myChar = 'zomboy'; facingDir = 'right'; lastScene = ''; lastX = 0; lastY = 0; altVar = 0; seenKey = false; bitHobo = false; openedGate = false; init_SO(); } function returnToMain() { completion.removeMovieClip(); myUI.removeMovieClip(); convoPop.removeMovieClip(); clearGame(); gotoAndStop('mainMenu'); } debugging = true; var my_cm = new ContextMenu(); my_cm.hideBuiltInItems(); my_cm.customItems.push(new ContextMenuItem('Arctic Arcade', visitAA)); this.menu = my_cm; sound_on = true; fade_var = 0; fade_dir = 0; var core = this; var loop_called = false; var ah1_sound = make_sound('sfx_ah1'); var ah2_sound = make_sound('sfx_ah2'); var eat_sound = make_sound('sfx_eat'); var gate_sound = make_sound('sfx_gate'); var dig_sound = make_sound('sfx_dig'); var page_sound = make_sound('sfx_page'); var shot_sound = make_sound('sfx_shotgun'); var menu_sound = make_sound('sfx_intro'); var radio_sound = make_sound('sfx_radio'); var wind_sound = make_sound('sfx_wind'); var quiet_sound = make_sound('sfx_quiet'); var step_sound = make_sound('sfx_step'); var switch_sound = make_sound('sfx_switch'); var complete_sound = make_sound('sfx_complete'); var fish_sound = make_sound('sfx_fish'); var click_sound = make_sound('sfx_click'); var add_sound = make_sound('sfx_add'); var leak_sound = make_sound('sfx_leak'); var quests = new Array(); quests = [[0, 'Can \'O\' Brains'], [0, 'The Key to my heart'], [0, 'Water works'], [0, 'A is for Apple'], [0, 'YAAAAWN!'], [0, 'Pretty!', [0, 0, 0]], [0, 'YAAAAWN! (Part 2)'], [0, 'Who am I?'], [0, 'Maptastic', [0, 0, 0, 0, 0, 0]], [0, 'See ya later, Alligator'], [0, 'Learned', [0, 0, 0, 0]], [0, 'Well read', [0, 0, 0, 0, 0, 0, 0, 0, 0]]]; var questInfo = new Array(); questInfo = ['Sate your appetite for brainy goodness', 'Find the girl\'s lost key', 'Fix the coffee machine', 'Learn to read', 'Go to bed, it\'s late.', 'Collect the fireflies', 'Go back to bed', 'Remember who you are', 'Collect all pieces of the map', 'Leave the encampment', 'Read all newspapers', 'Read all magazines']; var UIArray = new Array(); UIArray = [0, 0, 0, 0, 0]; collectedArray = new Array(); fv = 0; myChar = 'zomboy'; facingDir = 'right'; lastScene = ''; lastX = 0; lastY = 0; altVar = 0; seenKey = false; bitHobo = false; openedGate = false; Mouse.hide(); hand = _root.attachMovie('HandPointer', 'hand', _root.getNextHighestDepth()); hand._rotation = 40; hand._yscale = 15; hand._xscale = 15; hand.onEnterFrame = function () { this._x = _root._xmouse; this._y = _root._ymouse; if (fade_var != 0) { curr_sound.setVolume(curr_sound.getVolume() + fade_var); if (curr_sound.getVolume() == 100 || curr_sound.getVolume() == 0) { fade_var = 0; } } }; lastHelp = 1; var diaryText = new Array(); diaryText = ['What the hell is going on? The news has been on for ages and heaps of army guys have gone past. I wanna do some shopping but the store\'s worse than last Christmas Eve.', 'OMG what\'s happening?! Everything\'s going crazy! People are attacking each other outside. I\'ve closed the curtains and locked the door. No way I\'m going out there.', 'Been watching the street all day, it\'s messed up. I thought I saw an old woman kill a guy but he got up and walked off. I\'m terrified, what if the lady comes here?! It\'s not safe.', 'Grabbed some stuff and now I\'m in the attic. Got heaps of food and water so should be set for ages.', 'Man it\'s boring. I wonder if it\'s OK to come down.', 'So sick of beans.', 'NO! Oh man, cracked a hole in the roof to see what\'s happening outside. There\'s people eating other people and acting real messed up! What if they heard me make the hole? Am I safe?! I don\'t want to die!', 'There\'s less movement outside. There\'s still a few people out there, but they\'re just standing there. About time I had some good news. Food\'s running low and I\'m starting to really worry.', 'So hungry.', 'I look outside and see no one. Is it safe?', 'K, out of food. This is not good. Should I go downstairs?', 'What was that?! I\'ve been hearing noise from downstairs but can\'t tell what\'s going on.', 'Noise is gone but it\'s not safe. No food. So hungry. I wanna see what\'s left in the kitchen, but what if someone eats me?', 'Can\'t stand it any more. I have to eat. I either die of starvation or get eaten alive. So sick of this attic.', 'Oh no. All the food is gone. Someone must have come in and stolen it all. I need food. I need to find some food. I need to find some food.', 'Last night I checked the closest houses. Nothing! No food. No people. Nothing. Now what?', 'Where the hell is everyone? I\'m heading toward the city by night, hiding during the day. Almost at the supermarket but feeling faint.', 'Made it to the city. Supermarket has dozens on them. Can\'t go there. Find somewhere else before it\'s too late.', 'FOOD! Found a diner and it\'s fridge had stuff! Most of it was off but I didn\'t care. Didn\'t care about the smell either, just wanted to eat again!', 'Still havn\'t seen anyone, but haven\'t run into any of those things. I wonder if anyone else is out there? Surely?', 'I\'ve taken what I can from the diner and am on the road again. I\'ve encountered a few of those things but they\'re dumb and slow so no real problem. Just keep low, move at night.', 'Still no one. Travelling closer into the city and I just find more of those things.', 'No one. Am I the only one left? What\'s the point?', 'It\'s too dangerous. They\'re everywhere. Now what?? Keep looking I suppose. Not that I\'ll find anyone.', 'Next city. Maybe I\'ll find someone. Gonna drive there, shouldn\'t draw too much attention.', 'Epic news! I found someone! Well, they found me. Still, I\'m not the last person alive. The girl\'s nice enough, but her Dad\'s pretty intimidating. He says he\'s meeting more survivors, so there\'s probably thousands of people out there! Words can\'t express how happy I am right now!', 'We\'ve met some more people. Nowhere near as many as I thought. Better than nothing I guess. The plan is to get some vehicles and head North.', 'I found a sweet old R.V. Has a bed and everything! Only problem was it had a dead dude in it. He almost got me too, he bit me pretty hard. Got away in the end.', 'The convoy is off! Plenty of gas and food. Time to find some more people!', 'We\'ve been driving for a while. Getting used to the driving, but feeling awful. Can\'t wait to go to sleep.', 'Running super low on gas, as is everyone else. Found an old diner and they\'re all arguing about whether we should stay here. I just want to lie down.', 'So sick. Stupid flu. Looks like we\'re making camp here. Good thing, I don\'t think I can drive any more.']; var newspaperText = new Array(); newspaperText = ['Scientists Cheat Death Itself\n\nEarlier this month, a phase 3 clinical trial of a new vaccine began. Dubbed the "Anti-Death" vaccine (ADV), leading Hematologist expert Dr. David Seaver MD calls the new vaccine as "The most exciting and important medical discovery in the history of modern medicine/".\n\nHe isn\'t exaggerating.\n\nHow the ADV works, is that it continually stimulates brain activity in deceased patients. Test subjects have regained a primitive level of motor skills such as the ability to walk. They do not however, show a high level of deductive reasoning or seem to retain any of their memories from before they died. Yet, the implications are still staggering.\n\n"We are one step closer to cheating death itself" stated Seaver, causing controversy and much debate among his peers. Some have questioned the ethics of resurrecting the dead, others have hailed the discovery of ADV as a momentous event that will shape history.', 'Playing God Angers Church\n\nVatican City - A top Vatican official for bioethics on Tuesday criticized recent claims that the recently discovered vaccine dubiously named Anti-Death, is "One step closer to cheating death itself".\n\nMonsignor Andreas Piellosco said the claim was a "victory of publicity over ethics" and suggested the trials be completed before making such divisive and dangerous comments.\n\nInternationally these comments have set off outrage among various church groups, most citing the vaccine\'s founder and most recent Nobel Laureate in Medicine, Hematologist Dr. David Seaver MD as unethical, and coming too close to playing God.\n\nSeaver has however attempted to re-assure his critics. Stating at a recent press conference, "We are taking the utmost care to not cross any moral, ethical, or legal boundaries."', 'Outbreak!\n\nAt least 40 people are missing and twice as many infected as the private medical facility of Hematologist Dr. David Seaver MD struggles to contain recipients of the much-publicized vaccine ADV.\n\nRecipients were resurrected after death by ADV with basic motor skills and little deductive reasoning, but have since shown progressively aggressive behavior towards facility staff.\n\nAmong those missing is the founder of ADV himself, Dr. Seaver.\n\nFacility representatives issued a statement, stating there was a temporary security breach, but they will soon have the problem under control.', 'Apocalypse\n\nThe outbreak of the ADV related virus has not been contained.\n\nRepresentatives of the late Dr. David Ffloyd Seaver MD and his private medical facility have recently apologized for being unable to contain the virus, which is produced from recipients of the formerly heralded vaccine coined, "Anti-Death".\n\nRecipients of the vaccine displayed aggressive behavior, attacked medical staff, and have since left the facility. Public within the area are advised to stay indoors, as the virus can be spread through blood or saliva.\n\nThe military has cordoned off the immediate area and expect to have the situation contained within the next 72 hours.']; var magazineText = new Array(); magazineText = ['It\'s in my Blood - A look into the mind of the Man of the Century, Dr. David Seaver MD', 'Gardener\'s Patch - An Annual Look at Annuals', 'Dead bored? 101 Things to Try Before you Die', 'Poor Man\'s Food - Filling Recipes for a Tight Budget', 'Clockwork Times - Watch Time Tick', 'Mags - A Magazine about Magazines', 'Arctic Arcade Annual Report', 'Cafe Times - Well Hell: When Dell Fell', 'Brains In a Can - What were they thinking?']; var cafePropArray = new Array(); cafePropArray[0] = ['Doesn\'t look like that fan works.', 250, 270]; cafePropArray[1] = ['This pipe looks like it works from here.', 400, 270]; cafePropArray[2] = ['I wonder if they sell brains?', 470, 270]; cafePropArray[3] = ['This is of little interest to me.', 270, 270]; cafePropArray[4] = ['This is of little interest to me.', 270, 270]; cafePropArray[5] = ['This is of little interest to me.', 270, 270]; cafePropArray[6] = ['This is of little interest to me.', 270, 270]; cafePropArray[7] = ['This is of little interest to me.', 270, 270]; cafePropArray[8] = ['This is of little interest to me.', 270, 270]; cafePropArray[9] = ['This is of little interest to me.', 270, 270]; cafePropArray[10] = ['This is of little interest to me.', 270, 270]; cafePropArray[11] = ['This is of little interest to me.', 270, 270]; cafePropArray[12] = ['Why would I need a napkin?', 340, 260]; cafePropArray[13] = ['I\'d better not touch that.', 350, 260]; cafePropArray[14] = ['Salty.', 365, 260]; cafePropArray[15] = ['Pepper. Yuck.', 375, 260]; cafePropArray[16] = ['I\'d better not touch that.', 390, 260]; cafePropArray[17] = ['Maybe I should order something first?.', 415, 260]; cafePropArray[18] = ['Someone spilled ketchup?.', 440, 260]; cafePropArray[19] = ['Ew, I wouldn\'t drink from those.', 620, 340]; cafePropArray[20] = ['Looks pretty dirty...', 700, 340]; cafePropArray[21] = ['This is of little interest to me.', 500, 315]; cafePropArray[22] = ['This is of little interest to me.', 500, 315]; cafePropArray[23] = ['This is of little interest to me.', 500, 315]; cafePropArray[24] = ['This is of little interest to me.', 500, 315]; cafePropArray[25] = ['A dusty radio...', 840, 340]; var exteriorPropArray = new Array(); exteriorPropArray[0] = ['These barrels smell.', 80, 320]; exteriorPropArray[1] = ['I\'m not sure if any gas is left in this.', 210, 360]; exteriorPropArray[2] = ['Someone\'s been here.', 280, 360]; exteriorPropArray[3] = ['I wouldn\'t want to drop something down that.', 420, 330]; var gardenPropArray = new Array(); gardenPropArray[0] = ['Nice makeshift alarm system!', 250, 320]; gardenPropArray[1] = ['What a dirty looking spade...', 180, 380]; gardenPropArray[2] = ['Well. Looks clean enough.', 250, 320]; gardenPropArray[3] = ['Careful...', 250, 320]; gardenPropArray[4] = ['Poo, smells pretty bad.', 350, 320]; gardenPropArray[5] = ['It\'s locked.', 180, 380]; var girlPropArray = new Array(); girlPropArray[0] = ['Nice flower.', 110, 370]; girlPropArray[1] = ['Nice flower.', 110, 370]; girlPropArray[2] = ['Wow, her art is pretty good!', 300, 370]; girlPropArray[3] = ['I wonder where she learned to paint like this?', 300, 370]; girlPropArray[4] = ['Pretty.', 440, 360]; girlPropArray[5] = ['Nice.', 550, 360]; girlPropArray[6] = ['Nice teddy bear.', 140, 370]; girlPropArray[7] = ['I wonder who that is?', 230, 370]; girlPropArray[8] = ['Paints.']; girlPropArray[9] = ['Paint brushes.', 440, 360]; girlPropArray[10] = ['What a pretty photo.', 480, 360]; girlPropArray[11] = ['More art.', 550, 360]; girlPropArray[12] = ['Old newspaper.', 150, 370]; girlPropArray[13] = ['Old newspaper.', 260, 370]; girlPropArray[14] = ['Better not go in there.', 450, 360]; girlPropArray[15] = ['Old newspaper.', 550, 360]; girlPropArray[16] = ['Old newspaper.', 110, 370]; var guardPropArray = new Array(); guardPropArray[0] = ['Nasty!', 150, 350]; guardPropArray[1] = ['Interesting security set up...', 300, 340]; guardPropArray[2] = ['Better not touch that guy\'s stuff. He seems pretty angry...', 350, 350]; guardPropArray[3] = ['Those empty bottles smell!', 200, 340]; var housePropArray = new Array(); housePropArray[0] = ['I can\'t reach that!', 100, 350]; housePropArray[1] = ['Nothing up there', 240, 350]; housePropArray[2] = ['Man I miss supermarkets.', 420, 350]; housePropArray[3] = ['Nothing up there', 490, 350]; housePropArray[4] = ['Nothing up there too', 490, 350]; housePropArray[5] = ['Not tired.', 100, 350]; housePropArray[6] = ['No reception.', 230, 350]; housePropArray[7] = ['Old musky clothes.', 230, 350]; housePropArray[8] = ['Poo, old socks', 230, 350]; housePropArray[9] = ['My kingdom for a washing machine!', 230, 350]; housePropArray[10] = ['Oh, gross.', 430, 350]; housePropArray[11] = ['Nothing.', 490, 350]; housePropArray[12] = ['Nothing either.', 490, 350]; housePropArray[13] = ['Wow, I think it still works!', 490, 350]; var zombiePropArray = new Array(); zombiePropArray[0] = ['Brains no up there.', 100, 350]; zombiePropArray[1] = ['No brains. Too high for brains', 240, 350]; zombiePropArray[2] = ['So hungry.', 420, 350]; zombiePropArray[3] = ['Want brains', 490, 350]; zombiePropArray[4] = ['No brains. Me disappointed.', 490, 350]; zombiePropArray[5] = ['Not tired. Hungry.', 100, 350]; zombiePropArray[6] = ['No brains on TV. Uninterested.', 230, 350]; zombiePropArray[7] = ['Tastes like polyester.', 230, 350]; zombiePropArray[8] = ['No taste like brains. Taste like socks. Dirty socks.', 230, 350]; zombiePropArray[9] = ['I regret tasting that.', 230, 350]; zombiePropArray[10] = ['No brains. Only mould.', 430, 350]; zombiePropArray[11] = ['Nothing.', 490, 350]; zombiePropArray[12] = ['Nothing either. Where brains?', 490, 350]; zombiePropArray[13] = ['Braiiiins!', 490, 350]; var houseNightPropArray = new Array(); houseNightPropArray[0] = ['I can\'t reach that!', 100, 350]; houseNightPropArray[1] = ['Nothing up there', 240, 350]; houseNightPropArray[2] = ['Man I miss supermarkets.', 420, 350]; houseNightPropArray[3] = ['Nothing up there', 490, 350]; houseNightPropArray[4] = ['Nothing up there too', 490, 350]; houseNightPropArray[5] = ['Not tired.', 100, 350]; houseNightPropArray[6] = ['No reception.', 230, 350]; houseNightPropArray[7] = ['Old musky clothes.', 230, 350]; houseNightPropArray[8] = ['Poo, old socks', 230, 350]; houseNightPropArray[9] = ['My kingdom for a washing machine!', 230, 350]; houseNightPropArray[10] = ['Oh, gross.', 430, 350]; houseNightPropArray[11] = ['Nothing.', 490, 350]; houseNightPropArray[12] = ['Nothing either.', 490, 350]; houseNightPropArray[13] = ['Wow, I think it still works!', 490, 350]; var conversation = new Array(); conversation[0] = ['Girl', [['*SOB*, *SOB*', 1]]]; conversation[1] = ['Zomboy', [['Hi.', 2], ['Are you alright?', 3], ['I will come back in a bit!']]]; conversation[2] = ['Girl', [['... *sniff* ...', 4]]]; conversation[3] = ['Girl', [['No, I lost the key to my home somewhere.', 5]]]; conversation[4] = ['Zomboy', [['Are you alright?', 3], ['I will come back in a bit!']]]; conversation[5] = ['Zomboy', [['Would you like me to look for it? I don\'t have much else to do..', 6], ['I will come back in a bit!']]]; conversation[6] = ['Girl', [['That would be so nice if you could help me out!', 1000]]]; conversation[7] = ['Girl', [['... *SNIFF* ...', 8]]]; conversation[8] = ['Zomboy', [['About that key...', 9], ['Bye.']]]; conversation[9] = ['Zomboy', [['Where did you have it last?', 10]]]; conversation[10] = ['Girl', [['I couldn\'t find it after I went to the cafe.', 8]]]; conversation[11] = ['Girl', [['Oh no! How will I ever get it out?']]]; conversation[12] = ['Girl', [['Thank you so much for your help, you\'re my hero!', 1001]]]; conversation[13] = ['Salesman', []]; conversation[14] = ['Zomboy', [['I guess so.', 15], ['No thanks.']]]; conversation[15] = ['Salesman', []]; conversation[16] = ['Zomboy', []]; conversation[17] = ['Salesman', [['This is top of the "line" stuff! No rust, working order apart from a "hook" ... A "reel" bargain! You\'ll need cold hard cash for that!', 19]]]; conversation[18] = ['Salesman', [['This isn\'t for sale. But if you find any more like this I\'ll think about a trade.', 20]]]; conversation[19] = ['Zomboy', []]; conversation[20] = ['Zomboy', []]; conversation[21] = ['Salesman', [['It\'s been a pleasure doing business with you! Heh heh...', 1002]]]; conversation[22] = ['Salesman', [['Thanks, come again!', 1003]]]; conversation[23] = ['Barista', []]; conversation[24] = ['Zomboy', [['What\'s wrong with it?', 25], ['Okay, thanks anyway.']]]; conversation[25] = ['Barista', [['Something seems to be wrong with the water supply.', 26]]]; conversation[26] = ['Zomboy', [['I can look into it if you like?', 27], ['Okay, thanks anyway.']]]; conversation[27] = ['Barista', [['Thanks, that would be helpful! I gotta watch the cafe, so I can\'t leave.', 1004]]]; conversation[28] = ['Zomboy', []]; conversation[29] = ['Barista', [['Thank you! Our customer will be happy! Here, take this as a thank you.', 1005]]]; conversation[30] = ['Barista', [['I would be so grateful if you got the water working again!']]]; conversation[31] = ['Guard', [['I can\'t talk right now, I\'m on lookout duty. Someone\'s gotta look after this place!']]]; conversation[32] = ['Sleeping Drunk', [['*Burp*... ZzzzzzzzZzzz... *Hic*... Zzzzzz']]]; conversation[33] = ['Gardener', [['...So tired.', 34]]]; conversation[34] = ['Zomboy', [['What\'s wrong with you?', 35], ['I\'ll leave you alone.']]]; conversation[35] = ['Gardener', [['It\'s way too hot to garden during the day, but I can\'t see anything during the night when it\'s colder.', 36]]]; conversation[36] = ['Zomboy', []]; conversation[37] = ['Zomboy', [['I think I used to be able to understand all these funny shapes.']]]; conversation[38] = ['Zomboy', [['No way that brains.']]]; conversation[39] = ['Zomboy', [['There doesn\'t seem to be anything else down there of interest.']]]; conversation[40] = ['Zomboy', [['Switch it off.', 1007], ['Leave it alone.']]]; conversation[41] = ['Zomboy', [['There seems to be something loose...', 42]]]; conversation[42] = ['Zomboy', [['Open the radio.', 43], ['Leave it alone.']]]; conversation[43] = ['Zomboy', [['There\'s a magnet inside, how convenient...', 44]]]; conversation[44] = ['Zomboy', [['Take the magnet.', 1008], ['Leave it alone.']]]; conversation[45] = ['Zomboy', [['This radio no longer seems to work for some unknown reason...']]]; conversation[46] = ['Zomboy', [['That\'s a pretty bad leak...']]]; conversation[47] = ['Zomboy', [['Someone should probably fix that.']]]; conversation[48] = ['Zomboy', [['Fix leak.', 1009], ['Leave it alone.']]]; conversation[49] = ['Zomboy', [['Stop leak.', 1010], ['Leave it alone.']]]; conversation[50] = ['Barista', [['It\'s better but I don\'t seem to be getting enough pressure. Maybe there are more leaks?']]]; conversation[51] = ['Zomboy', []]; conversation[52] = ['Zomboy', [['I can\'t get close enough.']]]; conversation[53] = ['Zomboy', [['The line\'s long enough, but I can\'t hook onto it.']]]; conversation[54] = ['Zomboy', [['Hi. What are you doing?', 55], ['Leave.']]]; conversation[55] = ['Girl', [['Oh hi, I\'m just reading some old books.', 56]]]; conversation[56] = ['Zomboy', [['Reading? Whats that?', 57], ['Alright, see ya later.']]]; conversation[57] = ['Girl', [['You don\'t know what reading is?', 58]]]; conversation[58] = ['Zomboy', [['Vaguely. Can you teach me again?', 59]]]; conversation[59] = ['Girl', [['Sure, but it\'s a bit late now though. Come and see me tomorrow...', 1011]]]; conversation[60] = ['Girl', [['Come by any time tomorrow!']]]; conversation[61] = ['Zomboy', [['Yawn! Man, it\'s getting late. I better get some sleep in my comfy bed...', 1013]]]; conversation[62] = ['Girl', [['Hello again! Would you like to get reading?', 63]]]; conversation[63] = ['Zomboy', [['Sure, let\'s get started!', 1014], ['Not right now.']]]; conversation[64] = ['Zomboy', [['Thank you so much, now I remember how to read! It opens up a whole new world for me!']]]; conversation[65] = ['Zomboy', [['Thank you again!']]]; conversation[66] = ['Zomboy', [['Is this... My diary?', 1015]]]; conversation[67] = ['Zomboy', [['Wow, those fireflies are pretty. Maybe I should catch some?', 1016]]]; conversation[68] = ['Zomboy', [['Yawwwn. I\'d better get back to bed.', 1017]]]; conversation[69] = ['Guard', [['Get lost kid, I ain\'t in the mood...']]]; conversation[70] = ['Drunk', [['You got a dollar? Spare any change?', 71]]]; conversation[71] = ['Zomboy', [['Sorry, no.', 72]]]; conversation[72] = ['Drunk', [['Don\'t lie!']]]; conversation[73] = ['Drunk', [['Hey! *GRAB*', 74]]]; conversation[74] = ['Zomboy', [['Ow, you\'re hurting me!', 75]]]; conversation[75] = ['Drunk', [['Give me some money!', 76]]]; conversation[76] = ['Zomboy', [['Let go! *BITE*', 77]]]; conversation[77] = ['Drunk', [['OW! You bit me you little *$%&!', 78]]]; conversation[78] = ['Drunk', [['...I don\'t feel so good. Urrrrr', 1018]]]; conversation[79] = ['Zomboy', [['...Wha... what happened?', 80]]]; conversation[80] = ['Zomboy', [['Why can\'t I remember anything?', 81]]]; conversation[81] = ['Zomboy', [['Who am I? I need to find out...', 1020]]]; conversation[82] = ['Zomboy', [['That\'s the last of the map pieces. I wonder where it leads? Only one way to find out I guess...', 1021]]]; conversation[83] = ['Zomboy', [['There seems to be a piece of paper here...']]]; conversation[84] = ['Gardener', [['Hmm, I\'m sure there was something in the garden...']]]; conversation[85] = ['Zomboy', [['Hi, I noticed you like painting...', 86]]]; conversation[86] = ['Girl', [['I sure do!', 87]]]; conversation[87] = ['Zomboy', [['I was wondering if you could copy this for me?', 88]]]; conversation[88] = ['Girl', [['Sure, it\'s the least I could do for the help you\'ve given me!', 1022]]]; conversation[89] = ['Zomboy', [['Thanks again for your help!']]]; conversation[90] = ['Zomboy', [['I\'d better not leave just yet...']]]; conversation[91] = ['Zomboy', [['It\'s locked...']]]; conversation[92] = ['Zomboy', [['I don\'t think there\'s anything else...']]]; conversation[93] = ['Gardener', [['Thanks! Please, take this...', 1023]]]; conversation[94] = ['Zomboy', [['Hmm, this looks like a piece of a map. If I collect all the pieces I can follow it!', 1024]]]; conversation[95] = ['Zomboy', [['That doesn\'t belong to me...']]]; conversation[96] = ['Gardener', [['...So tired.']]]; clearing = true; init_SO(); this.onEnterFrame = function () { var v4 = _root.getBytesLoaded(); var v3 = _root.getBytesTotal(); if (v4 >= v3) { gotoAndStop('splash'); myMenu.swapDepths(this.getNextHighestDepth()); hand.swapDepths(this.getNextHighestDepth()); delete this.onEnterFrame; } my_progress.text = Math.floor((v4 / v3) * 100) + '%'; fadeClip.gotoAndStop(Math.floor((v4 / v3) * 100)); }; stop(); } movieClip 22 { } movieClip 25 { } // unknown tag 88 length 63 movieClip 28 { frame 1 { stop(); } } movieClip 43 { frame 1 { stop(); } } movieClip 46 rod_0_exterior { } // unknown tag 88 length 73 movieClip 52 newspaperBase { } // unknown tag 88 length 71 button 62 { on (release) { _root.changeHelp(1); } } button 63 { on (release) { _root.changeHelp(2); } } button 64 { on (release) { _root.changeHelp(3); } } button 65 { on (release) { _root.closeHelp(); } } movieClip 70 { frame 1 { stop(); } } movieClip 71 { } movieClip 76 myHelp { frame 1 { stop(); } } movieClip 78 { } // unknown tag 88 length 69 movieClip 82 { } movieClip 83 mapPieceCopy_0_girl { } movieClip 86 { } movieClip 87 mapPiece_0_guardNight { } movieClip 88 mapPiece { } movieClip 91 magnet_0_cafe { } movieClip 92 magnetRod { } movieClip 97 magazineBase { } movieClip 101 { } movieClip 102 leak1 { } movieClip 104 { } movieClip 105 leak0 { } movieClip 108 key_0_cafe { } movieClip 111 jar_0_cafe { } movieClip 112 jar { } movieClip 115 houseNightFront { } movieClip 116 houseNightFore { } movieClip 117 houseFront { } movieClip 120 gateOpen { } movieClip 123 gateClosed { } movieClip 126 gardenFront { } movieClip 136 firefly { frame 1 { gotoAndPlay(Math.floor(Math.random() * 10) + 1); } } movieClip 148 { } movieClip 158 { } movieClip 168 { } movieClip 169 emptyJar_0_cafe { frame 1 { stop(); } } movieClip 173 { } movieClip 174 charGardenerStanding { } movieClip 176 { } movieClip 178 { } movieClip 180 { } movieClip 182 { } movieClip 184 { } movieClip 186 { } movieClip 188 { } movieClip 190 { } movieClip 192 { } movieClip 200 { } movieClip 202 { } movieClip 204 { } movieClip 206 { } movieClip 209 { } movieClip 211 { } movieClip 213 { } movieClip 215 { } movieClip 217 { } movieClip 219 { } movieClip 221 { frame 10 { _root.do_sound(_root.step_sound); } frame 22 { _root.do_sound(_root.step_sound); } } movieClip 222 digAnim { frame 17 { _root.do_sound(_root.dig_sound); } } movieClip 231 diaryBase { } movieClip 236 { } movieClip 237 { } movieClip 239 { } movieClip 241 { } movieClip 244 { } movieClip 245 { frame 11 { _root.do_sound(_root.step_sound); } frame 22 { _root.do_sound(_root.step_sound); } } movieClip 246 { frame 1525 { stop(); } } // unknown tag 88 length 64 movieClip 249 { } movieClip 250 completion { frame 900 { stop(); } } movieClip 254 cafeFront { } movieClip 255 bloodStain { } movieClip 258 { } movieClip 266 { } movieClip 280 { } movieClip 283 { } movieClip 286 { } movieClip 288 { frame 23 { _root.do_sound(_root.fish_sound); } } movieClip 289 { } movieClip 290 { } movieClip 300 { } movieClip 303 { } movieClip 305 { } movieClip 308 { } movieClip 310 { } movieClip 312 { } movieClip 313 { frame 54 { _root.do_sound(_root.eat_sound); } } movieClip 315 { } movieClip 316 { } movieClip 317 zomboy { frame 1 { stop(); } } movieClip 321 { } movieClip 323 { } // unknown tag 88 length 80 movieClip 337 { frame 16 { _root.do_sound(_root.step_sound); } frame 30 { _root.do_sound(_root.step_sound); } } movieClip 338 biteAnim { frame 55 { _root.do_sound(_root.shot_sound); } frame 155 { this.removeMovieClip(); } } movieClip 340 key_0_exterior { } movieClip 342 { } movieClip 343 charSalesman { } movieClip 345 { } movieClip 346 charNightHobo { } movieClip 355 { } movieClip 361 { } movieClip 362 charNightGuard { } movieClip 366 { } movieClip 367 charHobo { } movieClip 369 charGuard { } movieClip 371 { } movieClip 372 { } movieClip 376 { } movieClip 378 { } movieClip 380 { } movieClip 382 { } movieClip 384 { } movieClip 385 { } movieClip 387 { } movieClip 389 { } movieClip 391 { } movieClip 393 { } movieClip 395 { } movieClip 397 { } movieClip 399 { } movieClip 401 { frame 1 { stop(); } } movieClip 402 charGirlCrying { } movieClip 404 { } movieClip 406 { } movieClip 408 { } movieClip 410 { } movieClip 412 { } movieClip 414 { } movieClip 416 { } movieClip 418 { } movieClip 420 { } movieClip 422 { } movieClip 424 { } movieClip 426 { } movieClip 427 { } movieClip 428 charGirl { } movieClip 431 { } movieClip 433 { } movieClip 435 { } movieClip 439 { } movieClip 441 { } movieClip 468 { } movieClip 475 { } movieClip 476 { } movieClip 477 charGardener { } movieClip 483 { } movieClip 484 charCafeBack { } movieClip 489 { } movieClip 490 { } movieClip 493 { } movieClip 494 { } movieClip 495 { } movieClip 498 { } movieClip 499 charCafe { } movieClip 501 { } // unknown tag 88 length 61 movieClip 505 { } movieClip 506 { frame 1 { stop(); } } button 507 { on (release) { _root.popHelp(); } } movieClip 508 myUI { instance sound_clip of movieClip 17 muteButton { onClipEvent (release) { _root.toggle_sound(); } } } movieClip 510 { frame 4 { _root.do_sound(_root.ah1_sound); } frame 90 { _root.do_sound(_root.ah2_sound); } } movieClip 511 intro { } movieClip 514 { } movieClip 515 infoPop { frame 172 { this.removeMovieClip(); } } movieClip 516 fadeOutClip { frame 15 { _root.endFade(); this.removeMovieClip(); } } movieClip 517 fadeInClip { frame 15 { this.removeMovieClip(); } } movieClip 520 { } // unknown tag 88 length 61 movieClip 528 convoSingle { } movieClip 531 { frame 1 { stop(); } } movieClip 535 convoOptions { } // unknown tag 88 length 83 button 539 { on (press) { _root.scaling(1); } on (release) { _root.stopScaling(); } on (dragOut) { _root.stopScaling(); } on (releaseOutside) { _root.stopScaling(); } } button 540 { on (press) { _root.scaling(-1); } on (release) { _root.stopScaling(); } on (dragOut) { _root.stopScaling(); } on (releaseOutside) { _root.stopScaling(); } } movieClip 541 controls { } movieClip 542 altFadeOutClip { frame 15 { _root.endAltFade(); this.removeMovieClip(); } } button 545 { on (release) { _root.moveToExit(1); } } button 546 { on (release) { _root.moveToExit(0); } } movieClip 549 exteriorNightBase { } button 552 { on (release) { _root.moveToExit(4); } } button 553 { on (release) { _root.moveToExit(3); } } button 554 { on (release) { _root.moveToExit(2); } } movieClip 555 exteriorBase { } movieClip 579 { } movieClip 580 radio { } button 583 { on (release) { _root.moveToExit(); } } movieClip 602 cafeBase { } movieClip 613 gardenBase { } // unknown tag 88 length 123 movieClip 630 girlBase { } button 632 { on (release) { changeScene('exterior'); } } movieClip 643 guardBase { } movieClip 644 guardNightBase { } movieClip 647 { } movieClip 648 opener { } movieClip 649 openCan { } movieClip 654 houseNightBase { } movieClip 657 houseBase { } movieClip 659 { } movieClip 660 diary_0_houseNight { } movieClip 661 diary { } movieClip 664 { } movieClip 665 can { } movieClip 666 opener_0_house { } movieClip 667 can_0_house { } movieClip 675 { } movieClip 681 { } movieClip 684 { frame 1 { _root.stop(); gotoAndPlay(2); } frame 225 { _root.nextFrame(); } } button 685 { on (release) { _root.do_sound(_root.click_sound); getURL('http://armorgames.com', '_blank'); } } movieClip 687 { frame 1 { var snow_amount = 250; var snow_repeat = 2; var snow_stage_width = Stage.width; var snow_stage_height = Stage.height; snow_repeat += 1; var snow_width = snow_stage_width / snow_repeat; var snow_height = snow_stage_height; var snow_flakes = []; this.createEmptyMovieClip('snow_source_block', this.getNextHighestDepth()); snow_source_block.createEmptyMovieClip('snow_flake', snow_source_block.getNextHighestDepth()); snow_source_block.snow_flake._y = -100; snow_source_block.snow_flake.lineStyle(1, 4294967295.0, 0); snow_source_block.snow_flake.beginFill(4294967295.0); snow_source_block.snow_flake.moveTo(0, 4); snow_source_block.snow_flake.curveTo(0.7, 7.3, 4, 8); snow_source_block.snow_flake.curveTo(7.3, 7.3, 8, 4); snow_source_block.snow_flake.curveTo(7.3, 0.7, 4, 0); snow_source_block.snow_flake.curveTo(0.7, 0.7, 0, 4); snow_source_block.snow_flake.endFill(); if (snow_repeat > 1) { var snow_duplicate = new flash.display.BitmapData(snow_width + 200, snow_height, true, 16777215); var i = 1; while (i < Math.ceil(snow_stage_width / snow_width)) { createEmptyMovieClip('snow_dest_block_' + i, this.getNextHighestDepth()); (eval('snow_dest_block_' + i))._x = snow_width * i - 100; (eval('snow_dest_block_' + i)).attachBitmap(snow_duplicate, 0); ++i; } } var i = 0; while (i < snow_amount) { duplicateMovieClip(snow_source_block.snow_flake, 'snow_flake_' + i, snow_source_block.getNextHighestDepth()); snow_flakes[i] = eval('snow_source_block.snow_flake_' + i); snow_flakes[i]._x = Math.random() * snow_width; snow_flakes[i]._y = Math.random() * snow_height; snow_flakes[i].yspeed = Math.random() * (1.5 - (snow_amount - i) * 1.5 / snow_amount) + 0.5; snow_flakes[i]._xscale = snow_flakes[i].yspeed * 25 + 10; snow_flakes[i]._yscale = snow_flakes[i]._xscale; snow_flakes[i]._alpha = 60 - (2 - snow_flakes[i].yspeed) * 35 + Math.random() * 30; snow_flakes[i].radians = 0; snow_flakes[i].increment = Math.random() * 0.2; snow_flakes[i].amp = (2 - snow_flakes[i].yspeed) * 5 + 0.7; ++i; } this.onEnterFrame = function () { var v1 = 0; while (v1 < snow_amount) { snow_flakes[v1].radians += snow_flakes[v1].increment; snow_flakes[v1]._y += snow_flakes[v1].yspeed + 0.3; snow_flakes[v1]._x += Math.sin(snow_flakes[v1].radians) / snow_flakes[v1].amp; if (snow_flakes[v1]._y >= snow_height) { snow_flakes[v1]._y = -10; snow_flakes[v1]._x = Math.random() * snow_width; snow_flakes[v1].radians = 0; } ++v1; } if (snow_repeat > 1) { snow_duplicate.fillRect(new flash.geom.Rectangle(0, 0, snow_width + 200, snow_height), 0); snow_duplicate.draw(snow_source_block, new flash.geom.Matrix(1, 0, 0, 1, 100, 0), null, 1); } }; } } movieClip 694 { } movieClip 699 { } movieClip 700 { } movieClip 701 { frame 290 { _root.nextFrame(); } } button 702 { on (release) { _root.do_sound(_root.click_sound); getURL('http://www.arcticarcade.net/', '_blank'); } } frame 5 { _root.hand.gotoAndPlay(1); start_loop(menu_sound); _root.attachMovie('fadeInClip', 'fadeIn', _root.getNextHighestDepth()); if (!sound_on) { sound_clip.gotoAndStop(2); } stop(); } button 707 { on (release) { _root.do_sound(_root.click_sound); _root.fade_sound(-1); _root.hand.gotoAndPlay(1); _root.clearGame(); _root.fadeOutClip.play(); } } button 712 { on (release) { _root.do_sound(_root.click_sound); _root.hand.gotoAndPlay(1); if (_root.fadeOutClip._currentframe == 1) { _root.gotoAndStop('credits'); } } } button 716 { on (release) { _root.do_sound(_root.click_sound); getURL('http://armorgames.com', '_blank'); } } movieClip 720 { } button 724 { on (release) { _root.do_sound(_root.click_sound); getURL('http://www.facebook.com/ArmorGames', '_blank'); } } movieClip 727 { frame 1 { stop(); } frame 100 { _root.startGame(); stop(); } } movieClip 728 { frame 31 { stop(); } } instance sound_clip of movieClip 17 muteButton { onClipEvent (release) { _root.toggle_sound(); } } frame 7 { if (!sound_on) { sound_clip.gotoAndStop(2); } } button 733 { on (release) { _root.do_sound(_root.click_sound); _root.gotoAndStop('mainMenu'); } } instance sound_clip of movieClip 17 muteButton { onClipEvent (release) { _root.toggle_sound(); } }




https://swfchan.com/53/264433/info.shtml
Created: 18/5 -2026 03:58:15 Last modified: 18/5 -2026 03:58:15 Server time: 08/06 -2026 03:06:04