Combined Code
frame 1 {
stop();
Stage.showMenu = false;
}
// unknown tag 88 length 142
button 9 {
on (release) {
gotoAndPlay('ready');
}
}
button 12 {
on (release) {
gotoAndStop('desc');
}
}
movieClip 15 {
}
frame 11 {
stop();
}
// unknown tag 88 length 80
// unknown tag 88 length 67
button 25 {
on (release) {
gotoAndStop('title');
}
}
frame 21 {
tScore = 0;
totalscore.text = tScore;
moko = 0;
totalMoko.text = 0;
totalTime = 3000;
nowTime = totalTime;
timer.text = (String(totalTime / 100 + 0.005)).slice(0, -1);
}
movieClip 27 {
frame 20 {
gotoAndPlay(1);
}
}
// unknown tag 88 length 529
movieClip 35 {
}
movieClip 36 {
frame 1 {
stop();
}
}
movieClip 41 {
}
movieClip 44 {
}
movieClip 46 {
}
movieClip 49 {
}
frame 136 {
function plus(score) {
trace(score);
plusScore_mc.gotoAndPlay(2);
plusScore_mc.plusScore_in_mc.plusScore.text = score;
tScore += score;
totalscore.text = tScore;
}
function randomOpen() {
var v4 = Math.floor(Math.random() * targetSum) + 1;
var v3 = 'target' + v4 + '_mc';
var theMC = this[v3];
theMC.gotoAndPlay('open');
theMC.attackSum = Math.ceil(Math.random() * (attackMax - attackMin + 1)) + attackMin - 1;
theMC.count.text = theMC.attackSum;
theMC.attack_btn.onRelease = function () {
function defeat(mc) {
mc.gotoAndPlay('defeat');
++moko;
totalMoko.text = moko;
var v1 = 800 + 1000 * (moko / 5);
trace(v1);
plusScore_mc.gotoAndPlay(2);
plusScore_mc.plusScore_in_mc.plusScore.text = v1;
tScore += v1;
totalscore.text = tScore;
serif_mc.gotoAndPlay('defeat!');
}
--theMC.attackSum;
theMC.count.text = theMC.attackSum;
trace(theMC.attackSum);
if (theMC.attackSum < 1) {
defeat(theMC);
}
};
}
stop();
var targetSum = 9;
var attackMin = 3;
var attackMax = 15;
this.onLoad = randomOpen();
onEnterFrame = function () {
nowTime -= 3.333333333333334;
timer.text = (String(Math.floor(nowTime) / 100 + 0.005)).slice(0, -1);
if (nowTime <= 0) {
resultScore = totalscore.text;
resultMoko = totalMoko.text;
onEnterFrame = null;
gotoAndPlay('end');
}
};
}
movieClip 53 {
}
movieClip 54 {
}
button 57 {
on (press) {
_root.plus(-200);
}
}
button 60 {
on (press) {
_root.plus(100);
this.mokoGa_mc.gotoAndPlay('ga');
}
}
// unknown tag 88 length 506
movieClip 66 {
}
movieClip 68 {
frame 1 {
stop();
}
}
movieClip 71 {
frame 1 {
stop();
var attackSum;
}
frame 11 {
play();
}
frame 14 {
stop();
}
frame 23 {
gotoAndStop(1);
_parent.randomOpen();
}
}
movieClip 73 {
}
movieClip 74 {
frame 1 {
stop();
}
frame 11 {
play();
}
frame 20 {
gotoAndStop(1);
}
}
frame 146 {
play();
totalscore.text = resultScore;
totalMoko.text = resultMoko;
timer.text = 0;
trace('end');
}
movieClip 77 {
}
frame 176 {
trace(resultScore);
if (resultScore >= 50000) {
kene_result.gotoAndPlay('rank1');
} else {
if (resultScore >= 45000) {
kene_result.gotoAndPlay('rank2');
} else {
if (resultScore >= 40000) {
kene_result.gotoAndPlay('rank3');
} else {
if (resultScore >= 35000) {
kene_result.gotoAndPlay('rank4');
} else {
if (resultScore >= 30000) {
kene_result.gotoAndPlay('rank5');
} else {
if (resultScore > 0) {
kene_result.gotoAndPlay('rank6');
} else {
if (resultScore == 0) {
kene_result.gotoAndPlay('rank7');
} else {
if (resultScore < 0) {
kene_result.gotoAndPlay('rank8');
} else {
kene_result.gotoAndPlay('error');
}
}
}
}
}
}
}
}
}
movieClip 79 {
}
movieClip 85 {
}
movieClip 91 {
}
movieClip 95 {
frame 1 {
stop();
}
frame 11 {
play();
}
frame 30 {
stop();
}
frame 31 {
play();
}
frame 50 {
stop();
}
frame 51 {
play();
}
frame 70 {
stop();
}
frame 71 {
play();
}
frame 90 {
stop();
}
frame 91 {
play();
}
frame 110 {
stop();
}
frame 111 {
play();
}
frame 130 {
stop();
}
frame 131 {
play();
}
frame 150 {
stop();
}
frame 151 {
play();
}
frame 170 {
stop();
}
frame 171 {
play();
}
frame 190 {
stop();
}
}
button 98 {
on (release) {
this.gotoAndPlay('ready');
}
}
button 101 {
on (release) {
this.gotoAndPlay('title');
}
}
frame 185 {
stop();
}