Frame 2
function AllSountStop() {
trace("\u5168\u97F3\u697D\u505C\u6B62");
theRootSound.stop();
}
theRootSound = new Sound();
_global.gameMode = null;
_global.char1 = "giko";
_global.char2 = "si";
_global.basicHp = 1000;
_global.resExt = 1;
_global.gDeep = 10;
this.stop();
Frame 10
_global.gameLv = 1;
this.stop();
Instance of Symbol 257 MovieClip in Frame 10
onClipEvent (load) {
this.stop();
}
Instance of Symbol 306 MovieClip in Frame 10
onClipEvent (load) {
this.stop();
}
Frame 20
_global.cpuPower = 0;
_global.char1color = 0;
_global.char2color = 0;
_root.scene_endSelect.removeMovieClip();
this.stop();
Frame 30
this.stop();
Frame 40
function GameSet() {
_root.attachMovie("scene_endSelect", "scene_endSelect", 151);
_root.scene_endSelect._x = 280;
_root.scene_endSelect._y = 180;
}
function RemoveAllItem() {
i = 10;
while (i < 200) {
tempItem = "a" + i;
_root.attachMovie("removeItem", tempItem, i);
i++;
}
}
trace("\u521D\u671F\u5316");
_global.mainChar1ext = 0;
_global.mainChar2ext = 0;
_global.mainChar1attackExt = 1;
_global.mainChar2attackExt = 1;
_global.gardPerExt = 1.5;
this.RemoveAllItem();
_root.scene_endSelect.removeMovieClip();
this.attachMovie("whiteMask", "whiteMask", 1);
this.onEnterFrame = function () {
if (_global.gDeep > 149) {
_global.gDeep = 10;
}
};
this.stop();
Instance of Symbol 640 MovieClip "mainStage" in Frame 40
onClipEvent (load) {
function CharSet() {
char = "A_Char_" + _global.char1;
_root.mainStage.attachMovie(char, "mainChar1", 1);
if (_global.char1 == "si") {
theY = -24.6;
} else if (_global.char1 == "niraS") {
theY = -11;
} else {
theY = -32.1;
}
if (_global.gameMode == "vs") {
_root.mainStage.mainChar1.playerMode = "vs1";
} else {
trace("\u30E2\u30FC\u30C9\u30D7\u30EC\u30A4\u30E4\u30FC");
_root.mainStage.mainChar1.playerMode = "user";
}
_root.mainStage.mainChar1.charName = _global.char1;
_root.mainStage.mainChar1._y = theY;
_root.mainStage.mainChar1._x = -140;
char = "A_Char_" + _global.char2;
_root.mainStage.attachMovie(char, "mainChar2", 2);
if (_global.char2 == "si") {
theY = -24.6;
} else if (_global.char2 == "niraS") {
theY = -11;
} else {
theY = -32.1;
}
if (_global.gameMode == "vs") {
_root.mainStage.mainChar2.playerMode = "vs2";
} else {
_root.mainStage.mainChar2.playerMode = "cpu";
}
_root.mainStage.mainChar2.charName = _global.char2;
_root.mainStage.mainChar2._y = theY;
_root.mainStage.mainChar2._x = 140;
}
this.CharSet();
}
Symbol 11 MovieClip Frame 1
this._visible = false;
Symbol 32 MovieClip Frame 5
this.onEnterFrame = function () {
if (((_parent.ToGard() == 1) && (this._currentframe > 4)) && (this._currentframe < 7)) {
this.stop();
} else {
_parent.mode = "normal";
this.play();
}
};
Symbol 32 MovieClip Frame 9
_parent.Normal();
Symbol 32 MovieClip Frame 17
this.gotoAndStop(5);
Symbol 37 MovieClip Frame 1
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.mainStage[_parent._parent.enemyName].dmgArea)) {
if ((_parent._parent._name == "mainChar1") || (_parent._parent._name == "mainChar2")) {
_root.mainStage[_parent._parent.enemyName].damage(_global[role + "dmg"], _global[role + "xf"], _global[role + "yf"], _global[role + "res"]);
} else {
_root.mainStage[_parent._parent.enemyName].damage(_global[role + "dmg"], _global[role + "xf"], _global[role + "yf"], 1);
}
}
};
Instance of Symbol 37 MovieClip in Symbol 39 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
role = "monaZ";
}
Symbol 39 MovieClip Frame 5
_parent.Normal();
Symbol 42 MovieClip Frame 7
this.stop();
Instance of Symbol 37 MovieClip in Symbol 43 MovieClip Frame 7
//component parameters
onClipEvent (initialize) {
role = "monaX";
}
Symbol 43 MovieClip Frame 16
_parent.Normal();
Instance of Symbol 37 MovieClip in Symbol 51 MovieClip Frame 9
//component parameters
onClipEvent (initialize) {
role = "monaC1";
}
Symbol 51 MovieClip Frame 19
_parent.Normal();
Symbol 54 MovieClip Frame 1
this._visible = false;
Symbol 55 MovieClip Frame 12
_parent.dmgArea._name = "notDmgArea";
Symbol 55 MovieClip Frame 15
if (this.damageArea.hitTest(_root.mainStage[_parent.enemyName].dmgArea)) {
trace("\u30E2\u30CA\u30FC\u8D85\u5FC5\u6BBA\u304C\u3001\u7684\u306B\u30D2\u30C3\u30C8\u3057\u307E\u3057\u305F\u3002");
_root.attachMovie("mona_cutIn", "mona_cutIn", 300);
_root.mona_cutIn._x = 270;
_root.mona_cutIn._y = 200;
_root.mona_cutIn.name = _parent._name;
this.stop();
}
Symbol 55 MovieClip Frame 16
_parent.notDmgArea._name = "dmgArea";
Symbol 55 MovieClip Frame 26
_parent.Normal();
Symbol 58 MovieClip Frame 1
this._rotation = this._rotation + ((Math.random() * 80) - 40);
Symbol 58 MovieClip Frame 10
this.stop();
Symbol 59 MovieClip Frame 1
_root.mainStage[_parent.enemyName].damage(280, 0, 400, 1, 1);
_root.mainStage[_parent.enemyName].damage(1, 0, 400, 1, 1);
Symbol 59 MovieClip Frame 11
_parent.Normal();
Symbol 76 MovieClip Frame 3
if (_parent._y != basicHi) {
this.gotoAndPlay(_currentframe - 2);
}
Symbol 76 MovieClip Frame 12
_parent.Normal();
Symbol 83 MovieClip Frame 1
function SetSmoke() {
thePoint = {x:0, y:38};
this.localToGlobal(thePoint);
zusaName = "zusa" + _global.gDeep;
trace(_global.gDeep);
_root.mainStage.attachMovie("zusaKemuri", zusaName, _global.gDeep);
_root.mainStage[zusaName]._x = _parent._x;
_root.mainStage[zusaName]._y = _parent._y + 38;
_root.mainStage[zusaName]._xscale = tXscale;
_global.gDeep++;
}
i = 0;
if (_parent._xscale > 0) {
speed = 30;
tXscale = 100;
_parent.xMove = _parent.xMove + _parent.dushMove;
} else {
speed = -30;
tXscale = -100;
_parent.xMove = _parent.xMove - _parent.dushMove;
}
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
if ((_parent.playerMode == "cpu") && ((Math.random() * 5) > 4)) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 83 MovieClip Frame 2
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
if ((_parent.playerMode == "cpu") && ((Math.random() * 5) > 4)) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 83 MovieClip Frame 3
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 83 MovieClip Frame 4
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 83 MovieClip Frame 5
this.SetSmoke();
Symbol 83 MovieClip Frame 7
_parent.Normal();
Symbol 91 MovieClip Frame 1
function SetSmoke() {
thePoint = {x:0, y:38};
this.localToGlobal(thePoint);
zusaName = "zusa" + _global.gDeep;
trace(_global.gDeep);
_root.mainStage.attachMovie("zusaKemuri", zusaName, _global.gDeep);
_root.mainStage[zusaName]._x = _parent._x;
_root.mainStage[zusaName]._y = _parent._y + 38;
_root.mainStage[zusaName]._xscale = tXscale;
_global.gDeep++;
}
i = 0;
_parent.mode == "attack";
if (_parent._xscale > 0) {
speed = 30;
tXscale = 100;
} else {
speed = -30;
tXscale = -100;
}
speedDownExt = 0.7;
Instance of Symbol 37 MovieClip in Symbol 91 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
role = "monaD";
}
Symbol 91 MovieClip Frame 2
this.onEnterFrame = function () {
if (i < 4) {
thePoint = {x:this._x, y:0};
this.localToGlobal(thePoint);
if ((thePoint.x < 550) && (thePoint.x > 0)) {
_parent._x = _parent._x + speed;
speed = speed * speedDownExt;
}
this.SetSmoke();
}
};
Symbol 91 MovieClip Frame 15
_parent.Normal();
Symbol 93 MovieClip Frame 1
Symbol 93 MovieClip Frame 5
_parent.mode = "-";
_parent.Normal();
Symbol 95 MovieClip Frame 1
Symbol 95 MovieClip Frame 10
_parent.mode = "-";
_parent.Normal();
this.gotoAndPlay(6);
Symbol 96 MovieClip [A_Char_mona] Frame 1
_global.monaZdmg = 5;
_global.monaZxf = 7;
_global.monaZyf = 0;
_global.monaZres = 4;
_global.monaXdmg = 7;
_global.monaXxf = 10;
_global.monaXyf = 10;
_global.monaXres = 10;
_global.monaC1dmg = 35;
_global.monaC1xf = 80;
_global.monaC1yf = 80;
_global.monaC1res = 40;
_global.monaC2dmg = 10;
_global.monaC2xf = 5;
_global.monaC2yf = 0;
_global.monaC2res = 7;
_global.monaDdmg = 5;
_global.monaDxf = 10;
_global.monaDyf = 0;
_global.monaDres = 5;
_global.gikoEdmg = 15;
walkSpeed = 5;
dushMove = 30;
jumpPower = 100;
downEx = 1.3;
upEx = 1.7;
xMoveExt = 1.2;
dcTime = 3;
function Normal() {
if ((jumpMode == "-") || (jumpMode == "down")) {
if ((mode != "damage") && (mode != "dushAttack")) {
mode = "normal";
this.gotoAndStop("normal");
}
}
}
function Lose() {
mode = "lose";
trace(_name + "\u6557\u5317\u3057\u307E\u3057\u305F\u3002");
baseMode = "lose";
sa = this._x - _parent[enemyName]._x;
if (sa < 1) {
endXMove = -50;
} else {
endXMove = 50;
}
endYMove = 30;
this.gotoAndStop("lose");
}
function GetDC() {
if (dcIR > 0) {
dcIR--;
}
if (dcIL > 0) {
dcIL--;
}
if (dcIR2 > 0) {
dcIR2--;
}
if (dcIL2 > 0) {
dcIL2--;
}
if (Key.isDown(this[keyName][0])) {
dcIR = dcTime;
if (dcIR2 >= 1) {
this.Dush("r");
}
} else if (Key.isDown(this[keyName][1])) {
dcIL = dcTime;
if (dcIL2 >= 1) {
this.Dush("l");
}
} else {
walkGo = "-";
if (dcIR >= 1) {
dcIR2 = 2;
}
if (dcIL >= 1) {
dcIL2 = 2;
}
}
}
function Dush(temp) {
if (((mode == "normal") || (mode == "jump")) || (mode == "walk")) {
mode = "dush";
muki = temp;
this.gotoAndStop("Dush");
}
}
function damage(dmg, x, y, tempRes, gardCancelFlag) {
if (baseMode == "normal") {
gardPer = (_global.cpuPower + 1) / _global.gardPerExt;
if (((((Math.random() * 10) < gardPer) && (getTimer() > gardWait)) && (playerMode == "cpu")) && (gardCancelFlag != 1)) {
this.Gard();
}
if (_name == "mainChar1") {
if (_global.gameLv > 2) {
dmg = dmg * 3;
} else if (_global.gameLv > 1) {
dmg = dmg * 2;
}
}
if ((mode == "gard") && (gardCancelFlag != 1)) {
trace("\u30AC\u30FC\u30C9" + gardCancelFlag);
_root.display[_name].HpChange((dmg = dmg / 4));
sa = this._x - _parent[enemyName]._x;
if (sa < 1) {
xMove = -((x = x / 5));
} else {
xMove = (x = x / 5);
}
tempJumpPower = tempJumpPower + ((y = y / 5));
jumpMode = "up";
this.char.gotoAndPlay(15);
} else {
_root.display[_name].HpChange(dmg);
sa = this._x - _parent[enemyName]._x;
if (sa < 1) {
xMove = -x;
} else {
xMove = x;
}
_root.display.displayRes.AddRes(tempRes * _global.resExt, enemyName);
gardWait = getTimer() + 300;
tempJumpPower = tempJumpPower + y;
jumpMode = "up";
mode = "damage";
if (Math.abs(y) < 15) {
this.gotoAndStop("damage");
} else {
this.gotoAndStop("damage2");
}
}
}
}
function Walk(muki) {
thePoint = {x:this._x, y:this._y};
_parent.localToGlobal(thePoint);
if (((mode == "normal") || (mode == "jump")) || (mode == "attack")) {
if (mode != "jump") {
this.gotoAndStop("walk");
}
if ((muki == "r") && (thePoint.x < 550)) {
this._xscale = basicScale;
this._x = this._x + walkSpeed;
} else if (thePoint.x > 0) {
this._xscale = -basicScale;
this._x = this._x - walkSpeed;
}
}
}
function Gard() {
mode = "gard";
this.gotoAndStop("gard");
}
function ToGard() {
if (Key.isDown(this[keyName][3])) {
return(1);
}
}
function KeyZ() {
mode = "attack";
this.gotoAndStop("keyZ");
}
function KeyX() {
mode = "attack";
this.gotoAndStop("KeyX");
}
function KeyC() {
mode = "attack";
this.gotoAndStop("KeyC");
}
function KeyExt() {
mode = "ext";
_root[_name + "ext"].removeMovieClip();
_global[_name + "ext"] = 0;
this.gotoAndStop("ext1-1");
}
function ToDushAttack() {
if (Key.isDown(this[keyName][6])) {
return(1);
}
}
function Jump() {
jumpNo = 1;
mode = "jump";
jumpMode = "up";
tempJumpPower = jumpPower;
this.gotoAndStop("jump");
}
function JumpLoop() {
if (jumpMode == "up") {
this._y = this._y - ((tempJumpPower = tempJumpPower / upEx));
if (tempJumpPower <= 10) {
if ((Key.isDown(this[keyName][2]) && (jumpNo == 1)) && (playerMode != "cpu")) {
jumpNo = 2;
tempJumpPower = jumpPower;
} else {
tempBaseJump = tempJumpPower;
jumpMode = "down";
}
}
}
if (jumpMode == "down") {
if (downCnt == 0) {
tempJumpHi = basicHi - this._y;
tempJumpPower = 20;
downCnt++;
}
this._y = this._y + ((tempJumpPower = tempJumpPower * downEx));
tempJumpHi2 = basicHi - this._y;
if (tempJumpHi2 <= 10) {
this._y = basicHi;
jumpMode = "-";
if ((((mode != "gard") && (mode != "attack")) && (mode != "damage")) && (mode != "dush")) {
this.Normal();
}
}
}
if (((jumpMode == "-") && (this._y != basicHi)) && (baseMode != "lose")) {
tempJumpPower = basicHi - this._y;
jumpMode = "down";
}
}
function DagmageLoop() {
if (baseMode == "lose") {
if (this._x > 275) {
endXMove = endXMove * -1;
}
if (this._x < -275) {
endXMove = endXMove * -1;
}
this._y = this._y - endYMove;
this._x = this._x + endXMove;
this._rotation = this._rotation + 20;
if (this._y < -1000) {
trace("\u6557\u5317\u8005\u3092\u6D88\u53BB");
_root.GameSet();
this.removeMovieClip();
}
} else if (xMove != 0) {
if (this._x > 275) {
this._x = this._x - 10;
xMove = xMove * -1;
}
if (this._x < -275) {
this._x = this._x + 10;
xMove = xMove * -1;
}
if ((xMove < 5) && (xMove > -5)) {
xMove = 0;
}
this._x = this._x + ((xMove = xMove / xMoveExt));
}
}
function SystemLoop() {
if (mode != "dush") {
var sa = (this._x - _parent[enemyName]._x);
if (sa > 0) {
this._xscale = -100;
aiMode = -1;
} else {
this._xscale = 100;
}
}
}
function Debug() {
if (Key.isDown(36)) {
trace(_name + "**************************************");
trace((((("mode = " + mode) + "\nbaseMode=") + baseMode) + "\njumpMode=") + jumpMode);
trace("********************************************");
}
}
function ModePlayer() {
if ((Key.isDown(this[keyName][7]) && (mode == "normal")) && (_global[_name + "ext"] > 0)) {
this.KeyExt();
}
if ((((actionFlag == 1) && (mode != "gard")) && (mode != "ext")) && (mode != "attack")) {
if (Key.isDown(this[keyName][0])) {
this.Walk("r");
} else if (Key.isDown(this[keyName][1])) {
this.Walk("l");
} else if (mode == "normal") {
this.Normal();
}
if ((mode != "attack") && (mode != "damage")) {
if (Key.isDown(this[keyName][4])) {
this.keyZ();
} else if (Key.isDown(this[keyName][5])) {
this.KeyX();
} else if (Key.isDown(this[keyName][6]) && (mode != "dush")) {
this.KeyC();
}
}
if ((Key.isDown(this[keyName][2]) && (mode != "damage")) && (jumpMode == "-")) {
if ((mode == "normal") || (mode == "dush")) {
this.Jump();
}
} else if (Key.isDown(this[keyName][3])) {
this.Gard();
}
}
this.GetDC();
}
function AI() {
if (Key.isDown(90)) {
zCnt = zCnt + 2;
if ((zCnt > 16) && (Math.random() > 0.5)) {
trace("\u5C0F\u653B\u6483\u9023\u6253\u3092\u691C\u51FA\u30FB\u96E2\u8131");
tac = 0;
tac2 = "out";
}
}
if (zCnt > 0) {
zCnt--;
}
if (Math.random() > 0.9) {
if (Math.random() > 0.3) {
trace("\u6226\u8853\u5909\u66F4\u30FB\u63A5\u8FD1");
tac2 = "out";
tac = 1;
} else {
trace("\u6226\u8853\u5909\u66F4\u30FB\u96E2\u8131");
tac = 0;
}
}
var sa = (this._x - _parent[enemyName]._x);
if (sa > 10) {
this._xscale = -100;
aiMode = -1;
} else if (sa < -10) {
this._xscale = 100;
aiMode = 1;
} else {
aiMode = 0;
}
if ((mode == "normal") || (mode == "walk")) {
if (tac > 0) {
if (aiMode > 0) {
this.Walk("r");
} else if (aiMode < 0) {
this.Walk("l");
}
} else if (aiMode > 0) {
this.Walk("l");
} else if (aiMode < 0) {
this.Walk("r");
}
if (((sa < 300) && (sa > -300)) && ((Math.random() * 10) > 9)) {
zCnt = 0;
tac = 1;
this.Dush();
}
}
if ((_parent._y > 5) && ((Math.random() * 10) > 9)) {
if ((Key.isDown(this[keyName][2]) && (mode != "damage")) && (jumpMode == "-")) {
if ((mode == "normal") || (mode == "dush")) {
if (((sa < 300) && (sa > -300)) && ((Math.random() * 10) > (5 + _global.cpuPower))) {
this.Dush();
}
this.Jump();
}
}
}
if ((((actionFlag == 1) && (mode != "gard")) && (mode != "ext")) && (mode != "attack")) {
rand = Math.random() * 10;
if ((rand > 8) && (_global[_name + "ext"] > 0)) {
this.KeyExt();
}
if (rand < (0.1 + (_global.cpuPower / 5))) {
this.KeyC();
} else if (((sa > -30) && (sa < 30)) && (rand < (0.2 + (_global.cpuPower / 2)))) {
this.KeyX();
} else if (((sa > -30) && (sa < 30)) && (rand < (0.8 + _global.cpuPower))) {
if (tac2 == "out") {
if (Math.random > 0.5) {
this.KeyC();
} else {
this.KeyX();
}
} else {
this.KeyZ();
}
}
}
}
key1p = new Array();
keyuser = [39, 37, 38, 40, 90, 88, 67, 86];
keyvs1 = [66, 67, 70, 86, 65, 83, 68, 81];
keyvs2 = [39, 37, 38, 40, 74, 75, 76, 80];
keyName = "key" + playerMode;
actionFlag = 1;
baseMode = "normal";
basicScale = _xscale;
basicHi = this._y;
mode = "normal";
jumpMode = "-";
jumpNo = 1;
downCnt = 0;
upCnt = 0;
xMove = 0;
if (this._name == "mainChar1") {
enemyName = "mainChar2";
} else {
enemyName = "mainChar1";
}
trace((("\u81EA\u5206\u306E\u540D\u79F0" + _name) + "\u3000\u6575\u306E\u540D\u79F0") + enemyName);
if (_name == "mainChar1") {
theColor = new Color(this);
if (_global.char1color != 0) {
co = _global.char1color;
theColor.setRGB(co);
}
} else {
theColor = new Color(this);
if (_global.char2color != 0) {
co = _global.char2color;
theColor.setRGB(co);
}
}
tac = 1;
zCnt = 0;
this.onEnterFrame = function () {
if (actionFlag == 1) {
if (playerMode == "cpu") {
if (_global.cpuPower != -1) {
this.AI();
}
} else {
this.ModePlayer();
}
this.JumpLoop();
this.SystemLoop();
this.DagmageLoop();
this.Debug();
}
};
Symbol 96 MovieClip [A_Char_mona] Frame 10
this.stop();
Symbol 96 MovieClip [A_Char_mona] Frame 19
this.stop();
Symbol 96 MovieClip [A_Char_mona] Frame 29
this.stop();
Symbol 96 MovieClip [A_Char_mona] Frame 39
this.stop();
Symbol 96 MovieClip [A_Char_mona] Frame 49
this.stop();
Symbol 96 MovieClip [A_Char_mona] Frame 59
this.stop();
Symbol 96 MovieClip [A_Char_mona] Frame 69
this.stop();
Symbol 96 MovieClip [A_Char_mona] Frame 80
this.stop();
Symbol 96 MovieClip [A_Char_mona] Frame 90
this.stop();
Symbol 96 MovieClip [A_Char_mona] Frame 100
this.stop();
Symbol 96 MovieClip [A_Char_mona] Frame 120
this.stop();
Symbol 96 MovieClip [A_Char_mona] Frame 130
this.stop();
Symbol 96 MovieClip [A_Char_mona] Frame 160
this.stop();
Symbol 96 MovieClip [A_Char_mona] Frame 170
this.stop();
Symbol 97 MovieClip [removeItem] Frame 1
trace("\u6D88\u53BB\u7528\uFF29\uFF34\uFF25\uFF2D\u914D\u7F6E");
this.removeMovieClip();
Instance of Symbol 125 MovieClip in Symbol 135 MovieClip [ninjya] Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 144 MovieClip Frame 30
this.gotoAndPlay(1);
Symbol 150 MovieClip Frame 5
this.onEnterFrame = function () {
if (((_parent.ToGard() == 1) && (this._currentframe > 4)) && (this._currentframe < 7)) {
this.stop();
} else {
_parent.mode = "normal";
this.play();
}
};
Symbol 150 MovieClip Frame 9
_parent.Normal();
Symbol 150 MovieClip Frame 17
this.gotoAndStop(5);
Instance of Symbol 37 MovieClip in Symbol 152 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
role = "ninZ";
}
Symbol 152 MovieClip Frame 5
_parent.Normal();
Instance of Symbol 37 MovieClip in Symbol 159 MovieClip Frame 8
//component parameters
onClipEvent (initialize) {
role = "ninX";
}
Symbol 159 MovieClip Frame 19
_parent.Normal();
Symbol 160 MovieClip Frame 7
if (_parent._xscale > 0) {
speed = 50;
tXscale = 100;
} else {
speed = -50;
tXscale = -100;
}
zusaName = "syuriken" + _global.gDeep;
_root.mainStage.attachMovie("syuriken", zusaName, _global.gDeep);
_root.mainStage[zusaName]._x = _parent._x + (115 * (tXscale / 100));
_root.mainStage[zusaName]._y = _parent._y;
_root.mainStage[zusaName]._xscale = tXscale;
_root.mainStage[zusaName].move = speed;
_root.mainStage[zusaName].name = _parent._name;
_root.mainStage[zusaName].enemyName = _parent.enemyName;
_global.gDeep++;
Symbol 160 MovieClip Frame 11
_parent.Normal();
Symbol 165 MovieClip Frame 8
_parent.gotoAndStop("ext1-2");
Symbol 196 MovieClip Frame 1
this.stop();
Symbol 196 MovieClip Frame 3
i = 0;
Instance of Symbol 11 MovieClip in Symbol 196 MovieClip Frame 26
onClipEvent (enterFrame) {
trace(_parent._parent.enemyName);
if (this.hitTest(_root.mainStage[_parent._parent._parent.enemyName].dmgArea)) {
trace("\u30AE\u30B3\u653B\u6483\u30D2\u30C3\u30C8");
_root.mainStage[_parent._parent._parent.enemyName].damage(_global.gikoEdmg, 10, 13, 1);
}
}
Symbol 196 MovieClip Frame 52
_parent.play();
Symbol 204 MovieClip Frame 17
thePoint = {x:220, y:-10};
_global.gDeep++;
this.localToGlobal(thePoint);
_root.attachMovie("talk_itteyosi", "talk_itteyosi", _global.gDeep);
_root.talk_itteyosi._x = thePoint.x;
_root.talk_itteyosi._y = thePoint.y;
Symbol 204 MovieClip Frame 42
_parent.body1.play();
Symbol 204 MovieClip Frame 43
_parent.body1.play();
this.stop();
Symbol 204 MovieClip Frame 50
this.stop();
Instance of Symbol 11 MovieClip in Symbol 211 MovieClip Frame 5
onClipEvent (enterFrame) {
trace(_parent._parent.enemyName);
if (this.hitTest(_root.mainStage[_parent._parent.enemyName].dmgArea)) {
trace("\u30AE\u30B3\u653B\u6483\u30D2\u30C3\u30C8");
_root.mainStage[_parent._parent.enemyName].damage(3, 150, 80);
}
}
Symbol 211 MovieClip Frame 21
this.stop();
Symbol 211 MovieClip Frame 50
_parent._y = -350;
jumpFlag = "down";
jumpCnt = 0;
_parent.gotoAndStop("ext1-3");
Symbol 212 MovieClip Frame 1
function SetSmoke() {
thePoint = {x:0, y:38};
this.localToGlobal(thePoint);
zusaName = "zusa" + _global.gDeep;
_root.mainStage.attachMovie("zusaKemuri", zusaName, _global.gDeep);
_root.mainStage[zusaName]._x = _parent._x;
_root.mainStage[zusaName]._y = _parent._y + 38;
_root.mainStage[zusaName]._xscale = tXscale;
_global.gDeep++;
}
i = 0;
if (_parent._xscale > 0) {
speed = 30;
tXscale = 100;
_parent.xMove = _parent.xMove + _parent.dushMove;
} else {
speed = -30;
tXscale = -100;
_parent.xMove = _parent.xMove - _parent.dushMove;
}
trace((("\u30C0\u30C3\u30B7\u30E5\u30E0\u30FC\u30D6" + _parent.dushMove) + "\nSpeed =") + speed);
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
if ((_parent.playerMode == "cpu") && ((Math.random() * 5) > 4)) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 212 MovieClip Frame 2
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
if ((_parent.playerMode == "cpu") && ((Math.random() * 5) > 4)) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 212 MovieClip Frame 3
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 212 MovieClip Frame 4
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 212 MovieClip Frame 5
this.SetSmoke();
Symbol 212 MovieClip Frame 7
_parent.Normal();
Symbol 214 MovieClip Frame 1
function SetSmoke() {
thePoint = {x:0, y:38};
this.localToGlobal(thePoint);
zusaName = "zusa" + _global.gDeep;
trace(_global.gDeep);
_root.mainStage.attachMovie("zusaKemuri", zusaName, _global.gDeep);
_root.mainStage[zusaName]._x = _parent._x;
_root.mainStage[zusaName]._y = _parent._y + 38;
_root.mainStage[zusaName]._xscale = tXscale;
_global.gDeep++;
}
i = 0;
_parent.mode == "attack";
if (_parent._xscale > 0) {
speed = 30;
tXscale = 100;
} else {
speed = -30;
tXscale = -100;
}
speedDownExt = 0.7;
Symbol 214 MovieClip Frame 2
this.onEnterFrame = function () {
if (i < 4) {
thePoint = {x:this._x, y:0};
this.localToGlobal(thePoint);
if ((thePoint.x < 550) && (thePoint.x > 0)) {
_parent._x = _parent._x + speed;
speed = speed * speedDownExt;
}
this.SetSmoke();
}
};
Instance of Symbol 37 MovieClip in Symbol 214 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
role = "ninD";
}
Instance of Symbol 11 MovieClip in Symbol 214 MovieClip Frame 11
onClipEvent (enterFrame) {
_global.si_z = 20;
trace(_parent._parent.enemyName);
if (this.hitTest(_root.mainStage[_parent._parent.enemyName].dmgArea)) {
trace("\u30AE\u30B3\u653B\u6483\u30D2\u30C3\u30C8");
_root.mainStage[_parent._parent.enemyName].damage(_global.ninXdmg, 80, 30, 15);
}
}
Symbol 214 MovieClip Frame 15
_parent.Normal();
Symbol 215 MovieClip Frame 8
_parent.removeMovieClip();
this.stop();
Symbol 216 MovieClip Frame 1
Symbol 216 MovieClip Frame 5
_parent.mode = "-";
_parent.Normal();
Symbol 217 MovieClip Frame 10
_parent.mode = "-";
_parent.Normal();
this.gotoAndPlay(6);
Symbol 218 MovieClip [kage] Frame 1
walkSpeed = 7;
dushMove = 30;
jumpPower = 100;
downEx = 1.3;
upEx = 1.7;
xMoveExt = 1.2;
dcTime = 3;
function Normal() {
if ((jumpMode == "-") || (jumpMode == "down")) {
if ((mode != "damage") && (mode != "dushAttack")) {
mode = "normal";
this.gotoAndStop("normal");
}
}
}
function Lose() {
mode = "lose";
trace(_name + "\u6557\u5317\u3057\u307E\u3057\u305F\u3002");
baseMode = "lose";
sa = this._x - _parent[enemyName]._x;
if (sa < 1) {
endXMove = -50;
} else {
endXMove = 50;
}
endYMove = 30;
this.gotoAndStop("lose");
}
function GetDC() {
if (dcIR > 0) {
dcIR--;
}
if (dcIL > 0) {
dcIL--;
}
if (dcIR2 > 0) {
dcIR2--;
}
if (dcIL2 > 0) {
dcIL2--;
}
if (Key.isDown(this[keyName][0])) {
dcIR = dcTime;
if (dcIR2 >= 1) {
this.Dush("r");
}
} else if (Key.isDown(this[keyName][1])) {
dcIL = dcTime;
if (dcIL2 >= 1) {
this.Dush("l");
}
} else {
walkGo = "-";
if (dcIR >= 1) {
dcIR2 = 2;
}
if (dcIL >= 1) {
dcIL2 = 2;
}
}
}
function Dush(temp) {
if (((mode == "normal") || (mode == "jump")) || (mode == "walk")) {
mode = "dush";
muki = temp;
this.gotoAndStop("Dush");
}
}
function damage(dmg, x, y, tempRes) {
if (baseMode == "normal") {
gardPer = (_global.cpuPower + 1) / _global.gardPerExt;
if ((((Math.random() * 10) < gardPer) && (getTimer() > gardWait)) && (playerMode == "cpu")) {
this.Gard();
}
if (mode != "gard") {
_root.display[_name].HpChange(dmg);
sa = this._x - _parent[enemyName]._x;
if (sa < 1) {
xMove = -x;
} else {
xMove = x;
}
_root.display.displayRes.AddRes(tempRes, enemyName);
gardWait = getTimer() + 300;
tempJumpPower = tempJumpPower + y;
jumpMode = "up";
mode = "damage";
if (Math.abs(y) < 15) {
this.gotoAndStop("damage");
} else {
this.gotoAndStop("damage2");
}
} else {
_root.display[_name].HpChange((dmg = dmg / 4));
sa = this._x - _parent[enemyName]._x;
if (sa < 1) {
xMove = -((x = x / 5));
} else {
xMove = (x = x / 5);
}
tempJumpPower = tempJumpPower + ((y = y / 5));
jumpMode = "up";
this.char.gotoAndPlay(15);
}
}
}
function Walk(muki) {
thePoint = {x:this._x, y:this._y};
_parent.localToGlobal(thePoint);
if (((mode == "normal") || (mode == "jump")) || (mode == "attack")) {
if (mode != "jump") {
this.gotoAndStop("walk");
}
if ((muki == "r") && (thePoint.x < 550)) {
this._xscale = basicScale;
this._x = this._x + walkSpeed;
} else if (thePoint.x > 0) {
this._xscale = -basicScale;
this._x = this._x - walkSpeed;
}
}
}
function Gard() {
mode = "gard";
this.gotoAndStop("gard");
}
function ToGard() {
if (Key.isDown(this[keyName][3])) {
return(1);
}
}
function KeyZ() {
mode = "attack";
this.gotoAndStop("keyZ");
}
function KeyX() {
mode = "attack";
this.gotoAndStop("KeyX");
}
function KeyC() {
mode = "attack";
this.gotoAndStop("KeyC");
}
function KeyExt() {
mode = "ext";
_root[_name + "ext"].removeMovieClip();
_global[_name + "ext"] = 0;
this.gotoAndStop("ext1-1");
}
function ToDushAttack() {
if (Key.isDown(this[keyName][6])) {
return(1);
}
}
function Jump() {
jumpNo = 1;
mode = "jump";
jumpMode = "up";
tempJumpPower = jumpPower;
this.gotoAndStop("jump");
}
function JumpLoop() {
if (jumpMode == "up") {
this._y = this._y - ((tempJumpPower = tempJumpPower / upEx));
if (tempJumpPower <= 10) {
if ((Key.isDown(this[keyName][2]) && (jumpNo == 1)) && (playerMode != "cpu")) {
jumpNo = 2;
tempJumpPower = jumpPower;
} else {
tempBaseJump = tempJumpPower;
jumpMode = "down";
}
}
}
if (jumpMode == "down") {
if (downCnt == 0) {
tempJumpHi = basicHi - this._y;
tempJumpPower = 20;
downCnt++;
}
this._y = this._y + ((tempJumpPower = tempJumpPower * downEx));
tempJumpHi2 = basicHi - this._y;
if (tempJumpHi2 <= 10) {
this._y = basicHi;
jumpMode = "-";
if ((((mode != "gard") && (mode != "attack")) && (mode != "damage")) && (mode != "dush")) {
this.Normal();
}
}
}
if (((jumpMode == "-") && (this._y != basicHi)) && (baseMode != "lose")) {
tempJumpPower = basicHi - this._y;
jumpMode = "down";
}
}
function DagmageLoop() {
if (xMove != 0) {
if (baseMode == "lose") {
if (this._x > 275) {
endXMove = endXMove * -1;
}
if (this._x < -275) {
endXMove = endXMove * -1;
}
this._y = this._y - endYMove;
this._x = this._x + endXMove;
this._rotation = this._rotation + 20;
if (this._y < -1000) {
trace("\u6557\u5317\u8005\u3092\u6D88\u53BB");
_root.GameSet();
this.removeMovieClip();
}
} else {
if (this._x > 275) {
this._x = this._x - 10;
xMove = xMove * -1;
}
if (this._x < -275) {
this._x = this._x + 10;
xMove = xMove * -1;
}
if ((xMove < 5) && (xMove > -5)) {
xMove = 0;
}
this._x = this._x + ((xMove = xMove / xMoveExt));
}
}
}
function SystemLoop() {
if (mode != "dush") {
var sa = (this._x - _parent[enemyName]._x);
if (sa > 0) {
this._xscale = -100;
aiMode = -1;
} else {
this._xscale = 100;
}
}
}
function ModePlayer() {
if ((Key.isDown(this[keyName][7]) && (mode == "normal")) && (_global[_name + "ext"] > 0)) {
this.KeyExt();
}
if ((((actionFlag == 1) && (mode != "gard")) && (mode != "ext")) && (mode != "attack")) {
if (Key.isDown(this[keyName][0])) {
this.Walk("r");
} else if (Key.isDown(this[keyName][1])) {
this.Walk("l");
} else if (mode == "normal") {
this.Normal();
}
if ((mode != "attack") && (mode != "damage")) {
if (Key.isDown(this[keyName][4])) {
this.keyZ();
} else if (Key.isDown(this[keyName][5])) {
this.KeyX();
} else if (Key.isDown(this[keyName][6]) && (mode != "dush")) {
this.KeyC();
}
}
if ((Key.isDown(this[keyName][2]) && (mode != "damage")) && (jumpMode == "-")) {
if ((mode == "normal") || (mode == "dush")) {
this.Jump();
}
} else if (Key.isDown(this[keyName][3])) {
this.Gard();
}
}
this.GetDC();
}
function AI() {
var sa = (this._x - _parent[enemyName]._x);
if (sa > 10) {
this._xscale = -100;
aiMode = -1;
} else if (sa < -10) {
this._xscale = 100;
aiMode = 1;
} else {
aiMode = 0;
}
if ((mode == "normal") || (mode == "walk")) {
if (aiMode > 0) {
this.Walk("r");
} else if (aiMode < 0) {
this.Walk("l");
}
if (((sa < 300) && (sa > -300)) && ((Math.random() * 10) > 9)) {
this.Dush();
}
}
if ((_parent._y > 5) && ((Math.random() * 10) > 9)) {
if ((Key.isDown(this[keyName][2]) && (mode != "damage")) && (jumpMode == "-")) {
if ((mode == "normal") || (mode == "dush")) {
if (((sa < 300) && (sa > -300)) && ((Math.random() * 10) > (5 + tempCpuPowre))) {
this.Dush();
}
this.Jump();
}
}
}
if ((((actionFlag == 1) && (mode != "gard")) && (mode != "ext")) && (mode != "attack")) {
rand = Math.random() * 10;
if ((rand > 8) && (_global[_name + "ext"] > 0)) {
this.KeyExt();
}
if (rand < (0.1 + (tempCpuPowre / 5))) {
this.KeyC();
} else if (((sa > -30) && (sa < 30)) && (rand < (0.2 + (tempCpuPowre / 2)))) {
this.KeyX();
} else if (((sa > -30) && (sa < 30)) && (rand < (0.8 + tempCpuPowre))) {
this.KeyZ();
}
}
}
actionFlag = 1;
baseMode = "normal";
basicScale = _xscale;
basicHi = this._y;
mode = "normal";
jumpMode = "-";
jumpNo = 1;
downCnt = 0;
upCnt = 0;
xMove = 0;
playerMode = "cpu";
tempCpuPower = 3;
moveFlag = 1;
time0 = getTimer();
this.onEnterFrame = function () {
if ((playerMode == "cpu") && (moveFlag == 1)) {
this.AI();
}
this.JumpLoop();
this.SystemLoop();
this.DagmageLoop();
if ((getTimer() > (time0 + 7000)) && (moveFlag == 1)) {
this.gotoAndStop("remove");
moveFlag = 1;
}
};
Symbol 218 MovieClip [kage] Frame 10
this.stop();
Symbol 218 MovieClip [kage] Frame 19
this.stop();
Symbol 218 MovieClip [kage] Frame 29
this.stop();
Symbol 218 MovieClip [kage] Frame 39
this.stop();
Symbol 218 MovieClip [kage] Frame 49
this.stop();
Symbol 218 MovieClip [kage] Frame 59
this.stop();
Symbol 218 MovieClip [kage] Frame 69
this.stop();
Symbol 218 MovieClip [kage] Frame 80
this.stop();
Symbol 218 MovieClip [kage] Frame 90
this.stop();
Symbol 218 MovieClip [kage] Frame 100
this.stop();
Symbol 218 MovieClip [kage] Frame 120
this.stop();
Symbol 218 MovieClip [kage] Frame 130
this.stop();
Symbol 218 MovieClip [kage] Frame 150
this.stop();
Symbol 218 MovieClip [kage] Frame 160
this.stop();
Symbol 218 MovieClip [kage] Frame 170
this.stop();
Symbol 219 MovieClip Frame 23
this.gotoAndPlay(2);
Symbol 223 MovieClip Frame 5
this.onEnterFrame = function () {
if (((_parent.ToGard() == 1) && (this._currentframe > 4)) && (this._currentframe < 7)) {
this.stop();
} else {
_parent.mode = "normal";
this.play();
}
};
Symbol 223 MovieClip Frame 9
_parent.Normal();
Symbol 223 MovieClip Frame 17
this.gotoAndStop(5);
Instance of Symbol 37 MovieClip in Symbol 225 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
role = "niraSZ";
}
Symbol 225 MovieClip Frame 5
_parent.Normal();
Instance of Symbol 37 MovieClip in Symbol 226 MovieClip Frame 5
//component parameters
onClipEvent (initialize) {
role = "niraSX";
}
Symbol 226 MovieClip Frame 14
_parent.Normal();
Symbol 227 MovieClip Frame 1
function SetSmoke() {
thePoint = {x:0, y:38};
this.localToGlobal(thePoint);
zusaName = "zusa" + _global.gDeep;
_root.mainStage.attachMovie("zusaKemuri", zusaName, _global.gDeep);
_root.mainStage[zusaName]._x = _parent._x;
_root.mainStage[zusaName]._y = _parent._y + 10;
_root.mainStage[zusaName]._xscale = tXscale;
_global.gDeep++;
}
i = 0;
if (_parent._xscale > 0) {
speed = 30;
tXscale = 100;
_parent.xMove = _parent.xMove + _parent.dushMove;
} else {
speed = -30;
tXscale = -100;
_parent.xMove = _parent.xMove - _parent.dushMove;
}
trace((("\u30C0\u30C3\u30B7\u30E5\u30E0\u30FC\u30D6" + _parent.dushMove) + "\nSpeed =") + speed);
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
if ((_parent.playerMode == "cpu") && ((Math.random() * 5) > 4)) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 227 MovieClip Frame 2
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
if ((_parent.playerMode == "cpu") && ((Math.random() * 5) > 4)) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 227 MovieClip Frame 3
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 227 MovieClip Frame 4
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 227 MovieClip Frame 5
this.SetSmoke();
Symbol 227 MovieClip Frame 7
_parent.Normal();
Symbol 228 MovieClip Frame 1
function SetSmoke() {
thePoint = {x:0, y:38};
this.localToGlobal(thePoint);
zusaName = "zusa" + _global.gDeep;
trace(_global.gDeep);
_root.mainStage.attachMovie("zusaKemuri", zusaName, _global.gDeep);
_root.mainStage[zusaName]._x = _parent._x;
_root.mainStage[zusaName]._y = _parent._y + 18;
_root.mainStage[zusaName]._xscale = tXscale;
_global.gDeep++;
}
i = 0;
_parent.mode == "attack";
if (_parent._xscale > 0) {
speed = 30;
tXscale = 100;
} else {
speed = -30;
tXscale = -100;
}
speedDownExt = 0.7;
Symbol 228 MovieClip Frame 2
this.onEnterFrame = function () {
if (i < 4) {
thePoint = {x:this._x, y:0};
this.localToGlobal(thePoint);
if ((thePoint.x < 550) && (thePoint.x > 0)) {
_parent._x = _parent._x + speed;
speed = speed * speedDownExt;
}
this.SetSmoke();
}
};
Instance of Symbol 37 MovieClip in Symbol 228 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
role = "niraSD";
}
Symbol 228 MovieClip Frame 15
_parent.Normal();
Symbol 229 MovieClip Frame 1
Symbol 229 MovieClip Frame 5
_parent.mode = "-";
_parent.Normal();
Symbol 230 MovieClip [A_Char_niraS] Frame 1
_global.niraSZdmg = 3;
_global.niraSZxf = 7;
_global.niraSZyf = 0;
_global.niraSZres = 2;
_global.niraSXdmg = 9;
_global.niraSXxf = 50;
_global.niraSXyf = 15;
_global.niraSXres = 15;
_global.niraSC1dmg = 25;
_global.niraSC1xf = 50;
_global.niraSC1yf = 20;
_global.niraSC1res = 30;
_global.niraSC2dmg = 10;
_global.niraSC2xf = 5;
_global.niraSC2yf = 0;
_global.niraSC2res = 7;
_global.niraSDdmg = 5;
_global.niraSDxf = 16;
_global.niraSDyf = 10;
_global.niraSDres = 6;
_global.gikoEdmg = 15;
walkSpeed = 3;
dushMove = 15;
jumpPower = 60;
downEx = 1.3;
upEx = 1.7;
xMoveExt = 1.2;
dcTime = 3;
function Normal() {
if ((jumpMode == "-") || (jumpMode == "down")) {
if ((mode != "damage") && (mode != "dushAttack")) {
mode = "normal";
this.gotoAndStop("normal");
}
}
}
function Lose() {
mode = "lose";
trace(_name + "\u6557\u5317\u3057\u307E\u3057\u305F\u3002");
baseMode = "lose";
sa = this._x - _parent[enemyName]._x;
if (sa < 1) {
endXMove = -50;
} else {
endXMove = 50;
}
endYMove = 30;
this.gotoAndStop("lose");
}
function GetDC() {
if (dcIR > 0) {
dcIR--;
}
if (dcIL > 0) {
dcIL--;
}
if (dcIR2 > 0) {
dcIR2--;
}
if (dcIL2 > 0) {
dcIL2--;
}
if (Key.isDown(this[keyName][0])) {
dcIR = dcTime;
if (dcIR2 >= 1) {
this.Dush("r");
}
} else if (Key.isDown(this[keyName][1])) {
dcIL = dcTime;
if (dcIL2 >= 1) {
this.Dush("l");
}
} else {
walkGo = "-";
if (dcIR >= 1) {
dcIR2 = 2;
}
if (dcIL >= 1) {
dcIL2 = 2;
}
}
}
function Dush(temp) {
if (((mode == "normal") || (mode == "jump")) || (mode == "walk")) {
mode = "dush";
muki = temp;
this.gotoAndStop("Dush");
}
}
function damage(dmg, x, y, tempRes, gardCancelFlag) {
if (baseMode == "normal") {
gardPer = (_global.cpuPower + 1) / _global.gardPerExt;
if (((((Math.random() * 10) < gardPer) && (getTimer() > gardWait)) && (playerMode == "cpu")) && (gardCancelFlag != 1)) {
this.Gard();
}
if (_name == "mainChar1") {
if (_global.gameLv > 2) {
dmg = dmg * 3;
} else if (_global.gameLv > 1) {
dmg = dmg * 2;
}
}
if ((mode == "gard") && (gardCancelFlag != 1)) {
trace("\u30AC\u30FC\u30C9" + gardCancelFlag);
_root.display[_name].HpChange((dmg = dmg / 4));
sa = this._x - _parent[enemyName]._x;
if (sa < 1) {
xMove = -((x = x / 5));
} else {
xMove = (x = x / 5);
}
tempJumpPower = tempJumpPower + ((y = y / 5));
jumpMode = "up";
this.char.gotoAndPlay(15);
} else {
_root.display[_name].HpChange(dmg);
sa = this._x - _parent[enemyName]._x;
if (sa < 1) {
xMove = -x;
} else {
xMove = x;
}
_root.display.displayRes.AddRes(tempRes * _global.resExt, enemyName);
gardWait = getTimer() + 300;
tempJumpPower = tempJumpPower + y;
jumpMode = "up";
mode = "damage";
if (Math.abs(y) < 15) {
this.gotoAndStop("damage");
} else {
this.gotoAndStop("damage2");
}
}
}
}
function Walk(muki) {
thePoint = {x:this._x, y:this._y};
_parent.localToGlobal(thePoint);
if (((mode == "normal") || (mode == "jump")) || (mode == "attack")) {
if (mode != "jump") {
this.gotoAndStop("walk");
}
if ((muki == "r") && (thePoint.x < 550)) {
this._xscale = basicScale;
this._x = this._x + walkSpeed;
} else if (thePoint.x > 0) {
this._xscale = -basicScale;
this._x = this._x - walkSpeed;
}
}
}
function Gard() {
mode = "gard";
this.gotoAndStop("gard");
}
function ToGard() {
if (Key.isDown(this[keyName][3])) {
return(1);
}
}
function KeyZ() {
mode = "attack";
this.gotoAndStop("keyZ");
}
function KeyX() {
mode = "attack";
this.gotoAndStop("KeyX");
}
function KeyC() {
mode = "attack";
this.gotoAndStop("KeyC");
}
function KeyExt() {
mode = "ext";
_root[_name + "ext"].removeMovieClip();
_global[_name + "ext"] = 0;
this.gotoAndStop("ext1-1");
}
function ToDushAttack() {
if (Key.isDown(this[keyName][6])) {
return(1);
}
}
function Jump() {
jumpNo = 1;
mode = "jump";
jumpMode = "up";
tempJumpPower = jumpPower;
this.gotoAndStop("jump");
}
function JumpLoop() {
if (jumpMode == "up") {
this._y = this._y - ((tempJumpPower = tempJumpPower / upEx));
if (tempJumpPower <= 10) {
if ((Key.isDown(this[keyName][2]) && (jumpNo == 1)) && (playerMode != "cpu")) {
jumpNo = 2;
tempJumpPower = jumpPower;
} else {
tempBaseJump = tempJumpPower;
jumpMode = "down";
}
}
}
if (jumpMode == "down") {
if (downCnt == 0) {
tempJumpHi = basicHi - this._y;
tempJumpPower = 20;
downCnt++;
}
this._y = this._y + ((tempJumpPower = tempJumpPower * downEx));
tempJumpHi2 = basicHi - this._y;
if (tempJumpHi2 <= 10) {
this._y = basicHi;
jumpMode = "-";
if ((((mode != "gard") && (mode != "attack")) && (mode != "damage")) && (mode != "dush")) {
this.Normal();
}
}
}
if (((jumpMode == "-") && (this._y != basicHi)) && (baseMode != "lose")) {
tempJumpPower = basicHi - this._y;
jumpMode = "down";
}
}
function DagmageLoop() {
if (baseMode == "lose") {
if (this._x > 275) {
endXMove = endXMove * -1;
}
if (this._x < -275) {
endXMove = endXMove * -1;
}
this._y = this._y - endYMove;
this._x = this._x + endXMove;
this._rotation = this._rotation + 20;
if (this._y < -1000) {
trace("\u6557\u5317\u8005\u3092\u6D88\u53BB");
_root.GameSet();
this.removeMovieClip();
}
} else if (xMove != 0) {
if (this._x > 275) {
this._x = this._x - 10;
xMove = xMove * -1;
}
if (this._x < -275) {
this._x = this._x + 10;
xMove = xMove * -1;
}
if ((xMove < 5) && (xMove > -5)) {
xMove = 0;
}
this._x = this._x + ((xMove = xMove / xMoveExt));
}
}
function SystemLoop() {
if (mode != "dush") {
var sa = (this._x - _parent[enemyName]._x);
if (sa > 0) {
this._xscale = -100;
aiMode = -1;
} else {
this._xscale = 100;
}
}
}
function Debug() {
if (Key.isDown(36)) {
trace(_name + "**************************************");
trace((((("mode = " + mode) + "\nbaseMode=") + baseMode) + "\njumpMode=") + jumpMode);
trace("********************************************");
}
}
function ModePlayer() {
if ((Key.isDown(this[keyName][7]) && (mode == "normal")) && (_global[_name + "ext"] > 0)) {
this.KeyExt();
}
if ((((actionFlag == 1) && (mode != "gard")) && (mode != "ext")) && (mode != "attack")) {
if (Key.isDown(this[keyName][0])) {
this.Walk("r");
} else if (Key.isDown(this[keyName][1])) {
this.Walk("l");
} else if (mode == "normal") {
this.Normal();
}
if ((mode != "attack") && (mode != "damage")) {
if (Key.isDown(this[keyName][4])) {
this.keyZ();
} else if (Key.isDown(this[keyName][5])) {
this.KeyX();
} else if (Key.isDown(this[keyName][6]) && (mode != "dush")) {
this.KeyC();
}
}
if ((Key.isDown(this[keyName][2]) && (mode != "damage")) && (jumpMode == "-")) {
if ((mode == "normal") || (mode == "dush")) {
this.Jump();
}
} else if (Key.isDown(this[keyName][3])) {
this.Gard();
}
}
this.GetDC();
}
function AI() {
if (Key.isDown(90)) {
zCnt = zCnt + 2;
if ((zCnt > 16) && (Math.random() > 0.5)) {
trace("\u5C0F\u653B\u6483\u9023\u6253\u3092\u691C\u51FA\u30FB\u96E2\u8131");
tac = 0;
tac2 = "out";
}
}
if (zCnt > 0) {
zCnt--;
}
if (Math.random() > 0.9) {
if (Math.random() > 0.3) {
trace("\u6226\u8853\u5909\u66F4\u30FB\u63A5\u8FD1");
tac2 = "out";
tac = 1;
} else {
trace("\u6226\u8853\u5909\u66F4\u30FB\u96E2\u8131");
tac = 0;
}
}
var sa = (this._x - _parent[enemyName]._x);
if (sa > 10) {
this._xscale = -100;
aiMode = -1;
} else if (sa < -10) {
this._xscale = 100;
aiMode = 1;
} else {
aiMode = 0;
}
if ((mode == "normal") || (mode == "walk")) {
if (tac > 0) {
if (aiMode > 0) {
this.Walk("r");
} else if (aiMode < 0) {
this.Walk("l");
}
} else if (aiMode > 0) {
this.Walk("l");
} else if (aiMode < 0) {
this.Walk("r");
}
if (((sa < 300) && (sa > -300)) && ((Math.random() * 10) > 9)) {
zCnt = 0;
tac = 1;
this.Dush();
}
}
if ((_parent._y > 5) && ((Math.random() * 10) > 9)) {
if ((Key.isDown(this[keyName][2]) && (mode != "damage")) && (jumpMode == "-")) {
if ((mode == "normal") || (mode == "dush")) {
if (((sa < 300) && (sa > -300)) && ((Math.random() * 10) > (5 + _global.cpuPower))) {
this.Dush();
}
this.Jump();
}
}
}
if ((((actionFlag == 1) && (mode != "gard")) && (mode != "ext")) && (mode != "attack")) {
rand = Math.random() * 10;
if ((rand > 8) && (_global[_name + "ext"] > 0)) {
this.KeyExt();
}
if (rand < (0.1 + (_global.cpuPower / 5))) {
this.KeyC();
} else if (((sa > -30) && (sa < 30)) && (rand < (0.2 + (_global.cpuPower / 2)))) {
this.KeyX();
} else if (((sa > -30) && (sa < 30)) && (rand < (0.8 + _global.cpuPower))) {
if (tac2 == "out") {
if (Math.random > 0.5) {
this.KeyC();
} else {
this.KeyX();
}
} else {
this.KeyZ();
}
}
}
}
key1p = new Array();
keyuser = [39, 37, 38, 40, 90, 88, 67, 86];
keyvs1 = [66, 67, 70, 86, 65, 83, 68, 81];
keyvs2 = [39, 37, 38, 40, 74, 75, 76, 80];
keyName = "key" + playerMode;
actionFlag = 1;
baseMode = "normal";
basicScale = _xscale;
basicHi = this._y;
mode = "normal";
jumpMode = "-";
jumpNo = 1;
downCnt = 0;
upCnt = 0;
xMove = 0;
if (this._name == "mainChar1") {
enemyName = "mainChar2";
} else {
enemyName = "mainChar1";
}
trace((("\u81EA\u5206\u306E\u540D\u79F0" + _name) + "\u3000\u6575\u306E\u540D\u79F0") + enemyName);
if (_name == "mainChar1") {
theColor = new Color(this);
if (_global.char1color != 0) {
co = _global.char1color;
theColor.setRGB(co);
}
} else {
theColor = new Color(this);
if (_global.char2color != 0) {
co = _global.char2color;
theColor.setRGB(co);
}
}
tac = 1;
zCnt = 0;
this.onEnterFrame = function () {
if (actionFlag == 1) {
if (playerMode == "cpu") {
if (_global.cpuPower != -1) {
this.AI();
}
} else {
this.ModePlayer();
}
this.JumpLoop();
this.SystemLoop();
this.DagmageLoop();
this.Debug();
}
};
Symbol 230 MovieClip [A_Char_niraS] Frame 10
this.stop();
Symbol 230 MovieClip [A_Char_niraS] Frame 19
this.stop();
Symbol 230 MovieClip [A_Char_niraS] Frame 29
this.stop();
Symbol 230 MovieClip [A_Char_niraS] Frame 39
this.stop();
Symbol 230 MovieClip [A_Char_niraS] Frame 49
this.stop();
Symbol 230 MovieClip [A_Char_niraS] Frame 59
this.stop();
Symbol 230 MovieClip [A_Char_niraS] Frame 69
this.stop();
Symbol 230 MovieClip [A_Char_niraS] Frame 80
this.stop();
Symbol 230 MovieClip [A_Char_niraS] Frame 90
this.stop();
Symbol 230 MovieClip [A_Char_niraS] Frame 100
this.stop();
Symbol 230 MovieClip [A_Char_niraS] Frame 120
this.stop();
Symbol 230 MovieClip [A_Char_niraS] Frame 130
this.stop();
Symbol 230 MovieClip [A_Char_niraS] Frame 160
this.stop();
Symbol 230 MovieClip [A_Char_niraS] Frame 170
this.stop();
Symbol 233 MovieClip Frame 1
function SetMy() {
name = "kage" + i;
_root.mainStage.attachMovie("kage", name, i);
_root.mainStage[name]._x = _parent._x;
_root.mainStage[name]._y = _parent._y;
_root.mainStage[name].enemyName = _parent.enemyName;
i++;
}
if (_parent._name == "mainChar1") {
i = 3;
} else {
i = 6;
}
Symbol 233 MovieClip Frame 12
Symbol 233 MovieClip Frame 15
_parent.dmgArea._name = "notDmgArea";
Symbol 233 MovieClip Frame 16
this.SetMy();
Symbol 233 MovieClip Frame 20
this.SetMy();
Symbol 233 MovieClip Frame 25
this.SetMy();
Symbol 233 MovieClip Frame 30
_parent.notDmgArea._name = "dmgArea";
_parent.notDmgArea._name = "dmgArea";
_parent.Normal();
Symbol 235 MovieClip Frame 10
_parent.mode = "-";
_parent.Normal();
this.gotoAndPlay(6);
Symbol 236 MovieClip [A_Char_ninjya] Frame 1
_global.ninZdmg = 5;
_global.ninZxf = 7;
_global.ninZyf = 0;
_global.ninZres = 4;
_global.ninXdmg = 9;
_global.ninXxf = 30;
_global.ninXyf = 10;
_global.ninXres = 8;
_global.ninC1dmg = 25;
_global.ninC1xf = 50;
_global.ninC1yf = 20;
_global.ninC1res = 30;
_global.ninC2dmg = 10;
_global.ninC2xf = 5;
_global.ninC2yf = 0;
_global.ninC2res = 7;
_global.ninDdmg = 4;
_global.ninDxf = 16;
_global.ninDyf = 10;
_global.ninDres = 5;
_global.gikoEdmg = 15;
walkSpeed = 7;
dushMove = 30;
jumpPower = 100;
downEx = 1.3;
upEx = 1.7;
xMoveExt = 1.2;
dcTime = 3;
function Normal() {
if ((jumpMode == "-") || (jumpMode == "down")) {
if ((mode != "damage") && (mode != "dushAttack")) {
mode = "normal";
this.gotoAndStop("normal");
}
}
}
function Lose() {
mode = "lose";
trace(_name + "\u6557\u5317\u3057\u307E\u3057\u305F\u3002");
baseMode = "lose";
sa = this._x - _parent[enemyName]._x;
if (sa < 1) {
endXMove = -50;
} else {
endXMove = 50;
}
endYMove = 30;
this.gotoAndStop("lose");
}
function GetDC() {
if (dcIR > 0) {
dcIR--;
}
if (dcIL > 0) {
dcIL--;
}
if (dcIR2 > 0) {
dcIR2--;
}
if (dcIL2 > 0) {
dcIL2--;
}
if (Key.isDown(this[keyName][0])) {
dcIR = dcTime;
if (dcIR2 >= 1) {
this.Dush("r");
}
} else if (Key.isDown(this[keyName][1])) {
dcIL = dcTime;
if (dcIL2 >= 1) {
this.Dush("l");
}
} else {
walkGo = "-";
if (dcIR >= 1) {
dcIR2 = 2;
}
if (dcIL >= 1) {
dcIL2 = 2;
}
}
}
function Dush(temp) {
if (((mode == "normal") || (mode == "jump")) || (mode == "walk")) {
mode = "dush";
muki = temp;
this.gotoAndStop("Dush");
}
}
function damage(dmg, x, y, tempRes, gardCancelFlag) {
if (baseMode == "normal") {
gardPer = (_global.cpuPower + 1) / _global.gardPerExt;
if (((((Math.random() * 10) < gardPer) && (getTimer() > gardWait)) && (playerMode == "cpu")) && (gardCancelFlag != 1)) {
this.Gard();
}
if (_name == "mainChar1") {
if (_global.gameLv > 2) {
dmg = dmg * 3;
} else if (_global.gameLv > 1) {
dmg = dmg * 2;
}
}
if ((mode == "gard") && (gardCancelFlag != 1)) {
trace("\u30AC\u30FC\u30C9" + gardCancelFlag);
_root.display[_name].HpChange((dmg = dmg / 4));
sa = this._x - _parent[enemyName]._x;
if (sa < 1) {
xMove = -((x = x / 5));
} else {
xMove = (x = x / 5);
}
tempJumpPower = tempJumpPower + ((y = y / 5));
jumpMode = "up";
this.char.gotoAndPlay(15);
} else {
_root.display[_name].HpChange(dmg);
sa = this._x - _parent[enemyName]._x;
if (sa < 1) {
xMove = -x;
} else {
xMove = x;
}
_root.display.displayRes.AddRes(tempRes * _global.resExt, enemyName);
gardWait = getTimer() + 300;
tempJumpPower = tempJumpPower + y;
jumpMode = "up";
mode = "damage";
if (Math.abs(y) < 15) {
this.gotoAndStop("damage");
} else {
this.gotoAndStop("damage2");
}
}
}
}
function Walk(muki) {
thePoint = {x:this._x, y:this._y};
_parent.localToGlobal(thePoint);
if (((mode == "normal") || (mode == "jump")) || (mode == "attack")) {
if (mode != "jump") {
this.gotoAndStop("walk");
}
if ((muki == "r") && (thePoint.x < 550)) {
this._xscale = basicScale;
this._x = this._x + walkSpeed;
} else if (thePoint.x > 0) {
this._xscale = -basicScale;
this._x = this._x - walkSpeed;
}
}
}
function Gard() {
mode = "gard";
this.gotoAndStop("gard");
}
function ToGard() {
if (Key.isDown(this[keyName][3])) {
return(1);
}
}
function KeyZ() {
mode = "attack";
this.gotoAndStop("keyZ");
}
function KeyX() {
mode = "attack";
this.gotoAndStop("KeyX");
}
function KeyC() {
mode = "attack";
this.gotoAndStop("KeyC");
}
function KeyExt() {
mode = "ext";
_root[_name + "ext"].removeMovieClip();
_global[_name + "ext"] = 0;
this.gotoAndStop("ext1-1");
}
function ToDushAttack() {
if (Key.isDown(this[keyName][6])) {
return(1);
}
}
function Jump() {
jumpNo = 1;
mode = "jump";
jumpMode = "up";
tempJumpPower = jumpPower;
this.gotoAndStop("jump");
}
function JumpLoop() {
if (jumpMode == "up") {
this._y = this._y - ((tempJumpPower = tempJumpPower / upEx));
if (tempJumpPower <= 10) {
if ((Key.isDown(this[keyName][2]) && (jumpNo == 1)) && (playerMode != "cpu")) {
jumpNo = 2;
tempJumpPower = jumpPower;
} else {
tempBaseJump = tempJumpPower;
jumpMode = "down";
}
}
}
if (jumpMode == "down") {
if (downCnt == 0) {
tempJumpHi = basicHi - this._y;
tempJumpPower = 20;
downCnt++;
}
this._y = this._y + ((tempJumpPower = tempJumpPower * downEx));
tempJumpHi2 = basicHi - this._y;
if (tempJumpHi2 <= 10) {
this._y = basicHi;
jumpMode = "-";
if ((((mode != "gard") && (mode != "attack")) && (mode != "damage")) && (mode != "dush")) {
this.Normal();
}
}
}
if (((jumpMode == "-") && (this._y != basicHi)) && (baseMode != "lose")) {
tempJumpPower = basicHi - this._y;
jumpMode = "down";
}
}
function DagmageLoop() {
if (baseMode == "lose") {
if (this._x > 275) {
endXMove = endXMove * -1;
}
if (this._x < -275) {
endXMove = endXMove * -1;
}
this._y = this._y - endYMove;
this._x = this._x + endXMove;
this._rotation = this._rotation + 20;
if (this._y < -1000) {
trace("\u6557\u5317\u8005\u3092\u6D88\u53BB");
_root.GameSet();
this.removeMovieClip();
}
} else if (xMove != 0) {
if (this._x > 275) {
this._x = this._x - 10;
xMove = xMove * -1;
}
if (this._x < -275) {
this._x = this._x + 10;
xMove = xMove * -1;
}
if ((xMove < 5) && (xMove > -5)) {
xMove = 0;
}
this._x = this._x + ((xMove = xMove / xMoveExt));
}
}
function SystemLoop() {
if (mode != "dush") {
var sa = (this._x - _parent[enemyName]._x);
if (sa > 0) {
this._xscale = -100;
aiMode = -1;
} else {
this._xscale = 100;
}
}
}
function Debug() {
if (Key.isDown(36)) {
trace(_name + "**************************************");
trace((((("mode = " + mode) + "\nbaseMode=") + baseMode) + "\njumpMode=") + jumpMode);
trace("********************************************");
}
}
function ModePlayer() {
if ((Key.isDown(this[keyName][7]) && (mode == "normal")) && (_global[_name + "ext"] > 0)) {
this.KeyExt();
}
if ((((actionFlag == 1) && (mode != "gard")) && (mode != "ext")) && (mode != "attack")) {
if (Key.isDown(this[keyName][0])) {
this.Walk("r");
} else if (Key.isDown(this[keyName][1])) {
this.Walk("l");
} else if (mode == "normal") {
this.Normal();
}
if ((mode != "attack") && (mode != "damage")) {
if (Key.isDown(this[keyName][4])) {
this.keyZ();
} else if (Key.isDown(this[keyName][5])) {
this.KeyX();
} else if (Key.isDown(this[keyName][6]) && (mode != "dush")) {
this.KeyC();
}
}
if ((Key.isDown(this[keyName][2]) && (mode != "damage")) && (jumpMode == "-")) {
if ((mode == "normal") || (mode == "dush")) {
this.Jump();
}
} else if (Key.isDown(this[keyName][3])) {
this.Gard();
}
}
this.GetDC();
}
function AI() {
if (Key.isDown(90)) {
zCnt = zCnt + 2;
if ((zCnt > 16) && (Math.random() > 0.5)) {
trace("\u5C0F\u653B\u6483\u9023\u6253\u3092\u691C\u51FA\u30FB\u96E2\u8131");
tac = 0;
tac2 = "out";
}
}
if (zCnt > 0) {
zCnt--;
}
if (Math.random() > 0.9) {
if (Math.random() > 0.3) {
trace("\u6226\u8853\u5909\u66F4\u30FB\u63A5\u8FD1");
tac2 = "out";
tac = 1;
} else {
trace("\u6226\u8853\u5909\u66F4\u30FB\u96E2\u8131");
tac = 0;
}
}
var sa = (this._x - _parent[enemyName]._x);
if (sa > 10) {
this._xscale = -100;
aiMode = -1;
} else if (sa < -10) {
this._xscale = 100;
aiMode = 1;
} else {
aiMode = 0;
}
if ((mode == "normal") || (mode == "walk")) {
if (tac > 0) {
if (aiMode > 0) {
this.Walk("r");
} else if (aiMode < 0) {
this.Walk("l");
}
} else if (aiMode > 0) {
this.Walk("l");
} else if (aiMode < 0) {
this.Walk("r");
}
if (((sa < 300) && (sa > -300)) && ((Math.random() * 10) > 9)) {
zCnt = 0;
tac = 1;
this.Dush();
}
}
if ((_parent._y > 5) && ((Math.random() * 10) > 9)) {
if ((Key.isDown(this[keyName][2]) && (mode != "damage")) && (jumpMode == "-")) {
if ((mode == "normal") || (mode == "dush")) {
if (((sa < 300) && (sa > -300)) && ((Math.random() * 10) > (5 + _global.cpuPower))) {
this.Dush();
}
this.Jump();
}
}
}
if ((((actionFlag == 1) && (mode != "gard")) && (mode != "ext")) && (mode != "attack")) {
rand = Math.random() * 10;
if ((rand > 8) && (_global[_name + "ext"] > 0)) {
this.KeyExt();
}
if (rand < (0.1 + (_global.cpuPower / 5))) {
this.KeyC();
} else if (((sa > -30) && (sa < 30)) && (rand < (0.2 + (_global.cpuPower / 2)))) {
this.KeyX();
} else if (((sa > -30) && (sa < 30)) && (rand < (0.8 + _global.cpuPower))) {
if (tac2 == "out") {
if (Math.random > 0.5) {
this.KeyC();
} else {
this.KeyX();
}
} else {
this.KeyZ();
}
}
}
}
key1p = new Array();
keyuser = [39, 37, 38, 40, 90, 88, 67, 86];
keyvs1 = [66, 67, 70, 86, 65, 83, 68, 81];
keyvs2 = [39, 37, 38, 40, 74, 75, 76, 80];
keyName = "key" + playerMode;
actionFlag = 1;
baseMode = "normal";
basicScale = _xscale;
basicHi = this._y;
mode = "normal";
jumpMode = "-";
jumpNo = 1;
downCnt = 0;
upCnt = 0;
xMove = 0;
if (this._name == "mainChar1") {
enemyName = "mainChar2";
} else {
enemyName = "mainChar1";
}
trace((("\u81EA\u5206\u306E\u540D\u79F0" + _name) + "\u3000\u6575\u306E\u540D\u79F0") + enemyName);
if (_name == "mainChar1") {
theColor = new Color(this);
if (_global.char1color != 0) {
co = _global.char1color;
theColor.setRGB(co);
}
} else {
theColor = new Color(this);
if (_global.char2color != 0) {
co = _global.char2color;
theColor.setRGB(co);
}
}
tac = 1;
zCnt = 0;
this.onEnterFrame = function () {
if (actionFlag == 1) {
if (playerMode == "cpu") {
if (_global.cpuPower != -1) {
this.AI();
}
} else {
this.ModePlayer();
}
this.JumpLoop();
this.SystemLoop();
this.DagmageLoop();
this.Debug();
}
};
Symbol 236 MovieClip [A_Char_ninjya] Frame 10
this.stop();
Symbol 236 MovieClip [A_Char_ninjya] Frame 19
this.stop();
Symbol 236 MovieClip [A_Char_ninjya] Frame 29
this.stop();
Symbol 236 MovieClip [A_Char_ninjya] Frame 39
this.stop();
Symbol 236 MovieClip [A_Char_ninjya] Frame 49
this.stop();
Symbol 236 MovieClip [A_Char_ninjya] Frame 59
this.stop();
Symbol 236 MovieClip [A_Char_ninjya] Frame 69
this.stop();
Symbol 236 MovieClip [A_Char_ninjya] Frame 80
this.stop();
Symbol 236 MovieClip [A_Char_ninjya] Frame 90
this.stop();
Symbol 236 MovieClip [A_Char_ninjya] Frame 100
this.stop();
Symbol 236 MovieClip [A_Char_ninjya] Frame 120
this.stop();
Symbol 236 MovieClip [A_Char_ninjya] Frame 130
this.stop();
Symbol 236 MovieClip [A_Char_ninjya] Frame 160
this.stop();
Symbol 236 MovieClip [A_Char_ninjya] Frame 170
this.stop();
Symbol 238 MovieClip Frame 13
this.gotoAndPlay(4);
Symbol 243 MovieClip Frame 5
this.onEnterFrame = function () {
if (((_parent.ToGard() == 1) && (this._currentframe > 4)) && (this._currentframe < 7)) {
this.stop();
} else {
_parent.mode = "normal";
this.play();
}
};
Symbol 243 MovieClip Frame 9
_parent.Normal();
Symbol 243 MovieClip Frame 17
this.gotoAndStop(5);
Instance of Symbol 37 MovieClip in Symbol 245 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
role = "gikoZ";
}
Symbol 245 MovieClip Frame 5
_parent.Normal();
Symbol 247 MovieClip Frame 1
this.attachMovie("talk_age", "talk_age", 1);
if (_parent._parent._xscale < 0) {
this.talk_age._xscale = -100;
}
this.talk_age._y = -33;
Instance of Symbol 37 MovieClip in Symbol 248 MovieClip Frame 8
//component parameters
onClipEvent (initialize) {
role = "gikoX";
}
Instance of Symbol 11 MovieClip in Symbol 248 MovieClip Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainStage[_parent._parent.enemyName].dmgArea)) {
_root.mainStage[_parent._parent.enemyName].damage(_global.gikoXdmg, 30, 30, 20);
}
}
Symbol 248 MovieClip Frame 14
_parent.Normal();
Instance of Symbol 37 MovieClip in Symbol 249 MovieClip Frame 10
//component parameters
onClipEvent (initialize) {
role = "gikoC";
}
onClipEvent (enterFrame) {
trace(_parent._parent.enemyName);
if (this.hitTest(_root.mainStage[_parent._parent.enemyName].dmgArea)) {
trace("\u30AE\u30B3\u653B\u6483\u30D2\u30C3\u30C8");
_root.mainStage[_parent._parent.enemyName].damage(_global.gikoC1dmg, _global.gikoC1xf, _global.gikoC1yf, _global.gikoC1res);
}
}
Symbol 249 MovieClip Frame 11
if (_parent._xscale > 0) {
speed = 35;
tXscale = 100;
} else {
speed = -35;
tXscale = -100;
}
zusaName = "bord" + _global.gDeep;
_root.mainStage.attachMovie("bordAttack", zusaName, _global.gDeep);
_root.mainStage[zusaName]._x = _parent._x + (115 * (tXscale / 100));
_root.mainStage[zusaName]._y = _parent._y;
_root.mainStage[zusaName]._xscale = tXscale;
_root.mainStage[zusaName].move = speed;
_root.mainStage[zusaName].name = _parent._name;
_root.mainStage[zusaName].enemyName = _parent.enemyName;
_global.gDeep++;
Symbol 249 MovieClip Frame 19
_parent.Normal();
Symbol 250 MovieClip Frame 1
function SetSmoke() {
thePoint = {x:0, y:38};
this.localToGlobal(thePoint);
zusaName = "zusa" + _global.gDeep;
_root.mainStage.attachMovie("zusaKemuri", zusaName, _global.gDeep);
_root.mainStage[zusaName]._x = _parent._x;
_root.mainStage[zusaName]._y = _parent._y + 38;
_root.mainStage[zusaName]._xscale = tXscale;
_global.gDeep++;
}
i = 0;
if (_parent._xscale > 0) {
speed = 30;
tXscale = 100;
_parent.xMove = _parent.xMove + _parent.dushMove;
} else {
speed = -30;
tXscale = -100;
_parent.xMove = _parent.xMove - _parent.dushMove;
}
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
if ((_parent.playerMode == "cpu") && ((Math.random() * 5) > 4)) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 250 MovieClip Frame 2
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
if ((_parent.playerMode == "cpu") && ((Math.random() * 5) > 4)) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 250 MovieClip Frame 3
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 250 MovieClip Frame 4
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 250 MovieClip Frame 5
this.SetSmoke();
Symbol 250 MovieClip Frame 7
_parent.Normal();
Symbol 257 MovieClip Frame 1
function SetSmoke() {
thePoint = {x:0, y:38};
this.localToGlobal(thePoint);
zusaName = "zusa" + _global.gDeep;
_root.mainStage.attachMovie("zusaKemuri", zusaName, _global.gDeep);
_root.mainStage[zusaName]._x = _parent._x;
_root.mainStage[zusaName]._y = _parent._y + 38;
_root.mainStage[zusaName]._xscale = tXscale;
_global.gDeep++;
}
i = 0;
_parent.mode == "attack";
if (_parent._xscale > 0) {
speed = 30;
tXscale = 100;
} else {
speed = -30;
tXscale = -100;
}
speedDownExt = 0.7;
Symbol 257 MovieClip Frame 2
this.onEnterFrame = function () {
if (i < 4) {
thePoint = {x:this._x, y:0};
this.localToGlobal(thePoint);
if ((thePoint.x < 550) && (thePoint.x > 0)) {
_parent._x = _parent._x + speed;
speed = speed * speedDownExt;
}
this.SetSmoke();
}
};
Instance of Symbol 11 MovieClip in Symbol 257 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainStage[_parent._parent.enemyName].dmgArea)) {
_root.mainStage[_parent._parent.enemyName].damage(_global.gikoDdmg, _global.gikoDxf, _global.gikoDyf, _global.gikoDres);
}
}
Instance of Symbol 11 MovieClip in Symbol 257 MovieClip Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainStage[_parent._parent.enemyName].dmgArea)) {
_root.mainStage[_parent._parent.enemyName].damage(_global.gikoXdmg, 80, 30, 15);
}
}
Symbol 257 MovieClip Frame 15
_parent.Normal();
Symbol 258 MovieClip Frame 1
Symbol 258 MovieClip Frame 5
_parent.mode = "-";
_parent.Normal();
Symbol 259 MovieClip Frame 1
Symbol 259 MovieClip Frame 10
_parent.mode = "-";
_parent.Normal();
this.gotoAndPlay(6);
Symbol 260 MovieClip [A_Char_giko] Frame 1
_global.gikoZdmg = 5;
_global.gikoZxf = 7;
_global.gikoZyf = 0;
_global.gikoZres = 4;
_global.gikoXdmg = 20;
_global.gikoXxf = 60;
_global.gikoXyf = 100;
_global.gikoXres = 20;
_global.gikoC1dmg = 25;
_global.gikoC1xf = 50;
_global.gikoC1yf = 20;
_global.gikoC1res = 30;
_global.gikoC2dmg = 10;
_global.gikoC2xf = 5;
_global.gikoC2yf = 0;
_global.gikoC2res = 7;
_global.gikoDdmg = 20;
_global.gikoDxf = 16;
_global.gikoDyf = 10;
_global.gikoDres = 7;
_global.gikoEdmg = 15;
walkSpeed = 5;
dushMove = 30;
jumpPower = 100;
downEx = 1.3;
upEx = 1.7;
xMoveExt = 1.2;
dcTime = 3;
function Normal() {
if ((jumpMode == "-") || (jumpMode == "down")) {
if ((mode != "damage") && (mode != "dushAttack")) {
mode = "normal";
this.gotoAndStop("normal");
}
}
}
function Lose() {
mode = "lose";
trace(_name + "\u6557\u5317\u3057\u307E\u3057\u305F\u3002");
baseMode = "lose";
sa = this._x - _parent[enemyName]._x;
if (sa < 1) {
endXMove = -50;
} else {
endXMove = 50;
}
endYMove = 30;
this.gotoAndStop("lose");
}
function GetDC() {
if (dcIR > 0) {
dcIR--;
}
if (dcIL > 0) {
dcIL--;
}
if (dcIR2 > 0) {
dcIR2--;
}
if (dcIL2 > 0) {
dcIL2--;
}
if (Key.isDown(this[keyName][0])) {
dcIR = dcTime;
if (dcIR2 >= 1) {
this.Dush("r");
}
} else if (Key.isDown(this[keyName][1])) {
dcIL = dcTime;
if (dcIL2 >= 1) {
this.Dush("l");
}
} else {
walkGo = "-";
if (dcIR >= 1) {
dcIR2 = 2;
}
if (dcIL >= 1) {
dcIL2 = 2;
}
}
}
function Dush(temp) {
if (((mode == "normal") || (mode == "jump")) || (mode == "walk")) {
mode = "dush";
muki = temp;
this.gotoAndStop("Dush");
}
}
function damage(dmg, x, y, tempRes, gardCancelFlag) {
if (baseMode == "normal") {
gardPer = (_global.cpuPower + 1) / _global.gardPerExt;
if (((((Math.random() * 10) < gardPer) && (getTimer() > gardWait)) && (playerMode == "cpu")) && (gardCancelFlag != 1)) {
this.Gard();
}
if (_name == "mainChar1") {
if (_global.gameLv > 2) {
dmg = dmg * 3;
} else if (_global.gameLv > 1) {
dmg = dmg * 2;
}
}
if ((mode == "gard") && (gardCancelFlag != 1)) {
trace("\u30AC\u30FC\u30C9" + gardCancelFlag);
_root.display[_name].HpChange((dmg = dmg / 4));
sa = this._x - _parent[enemyName]._x;
if (sa < 1) {
xMove = -((x = x / 5));
} else {
xMove = (x = x / 5);
}
tempJumpPower = tempJumpPower + ((y = y / 5));
jumpMode = "up";
this.char.gotoAndPlay(15);
} else {
_root.display[_name].HpChange(dmg);
sa = this._x - _parent[enemyName]._x;
if (sa < 1) {
xMove = -x;
} else {
xMove = x;
}
_root.display.displayRes.AddRes(tempRes * _global.resExt, enemyName);
gardWait = getTimer() + 300;
tempJumpPower = tempJumpPower + y;
jumpMode = "up";
mode = "damage";
if (Math.abs(y) < 15) {
this.gotoAndStop("damage");
} else {
this.gotoAndStop("damage2");
}
}
}
}
function Walk(muki) {
thePoint = {x:this._x, y:this._y};
_parent.localToGlobal(thePoint);
if (((mode == "normal") || (mode == "jump")) || (mode == "attack")) {
if (mode != "jump") {
this.gotoAndStop("walk");
}
if ((muki == "r") && (thePoint.x < 550)) {
this._xscale = basicScale;
this._x = this._x + walkSpeed;
} else if (thePoint.x > 0) {
this._xscale = -basicScale;
this._x = this._x - walkSpeed;
}
}
}
function Gard() {
mode = "gard";
this.gotoAndStop("gard");
}
function ToGard() {
if (Key.isDown(this[keyName][3])) {
return(1);
}
}
function KeyZ() {
mode = "attack";
this.gotoAndStop("keyZ");
}
function KeyX() {
mode = "attack";
this.gotoAndStop("KeyX");
}
function KeyC() {
mode = "attack";
this.gotoAndStop("KeyC");
}
function KeyExt() {
mode = "ext";
_root[_name + "ext"].removeMovieClip();
_global[_name + "ext"] = 0;
this.gotoAndStop("ext1-1");
}
function ToDushAttack() {
if (Key.isDown(this[keyName][6])) {
return(1);
}
}
function Jump() {
jumpNo = 1;
mode = "jump";
jumpMode = "up";
tempJumpPower = jumpPower;
this.gotoAndStop("jump");
}
function JumpLoop() {
if (jumpMode == "up") {
this._y = this._y - ((tempJumpPower = tempJumpPower / upEx));
if (tempJumpPower <= 10) {
if ((Key.isDown(this[keyName][2]) && (jumpNo == 1)) && (playerMode != "cpu")) {
jumpNo = 2;
tempJumpPower = jumpPower;
} else {
tempBaseJump = tempJumpPower;
jumpMode = "down";
}
}
}
if (jumpMode == "down") {
if (downCnt == 0) {
tempJumpHi = basicHi - this._y;
tempJumpPower = 20;
downCnt++;
}
this._y = this._y + ((tempJumpPower = tempJumpPower * downEx));
tempJumpHi2 = basicHi - this._y;
if (tempJumpHi2 <= 10) {
this._y = basicHi;
jumpMode = "-";
if ((((mode != "gard") && (mode != "attack")) && (mode != "damage")) && (mode != "dush")) {
this.Normal();
}
}
}
if (((jumpMode == "-") && (this._y != basicHi)) && (baseMode != "lose")) {
tempJumpPower = basicHi - this._y;
jumpMode = "down";
}
}
function DagmageLoop() {
if (baseMode == "lose") {
if (this._x > 275) {
endXMove = endXMove * -1;
}
if (this._x < -275) {
endXMove = endXMove * -1;
}
this._y = this._y - endYMove;
this._x = this._x + endXMove;
this._rotation = this._rotation + 20;
if (this._y < -1000) {
trace("\u6557\u5317\u8005\u3092\u6D88\u53BB");
_root.GameSet();
this.removeMovieClip();
}
} else if (xMove != 0) {
if (this._x > 275) {
this._x = this._x - 10;
xMove = xMove * -1;
}
if (this._x < -275) {
this._x = this._x + 10;
xMove = xMove * -1;
}
if ((xMove < 5) && (xMove > -5)) {
xMove = 0;
}
this._x = this._x + ((xMove = xMove / xMoveExt));
}
}
function SystemLoop() {
if (mode != "dush") {
var sa = (this._x - _parent[enemyName]._x);
if (sa > 0) {
this._xscale = -100;
aiMode = -1;
} else {
this._xscale = 100;
}
}
}
function Debug() {
if (Key.isDown(36)) {
trace(_name + "**************************************");
trace((((("mode = " + mode) + "\nbaseMode=") + baseMode) + "\njumpMode=") + jumpMode);
trace("********************************************");
}
}
function ModePlayer() {
if ((Key.isDown(this[keyName][7]) && (mode == "normal")) && (_global[_name + "ext"] > 0)) {
this.KeyExt();
}
if ((((actionFlag == 1) && (mode != "gard")) && (mode != "ext")) && (mode != "attack")) {
if (Key.isDown(this[keyName][0])) {
this.Walk("r");
} else if (Key.isDown(this[keyName][1])) {
this.Walk("l");
} else if (mode == "normal") {
this.Normal();
}
if ((mode != "attack") && (mode != "damage")) {
if (Key.isDown(this[keyName][4])) {
this.keyZ();
} else if (Key.isDown(this[keyName][5])) {
this.KeyX();
} else if (Key.isDown(this[keyName][6]) && (mode != "dush")) {
this.KeyC();
}
}
if ((Key.isDown(this[keyName][2]) && (mode != "damage")) && (jumpMode == "-")) {
if ((mode == "normal") || (mode == "dush")) {
this.Jump();
}
} else if (Key.isDown(this[keyName][3])) {
this.Gard();
}
}
this.GetDC();
}
function AI() {
if (Key.isDown(90)) {
zCnt = zCnt + 2;
if ((zCnt > 16) && (Math.random() > 0.5)) {
trace("\u5C0F\u653B\u6483\u9023\u6253\u3092\u691C\u51FA\u30FB\u96E2\u8131");
tac = 0;
tac2 = "out";
}
}
if (zCnt > 0) {
zCnt--;
}
if (Math.random() > 0.9) {
if (Math.random() > 0.3) {
trace("\u6226\u8853\u5909\u66F4\u30FB\u63A5\u8FD1");
tac2 = "out";
tac = 1;
} else {
trace("\u6226\u8853\u5909\u66F4\u30FB\u96E2\u8131");
tac = 0;
}
}
var sa = (this._x - _parent[enemyName]._x);
if (sa > 10) {
this._xscale = -100;
aiMode = -1;
} else if (sa < -10) {
this._xscale = 100;
aiMode = 1;
} else {
aiMode = 0;
}
if ((mode == "normal") || (mode == "walk")) {
if (tac > 0) {
if (aiMode > 0) {
this.Walk("r");
} else if (aiMode < 0) {
this.Walk("l");
}
} else if (aiMode > 0) {
this.Walk("l");
} else if (aiMode < 0) {
this.Walk("r");
}
if (((sa < 300) && (sa > -300)) && ((Math.random() * 10) > 9)) {
zCnt = 0;
tac = 1;
this.Dush();
}
}
if ((_parent._y > 5) && ((Math.random() * 10) > 9)) {
if ((Key.isDown(this[keyName][2]) && (mode != "damage")) && (jumpMode == "-")) {
if ((mode == "normal") || (mode == "dush")) {
if (((sa < 300) && (sa > -300)) && ((Math.random() * 10) > (5 + _global.cpuPower))) {
this.Dush();
}
this.Jump();
}
}
}
if ((((actionFlag == 1) && (mode != "gard")) && (mode != "ext")) && (mode != "attack")) {
rand = Math.random() * 10;
if ((rand > 8) && (_global[_name + "ext"] > 0)) {
this.KeyExt();
}
if (rand < (0.1 + (_global.cpuPower / 5))) {
this.KeyC();
} else if (((sa > -30) && (sa < 30)) && (rand < (0.2 + (_global.cpuPower / 2)))) {
this.KeyX();
} else if (((sa > -30) && (sa < 30)) && (rand < (0.8 + _global.cpuPower))) {
if (tac2 == "out") {
if (Math.random > 0.5) {
this.KeyC();
} else {
this.KeyX();
}
} else {
this.KeyZ();
}
}
}
}
key1p = new Array();
keyuser = [39, 37, 38, 40, 90, 88, 67, 86];
keyvs1 = [66, 67, 70, 86, 65, 83, 68, 81];
keyvs2 = [39, 37, 38, 40, 74, 75, 76, 80];
keyName = "key" + playerMode;
actionFlag = 1;
baseMode = "normal";
basicScale = _xscale;
basicHi = this._y;
mode = "normal";
jumpMode = "-";
jumpNo = 1;
downCnt = 0;
upCnt = 0;
xMove = 0;
if (this._name == "mainChar1") {
enemyName = "mainChar2";
} else {
enemyName = "mainChar1";
}
trace((("\u81EA\u5206\u306E\u540D\u79F0" + _name) + "\u3000\u6575\u306E\u540D\u79F0") + enemyName);
if (_name == "mainChar1") {
theColor = new Color(this);
if (_global.char1color != 0) {
co = _global.char1color;
theColor.setRGB(co);
}
} else {
theColor = new Color(this);
if (_global.char2color != 0) {
co = _global.char2color;
theColor.setRGB(co);
}
}
tac = 1;
zCnt = 0;
this.onEnterFrame = function () {
if (actionFlag == 1) {
if (playerMode == "cpu") {
if (_global.cpuPower != -1) {
this.AI();
}
} else {
this.ModePlayer();
}
this.JumpLoop();
this.SystemLoop();
this.DagmageLoop();
this.Debug();
}
};
Symbol 260 MovieClip [A_Char_giko] Frame 10
this.stop();
Symbol 260 MovieClip [A_Char_giko] Frame 19
this.stop();
Symbol 260 MovieClip [A_Char_giko] Frame 29
this.stop();
Symbol 260 MovieClip [A_Char_giko] Frame 39
this.stop();
Symbol 260 MovieClip [A_Char_giko] Frame 49
this.stop();
Symbol 260 MovieClip [A_Char_giko] Frame 59
this.stop();
Symbol 260 MovieClip [A_Char_giko] Frame 69
this.stop();
Symbol 260 MovieClip [A_Char_giko] Frame 80
this.stop();
Symbol 260 MovieClip [A_Char_giko] Frame 90
this.stop();
Symbol 260 MovieClip [A_Char_giko] Frame 100
this.stop();
Symbol 260 MovieClip [A_Char_giko] Frame 120
this.stop();
Symbol 260 MovieClip [A_Char_giko] Frame 130
this.stop();
Symbol 260 MovieClip [A_Char_giko] Frame 160
this.stop();
Symbol 260 MovieClip [A_Char_giko] Frame 170
this.stop();
Symbol 263 MovieClip Frame 9
this.gotoAndPlay("walk");
Symbol 271 MovieClip Frame 5
this.onEnterFrame = function () {
if (((_parent.ToGard() == 1) && (this._currentframe > 4)) && (this._currentframe < 7)) {
this.stop();
} else {
_parent.mode = "normal";
this.play();
}
};
Symbol 271 MovieClip Frame 9
_parent.Normal();
Symbol 271 MovieClip Frame 17
this.gotoAndStop(5);
Symbol 272 MovieClip Frame 2
this.stop();
Instance of Symbol 37 MovieClip in Symbol 273 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
role = "siZ";
}
Symbol 273 MovieClip Frame 5
_parent.Normal();
Instance of Symbol 37 MovieClip in Symbol 279 MovieClip Frame 4
//component parameters
onClipEvent (initialize) {
role = "siX";
}
Instance of Symbol 11 MovieClip in Symbol 279 MovieClip Frame 8
onClipEvent (enterFrame) {
_global.si_z = 20;
trace(_parent._parent.enemyName);
if (this.hitTest(_root.mainStage[_parent._parent.enemyName].dmgArea)) {
trace("\u3057\u3043\u653B\u6483\u30D2\u30C3\u30C8");
_root.mainStage[_parent._parent.enemyName].damage(_global.siXdmg, 40, 50, 10);
}
}
Symbol 279 MovieClip Frame 19
_parent.Normal();
Instance of Symbol 37 MovieClip in Symbol 285 MovieClip Frame 11
//component parameters
onClipEvent (initialize) {
role = "siC2";
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainStage[_parent._parent.enemyName].dmgArea)) {
_root.mainStage[_parent._parent.enemyName].damage(_global.siCdmg, _global.siCxf, _global.siCyf);
}
}
Symbol 285 MovieClip Frame 14
Symbol 285 MovieClip Frame 21
_parent.Normal();
Symbol 301 MovieClip Frame 16
_parent.dmgArea._name = "notDmgArea";
Symbol 301 MovieClip Frame 19
function SetSmoke() {
if (_parent._xscale > 0) {
y = 40;
} else {
y = -40;
}
thePoint = {x:69.7, y:-41.5};
this.localToGlobal(thePoint);
zusaName = "si_atk" + _global.gDeep;
_root.mainStage.attachMovie("atk1", zusaName, _global.gDeep);
_root.mainStage[zusaName]._x = _parent._x + y;
_root.mainStage[zusaName]._y = _parent._y + 10;
_root.mainStage[zusaName].enemyName = _parent.enemyName;
_global.gDeep++;
trace("\u6DF1\u5EA6" + _global.gDeep);
}
this.SetSmoke();
Symbol 301 MovieClip Frame 20
this.SetSmoke();
Symbol 301 MovieClip Frame 21
this.SetSmoke();
Symbol 301 MovieClip Frame 31
this.SetSmoke();
Symbol 301 MovieClip Frame 32
this.SetSmoke();
Symbol 301 MovieClip Frame 33
this.SetSmoke();
Symbol 301 MovieClip Frame 34
this.SetSmoke();
Symbol 301 MovieClip Frame 50
_parent.notDmgArea._name = "dmgArea";
_parent.Normal();
Symbol 302 MovieClip Frame 1
function SetSmoke() {
thePoint = {x:0, y:38};
this.localToGlobal(thePoint);
zusaName = "zusa" + _global.gDeep;
_root.mainStage.attachMovie("zusaKemuri", zusaName, _global.gDeep);
_root.mainStage[zusaName]._x = _parent._x;
_root.mainStage[zusaName]._y = _parent._y + 38;
_root.mainStage[zusaName]._xscale = tXscale;
_global.gDeep++;
}
i = 0;
if (_parent._xscale > 0) {
speed = 30;
tXscale = 100;
_parent.xMove = _parent.xMove + _parent.dushMove;
} else {
speed = -30;
tXscale = -100;
_parent.xMove = _parent.xMove - _parent.dushMove;
}
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
if ((_parent.playerMode == "cpu") && ((Math.random() * 5) > 4)) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 302 MovieClip Frame 2
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
if ((_parent.playerMode == "cpu") && ((Math.random() * 5) > 4)) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 302 MovieClip Frame 3
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 302 MovieClip Frame 4
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 302 MovieClip Frame 5
this.SetSmoke();
Symbol 302 MovieClip Frame 7
_parent.Normal();
Symbol 306 MovieClip Frame 1
function SetSmoke() {
thePoint = {x:0, y:38};
this.localToGlobal(thePoint);
zusaName = "zusa" + _global.gDeep;
trace(_global.gDeep);
_root.mainStage.attachMovie("zusaKemuri", zusaName, _global.gDeep);
_root.mainStage[zusaName]._x = _parent._x;
_root.mainStage[zusaName]._y = _parent._y + 38;
_root.mainStage[zusaName]._xscale = tXscale;
_global.gDeep++;
}
i = 0;
_parent.mode == "dushAttack";
if (_parent._xscale > 0) {
speed = 30;
tXscale = 100;
} else {
speed = -30;
tXscale = -100;
}
speedDownExt = 0.7;
Symbol 306 MovieClip Frame 2
this.onEnterFrame = function () {
if (i < 4) {
thePoint = {x:this._x, y:0};
this.localToGlobal(thePoint);
if ((thePoint.x < 550) && (thePoint.x > 0)) {
_parent._x = _parent._x + speed;
speed = speed * speedDownExt;
}
this.SetSmoke();
}
};
Instance of Symbol 37 MovieClip in Symbol 306 MovieClip Frame 3
//component parameters
onClipEvent (initialize) {
role = "siD";
}
Symbol 306 MovieClip Frame 5
if (i < 4) {
i++;
this.gotoAndPlay(_currentframe - 2);
}
Symbol 306 MovieClip Frame 9
_parent.Normal();
Symbol 307 MovieClip Frame 1
Instance of Symbol 107 MovieClip in Symbol 307 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(16);
}
Symbol 307 MovieClip Frame 5
_parent.mode = "-";
_parent.Normal();
Symbol 308 MovieClip Frame 1
Instance of Symbol 107 MovieClip in Symbol 308 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(16);
}
Symbol 308 MovieClip Frame 5
_parent.mode = "-";
_parent.Normal();
Symbol 309 MovieClip [A_Char_si] Frame 1
_global.siZdmg = 4;
_global.siZxf = 7;
_global.siZyf = 0;
_global.siZres = 3;
_global.siXdmg = 10;
_global.siXxf = 15;
_global.siXyf = 14;
_global.siXres = 5;
_global.siC1dmg = 25;
_global.siC1xf = 50;
_global.siC1yf = 20;
_global.siC1res = 30;
_global.siC2dmg = 10;
_global.siC2xf = 15;
_global.siC2yf = 0;
_global.siC2res = 7;
_global.siDdmg = 8;
_global.siDxf = 16;
_global.siDyf = 10;
_global.siDres = 5;
_global.siEdmg = 5;
_global.siExf = 15;
_global.siEyf = 10;
_global.siEres = 1;
walkSpeed = 4;
dushMove = 30;
jumpPower = 100;
downEx = 1.3;
upEx = 1.7;
xMoveExt = 1.2;
dcTime = 3;
function Normal() {
if ((jumpMode == "-") || (jumpMode == "down")) {
if ((mode != "damage") && (mode != "dushAttack")) {
mode = "normal";
this.gotoAndStop("normal");
}
}
}
function Lose() {
mode = "lose";
trace(_name + "\u6557\u5317\u3057\u307E\u3057\u305F\u3002");
baseMode = "lose";
sa = this._x - _parent[enemyName]._x;
if (sa < 1) {
endXMove = -50;
} else {
endXMove = 50;
}
endYMove = 30;
this.gotoAndStop("lose");
}
function GetDC() {
if (dcIR > 0) {
dcIR--;
}
if (dcIL > 0) {
dcIL--;
}
if (dcIR2 > 0) {
dcIR2--;
}
if (dcIL2 > 0) {
dcIL2--;
}
if (Key.isDown(this[keyName][0])) {
dcIR = dcTime;
if (dcIR2 >= 1) {
this.Dush("r");
}
} else if (Key.isDown(this[keyName][1])) {
dcIL = dcTime;
if (dcIL2 >= 1) {
this.Dush("l");
}
} else {
walkGo = "-";
if (dcIR >= 1) {
dcIR2 = 2;
}
if (dcIL >= 1) {
dcIL2 = 2;
}
}
}
function Dush(temp) {
if (((mode == "normal") || (mode == "jump")) || (mode == "walk")) {
mode = "dush";
muki = temp;
this.gotoAndStop("Dush");
}
}
function damage(dmg, x, y, tempRes, gardCancelFlag) {
if (baseMode == "normal") {
gardPer = (_global.cpuPower + 1) / _global.gardPerExt;
if (((((Math.random() * 10) < gardPer) && (getTimer() > gardWait)) && (playerMode == "cpu")) && (gardCancelFlag != 1)) {
this.Gard();
}
if (_name == "mainChar1") {
if (_global.gameLv > 2) {
dmg = dmg * 3;
} else if (_global.gameLv > 1) {
dmg = dmg * 2;
}
}
if ((mode == "gard") && (gardCancelFlag != 1)) {
trace("\u30AC\u30FC\u30C9" + gardCancelFlag);
_root.display[_name].HpChange((dmg = dmg / 4));
sa = this._x - _parent[enemyName]._x;
if (sa < 1) {
xMove = -((x = x / 5));
} else {
xMove = (x = x / 5);
}
tempJumpPower = tempJumpPower + ((y = y / 5));
jumpMode = "up";
this.char.gotoAndPlay(15);
} else {
_root.display[_name].HpChange(dmg);
sa = this._x - _parent[enemyName]._x;
if (sa < 1) {
xMove = -x;
} else {
xMove = x;
}
_root.display.displayRes.AddRes(tempRes * _global.resExt, enemyName);
gardWait = getTimer() + 300;
tempJumpPower = tempJumpPower + y;
jumpMode = "up";
mode = "damage";
if (Math.abs(y) < 15) {
this.gotoAndStop("damage");
} else {
this.gotoAndStop("damage2");
}
}
}
}
function Walk(muki) {
thePoint = {x:this._x, y:this._y};
_parent.localToGlobal(thePoint);
if (((mode == "normal") || (mode == "jump")) || (mode == "attack")) {
if (mode != "jump") {
this.gotoAndStop("walk");
}
if ((muki == "r") && (thePoint.x < 550)) {
this._xscale = basicScale;
this._x = this._x + walkSpeed;
} else if (thePoint.x > 0) {
this._xscale = -basicScale;
this._x = this._x - walkSpeed;
}
}
}
function Gard() {
mode = "gard";
this.gotoAndStop("gard");
}
function ToGard() {
if (Key.isDown(this[keyName][3])) {
return(1);
}
}
function KeyZ() {
mode = "attack";
this.gotoAndStop("keyZ");
}
function KeyX() {
mode = "attack";
this.gotoAndStop("KeyX");
}
function KeyC() {
mode = "attack";
this.gotoAndStop("KeyC");
}
function KeyExt() {
mode = "ext";
_root[_name + "ext"].removeMovieClip();
_global[_name + "ext"] = 0;
this.gotoAndStop("ext1-1");
}
function ToDushAttack() {
if (Key.isDown(this[keyName][6])) {
return(1);
}
}
function Jump() {
jumpNo = 1;
mode = "jump";
jumpMode = "up";
tempJumpPower = jumpPower;
this.gotoAndStop("jump");
}
function JumpLoop() {
if (jumpMode == "up") {
this._y = this._y - ((tempJumpPower = tempJumpPower / upEx));
if (tempJumpPower <= 10) {
if ((Key.isDown(this[keyName][2]) && (jumpNo == 1)) && (playerMode != "cpu")) {
jumpNo = 2;
tempJumpPower = jumpPower;
} else {
tempBaseJump = tempJumpPower;
jumpMode = "down";
}
}
}
if (jumpMode == "down") {
if (downCnt == 0) {
tempJumpHi = basicHi - this._y;
tempJumpPower = 20;
downCnt++;
}
this._y = this._y + ((tempJumpPower = tempJumpPower * downEx));
tempJumpHi2 = basicHi - this._y;
if (tempJumpHi2 <= 10) {
this._y = basicHi;
jumpMode = "-";
if ((((mode != "gard") && (mode != "attack")) && (mode != "damage")) && (mode != "dush")) {
this.Normal();
}
}
}
if (((jumpMode == "-") && (this._y != basicHi)) && (baseMode != "lose")) {
tempJumpPower = basicHi - this._y;
jumpMode = "down";
}
}
function DagmageLoop() {
if (baseMode == "lose") {
if (this._x > 275) {
endXMove = endXMove * -1;
}
if (this._x < -275) {
endXMove = endXMove * -1;
}
this._y = this._y - endYMove;
this._x = this._x + endXMove;
this._rotation = this._rotation + 20;
if (this._y < -1000) {
trace("\u6557\u5317\u8005\u3092\u6D88\u53BB");
_root.GameSet();
this.removeMovieClip();
}
} else if (xMove != 0) {
if (this._x > 275) {
this._x = this._x - 10;
xMove = xMove * -1;
}
if (this._x < -275) {
this._x = this._x + 10;
xMove = xMove * -1;
}
if ((xMove < 5) && (xMove > -5)) {
xMove = 0;
}
this._x = this._x + ((xMove = xMove / xMoveExt));
}
}
function SystemLoop() {
if (mode != "dush") {
var sa = (this._x - _parent[enemyName]._x);
if (sa > 0) {
this._xscale = -100;
aiMode = -1;
} else {
this._xscale = 100;
}
}
}
function Debug() {
if (Key.isDown(36)) {
trace(_name + "**************************************");
trace((((("mode = " + mode) + "\nbaseMode=") + baseMode) + "\njumpMode=") + jumpMode);
trace("********************************************");
}
}
function ModePlayer() {
if ((Key.isDown(this[keyName][7]) && (mode == "normal")) && (_global[_name + "ext"] > 0)) {
this.KeyExt();
}
if ((((actionFlag == 1) && (mode != "gard")) && (mode != "ext")) && (mode != "attack")) {
if (Key.isDown(this[keyName][0])) {
this.Walk("r");
} else if (Key.isDown(this[keyName][1])) {
this.Walk("l");
} else if (mode == "normal") {
this.Normal();
}
if ((mode != "attack") && (mode != "damage")) {
if (Key.isDown(this[keyName][4])) {
this.keyZ();
} else if (Key.isDown(this[keyName][5])) {
this.KeyX();
} else if (Key.isDown(this[keyName][6]) && (mode != "dush")) {
this.KeyC();
}
}
if ((Key.isDown(this[keyName][2]) && (mode != "damage")) && (jumpMode == "-")) {
if ((mode == "normal") || (mode == "dush")) {
this.Jump();
}
} else if (Key.isDown(this[keyName][3])) {
this.Gard();
}
}
this.GetDC();
}
function AI() {
if (Key.isDown(90)) {
zCnt = zCnt + 2;
if ((zCnt > 16) && (Math.random() > 0.5)) {
trace("\u5C0F\u653B\u6483\u9023\u6253\u3092\u691C\u51FA\u30FB\u96E2\u8131");
tac = 0;
tac2 = "out";
}
}
if (zCnt > 0) {
zCnt--;
}
if (Math.random() > 0.9) {
if (Math.random() > 0.3) {
trace("\u6226\u8853\u5909\u66F4\u30FB\u63A5\u8FD1");
tac2 = "out";
tac = 1;
} else {
trace("\u6226\u8853\u5909\u66F4\u30FB\u96E2\u8131");
tac = 0;
}
}
var sa = (this._x - _parent[enemyName]._x);
if (sa > 10) {
this._xscale = -100;
aiMode = -1;
} else if (sa < -10) {
this._xscale = 100;
aiMode = 1;
} else {
aiMode = 0;
}
if ((mode == "normal") || (mode == "walk")) {
if (tac > 0) {
if (aiMode > 0) {
this.Walk("r");
} else if (aiMode < 0) {
this.Walk("l");
}
} else if (aiMode > 0) {
this.Walk("l");
} else if (aiMode < 0) {
this.Walk("r");
}
if (((sa < 300) && (sa > -300)) && ((Math.random() * 10) > 9)) {
zCnt = 0;
tac = 1;
this.Dush();
}
}
if ((_parent._y > 5) && ((Math.random() * 10) > 9)) {
if ((Key.isDown(this[keyName][2]) && (mode != "damage")) && (jumpMode == "-")) {
if ((mode == "normal") || (mode == "dush")) {
if (((sa < 300) && (sa > -300)) && ((Math.random() * 10) > (5 + _global.cpuPower))) {
this.Dush();
}
this.Jump();
}
}
}
if ((((actionFlag == 1) && (mode != "gard")) && (mode != "ext")) && (mode != "attack")) {
rand = Math.random() * 10;
if ((rand > 8) && (_global[_name + "ext"] > 0)) {
this.KeyExt();
}
if (rand < (0.1 + (_global.cpuPower / 5))) {
this.KeyC();
} else if (((sa > -30) && (sa < 30)) && (rand < (0.2 + (_global.cpuPower / 2)))) {
this.KeyX();
} else if (((sa > -30) && (sa < 30)) && (rand < (0.8 + _global.cpuPower))) {
if (tac2 == "out") {
if (Math.random > 0.5) {
this.KeyC();
} else {
this.KeyX();
}
} else {
this.KeyZ();
}
}
}
}
key1p = new Array();
keyuser = [39, 37, 38, 40, 90, 88, 67, 86];
keyvs1 = [66, 67, 70, 86, 65, 83, 68, 81];
keyvs2 = [39, 37, 38, 40, 74, 75, 76, 80];
keyName = "key" + playerMode;
actionFlag = 1;
baseMode = "normal";
basicScale = _xscale;
basicHi = this._y;
mode = "normal";
jumpMode = "-";
jumpNo = 1;
downCnt = 0;
upCnt = 0;
xMove = 0;
if (this._name == "mainChar1") {
enemyName = "mainChar2";
} else {
enemyName = "mainChar1";
}
trace((("\u81EA\u5206\u306E\u540D\u79F0" + _name) + "\u3000\u6575\u306E\u540D\u79F0") + enemyName);
if (_name == "mainChar1") {
theColor = new Color(this);
if (_global.char1color != 0) {
co = _global.char1color;
theColor.setRGB(co);
}
} else {
theColor = new Color(this);
if (_global.char2color != 0) {
co = _global.char2color;
theColor.setRGB(co);
}
}
tac = 1;
zCnt = 0;
this.onEnterFrame = function () {
if (actionFlag == 1) {
if (playerMode == "cpu") {
if (_global.cpuPower != -1) {
this.AI();
}
} else {
this.ModePlayer();
}
this.JumpLoop();
this.SystemLoop();
this.DagmageLoop();
this.Debug();
}
};
Symbol 309 MovieClip [A_Char_si] Frame 10
this.stop();
Symbol 309 MovieClip [A_Char_si] Frame 20
this.stop();
Symbol 309 MovieClip [A_Char_si] Frame 30
this.stop();
Symbol 309 MovieClip [A_Char_si] Frame 40
this.stop();
Symbol 309 MovieClip [A_Char_si] Frame 50
this.stop();
Symbol 309 MovieClip [A_Char_si] Frame 60
this.stop();
Symbol 309 MovieClip [A_Char_si] Frame 120
this.stop();
Symbol 309 MovieClip [A_Char_si] Frame 130
this.stop();
Symbol 309 MovieClip [A_Char_si] Frame 160
this.stop();
Symbol 309 MovieClip [A_Char_si] Frame 170
this.stop();
Symbol 310 MovieClip [zusaKemuri] Frame 8
this.removeMovieClip();
Symbol 312 MovieClip [bordAttack] Frame 1
trace("\u677F\u306E\u30AB\u30E9\u30FC\u5909\u66F4\u5B9F\u884C=" + name);
theColor = new Color(this);
if (name == "mainChar1") {
if (_global.char1color != 0) {
co = _global.char1color;
theColor.setRGB(co);
}
} else if (_global.char2color != 0) {
co = _global.char2color;
theColor.setRGB(co);
}
this.attachMovie("talk_age", "talk_age", 1);
this.talk_age._rotation = 90;
if (_parent._parent._xscale < 0) {
this.talk_age._xscale = -100;
}
Symbol 312 MovieClip [bordAttack] Frame 2
this._x = this._x + move;
if ((this._x >= 300) || (this._x < -300)) {
trace("bord\u3092\u6D88\u53BB\u3057\u307E\u3057\u305F\u3002");
this.removeMovieClip();
}
Instance of Symbol 11 MovieClip in Symbol 312 MovieClip [bordAttack] Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainStage[_parent.enemyName].dmgArea)) {
_root.mainStage[_parent.enemyName].damage(_global.gikoC2dmg, _global.gikoC2xf, _global.gikoC2yf, _global.gikoC2res);
_parent.removeMovieClip();
}
}
Symbol 312 MovieClip [bordAttack] Frame 3
this.gotoAndPlay(2);
Symbol 315 MovieClip [whiteMask] Frame 6
this.removeMovieClip();
this.stop();
Symbol 318 MovieClip [talk_itteyosi] Frame 32
this.removeMovieClip();
Symbol 326 Button
on (release) {
_root.AllSountStop();
_root.gotoAndStop("select");
_root.RemoveAllItem();
}
Symbol 327 Button
on (release) {
_root.AllSountStop();
_root.gotoAndPlay(_root._currentframe - 1);
_root.RemoveAllItem();
}
Symbol 328 MovieClip [scene_endSelect] Frame 10
this.stop();
Symbol 336 MovieClip Frame 1
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.mainStage[_parent.enemyName].dmgArea)) {
_root.mainStage[_parent.enemyName].damage(_global[role + "dmg"], _global[role + "xf"], _global[role + "yf"], _global[role + "res"]);
if (hitRemove == 1) {
_parent.removeMovieClip();
}
}
};
Symbol 340 MovieClip [atk1] Frame 1
function Set() {
pointX = (Math.random() * 550) - 275;
pointY = (-Math.random()) * 300;
this.gotoAndPlay(Math.round(Math.random() * 7) + 5);
}
trace("part_\u25CB\u914D\u7F6E\u3055\u308C\u307E\u3057\u305F" + enemyName);
moveExt = 3;
i = 0;
this.onEnterFrame = function () {
this._x = this._x + ((pointX - this._x) / moveExt);
this._y = this._y + ((pointY - this._y) / moveExt);
_rotation = (_rotation + 3);
};
this.Set();
Symbol 340 MovieClip [atk1] Frame 29
xDis = _root.mainStage[enemyName]._x - this._x;
yDis = _root.mainStage[enemyName]._y - this._y;
radian = Math.atan2(yDis, xDis);
_rotation = (radian / (Math.PI/180));
Instance of Symbol 336 MovieClip in Symbol 340 MovieClip [atk1] Frame 29
//component parameters
onClipEvent (initialize) {
role = "siE";
hitRemove = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainStage[_parent.enemyName].dmgArea)) {
_root.mainStage[_parent.enemyName].damage(_global.siEdmg, _global.siExf, _global.siEyf);
}
}
Instance of Symbol 336 MovieClip in Symbol 340 MovieClip [atk1] Frame 29
//component parameters
onClipEvent (initialize) {
role = "siE";
hitRemove = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainStage[_parent.enemyName].dmgArea)) {
_root.mainStage[_parent.enemyName].damage(_global.siEdmg, _global.siExf, _global.siEyf);
}
}
Instance of Symbol 336 MovieClip in Symbol 340 MovieClip [atk1] Frame 29
//component parameters
onClipEvent (initialize) {
role = "siE";
hitRemove = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainStage[_parent.enemyName].dmgArea)) {
_root.mainStage[_parent.enemyName].damage(_global.siEdmg, _global.siExf, _global.siEyf);
}
}
Instance of Symbol 336 MovieClip in Symbol 340 MovieClip [atk1] Frame 29
//component parameters
onClipEvent (initialize) {
role = "siE";
hitRemove = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainStage[_parent.enemyName].dmgArea)) {
_root.mainStage[_parent.enemyName].damage(_global.siEdmg, _global.siExf, _global.siEyf);
}
}
Symbol 340 MovieClip [atk1] Frame 38
i++;
if (i < 4) {
this.Set();
this.gotoAndPlay("shot");
}
Symbol 340 MovieClip [atk1] Frame 39
pointX = (Math.random() * 550) - 275;
pointY = (-Math.random()) * 300;
Symbol 340 MovieClip [atk1] Frame 49
xDis = _root.mainStage[enemyName]._x - this._x;
yDis = _root.mainStage[enemyName]._y - this._y;
radian = Math.atan2(yDis, xDis);
_rotation = (radian / (Math.PI/180));
Instance of Symbol 11 MovieClip in Symbol 340 MovieClip [atk1] Frame 49
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainStage[_parent.enemyName].dmgArea)) {
_root.mainStage[_parent.enemyName].damage(_global.siEdmg, _global.siExf, 20);
}
}
Instance of Symbol 11 MovieClip in Symbol 340 MovieClip [atk1] Frame 49
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainStage[_parent.enemyName].dmgArea)) {
_root.mainStage[_parent.enemyName].damage(_global.siEdmg, _global.siExf, 20);
}
}
Instance of Symbol 11 MovieClip in Symbol 340 MovieClip [atk1] Frame 49
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainStage[_parent.enemyName].dmgArea)) {
_root.mainStage[_parent.enemyName].damage(_global.siEdmg, _global.siExf, 20);
}
}
Instance of Symbol 11 MovieClip in Symbol 340 MovieClip [atk1] Frame 49
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainStage[_parent.enemyName].dmgArea)) {
_root.mainStage[_parent.enemyName].damage(_global.siEdmg, _global.siExf, 20);
}
}
Symbol 340 MovieClip [atk1] Frame 65
i++;
if (i < 4) {
this.Set();
this.gotoAndPlay("shot");
}
Symbol 340 MovieClip [atk1] Frame 71
this.removeMovieClip();
Symbol 346 MovieClip [syuriken] Frame 1
trace("\u677F\u306E\u30AB\u30E9\u30FC\u5909\u66F4\u5B9F\u884C=" + name);
theColor = new Color(this);
if (name == "mainChar1") {
if (_global.char1color != 0) {
co = _global.char1color;
theColor.setRGB(co);
}
} else if (_global.char2color != 0) {
co = _global.char2color;
theColor.setRGB(co);
}
Instance of Symbol 336 MovieClip in Symbol 346 MovieClip [syuriken] Frame 1
//component parameters
onClipEvent (initialize) {
role = "ninC2";
hitRemove = 1;
}
Symbol 346 MovieClip [syuriken] Frame 2
this._x = this._x + move;
this._rotation = this._rotation + 30;
if ((this._x >= 300) || (this._x < -300)) {
trace("bord\u3092\u6D88\u53BB\u3057\u307E\u3057\u305F\u3002");
this.removeMovieClip();
}
Symbol 346 MovieClip [syuriken] Frame 3
this.gotoAndPlay(2);
Symbol 353 MovieClip [ExtOk] Frame 22
this.stop();
Symbol 358 MovieClip [ATUp3] Frame 19
this.stop();
Symbol 361 MovieClip [ATUp2] Frame 19
this.stop();
Symbol 364 MovieClip [ATUp1.5] Frame 19
this.stop();
Symbol 367 MovieClip [getCut_giko] Frame 25
this.removeMovieClip();
Symbol 369 MovieClip Frame 1
kiriban = _parent.kiriban;
Symbol 372 MovieClip Frame 1
num = _parent.num;
Symbol 374 MovieClip [num] Frame 1
trace("\u30AD\u30EA\u756A\u8868\u793A\u3000\u8A2D\u7F6E");
Symbol 374 MovieClip [num] Frame 34
this.removeMovieClip();
Symbol 381 Button
on (press) {
_quality = "HIGH";
}
Symbol 384 Button
on (press) {
_quality = "MEDIUM";
}
Symbol 387 Button
on (press) {
_quality = "LOW";
}
Symbol 390 Button
on (release) {
_parent.sFlag = -1;
this.removeMovieClip();
}
Symbol 394 Button
on (release) {
_global.basicHp = 500;
}
Symbol 397 Button
on (release) {
_global.basicHp = 2000;
}
Symbol 400 Button
on (release) {
_global.basicHp = 3000;
}
Symbol 401 Button
on (release) {
_global.basicHp = 1000;
}
Symbol 403 Button
on (release) {
_global.resExt = 0.5;
}
Symbol 404 Button
on (release) {
_global.resExt = 2;
}
Symbol 405 Button
on (release) {
_global.resExt = 3;
}
Symbol 406 Button
on (release) {
_global.resExt = 1;
}
Symbol 412 Button
on (press) {
_global.gameLv = 1;
}
Symbol 415 Button
on (press) {
_global.gameLv = 0;
}
Symbol 418 Button
on (press) {
_global.gameLv = 2;
}
Symbol 421 Button
on (press) {
_global.gameLv = 3;
}
Symbol 423 MovieClip [scene_option] Frame 1
thePointToX = 0;
thePointToY = 0;
this.onEnterFrame = function () {
if (_global.gameLv == 0) {
gl = "\u7C21\u5358";
} else if (_global.gameLv == 1) {
gl = "\u666E\u901A";
} else if (_global.gameLv == 2) {
gl = "\u96E3\u3057\u3044";
} else {
gl = "\u901D";
}
if (_quality == "HIGH") {
quality = "\u9AD8";
} else if (_quality == "MEDIUM") {
quality = "\u666E\u901A";
} else {
quality = "\u4F4E";
}
if (_global.basicHp == 3000) {
hpExt = "3";
} else if (_global.basicHp == 2000) {
hpExt = "2";
} else if (_global.basicHp == 1000) {
hpExt = "1";
} else {
hpExt = "1/2";
}
if (_global.resExt == 3) {
resExt = "3";
} else if (_global.resExt == 2) {
resExt = "2";
} else if (_global.resExt == 1) {
resExt = "1";
} else {
resExt = "1/2";
}
this._x = this._x + ((thePointX - this._x) / moveExt);
this._y = this._y + ((thePointY - this._y) / moveExt);
};
Symbol 434 MovieClip [mona_cutIn] Frame 28
_root.mainStage[name].gotoAndStop("ext1-2");
this.removeMovieClip();
Symbol 442 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 445 MovieClip Frame 13
this.gotoAndPlay(4);
Symbol 445 MovieClip Frame 25
this.stop();
Symbol 454 MovieClip Frame 1
totalSize = _root.getBytesTotal();
loadSize0 = root.getBytesLoaded;
Instance of Symbol 447 MovieClip "bar" in Symbol 454 MovieClip Frame 1
onClipEvent (load) {
function sizeChange(barSize) {
trace(barSize);
this._xscale = barSize;
}
this.sizeChange(0);
}
Symbol 454 MovieClip Frame 2
loadedSize = _root.getBytesLoaded();
if (loadedSize >= totalSize) {
this.bar.sizeChange(100);
this.char.gotoAndPlay("end");
this.gotoAndStop(4);
} else {
parcent = (loadedSize / totalSize) * 100;
this.bar.sizeChange(parcent);
}
Symbol 454 MovieClip Frame 3
this.gotoAndPlay(_currentframe - 1);
Symbol 454 MovieClip Frame 4
this.stop();
Symbol 466 Button
on (release) {
_root.gotoAndStop("select");
}
Symbol 474 Button
on (release) {
getURL ("http://www12.plala.or.jp/nextframe/", _blank);
}
Symbol 482 Button
on (release) {
this.carsorChange("ok");
}
on (rollOver) {
this.carsorChange("select");
}
on (rollOut, dragOut) {
if (_parent.sFlag != 1) {
this.carsorChange("out");
}
}
Symbol 494 MovieClip Frame 1
function CarsorChange(mode) {
if ((mode == "ok") && (_parent.sFlag == 0)) {
_global[_parent.tempChar] = "giko";
this.gotoAndPlay(mode);
} else if ((this._currentframe < 20) && (_parent.sFlag == 0)) {
this.gotoAndStop(mode);
} else if (mode == "out") {
if ((this._currentframe < 20) || (this._currentframe == 30)) {
this.gotoAndStop(mode);
}
}
}
function SetLoc(tempSet) {
if (tempSet == "c") {
thePointX = thePointToX;
thePointY = thePointToY;
} else if (this._currentframe >= 20) {
thePointX = 0;
thePointY = -25;
} else {
thePointX = basicPointX;
thePointY = basicPointY;
}
}
function CarsorReset() {
this.gotoAndStop(1);
}
moveMode = 1;
basicPointX = this._x;
basicPointY = this._y;
thePointX = thePointToX;
thePointY = thePointToY;
this.onEnterFrame = function () {
if ((_parent.sFlag != -1) && (_parent.sFlag != -2)) {
this._x = this._x + ((thePointX - this._x) / moveExt);
this._y = this._y + ((thePointY - this._y) / moveExt);
} else {
this._x = this._x + ((basicPointX - this._x) / moveExt);
this._y = this._y + ((basicPointY - this._y) / moveExt);
}
};
Symbol 494 MovieClip Frame 2
this.stop();
Symbol 494 MovieClip Frame 10
this.stop();
Instance of Symbol 491 MovieClip in Symbol 494 MovieClip Frame 20
onClipEvent (load) {
this.stop();
}
Symbol 494 MovieClip Frame 30
_parent.sFlag = 1;
this.stop();
Symbol 497 MovieClip Frame 1
function CarsorChange(mode) {
if ((mode == "ok") && (_parent.sFlag == 0)) {
_global[_parent.tempChar] = "si";
this.gotoAndPlay(mode);
} else if ((this._currentframe < 20) && (_parent.sFlag == 0)) {
this.gotoAndStop(mode);
} else if (mode == "out") {
if ((this._currentframe < 20) || (this._currentframe == 30)) {
this.gotoAndStop(mode);
}
}
}
function SetLoc(tempSet) {
if (tempSet == "c") {
thePointX = thePointToX;
thePointY = thePointToY;
} else if (this._currentframe >= 20) {
thePointX = 0;
thePointY = -25;
} else {
thePointX = basicPointX;
thePointY = basicPointY;
}
}
function CarsorReset() {
this.gotoAndStop(1);
}
moveMode = 1;
basicPointX = this._x;
basicPointY = this._y;
thePointX = thePointToX;
thePointY = thePointToY;
this.onEnterFrame = function () {
if ((_parent.sFlag != -1) && (_parent.sFlag != -2)) {
this._x = this._x + ((thePointX - this._x) / moveExt);
this._y = this._y + ((thePointY - this._y) / moveExt);
} else {
this._x = this._x + ((basicPointX - this._x) / moveExt);
this._y = this._y + ((basicPointY - this._y) / moveExt);
}
};
Symbol 497 MovieClip Frame 2
this.stop();
Symbol 497 MovieClip Frame 10
this.stop();
Instance of Symbol 491 MovieClip in Symbol 497 MovieClip Frame 20
onClipEvent (load) {
this.stop();
}
Symbol 497 MovieClip Frame 30
_parent.sFlag = 1;
this.stop();
Instance of Symbol 125 MovieClip in Symbol 498 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 500 MovieClip Frame 1
function CarsorChange(mode) {
if ((mode == "ok") && (_parent.sFlag == 0)) {
_global[_parent.tempChar] = "ninjya";
this.gotoAndPlay(mode);
} else if ((this._currentframe < 20) && (_parent.sFlag == 0)) {
this.gotoAndStop(mode);
} else if (mode == "out") {
if ((this._currentframe < 20) || (this._currentframe == 30)) {
this.gotoAndStop(mode);
}
}
}
function SetLoc(tempSet) {
if (tempSet == "c") {
thePointX = thePointToX;
thePointY = thePointToY;
} else if (this._currentframe >= 20) {
thePointX = 0;
thePointY = -25;
} else {
thePointX = basicPointX;
thePointY = basicPointY;
}
}
function CarsorReset() {
this.gotoAndStop(1);
}
moveMode = 1;
basicPointX = this._x;
basicPointY = this._y;
thePointX = thePointToX;
thePointY = thePointToY;
this.onEnterFrame = function () {
if ((_parent.sFlag != -1) && (_parent.sFlag != -2)) {
this._x = this._x + ((thePointX - this._x) / moveExt);
this._y = this._y + ((thePointY - this._y) / moveExt);
} else {
this._x = this._x + ((basicPointX - this._x) / moveExt);
this._y = this._y + ((basicPointY - this._y) / moveExt);
}
};
Symbol 500 MovieClip Frame 2
this.stop();
Symbol 500 MovieClip Frame 10
this.stop();
Instance of Symbol 491 MovieClip in Symbol 500 MovieClip Frame 20
onClipEvent (load) {
this.stop();
}
Symbol 500 MovieClip Frame 30
_parent.sFlag = 1;
this.stop();
Symbol 503 MovieClip Frame 1
moveMode = 1;
basicPointX = this._x;
basicPointY = this._y;
thePointX = thePointToX;
thePointY = thePointToY;
this.onEnterFrame = function () {
if (_parent.sFlag == 0) {
this._x = this._x + ((thePointX - this._x) / moveExt);
this._y = this._y + ((thePointY - this._y) / moveExt);
} else {
this._x = this._x + ((basicPointX - this._x) / moveExt);
this._y = this._y + ((basicPointY - this._y) / moveExt);
}
};
Symbol 503 MovieClip Frame 5
this.gotoAndPlay(_currentframe - 2);
Symbol 506 Button
on (release) {
_parent.sFlag = 0;
_parent.c13.ModeGo();
_global.gameMode = "1p";
}
Symbol 507 MovieClip Frame 1
basicPointX = this._x;
basicPointY = this._y;
this.onEnterFrame = function () {
if (_parent.sFlag == -1) {
this._x = this._x + ((thePointToX - this._x) / moveExt);
this._y = this._y + ((thePointToY - this._y) / moveExt);
} else {
this._x = this._x + ((basicPointX - this._x) / moveExt);
this._y = this._y + ((basicPointY - this._y) / moveExt);
}
};
Symbol 510 Button
on (release) {
_parent.sFlag = 0;
_parent.c13.ModeGo();
_global.gameMode = "vs";
}
Symbol 511 MovieClip Frame 1
basicPointX = this._x;
basicPointY = this._y;
this.onEnterFrame = function () {
if (_parent.sFlag == -1) {
this._x = this._x + ((thePointToX - this._x) / moveExt);
this._y = this._y + ((thePointToY - this._y) / moveExt);
} else {
this._x = this._x + ((basicPointX - this._x) / moveExt);
this._y = this._y + ((basicPointY - this._y) / moveExt);
}
};
Symbol 514 MovieClip Frame 1
function CarsorChange(mode) {
if ((mode == "ok") && (_parent.sFlag == 0)) {
_global[_parent.tempChar] = "mona";
this.gotoAndPlay(mode);
} else if ((this._currentframe < 20) && (_parent.sFlag == 0)) {
this.gotoAndStop(mode);
} else if (mode == "out") {
if ((this._currentframe < 20) || (this._currentframe == 30)) {
this.gotoAndStop(mode);
}
}
}
function SetLoc(tempSet) {
if (tempSet == "c") {
thePointX = thePointToX;
thePointY = thePointToY;
} else if (this._currentframe >= 20) {
thePointX = 0;
thePointY = -25;
} else {
thePointX = basicPointX;
thePointY = basicPointY;
}
}
function CarsorReset() {
this.gotoAndStop(1);
}
moveMode = 1;
basicPointX = this._x;
basicPointY = this._y;
thePointX = thePointToX;
thePointY = thePointToY;
this.onEnterFrame = function () {
if ((_parent.sFlag != -1) && (_parent.sFlag != -2)) {
this._x = this._x + ((thePointX - this._x) / moveExt);
this._y = this._y + ((thePointY - this._y) / moveExt);
} else {
this._x = this._x + ((basicPointX - this._x) / moveExt);
this._y = this._y + ((basicPointY - this._y) / moveExt);
}
};
Symbol 514 MovieClip Frame 2
this.stop();
Symbol 514 MovieClip Frame 10
this.stop();
Instance of Symbol 491 MovieClip in Symbol 514 MovieClip Frame 20
onClipEvent (load) {
this.stop();
}
Symbol 514 MovieClip Frame 30
_parent.sFlag = 1;
this.stop();
Symbol 517 MovieClip Frame 1
function CarsorChange(mode) {
if ((mode == "ok") && (_parent.sFlag == 0)) {
var i = (Math.random() * 4);
var name;
if (i > 3) {
name = "giko";
} else if (i > 2) {
name = "si";
} else if (i > 1) {
name = "mona";
} else {
name = "ninjya";
}
_global[_parent.tempChar] = name;
this.gotoAndPlay(mode);
} else if ((this._currentframe < 20) && (_parent.sFlag == 0)) {
this.gotoAndStop(mode);
} else if (mode == "out") {
if ((this._currentframe < 20) || (this._currentframe == 30)) {
this.gotoAndStop(mode);
}
}
}
function SetLoc(tempSet) {
if (tempSet == "c") {
thePointX = thePointToX;
thePointY = thePointToY;
} else if (this._currentframe >= 20) {
thePointX = 0;
thePointY = -25;
} else {
thePointX = basicPointX;
thePointY = basicPointY;
}
}
function CarsorReset() {
this.gotoAndStop(1);
}
moveMode = 1;
basicPointX = this._x;
basicPointY = this._y;
thePointX = thePointToX;
thePointY = thePointToY;
this.onEnterFrame = function () {
if ((_parent.sFlag != -1) && (_parent.sFlag != -2)) {
this._x = this._x + ((thePointX - this._x) / moveExt);
this._y = this._y + ((thePointY - this._y) / moveExt);
} else {
this._x = this._x + ((basicPointX - this._x) / moveExt);
this._y = this._y + ((basicPointY - this._y) / moveExt);
}
};
Symbol 517 MovieClip Frame 2
this.stop();
Symbol 517 MovieClip Frame 10
this.stop();
Instance of Symbol 491 MovieClip in Symbol 517 MovieClip Frame 20
onClipEvent (load) {
this.stop();
}
Symbol 517 MovieClip Frame 30
_parent.sFlag = 1;
this.stop();
Symbol 520 Button
on (release) {
_parent.sFlag = -2;
_parent.attachMovie("scene_option", "scene_option", 1);
_parent.scene_option._x = 0;
_parent.scene_option._y = -50;
}
Symbol 521 MovieClip Frame 1
basicPointX = this._x;
basicPointY = this._y;
this.onEnterFrame = function () {
if (_parent.sFlag == -1) {
this._x = this._x + ((thePointToX - this._x) / moveExt);
this._y = this._y + ((thePointToY - this._y) / moveExt);
} else {
this._x = this._x + ((basicPointX - this._x) / moveExt);
this._y = this._y + ((basicPointY - this._y) / moveExt);
}
};
Symbol 524 Button
on (release) {
_parent.sFlag = 0;
_parent.c13.ModeGo();
_global.gameMode = "training";
}
Symbol 525 MovieClip Frame 1
basicPointX = this._x;
basicPointY = this._y;
this.onEnterFrame = function () {
if (_parent.sFlag == -1) {
this._x = this._x + ((thePointToX - this._x) / moveExt);
this._y = this._y + ((thePointToY - this._y) / moveExt);
} else {
this._x = this._x + ((basicPointX - this._x) / moveExt);
this._y = this._y + ((basicPointY - this._y) / moveExt);
}
};
Symbol 528 MovieClip Frame 1
function CarsorChange(mode) {
if ((mode == "ok") && (_parent.sFlag == 0)) {
_global[_parent.tempChar] = "niraS";
this.gotoAndPlay(mode);
} else if ((this._currentframe < 20) && (_parent.sFlag == 0)) {
this.gotoAndStop(mode);
} else if (mode == "out") {
if ((this._currentframe < 20) || (this._currentframe == 30)) {
this.gotoAndStop(mode);
}
}
}
function SetLoc(tempSet) {
if (tempSet == "c") {
thePointX = thePointToX;
thePointY = thePointToY;
} else if (this._currentframe >= 20) {
thePointX = 0;
thePointY = -25;
} else {
thePointX = basicPointX;
thePointY = basicPointY;
}
}
function CarsorReset() {
this.gotoAndStop(1);
}
moveMode = 1;
basicPointX = this._x;
basicPointY = this._y;
thePointX = thePointToX;
thePointY = thePointToY;
this.onEnterFrame = function () {
if ((_parent.sFlag != -1) && (_parent.sFlag != -2)) {
this._x = this._x + ((thePointX - this._x) / moveExt);
this._y = this._y + ((thePointY - this._y) / moveExt);
} else {
this._x = this._x + ((basicPointX - this._x) / moveExt);
this._y = this._y + ((basicPointY - this._y) / moveExt);
}
};
Symbol 528 MovieClip Frame 2
this.stop();
Symbol 528 MovieClip Frame 10
this.stop();
Instance of Symbol 491 MovieClip in Symbol 528 MovieClip Frame 20
onClipEvent (load) {
this.stop();
}
Symbol 528 MovieClip Frame 30
_parent.sFlag = 1;
this.stop();
Symbol 531 Button
on (press) {
this.setCarsor("c1");
}
Symbol 532 Button
on (press) {
this.setCarsor("c2");
}
Symbol 533 Button
on (press) {
this.setCarsor("c3");
}
Symbol 534 Button
on (press) {
this.setCarsor("c4");
}
Symbol 535 Button
on (press) {
this.setCarsor("c5");
}
Symbol 537 MovieClip Frame 1
function SetCarsor(name) {
this.attachMovie("colorSetCarsor", "colorSetCarsor", 1);
this.colorSetCarsor._x = this[name]._x;
this.colorSetCarsor._y = this[name]._y;
charName = _parent.tempChar + "color";
if (name == "c1") {
_global[charName] = 0;
} else if (name == "c2") {
_global[charName] = 13260;
} else if (name == "c3") {
_global[charName] = 3381555 /* 0x339933 */;
} else if (name == "c4") {
_global[charName] = 16737792 /* 0xFF6600 */;
} else if (name == "c5") {
_global[charName] = 16711833 /* 0xFF0099 */;
}
trace((("\u53D6\u5F97\u3057\u305Fname" + name) + " color=") + _global.char1color);
}
basicPointX = this._x;
basicPointY = this._y;
this.SetCarsor("c1");
this.onEnterFrame = function () {
if ((_parent.sFlag == 1) && (_global.gameMode == "vs")) {
this._x = this._x + ((-this._x) / moveExt);
this._y = this._y + ((77 - this._y) / moveExt);
} else if ((_parent.sFlag == 1) && (_global.gameMode == "training")) {
this._x = this._x + ((-this._x) / moveExt);
this._y = this._y + ((77 - this._y) / moveExt);
} else if (_parent.sFlag == 1) {
this._x = this._x + ((thePointX - this._x) / moveExt);
this._y = this._y + ((thePointY - this._y) / moveExt);
} else {
this.attachMovie("colorSetCarsor", "colorSetCarsor", 1);
this.colorSetCarsor._x = this.c1._x;
this.colorSetCarsor._y = this.c1._y;
this._x = this._x + ((basicPointX - this._x) / moveExt);
this._y = this._y + ((basicPointY - this._y) / moveExt);
}
};
Symbol 546 Button
on (press) {
cpu = (_global.cpuPower = 0);
cpu = cpu + 1;
}
Symbol 548 Button
on (press) {
cpu = (_global.cpuPowerv = 1);
cpu = cpu + 1;
}
Symbol 550 Button
on (press) {
cpu = (_global.cpuPower = 2);
cpu = cpu + 1;
}
Symbol 552 Button
on (press) {
cpu = (_global.cpuPower = 3);
cpu = cpu + 1;
}
Symbol 554 Button
on (press) {
cpu = (_global.cpuPower = 4);
cpu = cpu + 1;
}
Symbol 555 MovieClip Frame 1
cpu = _global.cpuPower + 1;
basicPointX = this._x;
basicPointY = this._y;
this.onEnterFrame = function () {
if ((_parent.sFlag == 1) && (_global.gameMode == "1p")) {
this._x = this._x + ((thePointX - this._x) / moveExt);
this._y = this._y + ((thePointY - this._y) / moveExt);
} else {
this._x = this._x + ((basicPointX - this._x) / moveExt);
this._y = this._y + ((basicPointY - this._y) / moveExt);
}
};
Symbol 559 Button
on (release) {
_parent.play();
}
Symbol 560 MovieClip Frame 1
basicPointX = this._x;
basicPointY = this._y;
this.onEnterFrame = function () {
if ((_parent.sFlag == 1) && (_global.gameMode == "1p")) {
this._x = this._x + ((thePointX - this._x) / moveExt);
this._y = this._y + ((thePointY - this._y) / moveExt);
} else {
this._x = this._x + ((basicPointX - this._x) / moveExt);
this._y = this._y + ((basicPointY - this._y) / moveExt);
}
};
Symbol 563 Button
on (release) {
this.mode = 0;
_parent.Cancel();
}
Symbol 564 MovieClip Frame 1
function ModeGo() {
trace("\u30AD\u30E3\u30F3\u30BB\u30EB\u3001\u30E2\u30FC\u30C9\u5909\u66F4");
mode = 1;
}
basicPointX = this._x;
basicPointY = this._y;
this.onEnterFrame = function () {
if (_parent.sFlag == 0) {
this._x = this._x + ((thePointX2 - this._x) / moveExt);
this._y = this._y + ((thePointY2 - this._y) / moveExt);
} else if (_parent.sFlag == 1) {
this._x = this._x + ((thePointX1 - this._x) / moveExt);
this._y = this._y + ((thePointY1 - this._y) / moveExt);
} else {
this._x = this._x + ((basicPointX - this._x) / moveExt);
this._y = this._y + ((basicPointY - this._y) / moveExt);
}
};
Symbol 571 Button
on (release) {
this.Action();
}
Symbol 572 MovieClip Frame 1
function Action() {
if (_parent.tempChar == "char1") {
_parent.tempChar = "char2";
_parent.Cancel();
} else {
_parent.play();
}
}
basicPointX = this._x;
basicPointY = this._y;
this.onEnterFrame = function () {
if ((_parent.sFlag == 1) && (_global.gameMode == "vs")) {
this._x = this._x + ((thePointX - this._x) / moveExt);
this._y = this._y + ((thePointY - this._y) / moveExt);
} else if ((_parent.sFlag == 1) && (_global.gameMode == "training")) {
this._x = this._x + ((thePointX - this._x) / moveExt);
this._y = this._y + ((thePointY - this._y) / moveExt);
} else {
this._x = this._x + ((basicPointX - this._x) / moveExt);
this._y = this._y + ((basicPointY - this._y) / moveExt);
}
};
Symbol 574 MovieClip Frame 1
basicPointX = this._x;
basicPointY = this._y;
this.onEnterFrame = function () {
if ((_parent.sFlag == 1) && (_parent.tempChar == "char1")) {
this._x = this._x + ((thePointToX - this._x) / moveExt);
this._y = this._y + ((thePointToY - this._y) / moveExt);
} else {
this._x = this._x + ((basicPointX - this._x) / moveExt);
this._y = this._y + ((basicPointY - this._y) / moveExt);
}
};
Symbol 576 MovieClip Frame 1
basicPointX = this._x;
basicPointY = this._y;
this.onEnterFrame = function () {
if ((_parent.sFlag == 1) && (_parent.tempChar == "char2")) {
this._x = this._x + ((thePointToX - this._x) / moveExt);
this._y = this._y + ((thePointToY - this._y) / moveExt);
} else {
this._x = this._x + ((basicPointX - this._x) / moveExt);
this._y = this._y + ((basicPointY - this._y) / moveExt);
}
};
Symbol 578 MovieClip Frame 1
function Cancel() {
trace("\u30AD\u30E3\u30F3\u30BB\u30EB\u5B9F\u884C");
if (sFlag == 0) {
tempChar = "char1";
i = 1;
while (i < 15) {
name = "c" + i;
sFlag = 0;
this[name].CarsorChange("out");
this[name].SetLoc("c");
i++;
}
sFlag = -1;
} else {
i = 1;
while (i < 15) {
name = "c" + i;
sFlag = 0;
this[name].CarsorChange("out");
this[name].SetLoc("c");
i++;
}
sFlag = 0;
}
tempVar = 0;
}
sFlag = -1;
tempChar = "char1";
tempVar = 0;
_global.moveExt = 3;
this.onEnterFrame = function () {
trace("\u30E2\u30FC\u30C9=" + sFlag);
if ((sFlag == 1) && (tempVar < 1)) {
tempVar++;
i = 1;
while (i < 15) {
name = "c" + i;
this[name].SetLoc();
i++;
}
}
};
this.stop();
Instance of Symbol 478 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
move = (Math.random() * 8) + 2;
}
onClipEvent (enterFrame) {
if (this._x > 300) {
this._x = -300 - this._width;
move = (Math.random() * 8) + 2;
}
this._x = this._x + move;
}
Instance of Symbol 478 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
move = (Math.random() * -8) - 2;
}
onClipEvent (enterFrame) {
if (this._x < (-300 - this._width)) {
this._x = 300;
move = (Math.random() * -8) - 2;
}
this._x = this._x + move;
}
Instance of Symbol 478 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
move = (Math.random() * 8) + 2;
}
onClipEvent (enterFrame) {
if (this._x > 300) {
this._x = -300 - this._width;
move = (Math.random() * 8) + 2;
}
this._x = this._x + move;
}
Instance of Symbol 478 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
move = (Math.random() * 8) + 2;
}
onClipEvent (enterFrame) {
if (this._x > 300) {
this._x = -300 - this._width;
move = (Math.random() * 8) + 2;
}
this._x = this._x + move;
}
Instance of Symbol 478 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
move = (Math.random() * -8) - 2;
}
onClipEvent (enterFrame) {
if (this._x < (-300 - this._width)) {
this._x = 300;
move = (Math.random() * -8) - 2;
}
this._x = this._x + move;
}
Instance of Symbol 478 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
move = (Math.random() * -8) - 2;
}
onClipEvent (enterFrame) {
if (this._x < (-300 - this._width)) {
this._x = 300;
move = (Math.random() * -8) - 2;
}
this._x = this._x + move;
}
Instance of Symbol 478 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
move = (Math.random() * -8) - 2;
}
onClipEvent (enterFrame) {
if (this._x < (-300 - this._width)) {
this._x = 300;
move = (Math.random() * -8) - 2;
}
this._x = this._x + move;
}
Instance of Symbol 494 MovieClip "c1" in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
thePointToX = -100;
thePointToY = 0;
}
Instance of Symbol 497 MovieClip "c2" in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
thePointToX = 0;
thePointToY = 0;
}
Instance of Symbol 500 MovieClip "c4" in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
thePointToX = -100;
thePointToY = 100;
}
Instance of Symbol 503 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
thePointToX = 0;
thePointToY = -140;
}
Instance of Symbol 507 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
thePointToX = 0;
thePointToY = -100;
}
Instance of Symbol 511 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
thePointToX = 0;
thePointToY = -30;
}
Instance of Symbol 514 MovieClip "c3" in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
thePointToX = 100;
thePointToY = 0;
}
Instance of Symbol 517 MovieClip "c13" in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
thePointToX = 100;
thePointToY = 100;
}
Instance of Symbol 521 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
thePointToX = 0;
thePointToY = 100;
}
Instance of Symbol 525 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
thePointToX = 0;
thePointToY = 30;
}
Instance of Symbol 528 MovieClip "c14" in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
thePointToX = 0;
thePointToY = 100;
}
Instance of Symbol 537 MovieClip "c11" in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
thePointX = -110;
thePointY = 77;
}
Instance of Symbol 555 MovieClip "c12" in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
thePointX = 110;
thePointY = 78;
}
Instance of Symbol 560 MovieClip "c10" in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
thePointX = 15;
thePointY = 150;
}
Instance of Symbol 564 MovieClip "c13" in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
mode = 0;
thePointX1 = 150;
thePointY1 = -25;
thePointX2 = 210;
thePointY2 = 150;
}
Instance of Symbol 572 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
thePointX = 15;
thePointY = 150;
}
Instance of Symbol 574 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
thePointToX = -160;
thePointToY = -30;
}
Instance of Symbol 576 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
thePointToX = -160;
thePointToY = -30;
}
Symbol 578 MovieClip Frame 12
if (_global.gameMode == "1p") {
rand = Math.random() * 4;
if (rand > 3) {
_global.char2 = "mona";
} else if (rand > 2) {
_global.char2 = "si";
} else if (rand > 1) {
_global.char2 = "giko";
} else {
_global.char2 = "ninjya";
}
}
_root.AllSountStop();
_root.gotoAndStop("select2");
Symbol 583 MovieClip Frame 10
this.stop();
Symbol 589 MovieClip Frame 1
_visible = false;
Instance of Symbol 590 MovieClip in Symbol 592 MovieClip Frame 7
onClipEvent (load) {
trace("\u30AD\u30E3\u30E9\uFF12\u306F" + _global.char2);
this.attachMovie(_global.char2, "char", 1);
this.char._xscale = -250;
this.char._yscale = 250;
}
Instance of Symbol 590 MovieClip in Symbol 592 MovieClip Frame 7
onClipEvent (load) {
trace("\u30AD\u30E3\u30E9\uFF11\u306F" + _global.char1);
this.attachMovie(_global.char1, "char", 1);
this.char._xscale = (this.char._yscale = 250);
}
Symbol 592 MovieClip Frame 115
_root.AllSountStop();
_root.gotoAndStop("game");
Instance of Symbol 590 MovieClip in Symbol 592 MovieClip Frame 115
onClipEvent (load) {
trace("\u30AD\u30E3\u30E9\uFF12\u306F" + _global.char2);
this.attachMovie(_global.char2, "char", 1);
this.char._xscale = -250;
this.char._yscale = 250;
}
Instance of Symbol 590 MovieClip in Symbol 592 MovieClip Frame 115
onClipEvent (load) {
trace("\u30AD\u30E3\u30E9\uFF11\u306F" + _global.char1);
this.attachMovie(_global.char1, "char", 1);
this.char._xscale = (this.char._yscale = 250);
}
Symbol 598 MovieClip Frame 1
this.onEnterFrame = function () {
this._x = this._x - ((this._x - _parent.mainChar1._x) / 2);
this._y = this._y - ((this._y - _parent.mainChar1._y) / 2);
};
Symbol 602 MovieClip Frame 1
this.onEnterFrame = function () {
this._x = this._x - ((this._x - _parent.mainChar1._x) / 2);
this._y = this._y - ((this._y - _parent.mainChar1._y) / 2);
};
this.onEnterFrame = function () {
if (_global.gameMode == "vs") {
this._x = this._x - ((this._x - _parent.mainChar2._x) / 2);
this._y = this._y - ((this._y - _parent.mainChar2._y) / 2);
}
};
Symbol 606 Button
on (press) {
_quality = "MEDIUM";
}
Symbol 610 Button
on (press) {
_quality = "LOW";
}
Symbol 614 Button
on (press) {
_quality = "HIGH";
}
Symbol 635 MovieClip Frame 1
function Look() {
_visible = (!_visible);
}
_visible = false;
Symbol 639 Button
on (release) {
_root.help.Look();
}
Symbol 642 Button
on (press) {
cpu = (_global.cpuPower = 1);
cpu = cpu + 1;
}
Symbol 643 Button
on (release) {
_root.AllSountStop();
_root.RemoveAllItem();
_root.gotoAndStop("select");
}
Symbol 645 Button
on (press) {
cpu = (_global.cpuPower = -1);
cpu = "\u6B62";
}
Symbol 647 Button
on (press) {
this.gotoAndStop(2);
}
Symbol 648 Button
on (press) {
this.gotoAndStop(1);
}
Symbol 650 MovieClip Frame 1
this.onEnterFrame = function () {
if (flag > 0) {
_global.mainChar1ext = 1;
}
};
flag = 0;
this.stop();
Symbol 650 MovieClip Frame 2
flag = 1;
this.stop();
Symbol 651 MovieClip Frame 1
trace("\u30B2\u30FC\u30E0\u30E2\u30FC\u30C9" + _global.gameMode);
if (_global.gameMode != "training") {
trace("\u30C8\u30EC\u30FC\u30CB\u30F3\u30B0\u30E2\u30FC\u30C9\u3067\u306F\u3042\u308A\u307E\u305B\u3093");
this._visible = false;
} else {
trace("\u30C8\u30EC\u30FC\u306B\u30B0\u30E2\u30FC\u30C9\u3067\u3059");
}
Symbol 654 MovieClip Frame 1
function HpChange(point) {
hp = hp - (point * _global[enemyName + "attackExt"]);
_xscale = ((hp / baseHp) * 100);
if (hp < 0) {
trace("\u6B7B\u4EA1\u30D5\u30E9\u30B0");
this._xscale = 0;
_root.mainStage[_name].Lose();
} else if (this._xscale > 100) {
this._xscale = 100;
}
}
if (_global.gameMode == "training") {
hp = (baseHp = Infinity);
} else if (_name == "mainChar2") {
if (_global.gameLv > 1) {
hp = (baseHp = _global.basicHp * 2);
} else if (_global.gameLv > 0) {
hp = (baseHp = _global.basicHp);
} else {
hp = (baseHp = _global.basicHp / 2);
}
} else {
hp = (baseHp = _global.basicHp);
}
if (_name == "mainChar1") {
enemyName = "mainChar2";
} else {
enemyName = "mainChar1";
}
Symbol 656 MovieClip Frame 1
function AddRes(tempRes, name) {
if (resFlag == 1) {
if (((_global.res + tempRes) > 1) && (_global.res < 2)) {
this.ATUp(name, 1.5);
this.ExtOk(name);
this.SetNum(2);
trace(name + "\u30002get!");
} else if (((_global.res + tempRes) > 99) && (_global.res < 100)) {
this.ATUp(name, 2);
this.SetNum(100);
trace(name + "\u3000100get!");
} else if (((_global.res + tempRes) > 199) && (_global.res < 200)) {
this.ATUp(name, 1.5);
this.SetNum(200);
trace(name + "\u3000200get!");
} else if (((_global.res + tempRes) > 299) && (_global.res < 300)) {
this.ExtOk(name);
this.SetNum(300);
trace(name + "\u3000300get!");
} else if (((_global.res + tempRes) > 399) && (_global.res < 400)) {
this.ATUp(name, 2);
this.SetNum(400);
trace(name + "\u3000400get!");
} else if (((_global.res + tempRes) > 499) && (_global.res < 500)) {
this.ATUp(name, 3);
this.SetNum(500);
trace(name + "\u3000500get!");
} else if (((_global.res + tempRes) > 599) && (_global.res < 600)) {
this.ExtOk(name);
this.SetNum(600);
trace(name + "\u3000600get!");
} else if (((_global.res + tempRes) > 699) && (_global.res < 700)) {
this.ATUp(name, 1.5);
this.SetNum(700);
trace(name + "\u3000700get!");
} else if (((_global.res + tempRes) > 799) && (_global.res < 800)) {
this.ATUp(name, 2);
this.SetNum(800);
trace(name + "\u3000800get!");
} else if (((_global.res + tempRes) > 899) && (_global.res < 900)) {
this.ExtOk(name);
this.SetNum(900);
trace(name + "\u3000900get!");
} else if (((_global.res + tempRes) > 999) && (_global.res < 1000)) {
this.ExtOk(name);
this.ATUp(name, 3);
this.SetNum("1000!!");
trace(enemyName + "1000get!");
}
this._xscale = (this._yscale = this._yscale + (100 + tempRes));
disRes = disRes + Math.round(tempRes / 2);
_global.res = _global.res + tempRes;
}
}
function SetNum(kiri) {
_root.attachMovie("num", "num", 157);
_root.num._x = 260;
_root.num._y = 200;
_root.num.num = kiri;
}
function ExtOk(name) {
_global[name + "ext"] = 1;
if (name == "mainChar1") {
_root.attachMovie("ExtOk", "mainChar1ext", 153);
_root.mainChar1ext._x = 70;
_root.mainChar1ext._y = 90;
} else {
_root.attachMovie("ExtOk", "mainChar2ext", 154);
_root.mainChar2ext._x = 480;
_root.mainChar2ext._y = 90;
}
}
function ATUp(name, atExt) {
_global[name + "attackExt"] = atExt;
this[name + "cnt"] = getTimer() + timeAattackUp;
symbolName = "ATUp" + atExt;
if (name == "mainChar1") {
_root.attachMovie(symbolName, "symATUp1", 155);
_root.symATUp1._x = 70;
_root.symATUp1._y = 130;
} else {
_root.attachMovie(symbolName, "symATUp2", 156);
_root.symATUp2._x = 480;
_root.symATUp2._y = 130;
}
}
function AttackUpCount() {
if ((getTimer() > mainChar1cnt) && (_global.mainChar1attackExt != 1)) {
_global.mainChar1attackExt = 1;
_root.symATUp1.removeMovieClip();
trace("\u30AD\u30E3\u30E91\u306E\u653B\u6483\u529B\u3092\u5143\u306B\u623B\u3057\u307E\u3057\u305F");
}
if ((getTimer() > mainChar2cnt) && (_global.mainChar2attackExt != 1)) {
_global.mainChar2attackExt = 1;
_root.symATUp2.removeMovieClip();
trace("\u30AD\u30E3\u30E92\u306E\u653B\u6483\u529B\u3092\u5143\u306B\u623B\u3057\u307E\u3057\u305F");
}
}
function AllSystem() {
if (resFlag == 1) {
if (disRes < _global.res) {
disRes++;
if (disRes > 1000) {
resFlag = 0;
disRes = 1000;
_global.res = 1000;
waitTimeCnt = getTimer() + waitTime;
}
}
} else if (getTimer() > waitTimeCnt) {
resFlag = 1;
disRes = (_global.res = 0);
}
if (this._xscale > 100) {
this._xscale = (this._yscale = this._yscale - ((this._xscale - 100) / 5));
}
}
disRes = (_global.res = 0);
resFlag = 1;
waitTime = 7000;
waitTimeCnt = 0;
timeAattackUp = 5000;
mainChar1cnt = 0;
mainChar2cnt = 0;
this.onEnterFrame = function () {
this.AttackUpCount();
this.AllSystem();
};