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 31 Button
on (release) {
_root.game.Gs.game_st = 0;
_root.game.Gs.allkill();
}
Symbol 32 MovieClip [mcText_gameover] Frame 30
stop();
Symbol 34 MovieClip [mcText_lose] Frame 30
stop();
Symbol 36 MovieClip [mcText_win] Frame 30
stop();
Symbol 38 MovieClip [mcText_start] Frame 30
stop();
Symbol 40 MovieClip Frame 10
stop();
Symbol 42 MovieClip Frame 16
stop();
Symbol 43 MovieClip [life_camellia] Frame 1
stop();
Symbol 45 MovieClip Frame 10
stop();
Symbol 46 MovieClip [life_rose] Frame 1
stop();
Symbol 47 MovieClip [mainprog] Frame 1
var Gs = (new duplex.Game_system(this));
Symbol 47 MovieClip [mainprog] Frame 2
Gs.gameMain();
Symbol 47 MovieClip [mainprog] Frame 3
this.gotoAndPlay(2);
Symbol 50 MovieClip [LineMC] Frame 11
stop();
Symbol 379 MovieClip [__Packages.duplex.Game_system] Frame 0
class duplex.Game_system
{
var defaultMC, at, scr, 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, n_hit, c_hit, miss, finish, rdown, rhit1, rhit2, rfinal, rmiss, door, click, drug, tout, demobgm, nr_fight, bs_fight, tl_bgm, nowBGM, demoNo, subMath, line_mc, enemyFc, enemy_num, flag, reikoHp, enemyHp, enemyX1c, enemyY1c, enemyX2c, enemyY2c, enemyX1b, enemyY1b, enemyX2b, enemyY2b, enemyX1, enemyY1, enemyX2, enemyY2, enemyMh, enemyLk, enemyPw, enemyTm, enemyTs, enemyXX, enemyCt, enemyRr, enemyDr, enemyKC, hangeki;
function Game_system (mmc) {
var _local3;
defaultMC = mmc;
at = new duplex.ATask();
scr = new duplex.Score(mmc);
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 = 1;
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;
n_hit = new Sound(defaultMC);
c_hit = new Sound(defaultMC);
miss = new Sound(defaultMC);
finish = new Sound(defaultMC);
rdown = new Sound(defaultMC);
rhit1 = new Sound(defaultMC);
rhit2 = new Sound(defaultMC);
rfinal = new Sound(defaultMC);
rmiss = new Sound(defaultMC);
door = new Sound(defaultMC);
rmiss.attachSound("miss");
rdown.attachSound("reiko_down");
rhit1.attachSound("reiko_hit1");
rhit2.attachSound("reiko_hit2");
rfinal.attachSound("reiko_finalhit");
click = new Sound(defaultMC);
drug = new Sound(defaultMC);
click.attachSound("clickok");
drug.attachSound("drugok");
door.attachSound("doorwav");
tout = new Sound(defaultMC);
tout.attachSound("tsubaki_out");
demobgm = new sanbiki.samieru.sound.MusicPlayer(defaultMC.createEmptyMovieClip("BGMMC", defaultMC.getNextHighestDepth()));
demobgm.attachSound("demobgm");
demobgm.initPlay();
demobgm.setLoopPoint(0);
nr_fight = new sanbiki.samieru.sound.MusicPlayer(defaultMC.createEmptyMovieClip("BGMMC", defaultMC.getNextHighestDepth()));
nr_fight.attachSound("nf");
nr_fight.initPlay();
nr_fight.setLoopPoint(0);
bs_fight = new sanbiki.samieru.sound.MusicPlayer(defaultMC.createEmptyMovieClip("BGMMC", defaultMC.getNextHighestDepth()));
bs_fight.attachSound("bf");
bs_fight.initPlay();
bs_fight.setLoopPoint(0);
tl_bgm = new sanbiki.samieru.sound.MusicPlayer(defaultMC.createEmptyMovieClip("BGMMC", defaultMC.getNextHighestDepth()));
tl_bgm.attachSound("titlebgm");
tl_bgm.initPlay();
tl_bgm.setLoopPoint(0);
nowBGM = 0;
demoNo = 1;
subMath = new duplex.Sub();
if (debug) {
line_mc = defaultMC.createEmptyMovieClip("line_mc", defaultMC.getNextHighestDepth());
}
}
function battle_ini(num) {
var _local3;
enemyFc = 0;
at.inidata(this, num);
if (num < 4) {
setBgm(2);
} else {
setBgm(3);
}
soundSet(num);
}
function soundSet(num) {
switch (num) {
case 0 :
case 1 :
n_hit.attachSound("saori_hit1");
c_hit.attachSound("saori_hit2");
miss.attachSound("miss");
finish.attachSound("saori_finalhit");
break;
case 2 :
n_hit.attachSound("mita_hit1");
c_hit.attachSound("mita_hit2");
miss.attachSound("mita_miss");
finish.attachSound("mita_finalhit");
break;
case 3 :
n_hit.attachSound("hanae_hit1");
c_hit.attachSound("hanae_hit2");
miss.attachSound("hanae_miss");
finish.attachSound("hanae_finalhit");
break;
case 4 :
n_hit.attachSound("tsubaki_hit1");
c_hit.attachSound("tsubaki_hit2");
miss.attachSound("tsubaki_miss");
finish.attachSound("tsubaki_finalhit");
}
}
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 :
enemy_num = 0;
flag = 0;
muteki = false;
reikoHp = 1000;
scr.reSet();
_root.gotoAndStop("title");
setBgm(4);
demoNo = 1;
game_st = 1;
break;
case 1 :
if (debug) {
if (Key.isDown(49)) {
enemy_num = 0;
muteki = true;
break;
}
if (Key.isDown(50)) {
enemy_num = 1;
muteki = true;
} else if (Key.isDown(51)) {
enemy_num = 2;
muteki = true;
} else if (Key.isDown(52)) {
enemy_num = 3;
muteki = true;
} else if (Key.isDown(53)) {
enemy_num = 4;
muteki = true;
} else {
if (muteki) {
rdown.start(0, 1);
game_st = 50;
}
break;
setEvent2(GAMEMAIN, data, 50);
_root.gotoAndStop("main");
game_st = 100;
break;
game_st = 100;
_root.gotoAndStop("main");
setEvent2(GAMEMAIN, data, 50);
break;
game_st = 101;
break;
}
}
break;
case 2 :
setEvent2(GAMEMAIN, data, 50);
_root.gotoAndStop("main");
game_st = 100;
break;
case 50 :
game_st = 100;
_root.gotoAndStop("main");
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;
_local3 = getMcNum();
if (_local3 > -1) {
switch (num) {
case TUBAKI :
mcm[_local3] = defaultMC.attachMovie("life_camellia", "life_camellia" + defaultMC.getNextHighestDepth(), defaultMC.getNextHighestDepth());
_local4 = true;
break;
case BARA :
mcm[_local3] = defaultMC.attachMovie("life_rose", "life_rose" + defaultMC.getNextHighestDepth(), defaultMC.getNextHighestDepth());
_local4 = true;
break;
case START :
mcm[_local3] = defaultMC.attachMovie("mcText_start", "mcText_start" + defaultMC.getNextHighestDepth(), defaultMC.getNextHighestDepth());
_local4 = true;
break;
case KOBARA :
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 :
mcm[_local3] = defaultMC.attachMovie("mcText_lose", "mcText_lose" + defaultMC.getNextHighestDepth(), defaultMC.getNextHighestDepth());
_local4 = true;
break;
case WINER :
mcm[_local3] = defaultMC.attachMovie("mcText_win", "mcText_win" + defaultMC.getNextHighestDepth(), defaultMC.getNextHighestDepth());
_local4 = true;
break;
case GAMEOVER :
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 SCORET :
taskobj[_local2] = scr.drawData(SCORET);
break;
case -1 :
break;
default :
trace("task loop err No = " + _local2);
trace("err code No = " + taskobj[_local2]);
}
_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;
}
task[_local2].sys[0] = -1;
_local2++;
}
_local2 = 0;
while (_local2 != maxlayer) {
mckaisou[_local2] = false;
_local2++;
}
scr.allClear();
}
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;
}
switch (nowBGM) {
case 1 :
demobgm.setVolume(task[i].buff[1]);
break;
case 2 :
nr_fight.setVolume(task[i].buff[1]);
break;
case 3 :
bs_fight.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 (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;
}
}
}
}
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;
}
}
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) {
scr.addData(0, 0);
task[i].state = 1;
if (task[i].buff[1] == 1) {
task[task[i].buff[0]].sys[2] = 2;
scr.addData(1, 0);
} else {
task[task[i].buff[0]].sys[2] = 1;
}
killtask(i);
}
}
}
function enemy_dmg(i) {
var _local5 = false;
var _local3;
if (task[i].sys[2] == 2) {
_local3 = Math.floor(subMath.pointLength(bak_x, bak_y, now_x, now_y)) * 2;
scr.addData(7, _local3);
enemyHp = enemyHp - _local3;
if (enemyHp < 1) {
if (enemy_num == 4) {
_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) {
rfinal.start(0, 1);
}
_local5 = true;
} else {
if (soundflag == false) {
rhit2.start(0, 1);
}
_root.enemy.enemy1.gotoAndStop(7);
}
} else {
_local3 = Math.floor(subMath.pointLength(bak_x, bak_y, now_x, now_y));
scr.addData(2, _local3);
enemyHp = enemyHp - _local3;
if (enemyHp < 1) {
if (enemy_num == 4) {
_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) {
rfinal.start(0, 1);
}
_local5 = true;
} else {
if (soundflag == false) {
rhit1.start(0, 1);
}
_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 (_local5) {
fo(5);
}
return(_local5);
}
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 / 5)));
if (reikoHp < 1) {
if (muteki == false) {
_root.player.gotoAndStop(7);
task[i].state = 30;
if (soundflag == false) {
finish.start(0, 1);
}
_local3 = true;
}
} else {
_root.player.gotoAndStop(6);
if (soundflag == false) {
c_hit.start(0, 1);
}
}
} else {
reikoHp = reikoHp - (enemyPw + ((enemyPw * Math.random()) / 2));
if (reikoHp < 1) {
if (muteki == false) {
_root.player.gotoAndStop(7);
if (soundflag == false) {
finish.start(0, 1);
}
task[i].state = 30;
_local3 = true;
}
} else {
if (soundflag == false) {
n_hit.start(0, 1);
}
_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);
task[i].buff[5] = enemyTm;
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 :
if (Math.floor(Math.random() * 100) < 20) {
if (Math.floor(Math.random() * 100) < 60) {
enemyTm = task[i].buff[5] * 1.3;
} else {
enemyTm = task[i].buff[5] * 0.7;
}
} else {
enemyTm = task[i].buff[5];
}
_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) {
click.start(0, 1);
}
callMain();
task[i].state = 4;
break;
case 4 :
if (callMain() != 0) {
data.buff[1] = 0;
task[i].buff[17] = setEvent(GUID, data);
if (soundflag == false) {
drug.start(0, 1);
}
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);
}
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) {
scr.addData(3);
task[i].buff[0] = 0;
_root.enemy.enemy1.gotoAndStop(5);
if (soundflag == false) {
rmiss.start(0, 1);
}
task[i].state = 60;
break;
}
if (enemyLk > (Math.random() * 100)) {
scr.addData(4);
_root.enemy.enemy1.gotoAndStop(5);
if (soundflag == false) {
rmiss.start(0, 1);
}
} else if (enemy_dmg(i)) {
return(undefined);
}
} else {
if (now_x < enemyXX) {
task[task[i].sys[4]].state = 2;
task[i].sys[4] = -1;
scr.addData(3);
_root.player.gotoAndStop(3);
_root.enemy.enemy1.gotoAndStop(5);
if (soundflag == false) {
rmiss.start(0, 1);
}
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;
scr.addData(3);
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) {
click.start(0, 1);
}
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) {
drug.start(0, 1);
}
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]) {
scr.addData(5);
if (soundflag == false) {
miss.start(0, 1);
}
_root.player.gotoAndStop(4);
_root.mc_counter.gotoAndStop(2);
if (soundflag == false) {
click.start(0, 1);
}
task[i].buff[0] = 0;
task[i].state = 70;
} else {
scr.addData(6);
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) {
drug.start(0, 1);
}
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) {
tout.start(0, 1);
}
}
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("demo");
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) {
drug.start(0, 1);
}
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) {
tout.start(0, 1);
}
}
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("demo");
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) {
tout.start(0, 1);
}
}
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("demo");
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) {
tout.start(0, 1);
}
}
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("demo");
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 :
_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;
}
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) {
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) {
rdown.start(0, 1);
}
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) {
rdown.start(0, 1);
}
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 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 _local2;
var _local5 = 50.4;
var _local4 = 0;
switch (task[i].state) {
case 0 :
_local2 = 0;
while (_local2 != game_lv) {
setMcEvent(i, KOBARA, 46.4 + (17.1 * _local2), 2);
task[i].buff[_local4] = task[i].sys[0];
_local4++;
_local2++;
}
task[i].state = 1;
break;
case 1 :
break;
case 2 :
task[i].sys[0] = -1;
task[i].sys[1] = -1;
_local4 = 0;
_local2 = 0;
while (_local2 != game_lv) {
mcm[task[i].buff[_local4]].removeMovieClip();
reSetMcNum(task[i].sys[_local4]);
_local4++;
_local2++;
}
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) {
rdown.start(0, 1);
}
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) {
if (soundflag == false) {
if (no == 0) {
bgmstop(nowBGM);
} else {
if (nowBGM != 0) {
bgmstop(nowBGM);
}
switch (no) {
case 1 :
demobgm.setVolume(100);
demobgm.start();
break;
case 2 :
nr_fight.setVolume(100);
nr_fight.start();
break;
case 3 :
bs_fight.setVolume(100);
bs_fight.start();
break;
case 4 :
tl_bgm.setVolume(100);
tl_bgm.start();
}
}
}
nowBGM = no;
}
function bgmstop(no) {
switch (no) {
case 1 :
demobgm.stop();
break;
case 2 :
nr_fight.stop();
break;
case 3 :
bs_fight.stop();
break;
case 4 :
tl_bgm.stop();
}
}
function stage(no) {
enemy_num = no;
game_st = 2;
}
function getDemoNo() {
return(demoNo);
}
function allClear() {
allkill();
game_st = 0;
}
function playSE(i) {
if (soundflag == false) {
if (i == 0) {
rdown.start(0, 1);
} else {
door.start(0, 1);
}
}
}
function drawD() {
scr.outData(game_lv);
scr.locate(40, 300);
setEvent(SCORET, data);
}
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;
var SCORET = 16;
static var maxtask = 100;
static var maxlayer = 100;
}
Symbol 380 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 381 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 382 MovieClip [__Packages.sanbiki.samieru.sound.MusicPlayer] Frame 0
class sanbiki.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 383 MovieClip [__Packages.duplex.ATask] Frame 0
class duplex.ATask
{
function ATask () {
}
function inidata(ob, no) {
switch (no) {
case 0 :
ob.enemyMh = (ob.enemyHp = 3000);
ob.enemyLk = 5;
ob.enemyPw = 40;
ob.enemyTs = 80;
ob.enemyCt = 60;
ob.enemyDr = 40;
ob.enemyRr = 2;
ob.enemyX1 = 297;
ob.enemyY1 = 102;
ob.enemyX2 = 275;
ob.enemyY2 = 220;
ob.enemyX1b = 293;
ob.enemyY1b = 156;
ob.enemyX2b = 284;
ob.enemyY2b = 201;
ob.enemyX1c = 350;
ob.enemyY1c = 183;
ob.enemyX2c = 346;
ob.enemyY2c = 203;
ob.enemyXX = 150;
ob.enemyKC = 2;
ob.hangeki = 40;
ob.enemyTm = 3;
_root.background.gotoAndStop("Nomal");
break;
case 1 :
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");
break;
case 2 :
ob.enemyMh = (ob.enemyHp = 4500);
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");
break;
case 3 :
ob.enemyMh = (ob.enemyHp = 3300);
ob.enemyLk = 25;
ob.enemyPw = 120;
ob.enemyTs = 160;
ob.enemyCt = 30;
ob.enemyDr = 30;
ob.enemyRr = 4;
ob.enemyX1 = 282;
ob.enemyY1 = 87;
ob.enemyX2 = 264;
ob.enemyY2 = 210;
ob.enemyX1b = 297;
ob.enemyY1b = 157;
ob.enemyX2b = 293;
ob.enemyY2b = 179;
ob.enemyX1c = 366;
ob.enemyY1c = 150;
ob.enemyX2c = 363;
ob.enemyY2c = 170;
ob.enemyXX = 130;
ob.enemyKC = 15;
ob.hangeki = 27;
ob.enemyTm = 4;
_root.background.gotoAndStop("Nomal");
break;
case 4 :
ob.enemyMh = (ob.enemyHp = 7000);
ob.enemyLk = 20;
ob.enemyPw = 160;
ob.enemyTs = 170;
ob.enemyCt = 45;
ob.enemyDr = 40;
ob.enemyRr = 6;
ob.enemyX1 = 211;
ob.enemyY1 = 70;
ob.enemyX2 = 194;
ob.enemyY2 = 159;
ob.enemyX1b = 237;
ob.enemyY1b = 114;
ob.enemyX2b = 237;
ob.enemyY2b = 142;
ob.enemyX1c = 304;
ob.enemyY1c = 118;
ob.enemyX2c = 304;
ob.enemyY2c = 134;
ob.enemyXX = 50;
ob.enemyKC = 2;
ob.hangeki = 30;
ob.enemyTm = 5;
_root.background.gotoAndStop("Boss");
}
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 384 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 385 MovieClip [__Packages.duplex.Score] Frame 0
class duplex.Score
{
var mymc, alp, fontsize, totalBinta, totalCritical, totalEsc, totalMiss, totalDmg, maxDmg, totalBad, totalAttack, maxCriDmg, sco, mytx;
function Score (mc) {
mymc = mc.createEmptyMovieClip("tf_mc", mc.getNextHighestDepth());
mymc._x = 0;
mymc._y = 0;
mymc.blendMode = 8;
mymc._alpha = 0;
alp = 0;
fontsize = 20;
}
function reSet() {
totalBinta = 0;
totalCritical = 0;
totalEsc = 0;
totalMiss = 0;
totalDmg = 0;
maxDmg = 0;
totalBad = 0;
totalAttack = 0;
maxCriDmg = 0;
sco = 0;
}
function addData(i, d) {
switch (i) {
case 0 :
totalBinta++;
break;
case 1 :
totalCritical++;
break;
case 2 :
totalDmg = totalDmg + d;
if (maxDmg < d) {
maxDmg = d;
}
break;
case 4 :
totalBad++;
case 3 :
totalMiss++;
break;
case 5 :
totalEsc++;
case 6 :
totalAttack++;
break;
case 7 :
totalDmg = totalDmg + d;
if (maxCriDmg >= d) {
break;
}
maxCriDmg = d;
}
}
function outData(lv) {
var _local2 = 0;
if (totalBinta < 1) {
totalBinta = 1;
}
if (totalAttack < 1) {
totalAttack = 1;
}
sco = Math.floor(totalDmg / totalBinta);
sco = sco + Math.floor((maxCriDmg * totalCritical) * (totalCritical / totalBinta));
sco = sco - ((totalMiss - totalBad) * 300);
sco = sco * Math.floor(totalEsc / totalAttack);
sco = sco + Math.floor((maxDmg * 100) / totalBinta);
sco = sco + ((lv * lv) * 500);
_local2 = putText("my_txt1", "\u624B\u6570 = " + totalBinta, mymc, 0, _local2);
_local2 = putText("my_txt2", ("\u30AF\u30EA\u30C6\u30A3\u30AB\u30EBHIT\u7387 = " + Math.floor((totalCritical / totalBinta) * 100)) + "%", mymc, 0, _local2);
_local2 = putText("my_txt3", ("\u56DE\u907F\u7387 = " + Math.floor((totalEsc / totalAttack) * 100)) + "%", mymc, 0, _local2);
_local2 = putText("my_txt4", "\u30DF\u30B9\u56DE\u6570 = " + totalMiss, mymc, 0, _local2);
_local2 = putText("my_txt7", "\u6700\u5927\u30C0\u30E1\u30FC\u30B8\u91CF = " + maxDmg, mymc, 0, _local2);
_local2 = putText("my_txt8", "\u6700\u5927\u30AF\u30EA\u30C6\u30A3\u30AB\u30EB\u30C0\u30E1\u30FC\u30B8\u91CF = " + maxCriDmg, mymc, 0, _local2);
_local2 = putText("my_txt9", ("\u3042\u306A\u305F\u306E\u70B9\u6570 = " + Math.floor(sco)) + "\u70B9", mymc, 0, _local2);
_local2 = putText("my_txt10", "\u304A\u3064\u304B\u308C\u3055\u307E\u3067\u3057\u305F", mymc, 0, _local2);
}
function putText(nm, tx, mc, x, y) {
mytx = mc.createTextField(nm, mc.getNextHighestDepth(), x, y, 300, 100);
mytx.text = tx;
var _local2 = mytx.getNewTextFormat();
_local2.size = fontsize;
mytx.setTextFormat(_local2);
mytx.textColor = 10066329 /* 0x999999 */;
mytx.mouseWheelEnabled = false;
mytx.selectable = false;
mytx.autoSize = true;
return(y + fontsize);
}
function allClear() {
mymc.my_txt1.removeTextField();
mymc.my_txt2.removeTextField();
mymc.my_txt3.removeTextField();
mymc.my_txt4.removeTextField();
mymc.my_txt6.removeTextField();
mymc.my_txt7.removeTextField();
mymc.my_txt8.removeTextField();
mymc.my_txt9.removeTextField();
mymc.my_txt10.removeTextField();
alp = 0;
}
function locate(x, y) {
mymc._x = x;
mymc._y = y;
}
function alpha(al) {
mymc._alpha = al;
}
function drawData(my) {
alp = alp + 3;
if (alp > 100) {
alp = 100;
alpha(alp);
return(-1);
}
alpha(alp);
return(my);
}
}
Symbol 386 MovieClip [__Packages.nigoro.lib.samieru.NigoroFlashManager] Frame 0
class nigoro.lib.samieru.NigoroFlashManager
{
static var MASTER_SOUND, MASTER_VOLUME, OUT_OF_SWF, PAUSED, GAME_LEVEL, GAME_ID, ACCESS_STATUS, NIGORO_SESSION_ID;
function NigoroFlashManager () {
}
static function startSystem() {
MASTER_SOUND = new Sound();
MASTER_SOUND.setVolume(100);
MASTER_VOLUME = 100;
OUT_OF_SWF = false;
PAUSED = false;
if (flash.external.ExternalInterface.available) {
flash.external.ExternalInterface.addCallback("outOfSwf", null, outOfSwf);
}
}
static function setMasterVolume(vol) {
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 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 ACCESS_STATUS_OK = 0;
static var ACCESS_STATUS_RUNNING = 1;
static var ACCESS_STATUS_ERROR = 2;
}
Symbol 387 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 59 Button
on (release) {
_root.game.Gs.setGameLv(1);
}
Symbol 60 Button
on (release) {
_root.game.Gs.setGameLv(2);
}
Symbol 61 Button
on (release) {
_root.game.Gs.setGameLv(3);
}
Symbol 62 Button
on (release) {
_root.game.Gs.setGameLv(4);
}
Symbol 63 Button
on (release) {
_root.game.Gs.setGameLv(5);
}
Symbol 66 MovieClip Frame 1
stop();
Symbol 70 Button
on (release) {
this.level_changer.enabled = false;
this.play();
_root.game.Gs.playSE(0);
}
Symbol 71 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++;
}
Instance of Symbol 66 MovieClip "sound_switch" in Symbol 72 MovieClip Frame 25
on (rollOver) {
this._alpha = 100;
}
on (rollOut) {
this._alpha = 80;
}
on (release) {
if (_root.SoundMute) {
_root.SoundMute = false;
this.gotoAndStop(1);
} else {
_root._root.SoundMute = true;
this.gotoAndStop(2);
}
}
Symbol 72 MovieClip Frame 36
stop();
Instance of Symbol 66 MovieClip "sound_switch" in Symbol 72 MovieClip Frame 36
onClipEvent (load) {
if (_root.game.Gs.getSoundFlag()) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
on (rollOver) {
this._alpha = 100;
}
on (rollOut) {
this._alpha = 80;
}
on (release) {
if (_root.game.Gs.getSoundFlag()) {
_root.game.Gs.setSoundFlag(false);
this.gotoAndStop(1);
} else {
_root.game.Gs.setSoundFlag(true);
this.gotoAndStop(2);
}
}
Symbol 72 MovieClip Frame 37
_root.game.Gs.fo(3);
Instance of Symbol 66 MovieClip "sound_switch" in Symbol 72 MovieClip Frame 37
on (rollOver) {
this._alpha = 100;
}
on (rollOut) {
this._alpha = 80;
}
on (release) {
if (_root.SoundMute) {
_root.SoundMute = false;
this.gotoAndStop(1);
} else {
_root._root.SoundMute = true;
this.gotoAndStop(2);
}
}
Symbol 72 MovieClip Frame 80
_root.game.Gs.setBgm(1);
this._parent.gotoAndStop("demo");
Symbol 74 MovieClip Frame 93
_parent.nextFrame();
Symbol 100 Button
on (release) {
_root.game.Gs.stage(0);
}
Symbol 114 Button
on (release) {
this.play();
}
Symbol 115 Button
on (release) {
this.play();
}
Symbol 116 MovieClip Frame 1
stop();
Instance of Symbol 98 MovieClip in Symbol 116 MovieClip Frame 1
on (release) {
_parent.nextFrame();
}
Symbol 116 MovieClip Frame 9
_root.game.Gs.fo(5);
Symbol 116 MovieClip Frame 30
_root.game.Gs.stage(0);
Symbol 120 Button
on (release) {
_root.game.Gs.stage(1);
}
Symbol 126 MovieClip Frame 1
stop();
Instance of Symbol 98 MovieClip in Symbol 126 MovieClip Frame 1
on (release) {
_parent.nextFrame();
}
Symbol 126 MovieClip Frame 9
_root.game.Gs.fo(5);
Symbol 126 MovieClip Frame 30
_root.game.Gs.stage(1);
Symbol 128 Button
on (release) {
_root.game.Gs.stage(2);
}
Symbol 136 MovieClip Frame 5
stop();
Symbol 137 MovieClip Frame 1
stop();
Instance of Symbol 98 MovieClip in Symbol 137 MovieClip Frame 1
on (release) {
_parent.nextFrame();
}
Symbol 137 MovieClip Frame 9
_root.game.Gs.fo(5);
Symbol 137 MovieClip Frame 30
_root.game.Gs.stage(2);
Symbol 141 Button
on (release) {
_root.game.Gs.stage(3);
}
Symbol 149 MovieClip Frame 1
stop();
Instance of Symbol 98 MovieClip in Symbol 149 MovieClip Frame 1
on (release) {
_parent.nextFrame();
}
Symbol 149 MovieClip Frame 9
_root.game.Gs.fo(5);
Symbol 149 MovieClip Frame 30
_root.game.Gs.stage(3);
Symbol 153 Button
on (release) {
gotoAndPlay (31);
}
Symbol 166 MovieClip Frame 34
stop();
Symbol 167 MovieClip Frame 1
stop();
Instance of Symbol 98 MovieClip in Symbol 167 MovieClip Frame 1
on (release) {
_parent.nextFrame();
}
Symbol 167 MovieClip Frame 9
_root.game.Gs.fo(15);
Symbol 167 MovieClip Frame 31
_root.game.Gs.playSE(1);
Symbol 167 MovieClip Frame 97
_root.game.Gs.stage(4);
Symbol 173 MovieClip Frame 1065
if (_root.game.Gs.getGameLv() < 3) {
this.stop();
_parent.gotoAndPlay("NOtestplayer");
} else {
_parent.gotoAndStop("testplayer");
}
Symbol 178 Button
on (release) {
gotoRegisterPage();
}
Symbol 180 MovieClip Frame 1
function gotoRegisterPage() {
var _local1 = nigoro.lib.samieru.NigoroFlashManager.getNigoroSession();
if (_local1) {
var _local2 = "http://nigoro.asterizm.net/register/nigoro_register.php?NIGORO=" + _local1;
getURL (_local2, "_blank");
}
}
nigoro.lib.samieru.NigoroFlashManager.setGameID("nigoro002");
nigoro.lib.samieru.NigoroFlashManager.setGameLevel(_root.game.Gs.getGameLv());
play();
Symbol 180 MovieClip Frame 2
nigoro.lib.samieru.NigoroFlashManager.checkGameClear();
Symbol 180 MovieClip Frame 3
play();
Symbol 180 MovieClip Frame 4
switch (nigoro.lib.samieru.NigoroFlashManager.getAccessStatus()) {
case nigoro.lib.samieru.NigoroFlashManager.ACCESS_STATUS_OK :
nextFrame();
break;
case nigoro.lib.samieru.NigoroFlashManager.ACCESS_STATUS_RUNNING :
gotoAndPlay ("Wait");
break;
case nigoro.lib.samieru.NigoroFlashManager.ACCESS_STATUS_ERROR :
gotoAndPlay ("Start");
}
Symbol 180 MovieClip Frame 5
stop();
Symbol 181 MovieClip Frame 1
stop();
Instance of Symbol 98 MovieClip in Symbol 181 MovieClip Frame 1
on (release) {
_parent.nextFrame();
}
Instance of Symbol 98 MovieClip in Symbol 181 MovieClip Frame 4
on (release) {
_parent.gotoAndPlay(5);
}
Symbol 181 MovieClip Frame 5
_root.game.Gs.fo(3);
Symbol 181 MovieClip Frame 42
_root.game.Gs.setBgm(2);
Symbol 181 MovieClip Frame 102
stop();
Symbol 181 MovieClip Frame 103
_root.game.Gs.fo(4);
Symbol 181 MovieClip Frame 144
stop();
_root.game.Gs.allClear();
Symbol 181 MovieClip Frame 145
stop();
Instance of Symbol 98 MovieClip in Symbol 181 MovieClip Frame 145
on (release) {
_root.game.Gs.allClear();
}
Symbol 182 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 2
stop();
Symbol 203 MovieClip Frame 11
stop();
Symbol 208 MovieClip Frame 120
stop();
Symbol 209 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 120
stop();
Symbol 234 MovieClip Frame 1
stop();
Symbol 243 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 120
stop();
Symbol 255 MovieClip Frame 1
stop();
Symbol 265 MovieClip Frame 1
stop();
Symbol 270 MovieClip Frame 12
stop();
Symbol 275 MovieClip Frame 120
stop();
Symbol 280 MovieClip Frame 1
stop();
Symbol 291 MovieClip Frame 1
stop();
Symbol 306 MovieClip Frame 180
stop();
Symbol 307 MovieClip Frame 1
stop();
Symbol 308 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 120
stop();
Symbol 324 MovieClip Frame 1
stop();
Symbol 327 MovieClip Frame 1
stop();
Symbol 329 MovieClip Frame 27
stop();
Symbol 330 MovieClip Frame 1
stop();
Symbol 330 MovieClip Frame 3
stop();
Symbol 332 MovieClip Frame 27
stop();
Symbol 333 MovieClip Frame 1
stop();
Symbol 333 MovieClip Frame 3
stop();
Symbol 336 MovieClip Frame 15
stop();
Symbol 339 MovieClip Frame 15
_parent.nextFrame();
Symbol 340 Button
on (press) {
_root.game.Gs.talkMain(1);
_root.player.gotoAndStop(2);
this.gotoAndStop(1);
}
Symbol 341 MovieClip Frame 1
stop();
Instance of Symbol 339 MovieClip in Symbol 341 MovieClip Frame 2
on (press) {
_root.game.Gs.talkMain(1);
_root.player.gotoAndStop(2);
this.gotoAndStop(1);
}
Symbol 344 MovieClip Frame 15
_parent.nextFrame();
Symbol 345 Button
on (press) {
_root.game.Gs.talkMain(1);
}
Symbol 346 MovieClip Frame 1
stop();
Instance of Symbol 344 MovieClip in Symbol 346 MovieClip Frame 2
on (press) {
_root.game.Gs.talkMain(1);
}
Symbol 349 MovieClip Frame 15
_parent.nextFrame();
Symbol 350 Button
on (press) {
_root.game.Gs.talkMain(2);
}
Symbol 351 MovieClip Frame 1
stop();
Instance of Symbol 349 MovieClip in Symbol 351 MovieClip Frame 2
on (press) {
_root.game.Gs.talkMain(2);
}
Symbol 358 MovieClip Frame 1
stop();
Symbol 358 MovieClip Frame 11
gotoAndPlay (2);
Symbol 364 MovieClip Frame 1
stop();
Symbol 364 MovieClip Frame 11
gotoAndPlay (2);
Symbol 367 MovieClip Frame 15
stop();
Symbol 373 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 15
stop();
Symbol 377 MovieClip Frame 15
stop();
Symbol 378 MovieClip Frame 1
stop();