Frame 2
_root.IKUJI_VELO = 2;
_root.RECOVER_VAL = 10;
_root.RECOVER_VAL_HELL = 7;
_root.WARE_TYPE_MAX = 7;
_root.HAIR_TYPE_MAX = 4;
_root.FACE_TYPE_MAX = 5;
_root.ITEM_TYPE_MAX = 6;
_root.KOKUHAKU_TYPE_MAX = 12;
_root.KOKUHAKU_WIDTH_MAX = 290;
_root.KOKUHAKU_HEIGHT_MAX = 54;
_root.WINDOW_WIDTH = 450;
_root.WINDOW_HEIGHT = 600;
_root.SCORE_STEP = 10;
_root.BORDER_SCORE = _root.SCORE_STEP * 30;
_root.BORDER_HELL = _root.BORDER_SCORE;
_root.hair_type = 0;
_root.item_type = 0;
_root.ware_type = 0;
_root.face_type = 0;
_root.ikuji_value = 100;
_root.score = 0;
_root.kokuhaku_type = 0;
_root.kokuhaku_pos_x = -1000;
_root.kokuhaku_pos_y = -1000;
var syupon_snd = new Sound(this);
syupon_snd.attachSound("syupon");
var yossya_snd = new Sound(this);
yossya_snd.attachSound("yossya");
var puin_snd = new Sound(this);
puin_snd.attachSound("puin");
var kyupin_snd = new Sound(this);
kyupin_snd.attachSound("kyupin");
var tyakin_snd = new Sound(this);
tyakin_snd.attachSound("tyakin");
tyakin_snd.setVolume(50);
var chu_snd = new Sound(this);
chu_snd.attachSound("chu");
var bgm_snd = new Sound(this);
bgm_snd.attachSound("bgm");
gotoAndPlay("entry_init");
Frame 3
_root.ritsu.beni._alpha = 0;
_root.score = 0;
_root.bgm_snd.start();
gotoAndPlay("entry_loop");
Frame 6
gotoAndPlay("entry_loop");
Frame 7
_root.kyupin_snd.start();
_root.ikuji_value = 100;
_root.score = 0;
_root.ritsu.beni._alpha = 0;
gotoAndPlay("game_loop");
Frame 8
if (0 >= _root.ikuji_value) {
_root.bgm_snd.stop();
gotoAndPlay("result_init");
} else {
_root.ikuji_value = _root.ikuji_value - _root.IKUJI_VELO;
}
Frame 9
gotoAndPlay("game_loop");
Frame 10
_root.syupon_snd.start();
gotoAndPlay("result_loop");
Frame 12
gotoAndPlay("result_loop");
Symbol 20000 Button
on (press) {
_root.item_type = _root.item_type + 1;
if (_root.item_type >= _root.ITEM_TYPE_MAX) {
_root.item_type = 0;
}
_root.puin_snd.start();
}
on () {
}
Symbol 20001 Button
on (press) {
_root.hair_type = _root.hair_type + 1;
if (_root.hair_type >= _root.HAIR_TYPE_MAX) {
_root.hair_type = 0;
}
_root.puin_snd.start();
}
on () {
}
Symbol 20002 Button
on (press) {
_root.ware_type = _root.ware_type + 1;
if (_root.ware_type >= _root.WARE_TYPE_MAX) {
_root.ware_type = 0;
}
_root.puin_snd.start();
}
on () {
}
Instance of Symbol 72 MovieClip [ikuji_gauge_sub] "ikuji_gauge_value" in Symbol 68 MovieClip [ikuji_gauge] Frame 1
onClipEvent (enterFrame) {
this._xscale = (100 - _root.ikuji_value) * -1;
}
Symbol 20003 Button
on (press) {
_root.kokuhaku_type = random(_root.KOKUHAKU_TYPE_MAX - 1) + 1;
this._x = random(_root.WINDOW_WIDTH - _root.KOKUHAKU_WIDTH_MAX);
this._y = random(_root.WINDOW_HEIGHT - _root.KOKUHAKU_HEIGHT_MAX);
if (_root.score >= _root.BORDER_HELL) {
_root.ikuji_value = _root.ikuji_value + _root.RECOVER_VAL_HELL;
} else {
_root.ikuji_value = _root.ikuji_value + _root.RECOVER_VAL;
}
if (100 < this.ikuji_value) {
_root.ikuji_value = 100;
}
_root.score = _root.score + _root.SCORE_STEP;
if (_root.score >= _root.BORDER_SCORE) {
_root.chu_snd.start();
} else {
_root.tyakin_snd.start();
}
gotoAndPlay(1);
}
on () {
}
Symbol 20004 Button
on (press) {
_root.kokuhaku_type = random(_root.KOKUHAKU_TYPE_MAX - 1) + 1;
this._x = random(_root.WINDOW_WIDTH - _root.KOKUHAKU_WIDTH_MAX);
this._y = random(_root.WINDOW_HEIGHT - _root.KOKUHAKU_HEIGHT_MAX);
if (_root.score >= _root.BORDER_HELL) {
_root.ikuji_value = _root.ikuji_value + _root.RECOVER_VAL_HELL;
} else {
_root.ikuji_value = _root.ikuji_value + _root.RECOVER_VAL;
}
if (100 < this.ikuji_value) {
_root.ikuji_value = 100;
}
_root.score = _root.score + _root.SCORE_STEP;
if (_root.score >= _root.BORDER_SCORE) {
_root.chu_snd.start();
} else {
_root.tyakin_snd.start();
}
gotoAndPlay(1);
}
on () {
}
Symbol 20005 Button
on (press) {
_root.kokuhaku_type = random(_root.KOKUHAKU_TYPE_MAX - 1) + 1;
this._x = random(_root.WINDOW_WIDTH - _root.KOKUHAKU_WIDTH_MAX);
this._y = random(_root.WINDOW_HEIGHT - _root.KOKUHAKU_HEIGHT_MAX);
if (_root.score >= _root.BORDER_HELL) {
_root.ikuji_value = _root.ikuji_value + _root.RECOVER_VAL_HELL;
} else {
_root.ikuji_value = _root.ikuji_value + _root.RECOVER_VAL;
}
if (100 < this.ikuji_value) {
_root.ikuji_value = 100;
}
_root.score = _root.score + _root.SCORE_STEP;
if (_root.score >= _root.BORDER_SCORE) {
_root.chu_snd.start();
} else {
_root.tyakin_snd.start();
}
gotoAndPlay(1);
}
on () {
}
Symbol 20006 Button
on (press) {
_root.kokuhaku_type = random(_root.KOKUHAKU_TYPE_MAX - 1) + 1;
this._x = random(_root.WINDOW_WIDTH - _root.KOKUHAKU_WIDTH_MAX);
this._y = random(_root.WINDOW_HEIGHT - _root.KOKUHAKU_HEIGHT_MAX);
if (_root.score >= _root.BORDER_HELL) {
_root.ikuji_value = _root.ikuji_value + _root.RECOVER_VAL_HELL;
} else {
_root.ikuji_value = _root.ikuji_value + _root.RECOVER_VAL;
}
if (100 < this.ikuji_value) {
_root.ikuji_value = 100;
}
_root.score = _root.score + _root.SCORE_STEP;
if (_root.score >= _root.BORDER_SCORE) {
_root.chu_snd.start();
} else {
_root.tyakin_snd.start();
}
gotoAndPlay(1);
}
on () {
}
Symbol 20007 Button
on (press) {
_root.kokuhaku_type = random(_root.KOKUHAKU_TYPE_MAX - 1) + 1;
this._x = random(_root.WINDOW_WIDTH - _root.KOKUHAKU_WIDTH_MAX);
this._y = random(_root.WINDOW_HEIGHT - _root.KOKUHAKU_HEIGHT_MAX);
if (_root.score >= _root.BORDER_HELL) {
_root.ikuji_value = _root.ikuji_value + _root.RECOVER_VAL_HELL;
} else {
_root.ikuji_value = _root.ikuji_value + _root.RECOVER_VAL;
}
if (100 < this.ikuji_value) {
_root.ikuji_value = 100;
}
_root.score = _root.score + _root.SCORE_STEP;
if (_root.score >= _root.BORDER_SCORE) {
_root.chu_snd.start();
} else {
_root.tyakin_snd.start();
}
gotoAndPlay(1);
}
on () {
}
Symbol 20008 Button
on (press) {
_root.kokuhaku_type = random(_root.KOKUHAKU_TYPE_MAX - 1) + 1;
this._x = random(_root.WINDOW_WIDTH - _root.KOKUHAKU_WIDTH_MAX);
this._y = random(_root.WINDOW_HEIGHT - _root.KOKUHAKU_HEIGHT_MAX);
if (_root.score >= _root.BORDER_HELL) {
_root.ikuji_value = _root.ikuji_value + _root.RECOVER_VAL_HELL;
} else {
_root.ikuji_value = _root.ikuji_value + _root.RECOVER_VAL;
}
if (100 < this.ikuji_value) {
_root.ikuji_value = 100;
}
_root.score = _root.score + _root.SCORE_STEP;
if (_root.score >= _root.BORDER_SCORE) {
_root.chu_snd.start();
} else {
_root.tyakin_snd.start();
}
gotoAndPlay(1);
}
on () {
}
Symbol 20009 Button
on (press) {
_root.kokuhaku_type = random(_root.KOKUHAKU_TYPE_MAX - 1) + 1;
this._x = random(_root.WINDOW_WIDTH - _root.KOKUHAKU_WIDTH_MAX);
this._y = random(_root.WINDOW_HEIGHT - _root.KOKUHAKU_HEIGHT_MAX);
if (_root.score >= _root.BORDER_HELL) {
_root.ikuji_value = _root.ikuji_value + _root.RECOVER_VAL_HELL;
} else {
_root.ikuji_value = _root.ikuji_value + _root.RECOVER_VAL;
}
if (100 < this.ikuji_value) {
_root.ikuji_value = 100;
}
_root.score = _root.score + _root.SCORE_STEP;
if (_root.score >= _root.BORDER_SCORE) {
_root.chu_snd.start();
} else {
_root.tyakin_snd.start();
}
gotoAndPlay(1);
}
on () {
}
Symbol 20010 Button
on (press) {
_root.kokuhaku_type = random(_root.KOKUHAKU_TYPE_MAX - 1) + 1;
this._x = random(_root.WINDOW_WIDTH - _root.KOKUHAKU_WIDTH_MAX);
this._y = random(_root.WINDOW_HEIGHT - _root.KOKUHAKU_HEIGHT_MAX);
if (_root.score >= _root.BORDER_HELL) {
_root.ikuji_value = _root.ikuji_value + _root.RECOVER_VAL_HELL;
} else {
_root.ikuji_value = _root.ikuji_value + _root.RECOVER_VAL;
}
if (100 < this.ikuji_value) {
_root.ikuji_value = 100;
}
_root.score = _root.score + _root.SCORE_STEP;
if (_root.score >= _root.BORDER_SCORE) {
_root.chu_snd.start();
} else {
_root.tyakin_snd.start();
}
gotoAndPlay(1);
}
on () {
}
Symbol 20011 Button
on (press) {
_root.kokuhaku_type = random(_root.KOKUHAKU_TYPE_MAX - 1) + 1;
this._x = random(_root.WINDOW_WIDTH - _root.KOKUHAKU_WIDTH_MAX);
this._y = random(_root.WINDOW_HEIGHT - _root.KOKUHAKU_HEIGHT_MAX);
if (_root.score >= _root.BORDER_HELL) {
_root.ikuji_value = _root.ikuji_value + _root.RECOVER_VAL_HELL;
} else {
_root.ikuji_value = _root.ikuji_value + _root.RECOVER_VAL;
}
if (100 < this.ikuji_value) {
_root.ikuji_value = 100;
}
_root.score = _root.score + _root.SCORE_STEP;
if (_root.score >= _root.BORDER_SCORE) {
_root.chu_snd.start();
} else {
_root.tyakin_snd.start();
}
gotoAndPlay(1);
}
on () {
}
Symbol 20012 Button
on (press) {
_root.kokuhaku_type = random(_root.KOKUHAKU_TYPE_MAX - 1) + 1;
this._x = random(_root.WINDOW_WIDTH - _root.KOKUHAKU_WIDTH_MAX);
this._y = random(_root.WINDOW_HEIGHT - _root.KOKUHAKU_HEIGHT_MAX);
if (_root.score >= _root.BORDER_HELL) {
_root.ikuji_value = _root.ikuji_value + _root.RECOVER_VAL_HELL;
} else {
_root.ikuji_value = _root.ikuji_value + _root.RECOVER_VAL;
}
if (100 < this.ikuji_value) {
_root.ikuji_value = 100;
}
_root.score = _root.score + _root.SCORE_STEP;
if (_root.score >= _root.BORDER_SCORE) {
_root.chu_snd.start();
} else {
_root.tyakin_snd.start();
}
gotoAndPlay(1);
}
on () {
}
Symbol 20013 Button
on (press) {
_root.kokuhaku_type = random(_root.KOKUHAKU_TYPE_MAX - 1) + 1;
this._x = random(_root.WINDOW_WIDTH - _root.KOKUHAKU_WIDTH_MAX);
this._y = random(_root.WINDOW_HEIGHT - _root.KOKUHAKU_HEIGHT_MAX);
if (_root.score >= _root.BORDER_HELL) {
_root.ikuji_value = _root.ikuji_value + _root.RECOVER_VAL_HELL;
} else {
_root.ikuji_value = _root.ikuji_value + _root.RECOVER_VAL;
}
if (100 < this.ikuji_value) {
_root.ikuji_value = 100;
}
_root.score = _root.score + _root.SCORE_STEP;
if (_root.score >= _root.BORDER_SCORE) {
_root.chu_snd.start();
} else {
_root.tyakin_snd.start();
}
gotoAndPlay(1);
}
on () {
}
Symbol 98 MovieClip [kokuhaku] Frame 1
gotoAndPlay((_root.kokuhaku_type + 1) * 2);
Symbol 98 MovieClip [kokuhaku] Frame 2
_root.kokuhaku_type = random(_root.KOKUHAKU_TYPE_MAX - 1) + 1;
this._x = random(450 - 320);
this._y = random(600 - 30);
gotoAndPlay(1);
Symbol 98 MovieClip [kokuhaku] Frame 3
gotoAndPlay((_root.kokuhaku_type + 1) * 2);
Symbol 98 MovieClip [kokuhaku] Frame 5
gotoAndPlay((_root.kokuhaku_type + 1) * 2);
Symbol 98 MovieClip [kokuhaku] Frame 7
gotoAndPlay((_root.kokuhaku_type + 1) * 2);
Symbol 98 MovieClip [kokuhaku] Frame 9
gotoAndPlay((_root.kokuhaku_type + 1) * 2);
Symbol 98 MovieClip [kokuhaku] Frame 11
gotoAndPlay((_root.kokuhaku_type + 1) * 2);
Symbol 98 MovieClip [kokuhaku] Frame 13
gotoAndPlay((_root.kokuhaku_type + 1) * 2);
Symbol 98 MovieClip [kokuhaku] Frame 15
gotoAndPlay((_root.kokuhaku_type + 1) * 2);
Symbol 98 MovieClip [kokuhaku] Frame 17
gotoAndPlay((_root.kokuhaku_type + 1) * 2);
Symbol 98 MovieClip [kokuhaku] Frame 19
gotoAndPlay((_root.kokuhaku_type + 1) * 2);
Symbol 98 MovieClip [kokuhaku] Frame 21
gotoAndPlay((_root.kokuhaku_type + 1) * 2);
Symbol 98 MovieClip [kokuhaku] Frame 23
gotoAndPlay((_root.kokuhaku_type + 1) * 2);
Symbol 98 MovieClip [kokuhaku] Frame 25
gotoAndPlay((_root.kokuhaku_type + 1) * 2);
Instance of Symbol 50 MovieClip [layer2_beni] "beni" in Symbol 60 MovieClip [ritsu] Frame 1
onClipEvent (enterFrame) {
var beni = ((_root.score * 100) / _root.BORDER_SCORE);
if (100 < beni) {
beni = 100;
}
this._alpha = 10 * Math.sqrt(beni);
fscommand ("ParaFlaTrace", this._alpha);
}
Instance of Symbol 52 MovieClip [layer3_face] "face" in Symbol 60 MovieClip [ritsu] Frame 1
onClipEvent (enterFrame) {
var range = (_root.BORDER_SCORE / _root.FACE_TYPE_MAX);
i = 0;
for ( ; i < _root.FACE_TYPE_MAX ; i++) {
if (_root.score < ((i + 1) * range)) {
if (_root.face_type < i) {
_root.yossya_snd.start();
}
_root.face_type = i;
break;
}
}
}
Instance of Symbol 152 MovieClip [hearts] "hearts" in Symbol 60 MovieClip [ritsu] Frame 1
onClipEvent (enterFrame) {
if (_root.BORDER_SCORE >= _root.score) {
this._alpha = 0;
} else {
this._alpha = 100;
}
}
Symbol 138 MovieClip [layer0_backhair] Frame 1
if (_root.hair_type >= 2) {
gotoAndPlay(4);
} else {
gotoAndPlay(2);
}
Symbol 138 MovieClip [layer0_backhair] Frame 3
if (_root.hair_type >= 2) {
gotoAndPlay(4);
} else {
gotoAndPlay(2);
}
Symbol 138 MovieClip [layer0_backhair] Frame 5
if (_root.hair_type >= 2) {
gotoAndPlay(4);
} else {
gotoAndPlay(2);
}
Symbol 52 MovieClip [layer3_face] Frame 1
gotoAndPlay((_root.face_type + 1) * 2);
Symbol 52 MovieClip [layer3_face] Frame 3
gotoAndPlay((_root.face_type + 1) * 2);
Symbol 52 MovieClip [layer3_face] Frame 5
gotoAndPlay((_root.face_type + 1) * 2);
Symbol 52 MovieClip [layer3_face] Frame 7
gotoAndPlay((_root.face_type + 1) * 2);
Symbol 52 MovieClip [layer3_face] Frame 9
gotoAndPlay((_root.face_type + 1) * 2);
Symbol 52 MovieClip [layer3_face] Frame 11
gotoAndPlay((_root.face_type + 1) * 2);
Symbol 54 MovieClip [layer4_ware] Frame 1
gotoAndPlay((_root.ware_type + 1) * 2);
Symbol 54 MovieClip [layer4_ware] Frame 3
gotoAndPlay((_root.ware_type + 1) * 2);
Symbol 54 MovieClip [layer4_ware] Frame 5
gotoAndPlay((_root.ware_type + 1) * 2);
Symbol 54 MovieClip [layer4_ware] Frame 7
gotoAndPlay((_root.ware_type + 1) * 2);
Symbol 54 MovieClip [layer4_ware] Frame 9
gotoAndPlay((_root.ware_type + 1) * 2);
Symbol 54 MovieClip [layer4_ware] Frame 11
gotoAndPlay((_root.ware_type + 1) * 2);
Symbol 54 MovieClip [layer4_ware] Frame 13
gotoAndPlay((_root.ware_type + 1) * 2);
Symbol 54 MovieClip [layer4_ware] Frame 15
gotoAndPlay((_root.ware_type + 1) * 2);
Symbol 56 MovieClip [layer5_hair] Frame 1
if ((_root.hair_type % 2) != 0) {
gotoAndPlay(4);
} else {
gotoAndPlay(2);
}
Symbol 56 MovieClip [layer5_hair] Frame 3
if ((_root.hair_type % 2) != 0) {
gotoAndPlay(4);
} else {
gotoAndPlay(2);
}
Symbol 56 MovieClip [layer5_hair] Frame 5
if ((_root.hair_type % 2) != 0) {
gotoAndPlay(4);
} else {
gotoAndPlay(2);
}
Symbol 58 MovieClip [layer6_item] Frame 1
gotoAndPlay((_root.item_type + 1) * 2);
Symbol 58 MovieClip [layer6_item] Frame 3
gotoAndPlay((_root.item_type + 1) * 2);
Symbol 58 MovieClip [layer6_item] Frame 5
gotoAndPlay((_root.item_type + 1) * 2);
Symbol 58 MovieClip [layer6_item] Frame 7
gotoAndPlay((_root.item_type + 1) * 2);
Symbol 58 MovieClip [layer6_item] Frame 9
gotoAndPlay((_root.item_type + 1) * 2);
Symbol 58 MovieClip [layer6_item] Frame 11
gotoAndPlay((_root.item_type + 1) * 2);
Symbol 58 MovieClip [layer6_item] Frame 13
gotoAndPlay((_root.item_type + 1) * 2);
Symbol 152 MovieClip [hearts] Frame 41
gotoAndPlay("11");
Symbol 20014 Button
on (release) {
gotoAndPlay("game_init");
}
Symbol 20015 Button
on (release) {
gotoAndPlay("entry_init");
}