Frame 1
function CheckReach() {
var _local4;
var _local3;
var _local2;
var _local1;
isReach = false;
_local3 = 0;
while (_local3 < 64) {
reachMap[_local3] = false;
_local3++;
}
_local1 = 0;
_local3 = 0;
while (_local3 < 8) {
_local2 = 0;
while (_local2 < 8) {
_local4 = board[_local3][_local2];
if (_local2 < 7) {
if (board[_local3][_local2 + 1] == _local4) {
if (_local2 < 6) {
if (_local3 < 7) {
if (board[_local3 + 1][_local2 + 2] == _local4) {
reachMap[_local1] = (reachMap[_local1 + 1] = (reachMap[(_local1 + 2) + 8] = (isReach = true)));
}
}
if (_local3 > 0) {
if (board[_local3 - 1][_local2 + 2] == _local4) {
reachMap[_local1] = (reachMap[_local1 + 1] = (reachMap[(_local1 + 2) - 8] = (isReach = true)));
}
}
}
if (_local2 > 0) {
if (_local3 < 7) {
if (board[_local3 + 1][_local2 - 1] == _local4) {
reachMap[_local1] = (reachMap[_local1 + 1] = (reachMap[(_local1 - 1) + 8] = (isReach = true)));
}
}
if (_local3 > 0) {
if (board[_local3 - 1][_local2 - 1] == _local4) {
reachMap[_local1] = (reachMap[_local1 + 1] = (reachMap[(_local1 - 1) - 8] = (isReach = true)));
}
}
}
}
}
if (_local2 < 6) {
if (board[_local3][_local2 + 2] == _local4) {
if (_local3 < 7) {
if (board[_local3 + 1][_local2 + 1] == _local4) {
reachMap[_local1] = (reachMap[_local1 + 2] = (reachMap[(_local1 + 1) + 8] = (isReach = true)));
}
}
if (_local3 > 0) {
if (board[_local3 - 1][_local2 + 1] == _local4) {
reachMap[_local1] = (reachMap[_local1 + 2] = (reachMap[(_local1 + 1) - 8] = (isReach = true)));
}
}
if (_local2 < 5) {
if (board[_local3][_local2 + 3] == _local4) {
reachMap[_local1] = (reachMap[_local1 + 2] = (reachMap[_local1 + 3] = (isReach = true)));
}
}
if (_local2 > 0) {
if (board[_local3][_local2 - 1] == _local4) {
reachMap[_local1] = (reachMap[_local1 + 2] = (reachMap[_local1 - 1] = (isReach = true)));
}
}
}
}
if (_local3 < 7) {
if (board[_local3 + 1][_local2] == _local4) {
if (_local3 < 6) {
if (_local2 < 7) {
if (board[_local3 + 2][_local2 + 1] == _local4) {
reachMap[_local1] = (reachMap[_local1 + 8] = (reachMap[(_local1 + 16) + 1] = (isReach = true)));
}
}
if (_local2 > 0) {
if (board[_local3 + 2][_local2 - 1] == _local4) {
reachMap[_local1] = (reachMap[_local1 + 8] = (reachMap[(_local1 + 16) - 1] = (isReach = true)));
}
}
}
if (_local3 > 0) {
if (_local2 < 7) {
if (board[_local3 - 1][_local2 + 1] == _local4) {
reachMap[_local1] = (reachMap[_local1 + 8] = (reachMap[(_local1 - 8) + 1] = (isReach = true)));
}
}
if (_local2 > 0) {
if (board[_local3 - 1][_local2 - 1] == _local4) {
reachMap[_local1] = (reachMap[_local1 + 8] = (reachMap[(_local1 - 8) - 1] = (isReach = true)));
}
}
}
}
}
if (_local3 < 6) {
if (board[_local3 + 2][_local2] == _local4) {
if (_local2 < 7) {
if (board[_local3 + 1][_local2 + 1] == _local4) {
reachMap[_local1] = (reachMap[_local1 + 16] = (reachMap[(_local1 + 8) + 1] = (isReach = true)));
}
}
if (_local2 > 0) {
if (board[_local3 + 1][_local2 - 1] == _local4) {
reachMap[_local1] = (reachMap[_local1 + 16] = (reachMap[(_local1 + 8) - 1] = (isReach = true)));
}
}
if (_local3 < 5) {
if (board[_local3 + 3][_local2] == _local4) {
reachMap[_local1] = (reachMap[_local1 + 16] = (reachMap[_local1 + 24] = (isReach = true)));
}
}
if (_local3 > 0) {
if (board[_local3 - 1][_local2] == _local4) {
reachMap[_local1] = (reachMap[_local1 + 16] = (reachMap[_local1 - 8] = (isReach = true)));
}
}
}
}
_local1++;
_local2++;
}
_local3++;
}
}
function AddScore(n) {
score = score + n;
if ((questLevel == 0) && ((lastGlassesScore + (level * 1000)) <= score)) {
lastGlassesScore = score;
if (numGlasses < 4) {
numGlasses++;
MCGlasses.gotoAndStop(1 + numGlasses);
}
}
}
function CheckVanish() {
var _local5;
var _local4;
var _local3;
var _local6;
var _local2;
var _local7;
_local4 = 0;
while (_local4 < 8) {
_local3 = 0;
while (_local3 < 8) {
board2[_local4][_local3] = 0;
_local3++;
}
_local4++;
}
_local7 = 0;
_local4 = 0;
while (_local4 < 8) {
_local3 = 0;
while (_local3 < 6) {
_local5 = board[_local3][_local4];
if (_local5 > 0) {
_local2 = 1;
if (this[("k" + _local3) + _local4].bt._visible) {
if ((_local3 + _local2) < 8) {
if (this[("k" + (_local3 + _local2)) + _local4].bt._visible && (board[_local3 + _local2][_local4] == _local5)) {
_local2++;
// unexpected jump
}
}
}
if (_local2 >= 3) {
_local6 = 0;
while (_local6 < _local2) {
board2[_local3 + _local6][_local4] = _local5;
_local7++;
_local6++;
}
board2[_local3][_local4] = board2[_local3][_local4] + (_local2 * 1000);
}
_local3 = _local3 + (_local2 - 1);
}
_local3++;
}
_local4++;
}
_local4 = 0;
while (_local4 < 8) {
_local3 = 0;
while (_local3 < 6) {
_local5 = board[_local4][_local3];
if (_local5 > 0) {
_local2 = 1;
if (this[("k" + _local4) + _local3].bt._visible) {
if ((_local3 + _local2) < 8) {
if (this[("k" + _local4) + (_local3 + _local2)].bt._visible && (board[_local4][_local3 + _local2] == _local5)) {
_local2++;
// unexpected jump
}
}
}
if (_local2 >= 3) {
_local6 = 0;
while (_local6 < _local2) {
if (board2[_local4][_local3 + _local6] == 0) {
board2[_local4][_local3 + _local6] = _local5;
_local7++;
}
_local6++;
}
board2[_local4][_local3] = board2[_local4][_local3] + (_local2 * 100);
}
_local3 = _local3 + (_local2 - 1);
}
_local3++;
}
_local4++;
}
return(_local7 > 0);
}
function ShiftProc(x1, y1, x2, y2, f) {
var _local2;
var _local3;
var _local8;
var _local9;
if (!f) {
shiftQueue[shiftQueueNum++] = (((y2 * 1000) + (x2 * 100)) + (y1 * 10)) + x1;
}
_local2 = this[("k" + y1) + x1];
_local3 = this[("k" + y2) + x2];
PlaySound(catchSnd2);
_local8 = board[y1][x1];
board[y1][x1] = board[y2][x2];
board[y2][x2] = _local8;
_local2.SetFace();
_local3.SetFace();
_local8 = _local2._x;
_local9 = _local2._y;
_local2._x = _local3._x;
_local2._y = _local3._y;
_local3._x = _local8;
_local3._y = _local9;
if (x2 < x1) {
_local2.Shift(1, 0);
_local3.Shift(-1, 0);
} else if (x1 < x2) {
_local2.Shift(-1, 0);
_local3.Shift(1, 0);
} else if (y2 < y1) {
_local2.Shift(0, 1);
_local3.Shift(0, -1);
} else {
_local2.Shift(0, -1);
_local3.Shift(0, 1);
}
_local2.isShiftBack = f;
_local3.isShiftBack = f;
}
function VanishProc() {
var _local6;
var _local2;
var _local8;
var _local5;
var _local9;
var _local3;
var _local7;
var _local4;
switch (++chainNum) {
case 1 :
PlaySound(pipo1);
break;
case 2 :
PlaySound(up1);
break;
case 3 :
PlaySound(up2);
break;
case 4 :
PlaySound(up3);
break;
default :
PlaySound(up4);
}
if ((questLevel == 3) && (chainNum >= 2)) {
MCQuestUpper.allChainNum++;
}
if (questLevel == 7) {
if (chainNum == 1) {
MCQuestUpper.noChainNum++;
} else {
MCQuestUpper.noChainNum = 0;
MCQuestUpper.allChainNum++;
}
}
_local9 = 0;
_local8 = 0;
while (_local8 < 8) {
_local5 = 0;
while (_local5 < 8) {
_local6 = board2[_local8][_local5];
if (_local6 > 0) {
if ((questLevel == 4) && (_local6 >= 100)) {
Quest4Proc(_local6 % 100);
}
_local9++;
_local7 = this[("k" + _local8) + _local5];
_local7.Vanish();
GotOneSub(_local6 % 100);
_local2 = int(_local6 / 1000);
if (_local2 > 0) {
_local3 = (100 + (_local8 * 10)) + _local5;
attachMovie("scoreview", "sview" + _local3, _local3);
_local4 = this["sview" + _local3];
_local4._x = _local7._x + (KOMAWIDTH / 2);
_local4._y = _local7._y + ((_local2 * KOMAHEIGHT) / 2);
ScoreSub(_local4, _local2);
if ((questLevel == 8) && (_local2 >= 4)) {
MCQuestUpper.clearNum++;
}
if (questLevel == 9) {
MCQuestUpper.tateNum++;
}
}
_local2 = int(_local6 / 100) % 10;
if (_local2 > 0) {
_local3 = (200 + (_local8 * 10)) + _local5;
attachMovie("scoreview", "sview" + _local3, _local3);
_local4 = this["sview" + _local3];
_local4._x = _local7._x + ((_local2 * KOMAWIDTH) / 2);
_local4._y = _local7._y + (KOMAHEIGHT / 2);
ScoreSub(_local4, _local2);
if ((questLevel == 8) && (_local2 >= 4)) {
MCQuestUpper.clearNum++;
}
if (questLevel == 9) {
MCQuestUpper.yokoNum++;
}
}
}
_local5++;
}
_local8++;
}
timer.TimerUp(_local9 * chainNum);
SetRemain();
}
function Quest4Proc(n) {
var _local1;
if (vcheckArray[n] > 0) {
if (remainNum > 0) {
MCQuestUpper.falseNum++;
_local1 = 1;
while (_local1 <= 7) {
vcheckArray[_local1] = 0;
if (_local1 == n) {
MCQuestUpper["i" + _local1].gotoAndStop(10 + _local1);
} else {
MCQuestUpper["i" + _local1].gotoAndStop(_local1);
}
_local1++;
}
}
} else {
MCQuestUpper["i" + n].gotoAndStop(10 + n);
}
}
function GotOneSub(n) {
vcheckArray[n]++;
switch (questLevel) {
case 1 :
if (n == 7) {
MCQuestUpper.animalNum1++;
} else {
MCQuestUpper.animalNum2++;
}
break;
case 2 :
if (n == 3) {
MCQuestUpper.animalNum1++;
} else if (n == 2) {
MCQuestUpper.animalNum2++;
}
MCQuestUpper.animalNum3 = Math.abs(MCQuestUpper.animalNum1 - MCQuestUpper.animalNum2);
break;
case 3 :
break;
case 4 :
break;
case 5 :
break;
case 6 :
break;
case 7 :
break;
case 8 :
break;
case 9 :
case 10 :
}
}
function ScoreSub(obj, b) {
var _local1;
_local1 = ((level * 10) * Math.pow(2, b - 3)) * Math.pow(2, chainNum - 1);
if (_local1 > 9999) {
_local1 = 9999;
}
if (questLevel == 0) {
obj._xscale = 200;
obj._yscale = 200;
obj.s = _local1;
} else {
obj._visible = false;
}
AddScore(_local1);
}
function BomProc() {
var _local7;
var _local8;
var _local4;
var _local2;
var _local6;
var _local5;
var _local3;
timer.TimerStop();
chainNum = 1;
PlaySound(catchSnd1);
MCQuestUpper.stepNum++;
if (questLevel == 4) {
Quest4Proc(bomnum);
}
_local7 = k00.myX + (KOMAWIDTH / 2);
_local8 = k00.myY + (KOMAHEIGHT / 2);
_local6 = 0;
_local4 = 0;
while (_local4 < 8) {
_local2 = 0;
while (_local2 < 8) {
if (((bomX == _local2) && (bomY == _local4)) || (board[_local4][_local2] == bomnum)) {
_local3 = this[("k" + _local4) + _local2];
if (_local3.bt._visible) {
_local6++;
_local3.Vanish();
GotOneSub(bomnum);
_local5 = (100 + (_local4 * 10)) + _local2;
attachMovie("scoreview", "sview" + _local5, _local5);
_local3 = this["sview" + _local5];
_local3._x = _local7 + (_local2 * KOMAWIDTH);
_local3._y = _local8 + (_local4 * KOMAHEIGHT);
ScoreSub(_local3, 3);
}
}
_local2++;
}
_local4++;
}
PlaySound(spvanish);
PlaySound(vanish3);
if (_local6 >= 4) {
MCQuestUpper.clearNum++;
}
timer.TimerUp(_local6);
SetRemain();
}
function SetRemain() {
var _local4;
var _local3;
var _local2;
var _local5;
if (questLevel > 0) {
return(undefined);
}
_local5 = remainNum;
remainNum = animalNum;
_local3 = 1;
while (_local3 <= animalNum) {
this["cnum" + _local3].gotoAndStop(vcheckArray[_local3] + 1);
if (lvupnum <= vcheckArray[_local3]) {
remainNum--;
this["checker" + _local3].gotoAndStop(2);
} else {
_local4 = _local3;
}
_local3++;
}
if (((_local5 > 1) && (remainNum == 1)) && (level < 10)) {
remainOne = _local4;
PlaySound(piyo1);
_local3 = 0;
while (_local3 < 8) {
_local2 = 0;
while (_local2 < 8) {
this[("k" + _local3) + _local2].SetFace();
_local2++;
}
_local3++;
}
}
}
function GlassesProc() {
var _local2;
if (gameState == 2) {
this[("k" + sy1) + sx1].focus._visible = false;
gameState = 1;
}
if (((gameState == 1) && (((fallingNum + shiftNum) + moveCount) == 0)) && (!inGlasses)) {
_local2 = 0;
while (_local2 < 64) {
if (reachMap[_local2]) {
this[("k" + int(_local2 / 8)) + (_local2 % 8)].gotoAndPlay("glasses");
}
_local2++;
}
inGlasses = true;
MCGlasses.gotoAndStop(1 + (--numGlasses));
PlaySound(soundGlasses);
} else {
PlaySound(clickSnd);
}
}
function PlaySound(s) {
if (sndmode) {
s.start();
}
}
var i;
var KOMAWIDTH = ((KOMAHEIGHT = 34));
var gameState;
var wait;
var SHIFTD = new Array(100);
i = 0;
while (i < 100) {
SHIFTD[i] = int((Math.sin((3.141593 * i) / 100) * KOMAWIDTH) / 3);
i++;
}
var shiftQueue = new Array(10);
var shiftQueueNum;
var isShiftEnd;
var isVanishRequest;
var isVanishEnd;
var isFallRequest;
var isFallEnd;
var isReach;
var reachMap = new Array(64);
var MAXBOMNUM = 3;
var bomboardNum;
var bomX = 0;
var bomY = 0;
var lastGlassesScore;
var numGlasses;
var inGlasses;
var board = new Array();
var board2 = new Array();
var vcheckArray = new Array(8);
var sx1;
var sy1;
var sx2;
var sy2;
var score;
var level;
var lvupnum;
var inQuestExplanation;
var questLevel;
var questMoney;
var nextMoney;
var resultMoney;
var judgeResults = new Array(11);
var animalNum;
var remainNum;
var remainOne;
var inAction;
var fallingNum;
var shiftNum;
var moveCount;
var chainNum;
var sndmode = true;
var menu_cm;
menu_cm = new ContextMenu();
menu_cm.builtInItems.forward_back = false;
menu_cm.builtInItems.loop = false;
menu_cm.builtInItems.play = false;
menu_cm.builtInItems.print = false;
menu_cm.builtInItems.quality = false;
menu_cm.builtInItems.rewind = false;
menu_cm.builtInItems.save = false;
menu_cm.builtInItems.zoom = false;
_root.menu = menu_cm;
soundGlasses = new Sound();
soundGlasses.attachSound("soundGlassesMaster");
bounce = new Sound();
bounce.attachSound("bounce");
catchSnd1 = new Sound();
catchSnd1.attachSound("catch1");
catchSnd2 = new Sound();
catchSnd2.attachSound("catch");
clickSnd = new Sound();
clickSnd.attachSound("click");
vanish1 = new Sound();
vanish1.attachSound("vanish1");
beep = new Sound();
beep.attachSound("beep");
fallendSnd = new Sound();
fallendSnd.attachSound("fallend");
vanish3 = new Sound();
vanish3.attachSound("vanish3");
vanish2 = new Sound();
vanish2.attachSound("vanish2");
vanish6 = new Sound();
vanish6.attachSound("vanish6");
curtain = new Sound();
curtain.attachSound("curtain");
bepbeep = new Sound();
bepbeep.attachSound("bepbeep");
buu = new Sound();
buu.attachSound("buu");
select = new Sound();
select.attachSound("select");
fallSnd = new Sound();
fallSnd.attachSound("fallSnd");
pipo1 = new Sound();
pipo1.attachSound("PIPO1");
pipo2 = new Sound();
pipo2.attachSound("PIPO2");
piyo1 = new Sound();
piyo1.attachSound("PIYO1");
piyo2 = new Sound();
piyo2.attachSound("PIYO2");
piyo3 = new Sound();
piyo3.attachSound("PIYO3");
up1 = new Sound();
up1.attachSound("up1");
up2 = new Sound();
up2.attachSound("up2");
up3 = new Sound();
up3.attachSound("up3");
up4 = new Sound();
up4.attachSound("up4");
notime = new Sound();
notime.attachSound("notime");
spvanish = new Sound();
spvanish.attachSound("spvanish");
pyoyon = new Sound();
pyoyon.attachSound("pyoyon");
bomsnd = new Sound();
bomsnd.attachSound("bomsnd");
fanSnd = new Sound();
fanSnd.attachSound("fanSnd");
clearSnd = new Sound();
clearSnd.attachSound("clearSnd");
snd_opening = new Sound();
snd_opening.attachSound("Snd_opening");
snd_opening.setVolume(50);
snd_opening2 = new Sound();
snd_opening2.attachSound("Snd_opening2");
snd_game = new Sound();
snd_game.attachSound("Snd_game");
snd_game.setVolume(50);
snd_game2 = new Sound();
snd_game2.attachSound("Snd_game2");
snd_game3 = new Sound();
snd_game3.attachSound("Snd_game3");
toggleHighQuality();
Frame 38
if (_framesloaded < _totalframes) {
gotoAndPlay(_currentframe - 1);
}
Frame 63
questLevel = 0;
stop();
Instance of Symbol 68 MovieClip "sndclip0" in Frame 63
onClipEvent (load) {
function sndstart() {
_parent.snd_opening.start(0, 999);
}
function sndstop() {
_parent.snd_opening.stop("Snd_opening");
}
if (_parent.sndmode) {
sndstart();
}
}
onClipEvent (unload) {
sndstop();
}
Frame 66
stop();
Frame 67
stop();
Frame 69
stop();
Frame 72
stop();
Frame 75
var i;
gameState = 0;
i = 0;
while (i < 8) {
board[i] = [0, 0, 0, 0, 0, 0, 0, 0];
board2[i] = [0, 0, 0, 0, 0, 0, 0, 0];
i++;
}
sx1 = (sy1 = (sx2 = (sy2 = 0)));
score = 0;
level = 1;
lvupnum = level + 2;
if (questLevel > 0) {
MCQuestUpper._visible = true;
inQuestExplanation = true;
gotoAndPlay ("questtop");
numGlasses = 0;
} else {
MCQuestUpper._visible = false;
inQuestExplanation = false;
gotoAndPlay ("levelstart");
numGlasses = 2;
}
lastGlassesScore = 0;
inGlasses = false;
MCGlasses.gotoAndStop(1 + numGlasses);
Instance of Symbol 68 MovieClip "sndclip" in Frame 75
onClipEvent (load) {
function sndstart() {
if (_parent.questLevel > 0) {
if (_parent.inQuestExplanation) {
_parent.snd_opening2.start(0, 999);
} else {
_parent.snd_game2.start(0, 999);
}
} else {
_parent.snd_game.start(0, 999);
}
}
function sndstop() {
_parent.snd_opening2.stop("Snd_opening2");
_parent.snd_game.stop("Snd_game");
_parent.snd_game2.stop("Snd_game2");
}
if (_parent.sndmode) {
sndstart();
}
}
onClipEvent (unload) {
sndstop();
}
Instance of Symbol 277 MovieClip "checker8" in Frame 75
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 318 MovieClip "lvupnumview2" in Frame 75
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 318 MovieClip "lvupnumview1" in Frame 75
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 319 MovieClip "cnum8" in Frame 75
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 436 MovieClip "timer" in Frame 75
onClipEvent (load) {
function TimerReset() {
rmpix = 0;
gage._xscale = (xWidth = 50);
rTime = 0;
if (_parent.level < 7) {
fTime = ((56 - (_parent.level * 6)) * 1000) * 1.2;
} else {
fTime = ((55 - (_parent.level * 5)) * 1000) * 1.2;
}
isRunning = false;
noTimeCheck = 0;
base.gotoAndStop(1);
gage.gotoAndStop(1);
}
function TimerStart() {
isRunning = true;
rTime = getTimer();
}
function TimerStop() {
isRunning = false;
}
function TimerUp(n) {
GageChange(n);
}
function GageChange(n) {
xWidth = xWidth + n;
if (xWidth < 0) {
xWidth = 0;
} else if (xWidth > 100) {
xWidth = 100;
}
if (xWidth <= 15) {
if ((noTimeCheck % 7) == 0) {
if (_parent.sndmode) {
_parent.bounce.start(0, 2);
}
}
if (noTimeCheck == 0) {
base.gotoAndStop(2);
gage.gotoAndStop(2);
}
noTimeCheck++;
} else if (noTimeCheck >= 1) {
noTimeCheck = 0;
_parent.bounce.stop("bounce");
base.gotoAndStop(1);
gage.gotoAndStop(1);
}
gage._xscale = xWidth;
if (xWidth == 0) {
_parent.bounce.stop("bounce");
base.gotoAndStop(1);
_parent.gotoAndPlay("gameover");
} else if (xWidth == 100) {
if (_parent.questLevel == 10) {
_parent.MCQuestUpper.clearNum++;
}
}
}
var rmpix;
var xWidth;
var rTime;
var fTime;
var isRunning;
var noTimeCheck;
TimerReset();
}
onClipEvent (enterFrame) {
var a;
var b;
var t;
if (isRunning && ((_parent.fallingNum + _parent.moveCount) == 0)) {
t = getTimer();
if (xWidth <= 10) {
a = (((100 * (t - rTime)) / fTime) / 2) + rmpix;
} else {
a = ((100 * (t - rTime)) / fTime) + rmpix;
}
if (a >= 1) {
b = Math.floor(a);
GageChange(-b);
rmpix = a - b;
rTime = t;
}
}
}
Frame 81
var i;
var j;
if (questLevel > 0) {
MCLevelUp._visible = false;
MCClear._visible = true;
} else {
MCLevelUp._visible = true;
MCClear._visible = false;
level++;
}
lvupnum = level + 2;
i = 0;
while (i < 8) {
j = 0;
while (j < 8) {
this[("k" + i) + j].FallOut();
j++;
}
i++;
}
PlaySound(fallSnd);
wait = 18;
Frame 85
if ((--wait) > 0) {
gotoAndPlay(_currentframe - 1);
}
Frame 87
if (fallingNum > 0) {
gotoAndPlay(_currentframe - 1);
}
if (questLevel > 0) {
gotoAndPlay ("questclear");
}
Frame 88
gameState = 0;
PlaySound(bepbeep);
timer.TimerReset();
vcheckArray = [undefined, 0, 0, 0, 0, 0, 0, 0, 0];
if (level < 7) {
animalNum = 7;
} else {
animalNum = 8;
}
remainNum = animalNum;
remainOne = 0;
if (questLevel == 1) {
gotoAndPlay ("questtop");
} else if (questLevel > 1) {
gotoAndPlay ("queststart");
}
Instance of Symbol 483 MovieClip in Frame 88
onClipEvent (load) {
gotoAndStop(_parent.level);
}
Instance of Symbol 484 MovieClip in Frame 88
onClipEvent (load) {
var i;
if (_parent.level < 7) {
_visible = false;
} else {
i = 1;
while (i <= 8) {
this["checker" + i].gotoAndStop(2);
i++;
}
if (_parent.level < 10) {
num.gotoAndStop(_parent.lvupnum);
} else {
num.gotoAndStop("mugen");
}
}
}
Instance of Symbol 485 MovieClip in Frame 88
onClipEvent (load) {
var i;
if (_parent.level < 7) {
i = 1;
while (i <= 7) {
this["checker" + i].gotoAndStop(2);
i++;
}
num.gotoAndStop(_parent.lvupnum);
} else {
_visible = false;
}
}
Frame 89
var i;
i = 1;
while (i <= 7) {
this["checker" + i].gotoAndStop(1);
this["cnum" + i].gotoAndStop(1);
lvupnumview1.gotoAndStop(lvupnum);
i++;
}
if (animalNum == 7) {
lvupnumview1._visible = true;
checker8._visible = false;
cnum8._visible = false;
lvupnumview2._visible = false;
} else {
lvupnumview1._visible = false;
checker8._visible = true;
cnum8._visible = true;
lvupnumview2._visible = true;
checker8.gotoAndStop(1);
cnum8.gotoAndStop(1);
if (level < 12) {
lvupnumview2.gotoAndStop(lvupnum);
} else {
lvupnumview2.gotoAndStop("mugen");
}
}
wait = 18;
Frame 93
if ((--wait) > 0) {
gotoAndPlay(_currentframe - 1);
} else {
gotoAndPlay ("newboard");
}
Frame 94
stop();
Frame 95
gotoAndPlay ("queststart");
Frame 96
var a;
var b;
var m;
var n;
var p;
sndclip.sndstop();
gameState = 0;
inQuestExplanation = true;
if (sndmode) {
sndclip.sndstart();
}
m = questMoney;
switch (questLevel) {
case 1 :
a = MCQuestUpper.animalNum2;
if (timer.xWidth == 0) {
txt = "????????????\n80%????";
p = 1;
n = Math.floor(m * 0.2);
} else if (a == 0) {
PlaySound(fanSnd);
txt = "????????!\n3?????";
p = 4;
n = m * 3;
} else if (a <= 3) {
txt = "???!?????!\n2?????";
p = 4;
n = m * 2;
} else if (a <= 6) {
txt = "??????????\n50%????";
p = 3;
n = Math.floor(m * 1.5);
} else if (a <= 10) {
txt = "???????\n30%????";
p = 3;
n = Math.floor(m * 1.3);
} else if (a <= 15) {
txt = "?????????????\n100?????";
p = 3;
n = m + 100;
} else if (a <= 19) {
txt = "?????\n10%????";
p = 2;
n = Math.floor(m * 0.9);
} else if (a <= 25) {
txt = "?????????\n30%????";
p = 2;
n = Math.floor(m * 0.7);
} else if (a <= 30) {
txt = "??????????\n50%????";
p = 1;
n = Math.floor(m * 0.5);
} else {
txt = "??????????????\n70%????";
p = 1;
n = Math.floor(m * 0.3);
}
break;
case 2 :
a = MCQuestUpper.animalNum1;
b = MCQuestUpper.animalNum2;
if (b < a) {
a = b;
}
if (timer.xWidth == 0) {
txt = "???????\n80%????";
p = 1;
n = Math.floor(m * 0.2);
} else if (a == 0) {
PlaySound(fanSnd);
txt = "????????!\n3?????";
p = 4;
n = m * 3;
} else if (a <= 3) {
txt = "??????????\n2?????";
p = 4;
n = Math.floor(m * 2);
} else if (a <= 6) {
txt = "????????????\n40%????";
p = 3;
n = Math.floor(m * 1.4);
} else if (a <= 9) {
txt = "?????????????\n10%????";
p = 3;
n = Math.floor(m * 1.1);
} else if (a <= 12) {
txt = "??????????\n100?????";
p = 3;
n = m + 100;
} else if (a <= 15) {
txt = "????\n10%????";
p = 2;
n = Math.floor(m * 0.9);
} else if (a <= 18) {
txt = "?????????\n30%????";
p = 2;
n = Math.floor(m * 0.7);
} else if (a <= 24) {
txt = "???????????\n50%????";
p = 1;
n = Math.floor(m * 0.5);
} else {
txt = "???????????????\n70%????";
p = 1;
n = Math.floor(m * 0.3);
}
break;
case 3 :
a = MCQuestUpper.stepNum;
if (timer.xWidth == 0) {
txt = "???????\n80%????";
p = 1;
n = Math.floor(m * 0.2);
} else if (a <= 10) {
PlaySound(fanSnd);
txt = "??????!\n10?????";
p = 4;
n = m * 10;
} else if (a <= 11) {
PlaySound(fanSnd);
txt = "?????????????\n5?????";
p = 4;
n = m * 5;
} else if (a <= 12) {
PlaySound(fanSnd);
txt = "?????!\n4?????";
p = 4;
n = m * 4;
} else if (a <= 13) {
txt = "??????????\n3?????";
p = 4;
n = m * 3;
} else if (a <= 14) {
txt = "??????\n2?????";
p = 3;
n = m * 2;
} else if (a <= 15) {
txt = "??????????????\n70%????";
p = 3;
n = Math.floor(m * 1.7);
} else if (a <= 16) {
txt = "?????????\n50%????";
p = 3;
n = Math.floor(m * 1.5);
} else if (a <= 17) {
txt = "???????????\n30%????";
p = 3;
n = Math.floor(m * 1.3);
} else if (a <= 18) {
txt = "?????????\n10%????";
p = 2;
n = Math.floor(m * 1.1);
} else if (a <= 19) {
txt = "????????\n100?????";
p = 2;
n = m + 100;
} else if (a <= 20) {
txt = "???\n50?????";
p = 2;
n = m + 50;
} else if (a <= 21) {
txt = "???????\n10%????";
p = 1;
n = Math.floor(m * 0.9);
} else if (a <= 22) {
txt = "????\n30%????";
p = 1;
n = Math.floor(m * 0.7);
} else if (a <= 23) {
txt = "??????????????\n50%????";
p = 1;
n = Math.floor(m * 0.5);
} else {
txt = "??????!????????\n70%????";
p = 1;
n = Math.floor(m * 0.3);
}
break;
case 4 :
a = MCQuestUpper.falseNum;
if (timer.xWidth == 0) {
txt = "???????\n80%????";
p = 1;
n = Math.floor(m * 0.2);
} else if (a == 0) {
PlaySound(fanSnd);
txt = "???????!\n3?????";
p = 4;
n = m * 3;
} else if (a <= 1) {
txt = "????????\n2?????";
p = 4;
n = Math.floor(m * 2);
} else if (a <= 2) {
txt = "???????????\n50%????";
p = 3;
n = Math.floor(m * 1.5);
} else if (a <= 3) {
txt = "?????????\n30%????";
p = 3;
n = Math.floor(m * 1.3);
} else if (a <= 4) {
txt = "????\n100?????";
p = 3;
n = m + 100;
} else if (a <= 5) {
txt = "???????\n10%????";
p = 2;
n = Math.floor(m * 0.9);
} else if (a <= 7) {
txt = "?????\n30%????";
p = 2;
n = Math.floor(m * 0.7);
} else if (a <= 10) {
txt = "?????????\n50%????";
p = 1;
n = Math.floor(m * 0.5);
} else {
txt = "????????????\n70%????";
p = 1;
n = Math.floor(m * 0.3);
}
break;
case 5 :
a = bomnum;
if (a == 1) {
txt = "???1.5??";
p = 4;
n = Math.floor(m * 1.5);
} else if (a == 2) {
txt = "?????2??";
p = 4;
n = m * 2;
} else if (a == 3) {
txt = "????200????????";
p = 1;
n = m - 200;
} else if (a == 4) {
txt = "?????300????";
p = 3;
n = m + 300;
} else if (a == 5) {
txt = "???100?????";
p = 2;
n = m + 100;
} else if (a == 6) {
txt = "????200?????";
p = 3;
n = m + 200;
} else if (a == 7) {
txt = "50?????50??";
p = 2;
n = m + 50;
}
break;
case 6 :
a = MCQuestUpper.stepNum;
if (timer.xWidth == 0) {
txt = "???????\n80%????";
p = 1;
n = Math.floor(m * 0.2);
} else if (a <= 5) {
PlaySound(fanSnd);
txt = "?~???????\n3?????";
p = 4;
n = m * 3;
} else if (a <= 10) {
txt = "??????????\n2?????";
p = 4;
n = m * 2;
} else if (a <= 15) {
txt = "????????????\n40%????";
p = 3;
n = Math.floor(m * 1.4);
} else if (a <= 20) {
txt = "?????????????\n10%????";
p = 3;
n = Math.floor(m * 1.1);
} else if (a <= 25) {
txt = "??????????\n100?????";
p = 3;
n = m + 100;
} else if (a <= 30) {
txt = "????\n10%????";
p = 2;
n = Math.floor(m * 0.9);
} else if (a <= 35) {
txt = "?????????\n30%????";
p = 2;
n = Math.floor(m * 0.7);
} else if (a <= 40) {
txt = "???????????\n50%????";
p = 1;
n = Math.floor(m * 0.5);
} else {
txt = "???????????????\n70%????";
p = 1;
n = Math.floor(m * 0.3);
}
break;
case 7 :
a = MCQuestUpper.allChainNum;
if (timer.xWidth == 0) {
txt = "???????\n80%????";
p = 1;
n = Math.floor(m * 0.2);
} else if (a == 0) {
PlaySound(fanSnd);
txt = "????????!\n3?????";
p = 4;
n = m * 3;
} else if (a == 1) {
txt = "???????\n2?????";
p = 3;
n = m * 2;
} else if (a == 2) {
txt = "?????\n?????";
p = 2;
n = m;
} else {
txt = "????~!\n50%????";
p = 1;
n = Math.floor(m * 0.5);
}
break;
case 8 :
a = MCQuestUpper.stepNum;
if (timer.xWidth == 0) {
txt = "???????\n80%????";
p = 1;
n = Math.floor(m * 0.2);
} else if (a <= 5) {
PlaySound(fanSnd);
txt = "????????!\n3?????";
p = 4;
n = m * 3;
} else if (a == 6) {
txt = "??????????\n2?????";
p = 4;
n = m * 2;
} else if (a == 7) {
txt = "????????????\n40%????";
p = 3;
n = Math.floor(m * 1.4);
} else if (a == 8) {
txt = "?????????????\n10%????";
p = 3;
n = Math.floor(m * 1.1);
} else if (a == 9) {
txt = "??????????\n100?????";
p = 3;
n = m + 100;
} else if (a == 10) {
txt = "????\n10%????";
p = 2;
n = Math.floor(m * 0.9);
} else if (a == 11) {
txt = "?????????\n30%????";
p = 2;
n = Math.floor(m * 0.7);
} else if (a == 12) {
txt = "???????????\n50%????";
p = 1;
n = Math.floor(m * 0.5);
} else {
txt = "???????????????\n70%????";
p = 1;
n = Math.floor(m * 0.3);
}
break;
case 9 :
a = MCQuestUpper.yokoNum;
if (timer.xWidth == 0) {
txt = "???????\n80%????";
p = 1;
n = Math.floor(m * 0.2);
} else if (a == 0) {
PlaySound(fanSnd);
txt = "????????!\n3?????";
p = 4;
n = m * 3;
} else if (a == 1) {
txt = "??????????\n2?????";
p = 4;
n = m * 2;
} else if (a == 2) {
txt = "????????????\n40%????";
p = 3;
n = Math.floor(m * 1.4);
} else if (a == 3) {
txt = "?????????????\n10%????";
p = 3;
n = Math.floor(m * 1.1);
} else if (a == 4) {
txt = "??????????\n100?????";
p = 3;
n = m + 100;
} else if (a == 5) {
txt = "????\n10%????";
p = 2;
n = Math.floor(m * 0.9);
} else if (a == 6) {
txt = "?????????\n30%????";
p = 2;
n = Math.floor(m * 0.7);
} else if (a == 7) {
txt = "???????????\n50%????";
p = 1;
n = Math.floor(m * 0.5);
} else {
txt = "???????????????\n70%????";
p = 1;
n = Math.floor(m * 0.3);
}
break;
case 10 :
a = MCQuestUpper.stepNum;
if (timer.xWidth == 0) {
txt = "???????\n80%????";
p = 1;
n = Math.floor(m * 0.2);
} else if (a <= 3) {
PlaySound(fanSnd);
txt = "????????!\n3?????";
p = 4;
n = m * 3;
} else if (a == 4) {
txt = "??????????\n2?????";
p = 4;
n = m * 2;
} else if (a == 5) {
txt = "????????????\n40%????";
p = 3;
n = Math.floor(m * 1.4);
} else if (a == 6) {
txt = "?????????????\n10%????";
p = 3;
n = Math.floor(m * 1.1);
} else if (a == 7) {
txt = "??????????\n100?????";
p = 3;
n = m + 100;
} else if (a == 8) {
txt = "????\n10%????";
p = 2;
n = Math.floor(m * 0.9);
} else if (a == 9) {
txt = "?????????\n30%????";
p = 2;
n = Math.floor(m * 0.7);
} else if (a == 10) {
txt = "???????????\n50%????";
p = 1;
n = Math.floor(m * 0.5);
} else {
txt = "???????????????\n70%????";
p = 1;
n = Math.floor(m * 0.3);
}
}
nextMoney = n;
MCJudge.MCJudgeMark.gotoAndStop(p);
judgeResults[questLevel] = p;
stop();
Frame 97
var a;
if (nextMoney < 10) {
nextMoney = 10;
} else if (nextMoney > 99999) {
nextMoney = 99999 /* 0x01869F */;
}
a = nextMoney - questMoney;
questMoney = nextMoney;
if (a >= 0) {
PlaySound(bepbeep);
txt = ((a + "?????\n??") + questMoney) + "?????????????";
} else {
PlaySound(buu);
txt = (((-a) + "?????\n??") + questMoney) + "????????????";
}
stop();
Frame 98
questLevel++;
if (questLevel <= 10) {
txt = "?????\u2026 ";
wait = 10;
} else {
gotoAndPlay ("questallclear");
}
Frame 100
if ((--wait) > 0) {
gotoAndPlay(_currentframe - 1);
} else {
gotoAndPlay ("queststart");
}
Frame 105
var i;
i = 1;
while (i <= 10) {
MCQuestJudgeBoard["MCJudgeMark" + i]._visible = false;
i++;
}
wait = 70;
resultMoney = 0;
Frame 107
var a;
if (((--wait) % 7) == 0) {
a = (70 - wait) / 7;
with (MCQuestJudgeBoard["MCJudgeMark" + a]) {
gotoAndStop(judgeResults[a]);
_visible = true;
}
PlaySound(pipo2);
}
resultMoney = int((questMoney * (70 - wait)) / 70);
if (wait == 0) {
stop();
} else {
gotoAndPlay(_currentframe - 1);
}
Frame 108
switch (questLevel) {
case 1 :
txt = "?????20????????\n???????????????";
break;
case 2 :
txt = "??????????15?????????????????";
break;
case 3 :
txt = "??30????????????!";
break;
case 4 :
txt = "????????????????????";
break;
case 5 :
txt = "????????????????????????????";
break;
case 6 :
txt = "????????????????????????????????????";
break;
case 7 :
txt = "????????7?????!";
break;
case 8 :
txt = "4??????5???????????????";
break;
case 9 :
txt = "?????10??????????????";
break;
case 10 :
txt = "???????????????";
}
if (questLevel == 5) {
MCArm0._visible = false;
MCArm1._visible = true;
ButtonNext._visible = false;
} else {
MCArm0._visible = true;
MCArm1._visible = false;
ButtonNext._visible = true;
}
MCQuestLevelBig.gotoAndStop(questLevel);
MCQuestUpper.gotoAndStop(questLevel);
MCQuestUpper.animalNum1 = 0;
MCQuestUpper.animalNum2 = 0;
MCQuestUpper.animalNum3 = 0;
MCQuestUpper.allChainNum = 0;
MCQuestUpper.falseNum = 0;
MCQuestUpper.stepNum = 0;
MCQuestUpper.noChainNum = 0;
MCQuestUpper.clearNum = 0;
MCQuestUpper.tateNum = 0;
MCQuestUpper.yokoNum = 0;
MCQuestUpper.MCQuestLevelSmall.gotoAndStop(questLevel);
MCMoney.play();
stop();
Frame 109
MCQuestExplanation.gotoAndStop(questLevel);
MCMoney.play();
stop();
Frame 110
sndclip.sndstop();
inQuestExplanation = false;
if (sndmode) {
sndclip.sndstart();
}
PlaySound(bepbeep);
timer.TimerReset();
vcheckArray = [undefined, 0, 0, 0, 0, 0, 0, 0, 0];
animalNum = 7;
remainNum = animalNum;
remainOne = 0;
Frame 111
var a;
var i;
var j;
var xx;
var yy;
var obj;
bomboardNum = 0;
i = 0;
while (i < 8) {
j = 0;
while (j < 8) {
if (questLevel == 1) {
a = 1 + int(Math.random() * 7);
if (Math.random() < 0.2) {
a = 7;
}
} else if (questLevel == 2) {
a = Math.random();
if (a < 0.1) {
a = 2;
} else if (a < 0.2) {
a = 3;
} else {
a = 1 + int(Math.random() * 7);
}
} else if (questLevel == 3) {
a = 1 + int(Math.random() * 4);
} else {
a = 1 + int(Math.random() * animalNum);
}
if ((bomboardNum < MAXBOMNUM) && (!((questLevel >= 6) && (questLevel <= 9)))) {
if (int(Math.random() * 300) == 0) {
bomboardNum++;
a = 9;
}
}
yy = 0;
if (i >= 2) {
if (board[i - 1][j] == board[i - 2][j]) {
yy = board[i - 1][j];
}
}
xx = 0;
if (j >= 2) {
if (board[i][j - 1] == board[i][j - 2]) {
xx = board[i][j - 1];
}
}
while ((a == yy) || (a == xx)) {
a = (a % animalNum) + 1;
}
board[i][j] = a;
j++;
}
i++;
}
fallingNum = (shiftNum = (moveCount = 0));
isFallEnd = (isVanishEnd = false);
if (questLevel == 6) {
board[0][int(Math.random() * 8)] = 9;
bomboardNum++;
}
i = 0;
while (i < 8) {
j = 7;
while (j >= 0) {
obj = this[("k" + j) + i];
obj._y = obj._y - (KOMAHEIGHT * 7);
obj.SetFace();
obj.Fall();
j--;
}
i++;
}
PlaySound(fallSnd);
Frame 115
gameState = 1;
inGlasses = false;
shiftQueueNum = 0;
isShiftEnd = false;
isVanishRequest = false;
isFallRequest = false;
isInAction = false;
chainNum = 0;
timer.TimerStart();
CheckReach();
Frame 116
var a;
var b;
var i;
var j;
var k;
var n;
var f;
var x1;
var x2;
var y1;
var y2;
var obj;
var obj1;
var obj2;
if (isShiftEnd) {
a = shiftQueue[0];
shiftQueueNum--;
i = 0;
while (i < shiftQueueNum) {
shiftQueue[i] = shiftQueue[i + 1];
i++;
}
y2 = int(a / 1000);
x2 = int(a / 100) % 10;
y1 = int(a / 10) % 10;
x1 = a % 10;
obj1 = this[("k" + y1) + x1];
obj2 = this[("k" + y2) + x2];
obj1.bt._visible = true;
obj2.bt._visible = true;
if (CheckVanish()) {
MCQuestUpper.stepNum++;
if (board2[y1][x1] == 0) {
obj1.gotoAndPlay("nom");
}
if (board2[y2][x2] == 0) {
obj2.gotoAndPlay("nom");
}
VanishProc();
} else {
chainNum = 0;
ShiftProc(x1, y1, x2, y2, true);
}
isShiftEnd = false;
}
if (isVanishEnd) {
if (questLevel == 4) {
n = 0;
i = 1;
while (i <= 7) {
if (vcheckArray[i] == 0) {
n++;
}
i++;
}
if (n < remainNum) {
PlaySound(pipo2);
} else if (remainNum < n) {
PlaySound(buu);
}
remainNum = n;
}
isFallRequest = true;
isVanishEnd = false;
}
if (isFallEnd) {
PlaySound(fallendSnd);
isVanishRequest = true;
isFallRequest = true;
isFallEnd = false;
}
if (isVanishRequest) {
if (CheckVanish()) {
VanishProc();
}
isVanishRequest = false;
inAction = true;
}
x1 = -1;
if (isFallRequest) {
i = 0;
while (i < 8) {
j = 7;
while (j >= 0) {
if (board[j][i] == 0) {
k = j - 1;
while (true) {
if (k < 0) {
if (gameState == 2) {
if ((sx1 == i) && (sy1 < j)) {
this[("k" + sy1) + sx1].MCFocus._visible = false;
gameState = 1;
}
}
a = k00.myY;
while (j >= 0) {
if (questLevel == 1) {
b = 1 + int(Math.random() * 7);
if (Math.random() < 0.2) {
b = 7;
}
} else if (questLevel == 2) {
if (Math.random() < 0.2) {
if (MCQuestUpper.animalNum1 < MCQuestUpper.animalNum2) {
b = 2;
} else {
b = 3;
}
} else {
b = 1 + int(Math.random() * 7);
}
} else if (questLevel == 3) {
b = 1 + int(Math.random() * 4);
} else {
b = 1 + int(Math.random() * animalNum);
}
if ((((bomboardNum < MAXBOMNUM) && (questLevel != 6)) && (questLevel != 8)) && (questLevel != 9)) {
if (int(Math.random() * 300) == 0) {
b = 9;
bomboardNum++;
}
}
board[j][i] = b;
if (j == 0) {
if (x1 < 0) {
x1 = i;
} else if (Math.random() < 0.5) {
x1 = i;
}
}
obj = this[("k" + j) + i];
obj._y = (a = a - KOMAHEIGHT);
obj.SetFace();
obj.Fall();
j--;
}
break;
}
a = board[k][i];
if (this[("k" + k) + i].bt._visible) {
if (a > 0) {
if (gameState == 2) {
if ((sx1 == i) && (sy1 == k)) {
this[("k" + sy1) + sx1].MCFocus._visible = false;
gameState = 1;
}
}
board[j][i] = a;
obj = this[("k" + j) + i];
obj._y = obj._y - ((j - k) * KOMAHEIGHT);
obj.SetFace();
obj.Fall();
board[k][i] = 0;
this[("k" + k) + i].SetFace();
break;
}
} else {
j = k;
break;
}
k--;
}
}
j--;
}
i++;
}
if (((questLevel == 6) && (x1 >= 0)) && (bomboardNum == 0)) {
board[0][x1] = 9;
this["k0" + x1].SetFace();
bomboardNum++;
}
isFallRequest = false;
}
if (inAction && (((fallingNum + shiftNum) + moveCount) == 0)) {
timer.TimerStart();
chainNum = 0;
f = false;
if (remainNum > 0) {
CheckReach();
if ((!isReach) && (bomboardNum == 0)) {
if (gameState == 2) {
this[("k" + sy1) + sx1].MCFocus._visible = false;
}
gameState = 0;
PlaySound(pyoyon);
gotoAndPlay ("nomore");
} else {
switch (questLevel) {
case 1 :
if (MCQuestUpper.animalNum1 >= 20) {
f = true;
}
case 2 :
if (MCQuestUpper.animalNum3 >= 15) {
f = true;
}
break;
case 3 :
if (MCQuestUpper.allChainNum >= 30) {
f = true;
}
break;
case 4 :
if (remainNum == 0) {
f = true;
}
break;
case 6 :
i = 0;
while (i < 8) {
if (board[7][i] == 9) {
f = true;
break;
}
i++;
}
break;
case 7 :
if (MCQuestUpper.noChainNum >= 7) {
f = true;
}
break;
case 8 :
if (MCQuestUpper.clearNum >= 5) {
f = true;
}
break;
case 9 :
if (MCQuestUpper.tateNum >= 10) {
f = true;
}
break;
case 10 :
if (MCQuestUpper.clearNum <= 0) {
break;
}
f = true;
}
}
} else {
f = true;
}
if (f) {
if (gameState == 2) {
this[("k" + sy1) + sx1].MCFocus._visible = false;
}
gameState = 0;
timer.TimerStop();
PlaySound(clearSnd);
gotoAndPlay ("levelup");
}
inAction = false;
}
Frame 117
gotoAndPlay(_currentframe - 1);
Frame 124
var i;
var j;
i = 0;
while (i < 8) {
j = 0;
while (j < 8) {
this[("k" + i) + j].FallOut();
j++;
}
i++;
}
AddScore(1000);
PlaySound(fallSnd);
Frame 126
if (fallingNum > 0) {
gotoAndPlay(_currentframe - 1);
}
Frame 129
gotoAndPlay ("newboard");
Frame 130
gameState = 0;
ButtonPause._visible = false;
timer.TimerStop();
Instance of Symbol 627 MovieClip in Frame 130
onClipEvent (load) {
gotoAndStop(Math.ceil(Math.random() * 7));
}
Frame 135
stop();
Frame 140
gameState = 1;
ButtonPause._visible = true;
timer.TimerStart();
gotoAndPlay ("gameloop");
Frame 141
gameState = 0;
timer.TimerStop();
if (sndmode) {
sndclip.sndstop();
}
Frame 143
gotoAndStop ("title");
Frame 146
var i;
var j;
var obj;
if (gameState == 2) {
this[("k" + sy1) + sx1].focus._visible = false;
}
gameState = 0;
timer.TimerStop();
if (sndmode) {
sndclip.sndstop();
}
PlaySound(bomsnd);
i = 0;
while (i < 8) {
j = 0;
while (j < 8) {
obj = this[("k" + i) + j];
if (reachMap[(i * 8) + j] && (questLevel == 0)) {
obj.remainOneView();
} else {
obj.Shake();
}
obj.bt._visible = false;
j++;
}
i++;
}
Frame 154
var i;
var j;
i = 0;
while (i < 8) {
j = 0;
while (j < 8) {
if ((!reachMap[(i * 8) + j]) || (questLevel > 0)) {
this[("k" + i) + j].Bom();
}
j++;
}
i++;
}
Frame 190
var i;
var j;
if (questLevel > 0) {
i = 0;
while (i < 8) {
j = 0;
while (j < 8) {
with (this[("k" + i) + j]) {
_x = myX;
_y = myY;
vx = (vy = 0);
faces.gotoAndStop(1);
gotoAndPlay("nom");
}
j++;
}
i++;
}
gotoAndPlay ("questclear");
}
Frame 191
stop();
switch (Math.floor(Math.random() * 3)) {
case 0 :
if (level <= 1) {
txt = "??????!";
} else if (level <= 2) {
txt = "????????????";
} else if (level <= 3) {
txt = "????300?????";
} else if (level <= 4) {
txt = "?????????";
} else if (level <= 5) {
txt = "???????????????";
} else if (level <= 6) {
txt = "???????????";
} else if (level <= 7) {
txt = "?????????????\u2026 ";
} else if (level <= 8) {
txt = "??????????";
} else if (level <= 9) {
txt = "?????";
} else {
txt = "??????";
}
break;
case 1 :
if (level <= 1) {
txt = "????????????";
} else if (level <= 2) {
txt = "???????!";
} else if (level <= 3) {
txt = "???????????????";
} else if (level <= 4) {
txt = "????!";
} else if (level <= 5) {
txt = "??????????";
} else if (level <= 6) {
txt = "??????????????";
} else if (level <= 7) {
txt = "?~????~???~?";
} else if (level <= 8) {
txt = "??????????";
} else if (level <= 9) {
txt = "??????";
} else {
txt = "??????";
}
break;
case 2 :
if (level <= 1) {
txt = "?\u00B7?\u00B7??";
} else if (level <= 2) {
txt = "1?????!";
} else if (level <= 3) {
txt = "???????!";
} else if (level <= 4) {
txt = "?????????????!";
} else if (level <= 5) {
txt = "??????????!";
} else if (level <= 6) {
txt = "???????????";
} else if (level <= 7) {
txt = "????????????";
} else if (level <= 8) {
txt = "??????????????";
} else if (level <= 9) {
txt = "??????????";
} else {
txt = "???\u00B7???\u00B7??????";
}
}
Symbol 58 MovieClip Frame 1
stop();
Symbol 59 MovieClip [scoreview] Frame 13
if (s >= 1000) {
gotoAndPlay ("k4");
} else if (s >= 100) {
gotoAndPlay ("k3");
}
Symbol 59 MovieClip [scoreview] Frame 14
n10.gotoAndStop(int(s / 10));
n1.gotoAndStop(10);
Symbol 59 MovieClip [scoreview] Frame 19
this.removeMovieClip();
Symbol 59 MovieClip [scoreview] Frame 21
n100.gotoAndStop(int(s / 100));
n10.gotoAndStop(1 + ((9 + (int(s / 10) % 10)) % 10));
n1.gotoAndStop(10);
Symbol 59 MovieClip [scoreview] Frame 25
this.removeMovieClip();
Symbol 59 MovieClip [scoreview] Frame 27
n1000.gotoAndStop(int(s / 1000));
n100.gotoAndStop(1 + ((9 + (int(s / 100) % 10)) % 10));
n10.gotoAndStop(1 + ((9 + (int(s / 10) % 10)) % 10));
n1.gotoAndStop(10);
Symbol 59 MovieClip [scoreview] Frame 31
this.removeMovieClip();
Symbol 68 MovieClip Frame 1
stop();
Symbol 85 Button
on (rollOver) {
PlaySound(select);
}
on (press) {
if (sndmode) {
sndmode = false;
sndclip0.sndstop();
} else {
sndmode = true;
sndclip0.sndstart();
}
}
Symbol 94 Button
on (press) {
PlaySound(vanish3);
gotoAndPlay ("howto");
}
on (rollOver) {
PlaySound(select);
}
Symbol 98 Button
on (release) {
toggleHighQuality();
}
Symbol 104 Button
on (press) {
PlaySound(vanish3);
gotoAndPlay ("puzzle");
}
on (rollOver) {
PlaySound(select);
}
Symbol 107 Button
on (press) {
PlaySound(vanish3);
questLevel = 0;
gotoAndPlay ("game");
}
on (rollOver) {
PlaySound(select);
}
Symbol 133 Button
on (press) {
PlaySound(vanish3);
play();
}
on (rollOver) {
PlaySound(select);
}
Symbol 142 Button
on (rollOver) {
PlaySound(select);
}
on (press) {
PlaySound(vanish3);
gotoAndStop ("title");
}
Symbol 153 MovieClip Frame 1
stop();
Symbol 173 Button
on (press) {
_root.vanish3.start();
_root.gotoAndStop("title");
}
on (rollOver) {
_root.selectSnd.start();
}
Symbol 177 Button
on (rollOver) {
PlaySound(selectSnd);
}
on (press) {
PlaySound(vanish3);
gotoAndStop ("title");
}
Symbol 187 Button
on (rollOver) {
PlaySound(select);
}
on (press) {
PlaySound(vanish3);
getURL ("http://kiteretsu.robot.co.jp/", "_blank");
}
Symbol 196 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 14
gotoAndPlay ("blink");
Symbol 196 MovieClip Frame 17
stop();
Symbol 196 MovieClip Frame 35
gotoAndPlay ("find");
Symbol 196 MovieClip Frame 37
stop();
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 15
gotoAndPlay ("blink");
Symbol 202 MovieClip Frame 16
stop();
Symbol 202 MovieClip Frame 32
gotoAndPlay ("find");
Symbol 202 MovieClip Frame 33
stop();
Symbol 206 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 14
gotoAndPlay ("blink");
Symbol 206 MovieClip Frame 15
stop();
Symbol 206 MovieClip Frame 29
gotoAndPlay ("find");
Symbol 206 MovieClip Frame 30
stop();
Symbol 212 MovieClip Frame 1
stop();
Symbol 212 MovieClip Frame 14
gotoAndPlay ("blink");
Symbol 212 MovieClip Frame 15
stop();
Symbol 212 MovieClip Frame 29
gotoAndPlay ("find");
Symbol 212 MovieClip Frame 30
stop();
Symbol 219 MovieClip Frame 1
this.stop();
Symbol 219 MovieClip Frame 19
this.gotoAndPlay("blink");
Symbol 219 MovieClip Frame 20
this.stop();
Symbol 219 MovieClip Frame 28
this.gotoAndPlay("find");
Symbol 219 MovieClip Frame 29
this.stop();
Symbol 227 MovieClip Frame 1
this.stop();
Symbol 227 MovieClip Frame 14
this.gotoAndPlay("blink");
Symbol 227 MovieClip Frame 15
this.stop();
Symbol 227 MovieClip Frame 23
this.gotoAndPlay("find");
Symbol 227 MovieClip Frame 24
this.stop();
Symbol 234 MovieClip Frame 1
this.stop();
Symbol 234 MovieClip Frame 14
this.gotoAndPlay("blink");
Symbol 234 MovieClip Frame 15
this.stop();
Symbol 234 MovieClip Frame 29
this.gotoAndPlay("find");
Symbol 234 MovieClip Frame 30
this.stop();
Symbol 239 MovieClip Frame 1
this.stop();
Symbol 239 MovieClip Frame 14
this.gotoAndPlay("blink");
Symbol 239 MovieClip Frame 15
this.stop();
Symbol 239 MovieClip Frame 29
this.gotoAndPlay("find");
Symbol 239 MovieClip Frame 30
this.stop();
Symbol 248 MovieClip Frame 1
this.stop();
Symbol 248 MovieClip Frame 14
this.gotoAndPlay("blink");
Symbol 248 MovieClip Frame 15
this.stop();
Symbol 248 MovieClip Frame 23
this.gotoAndPlay("find");
Symbol 248 MovieClip Frame 24
this.stop();
Symbol 249 MovieClip Frame 1
stop();
Symbol 250 Button
on (press) {
var a;
var obj;
var x0;
var x1;
var y0;
var y1;
y0 = _parent.myposY;
x0 = _parent.myposX;
y1 = _parent._parent.sy1;
x1 = _parent._parent.sx1;
if (_parent._parent.gameState == 2) {
obj = _parent._parent[("k" + y1) + x1];
obj.MCFocus._visible = false;
obj.SetFace();
if ((!((Math.abs(y1 - y0) == 1) && (x1 == x0))) && (!((Math.abs(x1 - x0) == 1) && (y1 == y0)))) {
_parent._parent.gameState = 1;
}
}
if (_parent._parent.gameState == 1) {
if (_parent.mychara == 9) {
if (_parent._parent.questLevel == 3) {
a = 1 + int(Math.random() * 4);
_parent._parent.bomnum = a;
_parent.faces.koma.gotoAndStop(a);
} else {
_parent.faces.koma.stop();
_parent._parent.bomnum = _parent.faces.koma._currentframe;
}
_parent._parent.bomboardNum--;
_parent._parent.bomX = x0;
_parent._parent.bomY = y0;
_parent._parent.BomProc();
} else {
_parent._parent.PlaySound(_parent._parent.catchSnd1);
_parent.MCFocus._visible = true;
_parent.faces.face.gotoAndPlay("blink");
_parent._parent.sy1 = y0;
_parent._parent.sx1 = x0;
_parent._parent.gameState = 2;
}
} else if (_parent._parent.gameState == 2) {
_parent._parent.gameState = 1;
_parent._parent.ShiftProc(x1, y1, x0, y0, false);
}
}
on (dragOut) {
var f;
var x0;
var x1;
var x2;
var y0;
var y1;
var y2;
var vx;
var vy;
x0 = _parent.myposX;
y0 = _parent.myposY;
x1 = _parent._parent.sx1;
y1 = _parent._parent.sy1;
if (((_parent._parent.gameState == 2) && (y0 == y1)) && (x0 == x1)) {
vx = Math.floor(_xmouse / _parent._parent.KOMAWIDTH);
vy = Math.floor(_ymouse / _parent._parent.KOMAHEIGHT);
f = false;
if (vy == 0) {
if ((vx < 0) && (x1 > 0)) {
x2 = x1 - 1;
y2 = y1;
f = true;
} else if ((vx > 0) && (x1 < 7)) {
x2 = x1 + 1;
y2 = y1;
f = true;
}
} else if (vx == 0) {
if ((vy < 0) && (y1 > 0)) {
x2 = x1;
y2 = y1 - 1;
f = true;
} else if ((vy > 0) && (y1 < 7)) {
x2 = x1;
y2 = y1 + 1;
f = true;
}
}
if (f) {
if (_parent._parent[("k" + y2) + x2].bt._visible) {
_parent._parent.ShiftProc(x1, y1, x2, y2, false);
_parent.MCFocus._visible = false;
_parent.SetFace();
_parent._parent.gameState = 1;
}
}
}
}
Symbol 251 MovieClip Frame 1
stop();
Symbol 256 MovieClip Frame 1
function SetFace() {
var _local2;
mychara = _parent.board[myposY][myposX];
faces.gotoAndStop(1 + mychara);
_local2 = false;
if (_parent.remainNum == 1) {
_local2 = mychara == _parent.remainOne;
}
if (_local2) {
faces.face.gotoAndStop("mad");
} else {
faces.face.gotoAndStop("nom");
}
}
function remainOneView() {
faces.face.gotoAndPlay("find");
}
function Vanish() {
_parent.moveCount++;
bt._visible = false;
gotoAndPlay ("vanish");
}
function Fall() {
_parent.fallingNum++;
vy = 5;
bt._visible = false;
gotoAndPlay ("fall");
}
function FallOut() {
_parent.fallingNum++;
vy = 5;
endpos = myY + (_parent.KOMAHEIGHT * 7);
bt._visible = false;
gotoAndPlay ("fallout");
}
function Shift(a, b) {
_parent.shiftNum++;
vx = a;
vy = b;
v = 5;
bt._visible = false;
gotoAndPlay ("shift");
}
function Bom() {
vx = -40 + ((50 + Math.ceil(Math.random() * 60)) % 80);
vy = -40 + ((50 + Math.ceil(Math.random() * 60)) % 80);
gotoAndPlay ("bom");
}
function Shake() {
vx = -3 + (int(Math.random() * 2) * 6);
gotoAndPlay ("shake");
}
var myX = _x;
var myY = _y;
var myposX = Number(_name.charAt(2));
var myposY = Number(_name.charAt(1));
var mychara;
var endpos;
var vx;
var vy;
var v;
var isShiftBack;
Instance of Symbol 253 MovieClip "MCFocus" in Symbol 256 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 256 MovieClip Frame 3
stop();
Symbol 256 MovieClip Frame 8
_y = (_y + vy);
if (_y >= myY) {
_y = myY;
_parent.fallingNum--;
bt._visible = true;
_parent.isFallEnd = true;
if ((vy > 5) && (!((_parent.remainNum == 1) && (mychara == _parent.remainOne)))) {
faces.face.gotoAndStop("blink");
} else {
gotoAndPlay ("nom");
}
} else {
vy = vy + 8;
gotoAndPlay(_currentframe - 1);
}
Symbol 256 MovieClip Frame 11
faces.face.gotoAndStop("nom");
gotoAndPlay ("nom");
Symbol 256 MovieClip Frame 12
var f;
f = false;
if (vx != 0) {
_x = (_x + (v * vx));
if (vx < 0) {
if (_x <= myX) {
f = true;
}
} else if (myX <= _x) {
f = true;
}
if (!f) {
_y = (myY - (vx * _parent.SHIFTD[int((Math.abs(_x - myX) * 100) / _parent.KOMAWIDTH)]));
}
} else {
_y = (_y + (v * vy));
if (vy < 0) {
if (_y <= myY) {
f = true;
}
} else if (myY <= _y) {
f = true;
}
if (!f) {
_x = (myX - (vy * _parent.SHIFTD[int((Math.abs(_y - myY) * 100) / _parent.KOMAHEIGHT)]));
}
}
if (f) {
_x = myX;
_y = myY;
_parent.shiftNum--;
if (isShiftBack) {
bt._visible = true;
_parent.isVanishRequest = true;
_parent.isFallRequest = true;
_parent.inAction = true;
gotoAndPlay ("nom");
} else {
_parent.isShiftEnd = true;
}
} else {
v++;
}
Symbol 256 MovieClip Frame 13
gotoAndPlay(_currentframe - 1);
Symbol 256 MovieClip Frame 18
_x = (_x + vx);
_y = (_y + vy);
Symbol 256 MovieClip Frame 19
gotoAndPlay(_currentframe - 1);
Symbol 256 MovieClip Frame 23
_x = (_x + vx);
Symbol 256 MovieClip Frame 24
_x = (_x - vx);
Symbol 256 MovieClip Frame 25
gotoAndPlay ("shake");
Symbol 256 MovieClip Frame 29
faces.face.gotoAndStop("sup");
Symbol 256 MovieClip Frame 30
_y = (_y + vy);
if (endpos <= _y) {
_parent.fallingNum--;
_y = myY;
faces.gotoAndStop(1);
gotoAndPlay ("nom");
} else {
vy = vy + 4;
}
Symbol 256 MovieClip Frame 31
gotoAndPlay(_currentframe - 1);
Symbol 256 MovieClip Frame 56
_parent.inGlasses = false;
gotoAndPlay ("nom");
Symbol 256 MovieClip Frame 57
faces.face.gotoAndStop("sup");
Symbol 256 MovieClip Frame 63
faces.face.gotoAndStop("vanish");
Symbol 256 MovieClip Frame 67
faces.gotoAndStop(1);
Symbol 256 MovieClip Frame 69
_parent.moveCount--;
bt._visible = true;
_parent.board[myposY][myposX] = 0;
_parent.isVanishEnd = true;
gotoAndPlay ("nom");
Symbol 265 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 1
this.stop();
Symbol 277 MovieClip Frame 1
this.stop();
Symbol 280 MovieClip Frame 1
this.stop();
Symbol 285 MovieClip Frame 1
this.stop();
Symbol 289 MovieClip Frame 1
this.stop();
Symbol 292 MovieClip Frame 1
this.stop();
Symbol 318 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 1
stop();
Symbol 345 MovieClip Frame 1
this.stop();
Symbol 407 MovieClip Frame 1
stop();
Instance of Symbol 407 MovieClip "i1" in Symbol 429 MovieClip Frame 4
onClipEvent (load) {
mynum = 1;
this.gotoAndStop(mynum);
}
Instance of Symbol 407 MovieClip "i2" in Symbol 429 MovieClip Frame 4
onClipEvent (load) {
mynum = 2;
this.gotoAndStop(mynum);
}
Instance of Symbol 407 MovieClip "i3" in Symbol 429 MovieClip Frame 4
onClipEvent (load) {
mynum = 3;
this.gotoAndStop(mynum);
}
Instance of Symbol 407 MovieClip "i4" in Symbol 429 MovieClip Frame 4
onClipEvent (load) {
mynum = 4;
this.gotoAndStop(mynum);
}
Instance of Symbol 407 MovieClip "i5" in Symbol 429 MovieClip Frame 4
onClipEvent (load) {
mynum = 5;
this.gotoAndStop(mynum);
}
Instance of Symbol 407 MovieClip "i6" in Symbol 429 MovieClip Frame 4
onClipEvent (load) {
mynum = 6;
this.gotoAndStop(mynum);
}
Instance of Symbol 407 MovieClip "i7" in Symbol 429 MovieClip Frame 4
onClipEvent (load) {
mynum = 7;
this.gotoAndStop(mynum);
}
Symbol 433 MovieClip Frame 1
stop();
Symbol 435 MovieClip Frame 1
stop();
Symbol 442 Button
on (press) {
_parent.GlassesProc();
}
Symbol 443 MovieClip Frame 1
stop();
Symbol 444 Button
on (press) {
if (sndmode) {
sndmode = false;
sndclip.sndstop();
} else {
sndmode = true;
sndclip.sndstart();
}
}
on (rollOver) {
PlaySound(select);
}
Symbol 445 Button
on (press) {
if (gameState == 1) {
PlaySound(piyo1);
gotoAndPlay ("pause");
} else {
PlaySound(clickSnd);
}
}
on (rollOver) {
PlaySound(select);
}
Symbol 450 Button
on (press) {
if (gameState == 1) {
PlaySound(vanish2);
gameState = 0;
timer.TimerStop();
gotoAndPlay ("quit");
} else if (inQuestExplanation) {
PlaySound(vanish2);
gameState = 0;
timer.TimerStop();
gotoAndPlay ("quit");
} else {
PlaySound(clickSnd);
}
}
on (rollOver) {
PlaySound(select);
}
Symbol 483 MovieClip Frame 1
stop();
Symbol 488 Button
on (press) {
PlaySound(clickSnd);
}
Symbol 489 MovieClip Frame 1
stop();
Symbol 489 MovieClip Frame 2
stop();
Symbol 506 Button
on (press) {
PlaySound(vanish3);
play();
}
on (rollOver) {
PlaySound(select);
}
Symbol 519 Button
on (press) {
PlaySound(vanish3);
play();
}
on (rollOver) {
PlaySound(select);
}
Symbol 529 MovieClip Frame 30
stop();
Symbol 539 Button
on (press) {
_parent.PlaySound(_parent.vanish3);
play();
}
on (rollOver) {
_parent.PlaySound(_parent.select);
}
Symbol 540 MovieClip Frame 7
stop();
Symbol 540 MovieClip Frame 12
stop();
_parent.play();
Symbol 546 Button
on (rollOver) {
PlaySound(select);
}
on (press) {
PlaySound(vanish3);
gotoAndStop ("title");
}
Symbol 572 MovieClip Frame 1
stop();
Symbol 577 Button
on (press) {
koma.stop();
_parent.bomnum = koma._currentframe;
play();
}
Symbol 578 MovieClip Frame 1
stop();
Symbol 578 MovieClip Frame 50
stop();
_parent.gotoAndPlay("questclear");
Symbol 627 MovieClip Frame 1
stop();
Symbol 629 Button
on (press) {
play();
}
Symbol 630 MovieClip Frame 1
_parent.stop();
Symbol 630 MovieClip Frame 2
_parent.PlaySound(_parent.curtain);
Symbol 630 MovieClip Frame 13
_parent.play();
stop();
Symbol 641 Button
on (rollOver) {
PlaySound(select);
}
on (press) {
PlaySound(vanish3);
gotoAndPlay ("game");
}