Frame 2
function init_game_data() {
_root.glad = 0;
_root.love = 0;
_root.ice_counter = 0;
_root.is_over = 0;
_root.is_wind = 0;
_root.is_syupon = 0;
_root.req_kiran = false;
_root.kokuhaku_counter = 0;
_root.is_kokuhaku_btn_enable = false;
}
function init_avatar() {
_root.body_type = _root.BODY_TYPE_DS;
_root.face_type = _root.FACE_TYPE_DS;
_root.option_type = _root.OPTION_TYPE_NONE;
_root.text_type = _root.TEXT_TYPE_NONE;
_root.text_counter = 0;
}
function get_face_type() {
if (!((_root.love >= 2) && (_root.glad >= 2))) {
if (!((_root.love >= 1) && (_root.glad >= 2))) {
if (!((_root.love >= 1) && (_root.glad >= 0))) {
if (!((_root.love >= 1) && (_root.glad < 0))) {
if (!((_root.love < 1) && (_root.glad < 0))) {
if (!((_root.love == 0) && (_root.glad >= 2))) {
if (!((_root.love == 0) && (_root.glad >= 1))) {
return(_root.FACE_TYPE_DEFAULT);
}
return(_root.FACE_TYPE_SMILE);
}
return(_root.FACE_TYPE_NIKKORI);
}
return(_root.FACE_TYPE_ANGRY);
}
return(_root.FACE_TYPE_TEREANGRY);
}
return(_root.FACE_TYPE_TERE);
}
return(_root.FACE_TYPE_TEREWARAI);
}
return(_root.FACE_TYPE_CHOUTERE);
}
_root.GLAD_MAX = 3;
_root.GLAD_MIN = -3;
_root.LOVE_MAX = 10;
_root.LOVE_MIN = -3;
_root.TEXT_DISP_FRAME = 100;
_root.MELTDOWN_LIMIT = 4;
_root.KOKUHAKU_DISP_FRAME = 100;
_root.KOKUHAKU_RAND_INTERVAL = 6;
_root.BODY_TYPE_DS = 0;
_root.BODY_TYPE_ICE = 1;
_root.BODY_TYPE_NONE = 2;
_root.BODY_TYPE_MAX = 3;
_root.FACE_TYPE_DEFAULT = 0;
_root.FACE_TYPE_DS = 1;
_root.FACE_TYPE_SMILE = 2;
_root.FACE_TYPE_NIKKORI = 3;
_root.FACE_TYPE_TERE = 4;
_root.FACE_TYPE_CHOUTERE = 5;
_root.FACE_TYPE_TEREWARAI = 6;
_root.FACE_TYPE_POCKEY = 7;
_root.FACE_TYPE_ANGRY = 8;
_root.FACE_TYPE_TEREANGRY = 9;
_root.FACE_TYPE_KAAA = 10;
_root.FACE_TYPE_SYUPON = 11;
_root.FACE_TYPE_NAMIDAME = 12;
_root.FACE_TYPE_MAX = 13;
_root.OPTION_TYPE_NONE = 0;
_root.OPTION_TYPE_GLASS = 1;
_root.OPTION_TYPE_MAX = 2;
_root.TEXT_TYPE_NONE = 0;
_root.TEXT_TYPE_THX = 1;
_root.TEXT_TYPE_BAKA = 2;
_root.TEXT_TYPE_UMEE = 3;
_root.TEXT_TYPE_SONNANI = 4;
_root.TEXT_TYPE_MAX = 5;
_root.glad = 0;
_root.love = 0;
_root.ice_counter = 0;
_root.is_over = false;
_root.is_wind = false;
_root.is_syupon = false;
_root.req_kiran = false;
_root.kokuhaku_counter = 0;
_root.is_kokuhaku_btn_enable = false;
_root.body_type = _root.BODY_TYPE_DS;
_root.face_type = _root.FACE_TYPE_DS;
_root.option_type = _root.OPTION_TYPE_NONE;
_root.text_type = _root.TEXT_TYPE_NONE;
_root.text_counter = 0;
var chu_snd = new Sound(this);
chu_snd.attachSound("chu");
var galtu_snd = new Sound(this);
galtu_snd.attachSound("galtu");
var kyupin_snd = new Sound(this);
kyupin_snd.attachSound("kyupin");
var keee_snd = new Sound(this);
keee_snd.attachSound("keee");
var syupon_snd = new Sound(this);
syupon_snd.attachSound("syupon");
var wandaba_snd = new Sound(this);
wandaba_snd.attachSound("wandaba");
var bori_snd = new Sound(this);
bori_snd.attachSound("bori");
var fufufu_snd = new Sound(this);
fufufu_snd.attachSound("fufufu");
var yeah_snd = new Sound(this);
yeah_snd.attachSound("yeah");
var bgm_snd = new Sound(this);
bgm_snd.attachSound("bgm");
gotoAndPlay("GAME_INIT");
Frame 3
stopAllSounds();
_root.init_game_data();
_root.init_avatar();
_root.bgm_snd.start();
_root.bgm_snd.onSoundComplete = function () {
_root.bgm_snd.start();
};
gotoAndPlay("ENTRY_LOOP");
Frame 5
next_label = "GAME_LOOP";
if (!_root.is_over) {
if (!_root.is_wind) {
if (_root.is_syupon) {
next_label = "SYUPON_INIT";
}
} else {
next_label = "WIND_INIT";
}
} else {
next_label = "OVER_INIT";
}
gotoAndPlay(next_label);
Frame 7
gotoAndPlay("OVER_LOOP");
Frame 9
gotoAndPlay("OVER_LOOP");
Frame 10
_root.bgm_snd.stop("bgm");
gotoAndPlay("WIND_LOOP");
Frame 13
gotoAndPlay("WIND_LOOP");
Frame 14
_root.face_type = _root.FACE_TYPE_SYUPON;
_root.syupon_snd.start();
gotoAndPlay("SYUPON_LOOP");
Frame 81
stop();
Frame 82
gotoAndPlay("SYUPON_LOOP");
Frame 83
stop();
Symbol 78 MovieClip [game_cube] Frame 33
stop();
Symbol 92 MovieClip [kiran] Frame 2
if (!_root.req_kiran) {
gotoAndPlay("TOP");
} else {
_root.req_kiran = false;
gotoAndPlay("KIRAN");
}
Symbol 92 MovieClip [kiran] Frame 10
gotoAndPlay("TOP");
Symbol 82 MovieClip [wind] Frame 2
if (!_root.is_wind) {
gotoAndPlay("TOP");
} else {
gotoAndPlay("WIND");
}
Symbol 82 MovieClip [wind] Frame 153
_root.face_type = _root.FACE_TYPE_NAMIDAME;
Symbol 82 MovieClip [wind] Frame 854
stop();
Symbol 20000 Button
on (press) {
pou_snd.start();
gotoAndPlay("_root.GAME_INIT");
}
on () {
}
Symbol 94 MovieClip [replay] Frame 21
stop();
Symbol 20001 Button
on (press) {
if (_root.GLAD_MIN < _root.glad) {
_root.glad = _root.glad - 1;
}
_root.req_kiran = true;
_root.face_type = _root.get_face_type();
}
on () {
}
Symbol 20002 Button
on (press) {
if (_root.glad < _root.GLAD_MAX) {
_root.glad = _root.glad + 1;
}
_root.fufufu_snd.start();
_root.face_type = _root.get_face_type();
}
on () {
}
Symbol 20003 Button
on (press) {
_root.bgm_snd.stop("bgm");
_root.keee_snd.start();
_root.glad = _root.GLAD_MIN;
_root.is_over = true;
_root.face_type = _root.get_face_type();
}
on () {
}
Symbol 20004 Button
on (press) {
if (_root.face_type != _root.FACE_TYPE_POCKEY) {
_root.chu_snd.start();
} else {
_root.bori_snd.start();
}
if (_root.face_type != _root.FACE_TYPE_KAAA) {
if (0 < _root.love) {
if (_root.glad < _root.GLAD_MAX) {
_root.glad = _root.glad + 1;
}
if (_root.love < _root.LOVE_MAX) {
_root.love = _root.love + 1;
if (_root.love == _root.LOVE_MAX) {
_root.is_kokuhaku_btn_enable = true;
}
}
_root.face_type = _root.get_face_type();
} else {
_root.face_type = _root.FACE_TYPE_KAAA;
}
} else {
_root.face_type = _root.FACE_TYPE_TEREANGRY;
_root.is_over = true;
}
}
on () {
}
Symbol 20005 Button
on (press) {
if (_root.option_type == _root.OPTION_TYPE_GLASS) {
_root.option_type = _root.OPTION_TYPE_NONE;
} else {
_root.option_type = _root.OPTION_TYPE_GLASS;
}
_root.yeah_snd.start();
}
on () {
}
Symbol 20006 Button
on (press) {
if (_root.face_type == _root.FACE_TYPE_POCKEY) {
_root.face_type = _root.get_face_type();
} else {
_root.face_type = _root.FACE_TYPE_POCKEY;
if (_root.love < _root.LOVE_MAX) {
_root.love = _root.love + 1;
if (_root.love == _root.LOVE_MAX) {
_root.is_kokuhaku_btn_enable = true;
}
}
_root.text_type = _root.TEXT_TYPE_BAKA;
_root.text_counter = _root.TEXT_DISP_FRAME;
}
_root.yeah_snd.start();
}
on () {
}
Instance of Symbol 124 MovieClip [kokuhaku_btn] in Symbol 64 MovieClip [button] Frame 1
onClipEvent (enterFrame) {
if (!_root.is_kokuhaku_btn_enable) {
this._x = -2000;
this._y = -2000;
this._alpha = 0;
} else {
this._x = 0;
this._y = 0;
this._alpha = 100;
}
}
Instance of Symbol 142 MovieClip [ikuji_gauge] in Symbol 64 MovieClip [button] Frame 1
onClipEvent (enterFrame) {
if (0 >= _root.kokuhaku_counter) {
this._alpha = 0;
this._x = -2000;
this._y = -2000;
} else {
this._alpha = 100;
this._x = 147;
this._y = 33;
}
}
Instance of Symbol 126 MovieClip [kokuhaku_serifu] "kokuhaku_serifu" in Symbol 64 MovieClip [button] Frame 1
onClipEvent (enterFrame) {
if (0 >= _root.kokuhaku_counter) {
this._alpha = 0;
this._x = -2000;
this._y = -2000;
} else {
this._alpha = 100;
if ((_root.kokuhaku_counter % _root.KOKUHAKU_RAND_INTERVAL) == 0) {
this._x = random(600 - 300);
this._y = random(600 - 32);
serifu_tbl = ["\u5F8B\u3092\u898B\u3066\u308B\u3068\n\u3044\u3064\u3082\u30CF\u30FC\u30C8DOKI\u2606DOKI", "\u5F8B\uFF01\u3000\u597D\u304D\u3060\uFF01", "\u6BCE\u65E5\u6674\u308C\u308B\uFF01\n\u5F8B\u3068\u3044\u305F\u3089\u6674\u308C\u308B\u3093\u3060\uFF01", "\u5F8B\u306F\uFF01\n\u4FFA\u306E\uFF01\n\u592A\u967D\u306A\u3093\u3060\uFF01", "\u5F8B\uFF01\u3000\u611B\u3057\u3066\u308B\u3093\u3060\uFF01\u3000\u5F8B\u30FC\uFF01\uFF01", "\u5F8B\u306E\u4E8B\u306F\u3082\u3063\u3068\u77E5\u308A\u305F\u3044\u3093\u3060\uFF01\n\u5F8B\u306E\u4E8B\u306F\u307F\u3093\u306A\u5168\u90E8\u77E5\u3063\u3066\u304A\u304D\u305F\u3044\uFF01", "\u3044\u307E\u79C1\u306E\u9858\u3044\u3054\u3068\u304C\uFF01\n\u304B\u306A\u3046\u306A\u3089\u3070\uFF01\n\u5F8B\u304C\u307B\u3057\u3044\uFF01\uFF01", "\u3044\u307E\u5BCC\u3068\u304B\u540D\u8A89\u306A\u3089\u3070\uFF01\n\u3044\u3089\u306A\u3044\u3051\u3069\uFF01\n\u5F8B\u304C\u307B\u3057\u3044\u3093\u3060\uFF01\uFF01"];
this.serifu = serifu_tbl[random(8)];
}
_root.kokuhaku_counter = _root.kokuhaku_counter - 1;
if (_root.kokuhaku_counter == 0) {
_root.love = 0;
_root.glad = 0;
_root.face_type = _root.get_face_type();
}
}
}
Symbol 64 MovieClip [button] Frame 2
gotoAndPlay(1);
Symbol 20007 Button
on (press) {
_root.body_type = _root.BODY_TYPE_DS;
_root.face_type = _root.get_face_type();
_root.text_type = _root.TEXT_TYPE_NONE;
_root.yeah_snd.start();
}
on () {
}
Symbol 20008 Button
on (press) {
if (_root.glad < _root.GLAD_MAX) {
_root.glad = _root.glad + 1;
}
if (_root.ice_counter != 0) {
if (_root.ice_counter != 1) {
if (_root.ice_counter == 2) {
_root.text_type = _root.TEXT_TYPE_SONNANI;
}
} else {
_root.text_type = _root.TEXT_TYPE_UMEE;
}
} else {
_root.text_type = _root.TEXT_TYPE_THX;
}
if (_root.text_type != _root.TEXT_TYPE_NONE) {
_root.text_counter = _root.TEXT_DISP_FRAME;
}
if (_root.ice_counter >= _root.MELTDOWN_LIMIT) {
_root.is_wind = true;
} else {
_root.ice_counter = _root.ice_counter + 1;
}
_root.body_type = _root.BODY_TYPE_ICE;
if (_root.text_type != _root.TEXT_TYPE_SONNANI) {
_root.face_type = _root.get_face_type();
} else {
_root.face_type = _root.FACE_TYPE_TEREWARAI;
}
_root.yeah_snd.start();
}
on () {
}
Symbol 116 MovieClip [ds_ice_toggle_btn] Frame 1
if (_root.body_type != _root.BODY_TYPE_DS) {
gotoAndPlay("DS");
} else {
gotoAndPlay("ICE");
}
Symbol 116 MovieClip [ds_ice_toggle_btn] Frame 3
if (_root.body_type != _root.BODY_TYPE_DS) {
gotoAndPlay("DS");
} else {
gotoAndPlay("ICE");
}
Symbol 116 MovieClip [ds_ice_toggle_btn] Frame 5
if (_root.body_type != _root.BODY_TYPE_DS) {
gotoAndPlay("DS");
} else {
gotoAndPlay("ICE");
}
Symbol 20009 Button
on (press) {
_root.kokuhaku_counter = _root.KOKUHAKU_DISP_FRAME;
_root.is_kokuhaku_btn_enable = false;
_root.yeah_snd.start();
}
on () {
}
Symbol 20010 Button
on (press) {
_root.is_syupon = true;
_root.kokuhaku_counter = 0;
_root.love = 100;
_root.glad = 100;
}
on () {
}
Symbol 60 MovieClip [ritsu] Frame 2
gotoAndPlay(1);
Symbol 66 MovieClip [layer04_text] Frame 1
if (0 >= _root.text_counter) {
_root.text_type = _root.TEXT_TYPE_NONE;
} else {
_root.text_counter = _root.text_counter - 1;
}
label_table = ["NONE", "THX", "BAKA", "UMEE", "SONNANI"];
gotoAndPlay(label_table[_root.text_type]);
Symbol 66 MovieClip [layer04_text] Frame 3
if (0 >= _root.text_counter) {
_root.text_type = _root.TEXT_TYPE_NONE;
} else {
_root.text_counter = _root.text_counter - 1;
}
label_table = ["NONE", "THX", "BAKA", "UMEE", "SONNANI"];
gotoAndPlay(label_table[_root.text_type]);
Symbol 66 MovieClip [layer04_text] Frame 4
if (0 >= _root.text_counter) {
_root.text_type = _root.TEXT_TYPE_NONE;
} else {
_root.text_counter = _root.text_counter - 1;
}
label_table = ["NONE", "THX", "BAKA", "UMEE", "SONNANI"];
gotoAndPlay(label_table[_root.text_type]);
Symbol 66 MovieClip [layer04_text] Frame 5
if (0 >= _root.text_counter) {
_root.text_type = _root.TEXT_TYPE_NONE;
} else {
_root.text_counter = _root.text_counter - 1;
}
label_table = ["NONE", "THX", "BAKA", "UMEE", "SONNANI"];
gotoAndPlay(label_table[_root.text_type]);
Symbol 66 MovieClip [layer04_text] Frame 6
if (0 >= _root.text_counter) {
_root.text_type = _root.TEXT_TYPE_NONE;
} else {
_root.text_counter = _root.text_counter - 1;
}
label_table = ["NONE", "THX", "BAKA", "UMEE", "SONNANI"];
gotoAndPlay(label_table[_root.text_type]);
Symbol 66 MovieClip [layer04_text] Frame 7
if (0 >= _root.text_counter) {
_root.text_type = _root.TEXT_TYPE_NONE;
} else {
_root.text_counter = _root.text_counter - 1;
}
label_table = ["NONE", "THX", "BAKA", "UMEE", "SONNANI"];
gotoAndPlay(label_table[_root.text_type]);
Symbol 62 MovieClip [layer03_option] Frame 1
label_table = ["NONE", "GLASS"];
gotoAndPlay(label_table[_root.option_type]);
Symbol 62 MovieClip [layer03_option] Frame 3
label_table = ["NONE", "GLASS"];
gotoAndPlay(label_table[_root.option_type]);
Symbol 62 MovieClip [layer03_option] Frame 5
label_table = ["NONE", "GLASS"];
gotoAndPlay(label_table[_root.option_type]);
Symbol 56 MovieClip [layer02_face] Frame 1
label_table = ["DEFAULT", "DS", "SMILE", "NIKKORI", "TERE", "CHOUTERE", "TEREWARAI", "POCKEY", "ANGRY", "TEREANGRY", "KAAA", "SYUPON", "NAMIDAME"];
gotoAndPlay(label_table[_root.face_type]);
Symbol 56 MovieClip [layer02_face] Frame 3
label_table = ["DEFAULT", "DS", "SMILE", "NIKKORI", "TERE", "CHOUTERE", "TEREWARAI", "POCKEY", "ANGRY", "TEREANGRY", "KAAA", "SYUPON", "NAMIDAME"];
gotoAndPlay(label_table[_root.face_type]);
Symbol 56 MovieClip [layer02_face] Frame 5
label_table = ["DEFAULT", "DS", "SMILE", "NIKKORI", "TERE", "CHOUTERE", "TEREWARAI", "POCKEY", "ANGRY", "TEREANGRY", "KAAA", "SYUPON", "NAMIDAME"];
gotoAndPlay(label_table[_root.face_type]);
Symbol 56 MovieClip [layer02_face] Frame 7
label_table = ["DEFAULT", "DS", "SMILE", "NIKKORI", "TERE", "CHOUTERE", "TEREWARAI", "POCKEY", "ANGRY", "TEREANGRY", "KAAA", "SYUPON", "NAMIDAME"];
gotoAndPlay(label_table[_root.face_type]);
Symbol 56 MovieClip [layer02_face] Frame 9
label_table = ["DEFAULT", "DS", "SMILE", "NIKKORI", "TERE", "CHOUTERE", "TEREWARAI", "POCKEY", "ANGRY", "TEREANGRY", "KAAA", "SYUPON", "NAMIDAME"];
gotoAndPlay(label_table[_root.face_type]);
Symbol 56 MovieClip [layer02_face] Frame 12
label_table = ["DEFAULT", "DS", "SMILE", "NIKKORI", "TERE", "CHOUTERE", "TEREWARAI", "POCKEY", "ANGRY", "TEREANGRY", "KAAA", "SYUPON", "NAMIDAME"];
gotoAndPlay(label_table[_root.face_type]);
Symbol 56 MovieClip [layer02_face] Frame 15
label_table = ["DEFAULT", "DS", "SMILE", "NIKKORI", "TERE", "CHOUTERE", "TEREWARAI", "POCKEY", "ANGRY", "TEREANGRY", "KAAA", "SYUPON", "NAMIDAME"];
gotoAndPlay(label_table[_root.face_type]);
Symbol 56 MovieClip [layer02_face] Frame 18
label_table = ["DEFAULT", "DS", "SMILE", "NIKKORI", "TERE", "CHOUTERE", "TEREWARAI", "POCKEY", "ANGRY", "TEREANGRY", "KAAA", "SYUPON", "NAMIDAME"];
gotoAndPlay(label_table[_root.face_type]);
Symbol 56 MovieClip [layer02_face] Frame 21
label_table = ["DEFAULT", "DS", "SMILE", "NIKKORI", "TERE", "CHOUTERE", "TEREWARAI", "POCKEY", "ANGRY", "TEREANGRY", "KAAA", "SYUPON", "NAMIDAME"];
gotoAndPlay(label_table[_root.face_type]);
Symbol 56 MovieClip [layer02_face] Frame 23
label_table = ["DEFAULT", "DS", "SMILE", "NIKKORI", "TERE", "CHOUTERE", "TEREWARAI", "POCKEY", "ANGRY", "TEREANGRY", "KAAA", "SYUPON", "NAMIDAME"];
gotoAndPlay(label_table[_root.face_type]);
Symbol 56 MovieClip [layer02_face] Frame 25
label_table = ["DEFAULT", "DS", "SMILE", "NIKKORI", "TERE", "CHOUTERE", "TEREWARAI", "POCKEY", "ANGRY", "TEREANGRY", "KAAA", "SYUPON", "NAMIDAME"];
gotoAndPlay(label_table[_root.face_type]);
Symbol 56 MovieClip [layer02_face] Frame 27
label_table = ["DEFAULT", "DS", "SMILE", "NIKKORI", "TERE", "CHOUTERE", "TEREWARAI", "POCKEY", "ANGRY", "TEREANGRY", "KAAA", "SYUPON", "NAMIDAME"];
gotoAndPlay(label_table[_root.face_type]);
Symbol 56 MovieClip [layer02_face] Frame 29
label_table = ["DEFAULT", "DS", "SMILE", "NIKKORI", "TERE", "CHOUTERE", "TEREWARAI", "POCKEY", "ANGRY", "TEREANGRY", "KAAA", "SYUPON", "NAMIDAME"];
gotoAndPlay(label_table[_root.face_type]);
Symbol 56 MovieClip [layer02_face] Frame 32
label_table = ["DEFAULT", "DS", "SMILE", "NIKKORI", "TERE", "CHOUTERE", "TEREWARAI", "POCKEY", "ANGRY", "TEREANGRY", "KAAA", "SYUPON", "NAMIDAME"];
gotoAndPlay(label_table[_root.face_type]);
Symbol 6 MovieClip [layer02_face04_choutere] Frame 3
gotoAndPlay(1);
Symbol 52 MovieClip [layer02_face05_terewarai] Frame 3
gotoAndPlay(1);
Symbol 54 MovieClip [layer02_face06_pockey] Frame 3
gotoAndPlay(1);
Symbol 122 MovieClip [layer02_face13_namidame] Frame 3
gotoAndPlay(1);
Symbol 58 MovieClip [layer01_body] Frame 1
label_table = ["DISP_DS", "DISP_ICE", "DISP_NONE"];
gotoAndPlay(label_table[_root.body_type]);
Symbol 58 MovieClip [layer01_body] Frame 3
label_table = ["DISP_DS", "DISP_ICE", "DISP_NONE"];
gotoAndPlay(label_table[_root.body_type]);
Symbol 58 MovieClip [layer01_body] Frame 5
label_table = ["DISP_DS", "DISP_ICE", "DISP_NONE"];
gotoAndPlay(label_table[_root.body_type]);
Symbol 58 MovieClip [layer01_body] Frame 7
label_table = ["DISP_DS", "DISP_ICE", "DISP_NONE"];
gotoAndPlay(label_table[_root.body_type]);
Instance of Symbol 144 MovieClip [ikuji_gauge_sub] "ikuji_gauge_value" in Symbol 142 MovieClip [ikuji_gauge] Frame 1
onClipEvent (enterFrame) {
this._xscale = (100 - _root.kokuhaku_counter) * -1;
}