Frame 1
stop();
Frame 2
this._lockroot = true;
var countflag;
if (countflag == null) {
countflag = 100;
game = _root.attachMovie("mainprog", "mainprog1", 1);
game.gotoAndPlay(1);
} else {
game.Gs.allkill();
game.Gs.game_st = 0;
}
Frame 4
stop();
this.demo.gotoAndStop(game.Gs.getDemoNo());
Symbol 45 Button
on (release) {
_root.game.Gs.game_st = 0;
_root.game.Gs.allkill();
}
Symbol 46 MovieClip [mcText_gameover] Frame 30
stop();
Symbol 48 MovieClip [mcText_lose] Frame 30
stop();
Symbol 50 MovieClip [mcText_win] Frame 30
stop();
Symbol 52 MovieClip [mcText_start] Frame 30
stop();
Symbol 54 MovieClip Frame 10
stop();
Symbol 56 MovieClip Frame 16
stop();
Symbol 57 MovieClip [life_camellia] Frame 1
stop();
Symbol 59 MovieClip Frame 10
stop();
Symbol 60 MovieClip [life_rose] Frame 1
stop();
Symbol 61 MovieClip [mainprog] Frame 1
var Gs = (new duplex.Game_system(this));
Symbol 61 MovieClip [mainprog] Frame 2
Gs.gameMain();
Symbol 61 MovieClip [mainprog] Frame 3
this.gotoAndPlay(2);
Symbol 64 MovieClip [LineMC] Frame 11
stop();
Symbol 501 MovieClip [__Packages.duplex.Game_system] Frame 0
class duplex.Game_system
{
var defaultMC, at, bt, mline, mlinef, eline, elinef, game_st, game_lv, muteki, counter, taskobj, task, mcm, mcb, mckaisou, data, now_x, bak_x, now_y, bak_y, soundflag, bgmMC, soundMC, musicObj, soundObj, nowBGM, demoNo, subMath, line_mc, ura_f, f_name, enemyFc, n_hit, c_hit, miss, finish, enemy_num, flag, reikoHp, out_of_num, enemyHp, enemyX1c, enemyY1c, enemyX2c, enemyY2c, enemyX1b, enemyY1b, enemyX2b, enemyY2b, enemyX1, enemyY1, enemyX2, enemyY2, enemyNum, enemyMh, enemyLk, enemyPw, out_of_wait_flag, out_of_wait_break, out_of_wait, out_of_wait_counter, enemyTm, enemyTs, enemyXX, enemyCt, enemyRr, enemyDr, enemyKC, hangeki;
function Game_system (mmc) {
var _local3;
defaultMC = mmc;
at = new duplex.ATask();
bt = new duplex.BTask();
mline = new duplex.MouseLine(mmc, "paunch", "LineMC", 100);
mlinef = -1;
eline = new duplex.MouseLine(mmc, "escape", "LineMC", 500);
elinef = -1;
game_st = 0;
game_lv = 3;
muteki = false;
counter = 0;
taskobj = new Array(maxtask);
task = new Array(maxtask);
mcm = new Array(maxtask);
mcb = new Array(maxtask);
_local3 = 0;
while (_local3 != maxtask) {
taskobj[_local3] = -1;
task[_local3] = new duplex.Buffer();
task[_local3].sys[0] = -1;
task[_local3].sys[1] = -1;
task[_local3].sys[2] = -1;
task[_local3].sys[3] = -1;
task[_local3].sys[4] = -1;
mcb[_local3] = false;
_local3++;
}
mckaisou = new Array(maxlayer);
_local3 = 0;
while (_local3 != maxlayer) {
mckaisou[_local3] = false;
_local3++;
}
data = new duplex.Buffer();
now_x = (bak_x = _root._xmouse);
now_y = (bak_y = _root._ymouse);
soundflag = false;
bgmMC = nigoro.lib.samieru.NigoroFlashManager.getBgmLayer().createEmptyMovieClip("BGMMC", defaultMC.getNextHighestDepth());
soundMC = defaultMC.createEmptyMovieClip("SMC", defaultMC.getNextHighestDepth());
musicObj = new Array(duplex.data.MusicLib.MUSICS.length);
_local3 = 0;
while (_local3 < duplex.data.MusicLib.MUSICS.length) {
musicObj[_local3] = new nigoro.lib.samieru.sound.MusicPlayer(bgmMC);
musicObj[_local3].attachSound(duplex.data.MusicLib.MUSICS[_local3]);
_local3++;
}
soundObj = new Array(duplex.data.SoundLib.SOUNDS.length);
_local3 = 0;
while (_local3 < duplex.data.SoundLib.SOUNDS.length) {
soundObj[_local3] = new Sound(soundMC);
soundObj[_local3].attachSound(duplex.data.SoundLib.SOUNDS[_local3]);
_local3++;
}
nowBGM = -1;
demoNo = 1;
subMath = new duplex.Sub();
if (debug) {
line_mc = defaultMC.createEmptyMovieClip("line_mc", 1);
}
ura_f = 0;
f_name = [["main", "main2"], ["title", "title2"], ["demo", "demo2"]];
}
function battle_ini(num) {
var _local4;
var _local3;
enemyFc = 0;
if (ura_f == 0) {
at.inidata(this, num);
} else {
bt.inidata(this, num);
}
soundSet(num + (5 * ura_f));
}
function soundSet(num) {
n_hit = soundObj[duplex.data.SoundLib.CHAR_SOUND[num][0]];
c_hit = soundObj[duplex.data.SoundLib.CHAR_SOUND[num][1]];
miss = soundObj[duplex.data.SoundLib.CHAR_SOUND[num][2]];
finish = soundObj[duplex.data.SoundLib.CHAR_SOUND[num][3]];
}
function gameMain() {
var _local3;
bak_x = now_x;
bak_y = now_y;
now_x = _root._xmouse;
now_y = _root._ymouse;
switch (game_st) {
case 0 :
if (ura_f == 0) {
enemy_num = 0;
} else {
enemy_num = 5;
}
flag = 0;
muteki = false;
reikoHp = 1000;
out_of_num = 0;
_root.gotoAndStop(f_name[1][ura_f]);
setBgm(4);
demoNo = 1;
game_st = 1;
break;
case 1 :
if (debug) {
if (Key.isDown(49)) {
enemy_num = 0;
playSE(12);
game_st = 50;
break;
}
if (Key.isDown(50)) {
enemy_num = 1;
playSE(12);
game_st = 50;
} else if (Key.isDown(51)) {
enemy_num = 2;
playSE(12);
game_st = 50;
} else if (Key.isDown(52)) {
enemy_num = 3;
playSE(12);
game_st = 50;
} else if (Key.isDown(53)) {
enemy_num = 4;
playSE(12);
game_st = 50;
} else if (Key.isDown(69)) {
playSE(2);
muteki = true;
} else if (Key.isDown(82)) {
playSE(3);
muteki = false;
} else {
if (ura_f == 0) {
enemy_num = 0;
} else {
enemy_num = 5;
}
break;
setEvent2(GAMEMAIN, data, 50);
_root.gotoAndStop(f_name[0][ura_f]);
game_st = 100;
break;
game_st = 100;
_root.gotoAndStop(f_name[0][ura_f]);
setEvent2(GAMEMAIN, data, 50);
break;
game_st = 101;
break;
}
}
break;
case 2 :
setEvent2(GAMEMAIN, data, 50);
_root.gotoAndStop(f_name[0][ura_f]);
game_st = 100;
break;
case 50 :
game_st = 100;
_root.gotoAndStop(f_name[0][ura_f]);
setEvent2(GAMEMAIN, data, 50);
break;
case 100 :
game_st = 101;
break;
case 101 :
}
taskloop();
}
function setHp() {
var _local5;
var _local6;
var _local2 = 1;
var _local4 = 28;
var _local3 = 15;
while (enemyHp > _local2) {
data.buff[0] = _local2;
data.buff[1] = _local3;
_local5 = setEvent(TUBAKI, data);
setMcEvent(_local5, TUBAKI, _local4, 446);
_local2 = _local2 + hpwari;
_local3 = _local3 + 2;
_local4 = _local4 + 30;
}
_local2 = 1;
_local4 = 685;
_local3 = 15;
while (reikoHp > _local2) {
data.buff[0] = _local2;
data.buff[1] = _local3;
_local5 = setEvent(BARA, data);
setMcEvent(_local5, BARA, _local4, 446);
_local2 = _local2 + myhpwari;
_local3 = _local3 + 2;
_local4 = _local4 - 30;
}
}
function setMcEvent(tk, num, x, y) {
var _local3;
var _local6;
var _local4 = false;
switch (num) {
case TUBAKI :
_local3 = getMcNum();
if (_local3 > -1) {
mcm[_local3] = defaultMC.attachMovie("life_camellia", "life_camellia" + defaultMC.getNextHighestDepth(), defaultMC.getNextHighestDepth());
_local4 = true;
}
break;
case BARA :
_local3 = getMcNum();
if (_local3 > -1) {
mcm[_local3] = defaultMC.attachMovie("life_rose", "life_rose" + defaultMC.getNextHighestDepth(), defaultMC.getNextHighestDepth());
_local4 = true;
}
break;
case START :
_local3 = getMcNum();
if (_local3 > -1) {
mcm[_local3] = defaultMC.attachMovie("mcText_start", "mcText_start" + defaultMC.getNextHighestDepth(), defaultMC.getNextHighestDepth());
_local4 = true;
}
break;
case KOBARA :
_local3 = getMcNum();
if (_local3 > -1) {
mcm[_local3] = _root.LevelMC.attachMovie("life_rose", "life_rose" + _root.LevelMC.getNextHighestDepth(), _root.LevelMC.getNextHighestDepth());
mcm[_local3].gotoAndStop("Birth");
mcm[_local3]._height = 14.9;
mcm[_local3]._width = 15.3;
_local4 = true;
}
break;
case BADEND :
_local3 = getMcNum();
if (_local3 > -1) {
mcm[_local3] = defaultMC.attachMovie("mcText_lose", "mcText_lose" + defaultMC.getNextHighestDepth(), defaultMC.getNextHighestDepth());
_local4 = true;
}
break;
case WINER :
_local3 = getMcNum();
if (_local3 > -1) {
mcm[_local3] = defaultMC.attachMovie("mcText_win", "mcText_win" + defaultMC.getNextHighestDepth(), defaultMC.getNextHighestDepth());
_local4 = true;
}
break;
case GAMEOVER :
_local3 = getMcNum();
if (_local3 <= -1) {
break;
}
mcm[_local3] = defaultMC.attachMovie("mcText_gameover", "mcText_gameover" + defaultMC.getNextHighestDepth(), defaultMC.getNextHighestDepth());
_local4 = true;
}
if (_local4) {
mcm[_local3]._x = x;
mcm[_local3]._y = y;
task[tk].sys[0] = _local3;
task[tk].sys[1] = _local6;
}
return(_local4);
}
function getMcNum() {
var _local2;
_local2 = 0;
while (_local2 != maxtask) {
if (mcb[_local2] == false) {
mcb[_local2] = true;
return(_local2);
}
_local2++;
}
return(-1);
}
function delMc(tk) {
mcm[task[tk].sys[0]].removeMovieClip();
reSetMcNum(task[tk].sys[0]);
task[tk].sys[0] = -1;
}
function reSetMcNum(num) {
mcb[num] = false;
}
function taskloop() {
var _local2;
_local2 = 0;
while (_local2 != maxtask) {
switch (taskobj[_local2]) {
case TUBAKI :
tubakiHpDraw(_local2);
break;
case BARA :
barahpDraw(_local2);
break;
case START :
startDraw(_local2);
break;
case KOBARA :
kobaraKanri(_local2);
break;
case GAMEMAIN :
gameMainProg(_local2);
break;
case TIME :
timebar(_local2);
break;
case BADEND :
badendDraw(_local2);
break;
case WINER :
winerDraw(_local2);
break;
case GUID :
guidance(_local2);
break;
case HITLINE :
nagurikiseki(_local2);
break;
case BGMCHECKER :
bgmloop(_local2);
break;
case GAMEOVER :
gameoverDraw(_local2);
break;
case MOUSELINEDRAW :
dlkanri(_local2);
break;
case -1 :
break;
}
_local2++;
}
}
function settask(job) {
var _local2;
_local2 = 0;
while (_local2 != maxtask) {
if (taskobj[_local2] < 0) {
taskobj[_local2] = job;
return(_local2);
}
_local2++;
}
return(-1);
}
function killtask(i) {
if (task[i].sys[0] > -1) {
delMc(i);
}
taskobj[i] = -1;
}
function setEvent(job, setbuff) {
var _local2;
var _local3;
_local3 = settask(job);
if (_local3 < 0) {
return(-1);
}
_local2 = 0;
while (_local2 != duplex.Buffer.MAXBUFF) {
task[_local3].buff[_local2] = setbuff.buff[_local2];
_local2++;
}
task[_local3].myNum = _local3;
task[_local3].state = 0;
return(_local3);
}
function settask2(job, st) {
var _local2;
_local2 = st;
while (_local2 < maxtask) {
if (taskobj[_local2] < 0) {
taskobj[_local2] = job;
return(_local2);
}
_local2++;
}
return(-1);
}
function setEvent2(job, setbuff, st) {
var _local2;
var _local3;
_local3 = settask2(job, st);
if (_local3 < 0) {
return(-1);
}
_local2 = 0;
while (_local2 != duplex.Buffer.MAXBUFF) {
task[_local3].buff[_local2] = setbuff.buff[_local2];
_local2++;
}
task[_local3].myNum = _local3;
task[_local3].state = 0;
return(_local3);
}
function allkill() {
var _local2;
_local2 = 0;
while (_local2 != maxtask) {
taskobj[_local2] = -1;
if (mcb[_local2] == true) {
mcm[_local2].removeMovieClip();
mcb[_local2] = false;
}
_local2++;
}
_local2 = 0;
while (_local2 != maxlayer) {
mckaisou[_local2] = false;
_local2++;
}
}
function fo(i) {
data.buff[0] = i;
data.buff[1] = 100;
setEvent(BGMCHECKER, data);
}
function bgmloop(i) {
task[i].buff[1] = task[i].buff[1] - task[i].buff[0];
if (task[i].buff[1] < 0) {
task[i].buff[0] = 0;
}
musicObj[nowBGM].setVolume(task[i].buff[1]);
if (task[i].buff[1] < 1) {
killtask(i);
}
}
function nagurikiseki(i) {
switch (task[i].state) {
case 0 :
if (subMath.lineCrossPoint(enemyX1c, enemyY1c, enemyX2c, enemyY2c, bak_x, bak_y, now_x, now_y)) {
if (now_x < bak_x) {
task[i].state = 1;
if (debug) {
trace("P1_Dmg = " + Math.floor(subMath.pointLength(bak_x, bak_y, now_x, now_y)));
}
if (subMath.lineCrossPoint(enemyX1b, enemyY1b, enemyX2b, enemyY2b, bak_x, bak_y, now_x, now_y)) {
if (now_x < bak_x) {
task[i].state = 2;
task[i].buff[1] = 1;
if (debug) {
trace("P2_Dmg = " + Math.floor(subMath.pointLength(bak_x, bak_y, now_x, now_y)));
}
}
}
}
}
break;
case 1 :
if (subMath.lineCrossPoint(enemyX1b, enemyY1b, enemyX2b, enemyY2b, bak_x, bak_y, now_x, now_y)) {
if (now_x < bak_x) {
task[i].state = 2;
task[i].buff[1] = 1;
if (debug) {
trace("P2_Dmg = " + Math.floor(subMath.pointLength(bak_x, bak_y, now_x, now_y)));
}
}
}
break;
case 2 :
break;
case 3 :
killtask(i);
return(undefined);
}
if (task[i].buff[2] != task[task[i].buff[0]].state) {
killtask(i);
return(undefined);
}
if (subMath.lineCrossPoint(enemyX1, enemyY1, enemyX2, enemyY2, bak_x, bak_y, now_x, now_y)) {
if (now_x < bak_x) {
task[i].state = 1;
if (task[i].buff[1] == 1) {
task[task[i].buff[0]].sys[2] = 2;
} else {
task[task[i].buff[0]].sys[2] = 1;
}
killtask(i);
}
}
}
function enemy_dmg(i) {
var _local4 = false;
if (task[i].sys[2] == 2) {
enemyHp = enemyHp - (Math.floor(subMath.pointLength(bak_x, bak_y, now_x, now_y)) * 2);
if (enemyHp < 1) {
if (enemyNum == 1) {
_root.enemy.enemy1.gotoAndStop(7);
task[i].buff[0] = 0;
task[i].state = 100;
setBgm(0);
} else {
_root.enemy.enemy1.gotoAndStop(8);
task[i].state = 40;
}
if (soundflag == false) {
playSE(13);
}
_local4 = true;
} else {
if (soundflag == false) {
playSE(15);
}
_root.enemy.enemy1.gotoAndStop(7);
}
} else {
enemyHp = enemyHp - Math.floor(subMath.pointLength(bak_x, bak_y, now_x, now_y));
if (enemyHp < 1) {
if (enemyNum == 1) {
_root.enemy.enemy1.gotoAndStop(7);
task[i].state = 100;
task[i].buff[0] = 0;
setBgm(0);
} else {
_root.enemy.enemy1.gotoAndStop(8);
task[i].state = 40;
}
if (soundflag == false) {
playSE(13);
}
_local4 = true;
} else {
if (soundflag == false) {
playSE(14);
}
_root.enemy.enemy1.gotoAndStop(6);
}
}
switch (enemyFc) {
case 0 :
if ((enemyMh * 0.8) > enemyHp) {
enemyFc = 1;
}
break;
case 1 :
if ((enemyMh * 0.6) > enemyHp) {
enemyFc = 2;
}
break;
case 2 :
if ((enemyMh * 0.4) > enemyHp) {
enemyFc = 3;
}
break;
case 3 :
if ((enemyMh * 0.2) > enemyHp) {
enemyFc = 4;
}
break;
case 4 :
}
if (_local4) {
fo(5);
}
return(_local4);
}
function enemyFace() {
if (((_root.enemy.enemy1._currentframe == 1) || (_root.enemy.enemy1._currentframe == 2)) || (_root.enemy.enemy1._currentframe == 3)) {
switch (enemyFc) {
case 1 :
if (_root.enemy.enemy1.hitarea._currentframe != 2) {
_root.enemy.enemy1.hitarea.gotoAndStop(2);
}
break;
case 2 :
if (_root.enemy.enemy1.hitarea._currentframe != 3) {
_root.enemy.enemy1.hitarea.gotoAndStop(3);
}
break;
case 3 :
if (_root.enemy.enemy1.hitarea._currentframe != 4) {
_root.enemy.enemy1.hitarea.gotoAndStop(4);
}
break;
case 4 :
if (_root.enemy.enemy1.hitarea._currentframe == 5) {
break;
}
_root.enemy.enemy1.hitarea.gotoAndStop(5);
}
} else if (_root.enemy.enemy1.hitarea._currentframe != 1) {
_root.enemy.enemy1.hitarea.gotoAndStop(1);
}
}
function reikoDmg(i) {
var _local3 = false;
if (enemyLk > (Math.random() * 100)) {
reikoHp = reikoHp - (enemyPw * (2 + (game_lv / 2.5)));
if (reikoHp < 1) {
if (muteki == false) {
_root.player.gotoAndStop(7);
task[i].state = 30;
if (soundflag == false) {
finish.start(0);
}
_local3 = true;
}
} else {
_root.player.gotoAndStop(6);
if (soundflag == false) {
c_hit.start(0);
}
}
} else {
reikoHp = reikoHp - (enemyPw + ((enemyPw * Math.random()) / 2));
if (reikoHp < 1) {
if (muteki == false) {
_root.player.gotoAndStop(7);
if (soundflag == false) {
finish.start(0);
}
task[i].state = 30;
_local3 = true;
}
} else {
if (soundflag == false) {
n_hit.start(0);
}
_root.player.gotoAndStop(5);
}
}
return(_local3);
}
function dlkanri(i) {
if (task[i].buff[0] == 0) {
switch (task[i].state) {
case 0 :
task[i].buff[2] = 100;
task[i].state = 1;
if (mlinef != -1) {
killtask(mlinef);
mline.final();
}
mlinef = i;
case 1 :
mline.drawLine(bak_x, bak_y, now_x, now_y);
break;
case 2 :
mline.drawLine(bak_x, bak_y, now_x, now_y);
task[i].state = 10;
case 10 :
task[i].buff[2] = task[i].buff[2] - task[i].buff[1];
if (task[i].buff[2] < 1) {
task[i].buff[2] = 0;
task[i].state = 3;
}
mline.setAlpha(task[i].buff[2]);
break;
case 3 :
mline.final();
killtask(i);
mlinef = -1;
}
} else {
switch (task[i].state) {
case 0 :
task[i].buff[2] = 100;
task[i].state = 1;
if (elinef != -1) {
killtask(elinef);
eline.final();
}
elinef = i;
case 1 :
eline.drawLine(bak_x, bak_y, now_x, now_y);
break;
case 2 :
eline.drawLine(bak_x, bak_y, now_x, now_y);
task[i].state = 10;
case 10 :
task[i].buff[2] = task[i].buff[2] - task[i].buff[1];
if (task[i].buff[2] < 1) {
task[i].buff[2] = 0;
task[i].state = 3;
}
eline.setAlpha(task[i].buff[2]);
break;
case 3 :
eline.final();
killtask(i);
elinef = -1;
}
}
}
function gameMainProg(i) {
switch (task[i].state) {
case 0 :
task[i].buff[0] = 0;
task[i].sys[3] = -1;
battle_ini(enemy_num);
setHp();
task[i].state = 1;
break;
case 1 :
task[i].buff[0]++;
if (task[i].buff[0] == 15) {
task[i].buff[19] = setEvent(KOBARA, data);
task[i].state = 2;
task[i].buff[0] = 0;
}
break;
case 2 :
if (callMain() != 0) {
task[i].state = 3;
data.buff[0] = i;
task[i].buff[18] = setEvent(TIME, data);
}
break;
case 3 :
_root.mc_evasion.gotoAndStop(1);
_root.mc_counter.gotoAndStop(1);
_root.player.gotoAndStop(1);
_root.enemy.enemy1.gotoAndStop(1);
_root.mc_attack.gotoAndStop(2);
if (soundflag == false) {
playSE(0);
}
callMain();
task[i].state = 4;
out_of_wait_flag = false;
out_of_wait_break = false;
break;
case 4 :
if (callMain() != 0) {
out_of_wait_flag = false;
out_of_wait_break = false;
data.buff[1] = 0;
task[i].buff[17] = setEvent(GUID, data);
if (soundflag == false) {
playSE(2);
}
data.buff[0] = 0;
data.buff[1] = 5;
task[i].sys[4] = setEvent(MOUSELINEDRAW, data);
task[i].state = 5;
task[i].sys[2] = 0;
data.buff[0] = i;
data.buff[1] = 0;
data.buff[2] = 5;
task[i].buff[16] = setEvent(HITLINE, data);
_root.mc_attack.gotoAndStop(1);
} else if (game_lv >= out_of_wait_lv) {
if (out_of_wait_flag == false) {
out_of_wait_flag = true;
switch (game_lv) {
case 1 :
out_of_wait = 0;
out_of_wait_counter = 2 * out_of_wait_lv1;
break;
case 2 :
out_of_wait = 0;
out_of_wait_counter = 2 * out_of_wait_lv2;
break;
case 3 :
out_of_wait = 0;
out_of_wait_counter = 2 * out_of_wait_lv3;
break;
case 4 :
out_of_wait = 0;
out_of_wait_counter = 2 * out_of_wait_lv4;
break;
case 5 :
out_of_wait = 0;
out_of_wait_counter = 2 * out_of_wait_lv5;
}
} else {
out_of_wait = out_of_wait + enemyTm;
if (out_of_wait >= out_of_wait_counter) {
trace("out_of_wait" + out_of_wait);
trace("enemyTm" + enemyTm);
trace("out_of_wait_counter" + out_of_wait_counter);
task[i].state = 600;
_root.mc_attack.gotoAndStop(1);
task[i].buff[0] = 0;
}
}
}
break;
case 600 :
task[i].buff[0]++;
if (task[i].buff[0] >= 5) {
task[i].buff[0] = 0;
_root.enemy.enemy1.gotoAndStop(2);
task[i].state = 601;
}
break;
case 601 :
task[i].buff[0]++;
if (task[i].buff[0] == 3) {
_root.enemy.enemy1.gotoAndStop(3);
if (reikoDmg(i)) {
break;
}
task[i].buff[0] = 0;
task[i].state = 602;
}
break;
case 602 :
task[i].buff[0]++;
if (task[i].buff[0] >= 15) {
task[i].state = 603;
out_of_wait_break = true;
}
break;
case 603 :
break;
case 5 :
task[i].buff[0]++;
if (task[i].sys[2] > 0) {
task[task[i].sys[4]].state = 2;
task[i].sys[4] = -1;
task[i].buff[0] = 0;
task[i].state = 6;
_root.player.gotoAndStop(3);
if (subMath.pointLength(bak_x, bak_y, now_x, now_y) < enemyTs) {
task[i].buff[0] = 0;
_root.enemy.enemy1.gotoAndStop(5);
if (soundflag == false) {
playSE(7);
}
task[i].state = 60;
break;
}
if (enemyLk > (Math.random() * 100)) {
_root.enemy.enemy1.gotoAndStop(5);
if (soundflag == false) {
playSE(7);
}
} else if (enemy_dmg(i)) {
return(undefined);
}
} else {
if (now_x < enemyXX) {
task[task[i].sys[4]].state = 2;
task[i].sys[4] = -1;
_root.player.gotoAndStop(3);
_root.enemy.enemy1.gotoAndStop(5);
if (soundflag == false) {
playSE(7);
}
task[i].buff[0] = 0;
task[i].state = 6;
}
if (task[i].buff[0] > enemyCt) {
task[task[i].sys[4]].state = 2;
task[i].sys[4] = -1;
task[i].buff[0] = 4;
task[i].state = 60;
}
}
break;
case 60 :
task[i].buff[0]++;
if (task[i].buff[0] >= 5) {
task[i].buff[0] = 0;
_root.enemy.enemy1.gotoAndStop(2);
task[i].state = 61;
}
break;
case 61 :
task[i].buff[0]++;
if (task[i].buff[0] == 3) {
_root.enemy.enemy1.gotoAndStop(3);
if (reikoDmg(i)) {
break;
}
task[i].buff[0] = 0;
task[i].state = 6;
}
break;
case 6 :
task[i].buff[0]++;
if (task[i].buff[0] >= 15) {
if (turnON) {
task[i].state = 300;
} else {
task[i].state = 3;
}
}
break;
case 300 :
break;
case 10 :
_root.mc_evasion.gotoAndStop(2);
_root.player.gotoAndStop(1);
if (soundflag == false) {
playSE(0);
}
callMain();
_root.enemy.enemy1.gotoAndStop(2);
_root.mc_attack.gotoAndStop(1);
task[i].buff[0] = 0;
task[i].buff[1] = 0;
task[i].buff[2] = 0;
task[i].buff[3] = 0;
task[i].buff[4] = 0;
task[i].state = 11;
break;
case 11 :
task[i].buff[0]++;
switch (task[i].buff[2]) {
case 0 :
task[i].buff[1] = callMain();
if (task[i].buff[1] == 1) {
data.buff[0] = 1;
data.buff[1] = 5;
task[i].sys[4] = setEvent(MOUSELINEDRAW, data);
task[i].buff[2] = 1;
_root.mc_evasion.gotoAndStop(1);
_root.mc_counter.gotoAndStop(1);
if (soundflag == false) {
playSE(2);
}
data.buff[1] = 1;
task[i].buff[17] = setEvent(GUID, data);
}
break;
case 1 :
if (subMath.lineCrossPoint(swLine, 362, swLine, 480, bak_x, bak_y, now_x, now_y)) {
if (bak_x < now_x) {
task[task[i].sys[4]].state = 2;
task[i].sys[4] = -1;
task[i].buff[4] = 1;
task[i].buff[2] = 100;
}
}
break;
}
if (task[i].buff[0] > (enemyDr - enemyRr)) {
_root.mc_evasion.gotoAndStop(1);
_root.mc_counter.gotoAndStop(1);
task[i].buff[0] = 0;
task[i].state = 12;
}
break;
case 12 :
task[i].buff[0]++;
switch (task[i].buff[2]) {
case 0 :
break;
case 1 :
if (subMath.lineCrossPoint(swLine, 362, swLine, 480, bak_x, bak_y, now_x, now_y)) {
if (bak_x < now_x) {
task[i].buff[4] = 1;
task[i].buff[2] = 100;
}
}
break;
}
if (task[i].buff[0] > enemyRr) {
task[task[i].sys[4]].state = 2;
task[i].sys[4] = -1;
_root.enemy.enemy1.gotoAndStop(3);
task[i].buff[0] = 0;
task[i].state = 13;
}
break;
case 13 :
if (task[i].buff[4]) {
if (soundflag == false) {
playSE(7);
}
_root.player.gotoAndStop(4);
_root.mc_counter.gotoAndStop(2);
if (soundflag == false) {
playSE(0);
}
task[i].buff[0] = 0;
task[i].state = 70;
} else if (reikoDmg(i)) {
} else {
task[i].buff[0] = 0;
task[i].state = 20;
if (enemyKC > (Math.random() * 100)) {
task[i].state = 50;
}
break;
task[i].buff[0]++;
if (task[i].buff[0] > hangeki) {
_root.enemy.enemy1.gotoAndStop(1);
_root.mc_counter.gotoAndStop(1);
task[i].state = 20;
task[i].buff[0] = 10;
} else {
if (callMain() == 2) {
data.buff[1] = 0;
task[i].buff[17] = setEvent(GUID, data);
_root.mc_counter.gotoAndStop(1);
data.buff[0] = 0;
data.buff[1] = 5;
task[i].sys[4] = setEvent(MOUSELINEDRAW, data);
if (soundflag == false) {
playSE(2);
}
task[i].state = 72;
task[i].sys[2] = 0;
data.buff[0] = i;
data.buff[1] = 0;
data.buff[2] = 72;
task[i].buff[16] = setEvent(HITLINE, data);
}
break;
task[i].buff[0]++;
if (task[i].buff[0] > hangeki) {
task[task[i].sys[4]].state = 2;
task[i].sys[4] = -1;
_root.enemy.enemy1.gotoAndStop(2);
task[i].state = 80;
task[i].buff[0] = 0;
} else {
if (task[i].sys[2] > 0) {
task[task[i].sys[4]].state = 2;
task[i].sys[4] = -1;
_root.player.gotoAndStop(3);
if (enemy_dmg(i)) {
return(undefined);
}
task[i].state = 20;
task[i].buff[0] = 5;
}
break;
task[i].buff[0]++;
if (task[i].buff[0] > 5) {
_root.enemy.enemy1.gotoAndStop(3);
if (reikoDmg(i)) {
break;
}
task[i].state = 20;
task[i].buff[0] = 0;
}
break;
task[i].buff[0]++;
if (task[i].buff[0] > 15) {
_root.player.gotoAndStop(1);
task[i].buff[0] = 0;
if (turnON) {
task[i].state = 200;
} else {
task[i].state = 10;
}
}
break;
break;
data.buff[0] = 10;
data.buff[2] = 60;
task[task[i].buff[18]].state = 100;
setBgm(0);
setEvent(BADEND, data);
task[i].state = 31;
break;
if (callMain()) {
data.buff[0] = 30;
setEvent(GAMEOVER, data);
task[i].state = 32;
}
break;
break;
task[i].buff[0]++;
if (task[i].buff[0] == 60) {
_root.enemy.enemy1.gotoAndStop(8);
task[i].state = 40;
if (soundflag == false) {
playSE(24);
}
}
break;
data.buff[0] = 30;
if (enemy_num == 4) {
data.buff[2] = 240;
} else {
data.buff[2] = 60;
}
task[task[i].buff[18]].state = 100;
setBgm(0);
setEvent(WINER, data);
task[i].state = 41;
break;
if (callMain()) {
task[task[i].buff[18]].state = 3;
task[task[i].buff[19]].state = 2;
allkill();
game_st = 1;
switch (game_lv) {
case 1 :
reikoHp = reikoHp + 100;
break;
case 2 :
reikoHp = reikoHp + 50;
break;
}
if (reikoHp > reikomax) {
reikoHp = reikomax;
}
_root.gotoAndStop(f_name[2][ura_f]);
demoNo = enemy_num + 2;
setBgm(1);
}
break;
task[i].buff[0]++;
if (task[i].buff[0] == 10) {
task[i].buff[0] = 0;
task[i].state = 51;
_root.enemy.enemy1.gotoAndStop(2);
_root.player.gotoAndStop(1);
}
break;
task[i].buff[0]++;
if (task[i].buff[0] == 5) {
task[i].buff[0] = 0;
task[i].state = 52;
_root.enemy.enemy1.gotoAndStop(3);
}
break;
if (reikoDmg(i)) {
} else {
task[i].buff[0] = 0;
task[i].state = 20;
}
}
}
}
case 70 :
task[i].buff[0]++;
if (task[i].buff[0] > hangeki) {
_root.enemy.enemy1.gotoAndStop(1);
_root.mc_counter.gotoAndStop(1);
task[i].state = 20;
task[i].buff[0] = 10;
} else {
if (callMain() == 2) {
data.buff[1] = 0;
task[i].buff[17] = setEvent(GUID, data);
_root.mc_counter.gotoAndStop(1);
data.buff[0] = 0;
data.buff[1] = 5;
task[i].sys[4] = setEvent(MOUSELINEDRAW, data);
if (soundflag == false) {
playSE(2);
}
task[i].state = 72;
task[i].sys[2] = 0;
data.buff[0] = i;
data.buff[1] = 0;
data.buff[2] = 72;
task[i].buff[16] = setEvent(HITLINE, data);
}
break;
task[i].buff[0]++;
if (task[i].buff[0] > hangeki) {
task[task[i].sys[4]].state = 2;
task[i].sys[4] = -1;
_root.enemy.enemy1.gotoAndStop(2);
task[i].state = 80;
task[i].buff[0] = 0;
} else {
if (task[i].sys[2] > 0) {
task[task[i].sys[4]].state = 2;
task[i].sys[4] = -1;
_root.player.gotoAndStop(3);
if (enemy_dmg(i)) {
return(undefined);
}
task[i].state = 20;
task[i].buff[0] = 5;
}
break;
task[i].buff[0]++;
if (task[i].buff[0] > 5) {
_root.enemy.enemy1.gotoAndStop(3);
if (reikoDmg(i)) {
break;
}
task[i].state = 20;
task[i].buff[0] = 0;
}
break;
task[i].buff[0]++;
if (task[i].buff[0] > 15) {
_root.player.gotoAndStop(1);
task[i].buff[0] = 0;
if (turnON) {
task[i].state = 200;
} else {
task[i].state = 10;
}
}
break;
break;
data.buff[0] = 10;
data.buff[2] = 60;
task[task[i].buff[18]].state = 100;
setBgm(0);
setEvent(BADEND, data);
task[i].state = 31;
break;
if (callMain()) {
data.buff[0] = 30;
setEvent(GAMEOVER, data);
task[i].state = 32;
}
break;
break;
task[i].buff[0]++;
if (task[i].buff[0] == 60) {
_root.enemy.enemy1.gotoAndStop(8);
task[i].state = 40;
if (soundflag == false) {
playSE(24);
}
}
break;
data.buff[0] = 30;
if (enemy_num == 4) {
data.buff[2] = 240;
} else {
data.buff[2] = 60;
}
task[task[i].buff[18]].state = 100;
setBgm(0);
setEvent(WINER, data);
task[i].state = 41;
break;
if (callMain()) {
task[task[i].buff[18]].state = 3;
task[task[i].buff[19]].state = 2;
allkill();
game_st = 1;
switch (game_lv) {
case 1 :
reikoHp = reikoHp + 100;
break;
case 2 :
reikoHp = reikoHp + 50;
break;
}
if (reikoHp > reikomax) {
reikoHp = reikomax;
}
_root.gotoAndStop(f_name[2][ura_f]);
demoNo = enemy_num + 2;
setBgm(1);
}
break;
task[i].buff[0]++;
if (task[i].buff[0] == 10) {
task[i].buff[0] = 0;
task[i].state = 51;
_root.enemy.enemy1.gotoAndStop(2);
_root.player.gotoAndStop(1);
}
break;
task[i].buff[0]++;
if (task[i].buff[0] == 5) {
task[i].buff[0] = 0;
task[i].state = 52;
_root.enemy.enemy1.gotoAndStop(3);
}
break;
if (reikoDmg(i)) {
} else {
task[i].buff[0] = 0;
task[i].state = 20;
}
}
}
case 72 :
task[i].buff[0]++;
if (task[i].buff[0] > hangeki) {
task[task[i].sys[4]].state = 2;
task[i].sys[4] = -1;
_root.enemy.enemy1.gotoAndStop(2);
task[i].state = 80;
task[i].buff[0] = 0;
} else {
if (task[i].sys[2] > 0) {
task[task[i].sys[4]].state = 2;
task[i].sys[4] = -1;
_root.player.gotoAndStop(3);
if (enemy_dmg(i)) {
return(undefined);
}
task[i].state = 20;
task[i].buff[0] = 5;
}
break;
task[i].buff[0]++;
if (task[i].buff[0] > 5) {
_root.enemy.enemy1.gotoAndStop(3);
if (reikoDmg(i)) {
break;
}
task[i].state = 20;
task[i].buff[0] = 0;
}
break;
task[i].buff[0]++;
if (task[i].buff[0] > 15) {
_root.player.gotoAndStop(1);
task[i].buff[0] = 0;
if (turnON) {
task[i].state = 200;
} else {
task[i].state = 10;
}
}
break;
break;
data.buff[0] = 10;
data.buff[2] = 60;
task[task[i].buff[18]].state = 100;
setBgm(0);
setEvent(BADEND, data);
task[i].state = 31;
break;
if (callMain()) {
data.buff[0] = 30;
setEvent(GAMEOVER, data);
task[i].state = 32;
}
break;
break;
task[i].buff[0]++;
if (task[i].buff[0] == 60) {
_root.enemy.enemy1.gotoAndStop(8);
task[i].state = 40;
if (soundflag == false) {
playSE(24);
}
}
break;
data.buff[0] = 30;
if (enemy_num == 4) {
data.buff[2] = 240;
} else {
data.buff[2] = 60;
}
task[task[i].buff[18]].state = 100;
setBgm(0);
setEvent(WINER, data);
task[i].state = 41;
break;
if (callMain()) {
task[task[i].buff[18]].state = 3;
task[task[i].buff[19]].state = 2;
allkill();
game_st = 1;
switch (game_lv) {
case 1 :
reikoHp = reikoHp + 100;
break;
case 2 :
reikoHp = reikoHp + 50;
break;
}
if (reikoHp > reikomax) {
reikoHp = reikomax;
}
_root.gotoAndStop(f_name[2][ura_f]);
demoNo = enemy_num + 2;
setBgm(1);
}
break;
task[i].buff[0]++;
if (task[i].buff[0] == 10) {
task[i].buff[0] = 0;
task[i].state = 51;
_root.enemy.enemy1.gotoAndStop(2);
_root.player.gotoAndStop(1);
}
break;
task[i].buff[0]++;
if (task[i].buff[0] == 5) {
task[i].buff[0] = 0;
task[i].state = 52;
_root.enemy.enemy1.gotoAndStop(3);
}
break;
if (reikoDmg(i)) {
} else {
task[i].buff[0] = 0;
task[i].state = 20;
}
}
case 80 :
task[i].buff[0]++;
if (task[i].buff[0] > 5) {
_root.enemy.enemy1.gotoAndStop(3);
if (reikoDmg(i)) {
break;
}
task[i].state = 20;
task[i].buff[0] = 0;
}
break;
case 20 :
task[i].buff[0]++;
if (task[i].buff[0] > 15) {
_root.player.gotoAndStop(1);
task[i].buff[0] = 0;
if (turnON) {
task[i].state = 200;
} else {
task[i].state = 10;
}
}
break;
case 200 :
break;
case 30 :
data.buff[0] = 10;
data.buff[2] = 60;
task[task[i].buff[18]].state = 100;
setBgm(0);
setEvent(BADEND, data);
task[i].state = 31;
break;
case 31 :
if (callMain()) {
data.buff[0] = 30;
setEvent(GAMEOVER, data);
task[i].state = 32;
}
break;
case 32 :
break;
case 100 :
task[i].buff[0]++;
if (task[i].buff[0] == 60) {
_root.enemy.enemy1.gotoAndStop(8);
task[i].state = 40;
if (soundflag == false) {
playSE(24);
}
}
break;
case 40 :
data.buff[0] = 30;
if (enemy_num == 4) {
data.buff[2] = 240;
} else {
data.buff[2] = 60;
}
task[task[i].buff[18]].state = 100;
setBgm(0);
setEvent(WINER, data);
task[i].state = 41;
break;
case 41 :
if (callMain()) {
task[task[i].buff[18]].state = 3;
task[task[i].buff[19]].state = 2;
allkill();
game_st = 1;
switch (game_lv) {
case 1 :
reikoHp = reikoHp + 100;
break;
case 2 :
reikoHp = reikoHp + 50;
break;
}
if (reikoHp > reikomax) {
reikoHp = reikomax;
}
_root.gotoAndStop(f_name[2][ura_f]);
demoNo = enemy_num + 2;
setBgm(1);
}
break;
case 50 :
task[i].buff[0]++;
if (task[i].buff[0] == 10) {
task[i].buff[0] = 0;
task[i].state = 51;
_root.enemy.enemy1.gotoAndStop(2);
_root.player.gotoAndStop(1);
}
break;
case 51 :
task[i].buff[0]++;
if (task[i].buff[0] == 5) {
task[i].buff[0] = 0;
task[i].state = 52;
_root.enemy.enemy1.gotoAndStop(3);
}
break;
case 52 :
if (reikoDmg(i)) {
} else {
task[i].buff[0] = 0;
task[i].state = 20;
}
}
enemyFace();
}
function guidance(i) {
if (enemy_num != 0) {
killtask(i);
return(undefined);
}
if (enemyHp < (enemyMh / 2)) {
killtask(i);
}
switch (task[i].state) {
case 0 :
task[i].buff[0] = 0;
if (task[i].buff[1] == 0) {
_root.guide_attack.gotoAndStop(2);
} else {
_root.guide_escape.gotoAndStop(2);
}
task[i].state = 1;
break;
case 1 :
task[i].buff[0]++;
if (task[i].buff[0] != 50) {
break;
}
if (task[i].buff[1] == 0) {
_root.guide_attack.gotoAndStop(1);
} else {
_root.guide_escape.gotoAndStop(1);
}
killtask(i);
}
}
function talkMain(i) {
flag = i;
}
function callMain() {
var _local2;
_local2 = flag;
flag = 0;
return(_local2);
}
function timebar(i) {
switch (task[i].state) {
case 0 :
out_of_wait_break = false;
_root.time_bar.time_barMC.myber._x = 210;
_root.time_bar.time_barMC.enemybar._x = 10;
_root.marker_flower._x = 278;
_root.time_bar.time_barMC.myber.gotoAndPlay(2);
_root.marker_flower.gotoAndStop(2);
_root.guidance_text.gotoAndStop(2);
task[i].state = 1;
case 1 :
_root.time_bar.time_barMC.myber._x = _root.time_bar.time_barMC.myber._x - enemyTm;
_root.time_bar.time_barMC.enemybar._x = _root.time_bar.time_barMC.enemybar._x - enemyTm;
_root.marker_flower._x = _root.marker_flower._x - enemyTm;
if (_root.time_bar.time_barMC.myber._x <= 10) {
_root.time_bar.time_barMC.myber._x = 10;
_root.time_bar.time_barMC.enemybar._x = -190;
_root.marker_flower._x = 88;
task[i].state = 4;
out_of_wait_flag = false;
out_of_wait_break = false;
}
if (out_of_wait_break) {
out_of_wait_break = false;
_root.time_bar.time_barMC.myber._x = 10;
_root.time_bar.time_barMC.enemybar._x = -190;
_root.marker_flower._x = 88;
task[i].state = 4;
out_of_wait_flag = false;
}
break;
case 2 :
_root.time_bar.time_barMC.myber._x = _root.time_bar.time_barMC.myber._x + enemyTm;
_root.time_bar.time_barMC.enemybar._x = _root.time_bar.time_barMC.enemybar._x + enemyTm;
_root.marker_flower._x = _root.marker_flower._x + enemyTm;
if (_root.time_bar.time_barMC.enemybar._x >= 10) {
_root.time_bar.time_barMC.myber._x = 210;
_root.time_bar.time_barMC.enemybar._x = 10;
_root.marker_flower._x = 288;
task[i].state = 5;
}
break;
case 3 :
killtask(i);
break;
case 4 :
if (turnON) {
if (task[task[i].buff[0]].state == 300) {
ret4(i);
}
} else if ((task[task[i].buff[0]].state == 4) || (task[task[i].buff[0]].state == 603)) {
ret4(i);
}
break;
case 5 :
if (turnON) {
if (task[task[i].buff[0]].state == 200) {
ret5(i);
}
} else if (task[task[i].buff[0]].state == 11) {
ret5(i);
}
break;
case 100 :
}
}
function ret4(i) {
task[i].state = 2;
_root.time_bar.time_barMC.myber.gotoAndStop(1);
_root.time_bar.time_barMC.enemybar.gotoAndPlay(2);
_root.marker_flower.gotoAndStop(3);
_root.guidance_text.gotoAndStop(3);
task[task[i].buff[0]].state = 10;
_root.mc_evasion.gotoAndStop(1);
_root.mc_counter.gotoAndStop(1);
_root.mc_attack.gotoAndStop(1);
task[task[task[i].buff[0]].sys[4]].state = 2;
task[task[i].buff[0]].sys[4] = -1;
}
function ret5(i) {
task[i].state = 1;
_root.time_bar.time_barMC.myber.gotoAndPlay(2);
_root.time_bar.time_barMC.enemybar.gotoAndStop(1);
_root.marker_flower.gotoAndStop(2);
_root.guidance_text.gotoAndStop(2);
task[task[i].buff[0]].state = 3;
_root.mc_evasion.gotoAndStop(1);
_root.mc_counter.gotoAndStop(1);
_root.mc_attack.gotoAndStop(1);
task[task[task[i].buff[0]].sys[4]].state = 2;
task[task[i].buff[0]].sys[4] = -1;
}
function badendDraw(i) {
switch (task[i].state) {
case 0 :
task[i].buff[1] = 0;
task[i].state = 1;
case 1 :
task[i].buff[1]++;
if (task[i].buff[1] >= task[i].buff[0]) {
setMcEvent(i, BADEND, 364, 240);
if (soundflag == false) {
playSE(12);
}
task[i].state = 2;
task[i].buff[1] = 0;
}
break;
case 2 :
task[i].buff[1]++;
if (task[i].buff[1] != (30 + task[i].buff[2])) {
break;
}
killtask(i);
talkMain(1);
}
}
function winerDraw(i) {
switch (task[i].state) {
case 0 :
task[i].buff[1] = 0;
task[i].state = 1;
case 1 :
task[i].buff[1]++;
if (task[i].buff[1] >= task[i].buff[0]) {
if (enemy_num != 4) {
setMcEvent(i, WINER, 364, 240);
}
if (soundflag == false) {
playSE(12);
}
task[i].state = 2;
task[i].buff[1] = 0;
}
break;
case 2 :
task[i].buff[1]++;
if (task[i].buff[1] != (30 + task[i].buff[2])) {
break;
}
out_of_num++;
killtask(i);
talkMain(1);
}
}
function gameoverDraw(i) {
switch (task[i].state) {
case 0 :
task[i].buff[1] = 0;
task[i].state = 1;
case 1 :
task[i].buff[1]++;
if (task[i].buff[1] >= task[i].buff[0]) {
setMcEvent(i, GAMEOVER, 364, 240);
task[i].state = 2;
task[i].buff[1] = 0;
}
break;
case 2 :
}
}
function kobaraKanri(i) {
var _local4;
var _local5 = 50.4;
var _local2 = 0;
switch (task[i].state) {
case 0 :
_local4 = 0;
while (_local4 != game_lv) {
_local2 = 0;
setMcEvent(i, KOBARA, 46.4 + (17.1 * _local4), 2);
task[i].buff[_local2] = task[i].sys[0];
_local2++;
task[i].buff[_local2] = task[i].sys[1];
_local2++;
_local4++;
}
task[i].state = 1;
break;
case 1 :
break;
case 2 :
task[i].sys[0] = -1;
task[i].sys[1] = -1;
_local2 = 0;
_local4 = 0;
while (_local4 != game_lv) {
_local2 = 0;
mcm[task[i].buff[_local2]].removeMovieClip();
reSetMcNum(task[i].sys[_local2]);
_local2++;
_local2++;
_local4++;
}
killtask(i);
}
}
function startDraw(i) {
switch (task[i].state) {
case 0 :
task[i].buff[1] = 0;
task[i].state = 1;
case 1 :
task[i].buff[1]++;
if (task[i].buff[1] >= task[i].buff[0]) {
setMcEvent(i, START, 364, 240);
if (soundflag == false) {
playSE(12);
}
task[i].state = 2;
task[i].buff[1] = 0;
}
break;
case 2 :
task[i].buff[1]++;
if (task[i].buff[1] != (30 + task[i].buff[2])) {
break;
}
killtask(i);
talkMain(1);
}
}
function barahpDraw(my) {
switch (task[my].state) {
case 0 :
task[my].buff[1]--;
if (task[my].buff[1] < 1) {
task[my].state = 1;
mcm[task[my].sys[0]].gotoAndStop("Birth");
task[my].buff[1] = 0;
}
break;
case 1 :
task[my].buff[1]++;
if (task[my].buff[1] == 10) {
mcm[task[my].sys[0]].gotoAndStop("Life");
task[my].state = 2;
}
break;
case 2 :
if (task[my].buff[0] > reikoHp) {
task[my].state = 3;
mcm[task[my].sys[0]].gotoAndStop("Death");
task[my].buff[1] = 0;
}
break;
case 3 :
task[my].buff[1]++;
if (task[my].buff[1] != 15) {
break;
}
killtask(my);
}
}
function tubakiHpDraw(my) {
switch (task[my].state) {
case 0 :
task[my].buff[1]--;
if (task[my].buff[1] < 1) {
task[my].state = 1;
mcm[task[my].sys[0]].gotoAndStop("Birth");
task[my].buff[1] = 0;
}
break;
case 1 :
task[my].buff[1]++;
if (task[my].buff[1] == 10) {
task[my].state = 2;
}
break;
case 2 :
if (task[my].buff[0] > enemyHp) {
task[my].state = 3;
mcm[task[my].sys[0]].gotoAndStop("Death");
task[my].buff[1] = 0;
}
break;
case 3 :
task[my].buff[1]++;
if (task[my].buff[1] != 15) {
break;
}
killtask(my);
}
}
function getGameLv() {
return(game_lv);
}
function setGameLv(lv) {
game_lv = lv;
}
function getSoundFlag() {
return(soundflag);
}
function setSoundFlag(f) {
soundflag = f;
if (f == true) {
bgmstop(nowBGM);
} else {
setBgm(nowBGM);
}
}
function setBgm(no) {
no--;
if (no < 0) {
bgmstop(nowBGM);
return(undefined);
}
if (nowBGM != no) {
bgmstop(nowBGM);
} else {
return(undefined);
}
musicObj[no].initPlay();
musicObj[no].setLoopPoint(0);
musicObj[no].startPlay(0);
nowBGM = no;
}
function bgmstop(no) {
if (no == -1) {
return(undefined);
}
musicObj[nowBGM].stop();
nowBGM = -1;
}
function stage(no) {
enemy_num = no;
game_st = 2;
}
function getDemoNo() {
return(demoNo);
}
function allClear() {
game_st = 0;
game_lv++;
if (game_lv == 6) {
game_lv = 5;
}
}
function playSE(i) {
soundObj[i].start(0);
}
var hpwari = 1000;
var myhpwari = 250;
var criticalhit = 5;
var swLine = 500;
var reikomax = 1500;
var debug = false;
var turnON = false;
var TUBAKI = 1;
var BARA = 2;
var START = 3;
var KOBARA = 4;
var GAMEMAIN = 5;
var TIME = 6;
var BADEND = 7;
var WINER = 8;
var GUID = 9;
var MYCHAR = 10;
var TEKI = 11;
var HITLINE = 12;
var BGMCHECKER = 13;
var GAMEOVER = 14;
var MOUSELINEDRAW = 15;
static var maxtask = 100;
static var maxlayer = 100;
var out_of_wait_lv = 4;
var out_of_wait_lv1 = 100;
var out_of_wait_lv2 = 100;
var out_of_wait_lv3 = 100;
var out_of_wait_lv4 = 70;
var out_of_wait_lv5 = 50;
}
Symbol 502 MovieClip [__Packages.duplex.Buffer] Frame 0
class duplex.Buffer
{
var buff, sys, myNum, state;
function Buffer () {
var _local2;
buff = new Array(MAXBUFF);
sys = new Array(SYSTEM);
_local2 = 0;
while (_local2 != MAXBUFF) {
buff[_local2] = 0;
_local2++;
}
_local2 = 0;
while (_local2 != SYSTEM) {
sys[_local2] = 0;
_local2++;
}
myNum = -1;
state = -1;
}
static var MAXBUFF = 20;
static var SYSTEM = 5;
}
Symbol 503 MovieClip [__Packages.duplex.Sub] Frame 0
class duplex.Sub
{
function Sub () {
}
function lineCrossPoint(sx1, sy1, sx2, sy2, dx1, dy1, dx2, dy2) {
var _local6;
var _local5;
_local6 = dx2 - dx1;
_local5 = dy2 - dy1;
var _local18 = sx2 - sx1;
var _local14 = sy2 - sy1;
var _local2 = -_local14;
var _local1 = _local18;
var _local3 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if (_local3 > 0) {
_local3 = 1 / _local3;
}
_local2 = _local2 * _local3;
_local1 = _local1 * _local3;
var _local9 = -((sx1 * _local2) + (sy1 * _local1));
var _local4 = (-(((_local2 * dx1) + (_local1 * dy1)) + _local9)) / ((_local2 * _local6) + (_local1 * _local5));
var _local8 = dx1 + (_local6 * _local4);
var _local7 = dy1 + (_local5 * _local4);
var _local15 = _local8 - sx1;
var _local11 = _local7 - sy1;
var _local20 = _local8 - sx2;
var _local19 = _local7 - sy2;
var _local10 = (_local15 * _local20) + (_local11 * _local19);
if (_local10 < 0) {
if ((_local4 > 0) && (_local4 <= 1)) {
return(true);
}
}
return(false);
}
function pointLength(ax, ay, bx, by) {
var _local2 = bx - ax;
var _local1 = by - ay;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
}
function getC(x1, y1, x2, y2) {
var _local1;
x1 = x2 - x1;
y1 = y2 - y1;
_local1 = Math.atan2(y1, x1);
_local1 = _local1 / Math.PI;
_local1 = _local1 * 180;
return(_local1);
}
function getBezPoint(p0, p1, p2, d) {
var _local2 = {x:0, y:0};
var _local1 = (1 - d) * (1 - d);
_local2.x = _local2.x + (_local1 * p0.x);
_local2.y = _local2.y + (_local1 * p0.y);
_local1 = (2 * d) * (1 - d);
_local2.x = _local2.x + (_local1 * p1.x);
_local2.y = _local2.y + (_local1 * p1.y);
_local1 = d * d;
_local2.x = _local2.x + (_local1 * p2.x);
_local2.y = _local2.y + (_local1 * p2.y);
return(_local2);
}
}
Symbol 504 MovieClip [__Packages.duplex.ATask] Frame 0
class duplex.ATask
{
function ATask () {
}
function inidata(ob, no) {
switch (no) {
case 0 :
ob.enemyMh = (ob.enemyHp = 3500);
ob.enemyLk = 8;
ob.enemyPw = 50;
ob.enemyTs = 100;
ob.enemyCt = 45;
ob.enemyDr = 30;
ob.enemyRr = 4;
ob.enemyX1 = 292;
ob.enemyY1 = 110;
ob.enemyX2 = 277;
ob.enemyY2 = 218;
ob.enemyX1b = 302;
ob.enemyY1b = 157;
ob.enemyX2b = 297;
ob.enemyY2b = 192;
ob.enemyX1c = 349;
ob.enemyY1c = 178;
ob.enemyX2c = 346;
ob.enemyY2c = 193;
ob.enemyXX = 150;
ob.enemyKC = 25;
ob.hangeki = 30;
ob.enemyTm = 2;
_root.background.gotoAndStop("Nomal");
ob.setBgm(2);
ob.enemyNum = 0;
break;
case 1 :
ob.enemyMh = (ob.enemyHp = 4200);
ob.enemyLk = 15;
ob.enemyPw = 70;
ob.enemyTs = 130;
ob.enemyCt = 50;
ob.enemyDr = 35;
ob.enemyRr = 4;
ob.enemyX1 = 286;
ob.enemyY1 = 138;
ob.enemyX2 = 245;
ob.enemyY2 = 245;
ob.enemyX1b = 292;
ob.enemyY1b = 211;
ob.enemyX2b = 268;
ob.enemyY2b = 235;
ob.enemyX1c = 332;
ob.enemyY1c = 236;
ob.enemyX2c = 324;
ob.enemyY2c = 251;
ob.enemyXX = 150;
ob.enemyKC = 6;
ob.hangeki = 45;
ob.enemyTm = 3;
_root.background.gotoAndStop("Nomal");
ob.setBgm(2);
ob.enemyNum = 0;
break;
case 2 :
ob.enemyMh = (ob.enemyHp = 4000);
ob.enemyLk = 20;
ob.enemyPw = 40;
ob.enemyTs = 100;
ob.enemyCt = 50;
ob.enemyDr = 30;
ob.enemyRr = 4;
ob.enemyX1 = 342;
ob.enemyY1 = 132;
ob.enemyX2 = 333;
ob.enemyY2 = 233;
ob.enemyX1b = 373;
ob.enemyY1b = 183;
ob.enemyX2b = 371;
ob.enemyY2b = 217;
ob.enemyX1c = 408;
ob.enemyY1c = 196;
ob.enemyX2c = 407;
ob.enemyY2c = 218;
ob.enemyXX = 90;
ob.enemyKC = 30;
ob.hangeki = 30;
ob.enemyTm = 3;
_root.background.gotoAndStop("Nomal");
ob.setBgm(2);
ob.enemyNum = 0;
break;
case 3 :
ob.enemyMh = (ob.enemyHp = 4500);
ob.enemyLk = 30;
ob.enemyPw = 120;
ob.enemyTs = 160;
ob.enemyCt = 40;
ob.enemyDr = 40;
ob.enemyRr = 5;
ob.enemyX1 = 306;
ob.enemyY1 = 68;
ob.enemyX2 = 268;
ob.enemyY2 = 176;
ob.enemyX1b = 319;
ob.enemyY1b = 67;
ob.enemyX2b = 312;
ob.enemyY2b = 98;
ob.enemyX1c = 363;
ob.enemyY1c = 78;
ob.enemyX2c = 355;
ob.enemyY2c = 108;
ob.enemyXX = 90;
ob.enemyKC = 4;
ob.hangeki = 40;
ob.enemyTm = 2;
_root.background.gotoAndStop("Nomal");
ob.setBgm(2);
ob.enemyNum = 1;
break;
case 4 :
ob.enemyMh = (ob.enemyHp = 3500);
ob.enemyLk = 40;
ob.enemyPw = 160;
ob.enemyTs = 180;
ob.enemyCt = 30;
ob.enemyDr = 25;
ob.enemyRr = 6;
ob.enemyX1 = 304;
ob.enemyY1 = 117;
ob.enemyX2 = 296;
ob.enemyY2 = 198;
ob.enemyX1b = 342;
ob.enemyY1b = 178;
ob.enemyX2b = 340;
ob.enemyY2b = 190;
ob.enemyX1c = 392;
ob.enemyY1c = 202;
ob.enemyX2c = 391;
ob.enemyY2c = 210;
ob.enemyXX = 80;
ob.enemyKC = 15;
ob.hangeki = 25;
ob.enemyTm = 5;
_root.background.gotoAndStop("Boss");
ob.setBgm(3);
ob.enemyNum = 2;
}
ob.data.buff[0] = 30;
ob.data.buff[2] = 30;
ob.setEvent(ob.START, ob.data);
_root.enemy.gotoAndStop(no + 1);
_root.enemyname.enemynameMC.gotoAndStop(no + 1);
ob.guid_esc = false;
ob.guid_atk = false;
ob.enemyHp = ob.enemyHp + ((ob.enemyHp / 4) * (ob.game_lv - 1));
ob.enemyLk = ob.enemyLk + ((ob.enemyLk / 4) * (ob.game_lv - 1));
ob.enemyPw = ob.enemyPw + (3 * (ob.game_lv - 1));
ob.enemyDr = ob.enemyDr - (2 * (ob.game_lv - 1));
ob.hangeki = ob.hangeki - (2 * (ob.game_lv - 1));
}
}
Symbol 505 MovieClip [__Packages.duplex.BTask] Frame 0
class duplex.BTask
{
function BTask () {
}
function inidata(ob, no) {
switch (no) {
case 0 :
ob.enemyMh = (ob.enemyHp = 3500);
ob.enemyLk = 8;
ob.enemyPw = 50;
ob.enemyTs = 100;
ob.enemyCt = 45;
ob.enemyDr = 30;
ob.enemyRr = 4;
ob.enemyX1 = 292;
ob.enemyY1 = 110;
ob.enemyX2 = 277;
ob.enemyY2 = 218;
ob.enemyX1b = 302;
ob.enemyY1b = 157;
ob.enemyX2b = 297;
ob.enemyY2b = 192;
ob.enemyX1c = 349;
ob.enemyY1c = 178;
ob.enemyX2c = 346;
ob.enemyY2c = 193;
ob.enemyXX = 150;
ob.enemyKC = 25;
ob.hangeki = 30;
ob.enemyTm = 2;
_root.background.gotoAndStop("Nomal");
ob.setBgm(2);
ob.enemyNum = 0;
break;
case 1 :
ob.enemyMh = (ob.enemyHp = 4200);
ob.enemyLk = 15;
ob.enemyPw = 70;
ob.enemyTs = 130;
ob.enemyCt = 50;
ob.enemyDr = 35;
ob.enemyRr = 4;
ob.enemyX1 = 286;
ob.enemyY1 = 138;
ob.enemyX2 = 245;
ob.enemyY2 = 245;
ob.enemyX1b = 292;
ob.enemyY1b = 211;
ob.enemyX2b = 268;
ob.enemyY2b = 235;
ob.enemyX1c = 332;
ob.enemyY1c = 236;
ob.enemyX2c = 324;
ob.enemyY2c = 251;
ob.enemyXX = 150;
ob.enemyKC = 6;
ob.hangeki = 45;
ob.enemyTm = 3;
_root.background.gotoAndStop("Nomal");
ob.setBgm(2);
ob.enemyNum = 0;
break;
case 2 :
ob.enemyMh = (ob.enemyHp = 4000);
ob.enemyLk = 20;
ob.enemyPw = 40;
ob.enemyTs = 100;
ob.enemyCt = 50;
ob.enemyDr = 30;
ob.enemyRr = 4;
ob.enemyX1 = 342;
ob.enemyY1 = 132;
ob.enemyX2 = 333;
ob.enemyY2 = 233;
ob.enemyX1b = 373;
ob.enemyY1b = 183;
ob.enemyX2b = 371;
ob.enemyY2b = 217;
ob.enemyX1c = 408;
ob.enemyY1c = 196;
ob.enemyX2c = 407;
ob.enemyY2c = 218;
ob.enemyXX = 90;
ob.enemyKC = 30;
ob.hangeki = 30;
ob.enemyTm = 3;
_root.background.gotoAndStop("Nomal");
ob.setBgm(2);
ob.enemyNum = 0;
break;
case 3 :
ob.enemyMh = (ob.enemyHp = 4500);
ob.enemyLk = 30;
ob.enemyPw = 120;
ob.enemyTs = 160;
ob.enemyCt = 40;
ob.enemyDr = 40;
ob.enemyRr = 5;
ob.enemyX1 = 306;
ob.enemyY1 = 68;
ob.enemyX2 = 268;
ob.enemyY2 = 176;
ob.enemyX1b = 319;
ob.enemyY1b = 67;
ob.enemyX2b = 312;
ob.enemyY2b = 98;
ob.enemyX1c = 363;
ob.enemyY1c = 78;
ob.enemyX2c = 355;
ob.enemyY2c = 108;
ob.enemyXX = 90;
ob.enemyKC = 4;
ob.hangeki = 40;
ob.enemyTm = 2;
_root.background.gotoAndStop("Nomal");
ob.setBgm(2);
ob.enemyNum = 1;
break;
case 4 :
ob.enemyMh = (ob.enemyHp = 3500);
ob.enemyLk = 40;
ob.enemyPw = 160;
ob.enemyTs = 180;
ob.enemyCt = 30;
ob.enemyDr = 25;
ob.enemyRr = 6;
ob.enemyX1 = 304;
ob.enemyY1 = 117;
ob.enemyX2 = 296;
ob.enemyY2 = 198;
ob.enemyX1b = 342;
ob.enemyY1b = 178;
ob.enemyX2b = 340;
ob.enemyY2b = 190;
ob.enemyX1c = 392;
ob.enemyY1c = 202;
ob.enemyX2c = 391;
ob.enemyY2c = 210;
ob.enemyXX = 80;
ob.enemyKC = 15;
ob.hangeki = 25;
ob.enemyTm = 5;
_root.background.gotoAndStop("Boss");
ob.setBgm(3);
ob.enemyNum = 2;
}
ob.data.buff[0] = 30;
ob.data.buff[2] = 30;
ob.setEvent(ob.START, ob.data);
_root.enemy.gotoAndStop(no + 1);
_root.enemyname.enemynameMC.gotoAndStop(no + 1);
ob.guid_esc = false;
ob.guid_atk = false;
ob.enemyHp = ob.enemyHp + ((ob.enemyHp / 4) * (ob.game_lv - 1));
ob.enemyLk = ob.enemyLk + ((ob.enemyLk / 4) * (ob.game_lv - 1));
ob.enemyPw = ob.enemyPw + (3 * (ob.game_lv - 1));
ob.enemyDr = ob.enemyDr - (2 * (ob.game_lv - 1));
ob.hangeki = ob.hangeki - (2 * (ob.game_lv - 1));
}
}
Symbol 506 MovieClip [__Packages.duplex.MouseLine] Frame 0
class duplex.MouseLine
{
var po, ob, name, defaultMC, maxFrame, lineMc, lineFl, myMath;
function MouseLine (myMC, st, nm, dep) {
var _local2;
var _local3;
po = new Array(3);
_local2 = 0;
while (_local2 < 3) {
po[_local2] = {x:0, y:0};
_local2++;
}
ob = {x:-1, y:-1};
name = nm;
defaultMC = myMC.createEmptyMovieClip(st, dep);
_local3 = defaultMC.attachMovie(name, name + defaultMC.getNextHighestDepth(), defaultMC.getNextHighestDepth());
maxFrame = _local3._totalframes;
_local3.removeMovieClip();
lineMc = new Array(4);
_local2 = 0;
while (_local2 != 4) {
lineMc[_local2] = new Array(maxFrame + 2);
_local2++;
}
lineFl = new Array(maxFrame + 2);
_local2 = 0;
while (_local2 != (maxFrame + 2)) {
lineFl[_local2] = -1;
_local2++;
}
myMath = new duplex.Sub();
}
function drawLine(x1, y1, x2, y2) {
var _local3;
var _local11;
var _local10;
var _local9;
var _local2 = {x:0, y:0};
var _local4 = {x:0, y:0};
_local3 = 0;
while (_local3 != (maxFrame + 2)) {
if (lineFl[_local3] == -1) {
lineFl[_local3] = maxFrame - 1;
if (ob.x == -1) {
po[0].x = (po[1].x = x1);
po[0].y = (po[1].y = y1);
po[2].x = x2;
po[2].y = y2;
} else {
po[0].x = x1;
po[0].y = y1;
po[1].x = ob.x;
po[1].y = ob.y;
po[2].x = x2;
po[2].y = y2;
}
lineMc[0][_local3] = defaultMC.attachMovie(name, name + defaultMC.getNextHighestDepth(), defaultMC.getNextHighestDepth());
_local2 = myMath.getBezPoint(po[0], po[1], po[2], 0.25);
sumPoint(x1, y1, _local2.x, _local2.y, 0, _local3);
_local4.x = _local2.x;
_local4.y = _local2.y;
lineMc[1][_local3] = defaultMC.attachMovie(name, name + defaultMC.getNextHighestDepth(), defaultMC.getNextHighestDepth());
_local2 = myMath.getBezPoint(po[0], po[1], po[2], 0.5);
sumPoint(_local4.x, _local4.y, _local2.x, _local2.y, 1, _local3);
_local4.x = _local2.x;
_local4.y = _local2.y;
lineMc[2][_local3] = defaultMC.attachMovie(name, name + defaultMC.getNextHighestDepth(), defaultMC.getNextHighestDepth());
_local2 = myMath.getBezPoint(po[0], po[1], po[2], 0.75);
sumPoint(_local4.x, _local4.y, _local2.x, _local2.y, 2, _local3);
_local4.x = _local2.x;
_local4.y = _local2.y;
lineMc[3][_local3] = defaultMC.attachMovie(name, name + defaultMC.getNextHighestDepth(), defaultMC.getNextHighestDepth());
_local2 = myMath.getBezPoint(po[0], po[1], po[2], 1);
sumPoint(_local4.x, _local4.y, _local2.x, _local2.y, 3, _local3);
_local10 = x2 - _local4.x;
_local9 = y2 - _local4.y;
ob.x = x2 + _local10;
ob.y = y2 + _local9;
break;
}
_local3++;
}
_local3 = 0;
while (_local3 != (maxFrame + 2)) {
if (lineFl[_local3] > 0) {
lineLife(_local3);
}
_local3++;
}
}
function sumPoint(x1, y1, x2, y2, j, i) {
lineMc[j][i].blendMode = 8;
lineMc[j][i]._alpha = 60;
lineMc[j][i]._height = myMath.pointLength(x1, y1, x2, y2) + (lineMc[j][i]._width / 2);
lineMc[j][i]._rotation = myMath.getC(x1, y1, x2, y2) + 90;
lineMc[j][i]._x = Math.abs((x2 + x1) / 2);
lineMc[j][i]._y = Math.abs((y2 + y1) / 2);
}
function lineLife(i) {
lineFl[i]--;
if (lineFl[i] == 0) {
lineMc[0][i].removeMovieClip();
lineMc[1][i].removeMovieClip();
lineMc[2][i].removeMovieClip();
lineMc[3][i].removeMovieClip();
lineFl[i] = -1;
}
}
function setAlpha(i) {
defaultMC._alpha = i;
}
function final() {
var _local2;
_local2 = 0;
while (_local2 != (maxFrame + 2)) {
if (lineFl[_local2] > -1) {
lineMc[0][_local2].removeMovieClip();
lineMc[1][_local2].removeMovieClip();
lineMc[2][_local2].removeMovieClip();
lineMc[3][_local2].removeMovieClip();
lineFl[_local2] = -1;
}
_local2++;
}
defaultMC._alpha = 100;
ob.x = -1;
ob.y = -1;
}
}
Symbol 507 MovieClip [__Packages.nigoro.lib.samieru.NigoroFlashManager] Frame 0
class nigoro.lib.samieru.NigoroFlashManager
{
static var BGM_LAYER, GAME_LEVEL, GAME_ID, PLAYER_NAME, MASTER_VOLUME, ACCESS_STATUS, NIGORO_SESSION_ID;
function NigoroFlashManager () {
}
static function startSystem(base_mc) {
BGM_LAYER = base_mc.createEmptyMovieClip("music_layer", base_mc.getNextHighestDepth());
GAME_LEVEL = 0;
GAME_ID = "";
PLAYER_NAME = "";
SYSTEM_STARTED = true;
if (flash.external.ExternalInterface.available) {
flash.external.ExternalInterface.addCallback("outOfSwf", null, outOfSwf);
}
}
static function setPlayerName(namestr) {
PLAYER_NAME = namestr;
}
static function getPlayerName() {
if ((PLAYER_NAME != undefined) && (PLAYER_NAME.length > 0)) {
return(PLAYER_NAME);
}
return("");
}
static function setFlashQuality(qt) {
_quality = qt;
}
static function isSystemStarted() {
return(SYSTEM_STARTED);
}
static function getBgmLayer() {
return(BGM_LAYER);
}
static function setBgmMute(flag) {
var _local1 = new Sound(getBgmLayer());
if (flag) {
_local1.setVolume(0);
} else {
_local1.setVolume(100);
}
}
static function isMute() {
return(MUTE);
}
static function setMute(flag) {
MUTE = flag;
if (MUTE) {
MASTER_SOUND.setVolume(0);
} else {
MASTER_SOUND.setVolume(MASTER_VOLUME);
}
}
static function setMasterVolume(vol) {
if (MUTE) {
MASTER_SOUND.setVolume(0);
} else {
MASTER_SOUND.setVolume(vol);
}
MASTER_VOLUME = vol;
}
static function setSWFFlag(flag) {
OUT_OF_SWF = flag;
}
static function isPause() {
return(PAUSED);
}
static function setPause(pause_flag) {
PAUSED = pause_flag;
}
static function outOfSwf() {
setSWFFlag(true);
}
static function getGameLevel() {
return(GAME_LEVEL);
}
static function getGameID() {
return(GAME_ID);
}
static function setGameLevel(level) {
GAME_LEVEL = level;
}
static function setGameID(id) {
GAME_ID = id;
}
static function getAccessStatus() {
return(ACCESS_STATUS);
}
static function setAccessStatus(status) {
ACCESS_STATUS = status;
}
static function checkGameClear() {
var _local2 = new nigoro.lib.samieru.event.GameClearListener();
var _local1 = new LoadVars();
_local1.id = GAME_ID;
_local1.level = GAME_LEVEL;
ACCESS_STATUS = 1;
NIGORO_SESSION_ID = "";
_local1.sendAndLoad("/register/clearcheck.php", _local2, "POST");
}
static function setNigoroSession(sid) {
NIGORO_SESSION_ID = sid;
}
static function getNigoroSession() {
return(NIGORO_SESSION_ID);
}
static var MASTER_SOUND = new Sound();
static var OUT_OF_SWF = false;
static var PAUSED = false;
static var ACCESS_STATUS_OK = 0;
static var ACCESS_STATUS_RUNNING = 1;
static var ACCESS_STATUS_ERROR = 2;
static var SYSTEM_STARTED = false;
static var MUTE = false;
}
Symbol 508 MovieClip [__Packages.nigoro.lib.samieru.event.GameClearListener] Frame 0
class nigoro.lib.samieru.event.GameClearListener extends LoadVars
{
var NIGORO;
function GameClearListener () {
super();
}
function onLoad(success) {
if (success) {
if ((NIGORO != "") && (NIGORO != "ERROR")) {
nigoro.lib.samieru.NigoroFlashManager.setNigoroSession(NIGORO);
nigoro.lib.samieru.NigoroFlashManager.setAccessStatus(nigoro.lib.samieru.NigoroFlashManager.ACCESS_STATUS_OK);
} else {
nigoro.lib.samieru.NigoroFlashManager.setAccessStatus(nigoro.lib.samieru.NigoroFlashManager.ACCESS_STATUS_ERROR);
}
} else {
nigoro.lib.samieru.NigoroFlashManager.setAccessStatus(nigoro.lib.samieru.NigoroFlashManager.ACCESS_STATUS_ERROR);
}
}
}
Symbol 509 MovieClip [__Packages.duplex.data.MusicLib] Frame 0
class duplex.data.MusicLib
{
function MusicLib () {
}
static var MUSICS = ["demobgm", "nf", "bf", "titlebgm"];
}
Symbol 510 MovieClip [__Packages.nigoro.lib.samieru.sound.MusicPlayer] Frame 0
class nigoro.lib.samieru.sound.MusicPlayer extends Sound
{
var loop_point, vol, count, start_point, playing, loops, lp_cnt;
function MusicPlayer (mc) {
super(mc);
loop_point = 0;
}
function initPlay() {
vol = 100;
count = 0;
start_point = 0;
playing = false;
}
function isPlaying() {
return(playing);
}
function setLoopPoint(ms) {
loop_point = ms;
}
function startPlay(lp) {
loops = lp;
lp_cnt = 0;
setVolume(vol);
start(0);
playing = true;
}
function fadeOut(speed) {
vol = vol - speed;
if (vol < 0) {
vol = 0;
}
if (vol > 0) {
setVolume(vol);
} else {
stop();
}
}
function fadeIn(speed) {
setVolume(vol + speed);
}
function onSoundComplete() {
if (loops > 0) {
if ((++lp_cnt) >= loops) {
stop();
return(undefined);
}
}
start(loop_point);
}
function start(point) {
playing = true;
super.start(point);
}
function stop() {
playing = false;
super.stop();
}
function setVolume(volume) {
if (volume < 0) {
vol = 0;
}
if (volume > 100) {
volume = 100;
}
super.setVolume(volume);
}
}
Symbol 511 MovieClip [__Packages.duplex.data.SoundLib] Frame 0
class duplex.data.SoundLib
{
function SoundLib () {
}
static var SOUNDS = ["clickok", "doorwav", "drugok", "hanae_finalhit", "hanae_hit1", "hanae_hit2", "hanae_miss", "miss", "mita_finalhit", "mita_hit1", "mita_hit2", "mita_miss", "reiko_down", "reiko_finalhit", "reiko_hit1", "reiko_hit2", "saori_finalhit", "saori_hit1", "saori_hit2", "tsubaki_finalhit", "tsubaki_hit1", "tsubaki_hit2", "tsubaki_hit3.wav", "tsubaki_miss", "tsubaki_out", "turn_start.wav", "kasuga_finalhit", "kasuga_hit1", "kasuga_hit2", "kasuga_miss", "mita2_finalhit", "mita2_hit1", "mita2_hit2", "mita2_miss", "reiko2_charge", "reiko2_finalhit", "reiko2_hit1", "reiko2_hit2", "reiko2_lightning", "reiko2_miss"];
static var CHAR_SOUND = [[17, 18, 7, 16], [17, 18, 7, 16], [31, 32, 33, 30], [27, 28, 29, 26], [36, 37, 39, 35]];
}
Symbol 73 Button
on (release) {
_root.game.Gs.setGameLv(1);
}
Symbol 74 Button
on (release) {
_root.game.Gs.setGameLv(2);
}
Symbol 75 Button
on (release) {
_root.game.Gs.setGameLv(3);
}
Symbol 76 Button
on (release) {
_root.game.Gs.setGameLv(4);
}
Symbol 77 Button
on (release) {
_root.game.Gs.setGameLv(5);
}
Symbol 81 Button
on (release) {
this.level_changer.enabled = false;
this.play();
_root.game.Gs.playSE(12);
}
Symbol 82 MovieClip Frame 1
NowLv = _root.game.Gs.getGameLv();
i = 1;
while (i <= 5) {
obj = eval ("this.lv" + i);
obj._alpha = 100 - (60 * (i > NowLv));
i++;
}
Symbol 83 MovieClip Frame 36
stop();
Symbol 83 MovieClip Frame 37
_root.game.Gs.fo(3);
Symbol 83 MovieClip Frame 80
_root.game.Gs.setBgm(1);
this._parent.gotoAndStop("demo");
Symbol 85 MovieClip Frame 93
_parent.nextFrame();
Symbol 117 Button
on (release) {
_root.game.Gs.stage(0);
}
Symbol 138 Button
on (release) {
this.play();
}
Symbol 139 Button
on (release) {
this.play();
}
Symbol 140 MovieClip Frame 1
stop();
Instance of Symbol 115 MovieClip in Symbol 140 MovieClip Frame 1
on (release) {
_parent.nextFrame();
}
Symbol 140 MovieClip Frame 11
_root.game.Gs.fo(5);
Symbol 140 MovieClip Frame 32
_root.game.Gs.stage(0);
Symbol 149 Button
on (release) {
_root.game.Gs.stage(1);
}
Symbol 156 MovieClip Frame 5
stop();
Symbol 164 MovieClip Frame 10
stop();
Symbol 165 MovieClip Frame 1
stop();
Instance of Symbol 115 MovieClip in Symbol 165 MovieClip Frame 1
on (release) {
_parent.nextFrame();
}
Symbol 165 MovieClip Frame 9
_root.game.Gs.fo(5);
Symbol 165 MovieClip Frame 30
_root.game.Gs.stage(1);
Symbol 167 Button
on (release) {
_root.game.Gs.stage(2);
}
Symbol 183 MovieClip Frame 6
stop();
Symbol 190 MovieClip Frame 89
stop();
Symbol 192 MovieClip Frame 1
stop();
Instance of Symbol 115 MovieClip in Symbol 192 MovieClip Frame 1
on (release) {
_parent.nextFrame();
}
Symbol 192 MovieClip Frame 11
_root.game.Gs.fo(5);
Symbol 192 MovieClip Frame 32
_root.game.Gs.stage(2);
Symbol 194 Button
on (release) {
_root.game.Gs.stage(3);
}
Symbol 212 MovieClip Frame 42
stop();
Symbol 213 MovieClip Frame 60
stop();
Symbol 216 MovieClip Frame 50
stop();
Symbol 217 MovieClip Frame 1
stop();
Instance of Symbol 115 MovieClip in Symbol 217 MovieClip Frame 1
on (release) {
_parent.nextFrame();
}
Symbol 217 MovieClip Frame 9
_root.game.Gs.fo(5);
Symbol 217 MovieClip Frame 30
_root.game.Gs.stage(3);
Symbol 221 Button
on (release) {
gotoAndPlay (31);
}
Symbol 233 MovieClip Frame 5
stop();
Symbol 247 MovieClip Frame 8
stop();
Symbol 249 MovieClip Frame 1
stop();
Instance of Symbol 115 MovieClip in Symbol 249 MovieClip Frame 1
on (release) {
_parent.nextFrame();
}
Symbol 249 MovieClip Frame 11
_root.game.Gs.fo(5);
Symbol 249 MovieClip Frame 32
_root.game.Gs.stage(4);
Symbol 267 MovieClip Frame 5
stop();
Symbol 275 MovieClip Frame 1065
stop();
Symbol 276 MovieClip Frame 1
stop();
Instance of Symbol 115 MovieClip in Symbol 276 MovieClip Frame 1
on (release) {
_parent.nextFrame();
}
Instance of Symbol 115 MovieClip in Symbol 276 MovieClip Frame 6
on (release) {
_parent.gotoAndPlay(7);
}
Symbol 276 MovieClip Frame 7
_root.game.Gs.fo(3);
Symbol 276 MovieClip Frame 44
_root.game.Gs.setBgm(2);
Symbol 276 MovieClip Frame 104
stop();
Instance of Symbol 115 MovieClip in Symbol 276 MovieClip Frame 104
on (release) {
_parent.gotoAndPlay(105);
}
Symbol 276 MovieClip Frame 105
_root.game.Gs.fo(4);
Symbol 276 MovieClip Frame 146
stop();
_root.game.Gs.allClear();
_root.gotoAndStop("title");
Symbol 276 MovieClip Frame 147
stop();
Symbol 277 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 1
stop();
Symbol 299 MovieClip Frame 2
stop();
Symbol 300 MovieClip Frame 11
stop();
Symbol 305 MovieClip Frame 120
stop();
Symbol 306 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 1
stop();
Symbol 328 MovieClip Frame 120
stop();
Symbol 329 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 1
stop();
Symbol 355 MovieClip Frame 120
stop();
Symbol 356 MovieClip Frame 1
stop();
Symbol 367 MovieClip Frame 1
stop();
Symbol 382 MovieClip Frame 180
stop();
Symbol 383 MovieClip Frame 1
stop();
Symbol 392 MovieClip Frame 1
stop();
Symbol 399 MovieClip Frame 12
stop();
Symbol 413 MovieClip Frame 15
Symbol 414 MovieClip Frame 7
stop();
Symbol 415 MovieClip Frame 11
stop();
Symbol 418 MovieClip Frame 5
stop();
Symbol 424 MovieClip Frame 45
stop();
Symbol 425 MovieClip Frame 15
stop();
Symbol 426 MovieClip Frame 1
_root.game.Gs.playSE(34);
_parent._parent._parent.player._alpha = 0;
_parent._parent._parent.guidance_text._alpha = 0;
Symbol 426 MovieClip Frame 61
_root.game.Gs.playSE(38);
Symbol 426 MovieClip Frame 180
stop();
Symbol 427 MovieClip Frame 1
stop();
Symbol 428 MovieClip Frame 1
stop();
Symbol 439 MovieClip Frame 2
stop();
Symbol 442 MovieClip Frame 11
stop();
Symbol 445 MovieClip Frame 120
stop();
Symbol 446 MovieClip Frame 1
stop();
Symbol 449 MovieClip Frame 1
stop();
Symbol 451 MovieClip Frame 27
stop();
Symbol 452 MovieClip Frame 1
stop();
Symbol 452 MovieClip Frame 3
stop();
Symbol 454 MovieClip Frame 27
stop();
Symbol 455 MovieClip Frame 1
stop();
Symbol 455 MovieClip Frame 3
stop();
Symbol 458 MovieClip Frame 15
stop();
Symbol 461 MovieClip Frame 15
_parent.nextFrame();
Symbol 462 Button
on (press) {
_root.game.Gs.talkMain(1);
_root.player.gotoAndStop(2);
this.gotoAndStop(1);
}
Symbol 463 MovieClip Frame 1
stop();
Instance of Symbol 461 MovieClip in Symbol 463 MovieClip Frame 2
on (press) {
_root.game.Gs.talkMain(1);
_root.player.gotoAndStop(2);
this.gotoAndStop(1);
}
Symbol 466 MovieClip Frame 15
_parent.nextFrame();
Symbol 467 Button
on (press) {
_root.game.Gs.talkMain(1);
}
Symbol 468 MovieClip Frame 1
stop();
Instance of Symbol 466 MovieClip in Symbol 468 MovieClip Frame 2
on (press) {
_root.game.Gs.talkMain(1);
}
Symbol 471 MovieClip Frame 15
_parent.nextFrame();
Symbol 472 Button
on (press) {
_root.game.Gs.talkMain(2);
}
Symbol 473 MovieClip Frame 1
stop();
Instance of Symbol 471 MovieClip in Symbol 473 MovieClip Frame 2
on (press) {
_root.game.Gs.talkMain(2);
}
Symbol 480 MovieClip Frame 1
stop();
Symbol 480 MovieClip Frame 11
gotoAndPlay (2);
Symbol 486 MovieClip Frame 1
stop();
Symbol 486 MovieClip Frame 11
gotoAndPlay (2);
Symbol 489 MovieClip Frame 15
stop();
Symbol 495 MovieClip Frame 1
stop();
Symbol 496 MovieClip Frame 15
stop();
Symbol 499 MovieClip Frame 15
stop();
Symbol 500 MovieClip Frame 1
stop();