Frame 2
function AllSountStop() {
trace("\u5168\u97F3\u697D\u505C\u6B62");
theRootSound.stop();
}
debug = 0;
theRootSound = new Sound();
so = SharedObject.getLocal("myData");
if (so.data.gameLv == null) {
trace("\u8A2D\u5B9A\u4FDD\u5B58\u30C7\u30FC\u30BF\u5B58\u5728\u305B\u305A");
_global.gameLv = 1;
_quality = "HIGH";
_global.basicHp = 1000;
_global.resExt = 1;
_global.cameraFlag = 1;
} else {
trace("\u8A2D\u5B9A\u4FDD\u5B58\u30C7\u30FC\u30BF\u5B58\u5728\u3042\u308A");
_global.gameLv = _root.so.data.gameLv;
_quality = _root.so.data.quality;
_global.basicHp = _root.so.data.basicHp;
_global.resExt = _root.so.data.resExt;
_global.cameraFlag = _root.so.data.cameraFlag;
}
_global.gDeep = 10;
if (debug == 1) {
_global.char1 = "karu";
_global.char2 = "karu";
_global.gameMode = "training";
this.gotoAndStop("game");
}
this.stop();
Frame 10
this.stop();
Frame 13
this.gotoAndStop(_currentframe - 2);
Frame 20
_global.cpuPower = 0;
_global.char1color = 0;
_global.char2color = 0;
_root.scene_endSelect.removeMovieClip();
this.stop();
Frame 23
this.gotoAndStop(_currentframe - 2);
Frame 30
this.stop();
Instance of Symbol 875 MovieClip in Frame 30
onClipEvent (load) {
trace("nowStage=" + _global.nowStage);
if (_global.nowStage > 0) {
this.gotoAndStop("normal");
}
}
Frame 33
this.gotoAndStop(_currentframe - 2);
Frame 40
this.stop();
Instance of Symbol 899 MovieClip "box" in Frame 40
onClipEvent (load) {
trace("BGMBOX\u3042\u308A\u307E\u3059 load");
}
Frame 43
this.gotoAndStop(_currentframe - 2);
Frame 50
function GameSet(temp) {
_root.attachMovie("scene_endSelect", "scene_endSelect", 151);
_root.scene_endSelect.win = temp;
_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++;
}
}
_global.mainChar1ext = 0;
_global.mainChar2ext = 0;
_global.mainChar1attackExt = 1;
_global.mainChar2attackExt = 1;
_global.gardPerExt = 1.5;
_root.box.SelectBgm(_global.char2);
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 910 MovieClip "mainStage" in Frame 50
onClipEvent (load) {
function CharSet() {
cameraMode = 1;
char = "A_Char_" + _global.char1;
_root.mainStage.attachMovie(char, "mainChar1", 1);
theScale = 100;
if (_global.char1 == "si") {
theY = -24.6;
} else if (_global.char1 == "niraS") {
theY = -11;
} else if (_global.char1 == "karu") {
theY = -37.5;
theScale = 75;
} else {
theY = -32.1;
}
_root.mainStage.mainChar1._xscale = theScale;
_root.mainStage.mainChar1._yscale = theScale;
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);
theScale = 100;
if (_global.char2 == "si") {
theY = -24.6;
} else if (_global.char2 == "niraS") {
theY = -11;
} else if (_global.char2 == "karu") {
theY = -37.5;
theScale = 75;
} 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;
_root.mainStage.mainChar2._xscale = theScale;
_root.mainStage.mainChar2._yscale = theScale;
}
function cameraSystem() {
if (cameraMode == 1) {
var sa = Math.abs(this.mainChar1._x - this.mainChar2._x);
if (sa > 300) {
sa = 300;
} else if (sa < 100) {
sa = 100;
}
nc = 100 + ((300 - sa) / 4);
this._xscale = (this._yscale = nc);
var g = ((this.mainChar1._x + this.mainChar2._x) / 2);
targetX = 275 - (g * (nc / 100));
this._x = this._x + ((targetX - this._x) / 5);
} else {
this._xscale = (this._yscale = 130);
targetX = 275 - (this.winner._x * 1.3);
trace("winner._x=" + this.winner._x);
this._x = this._x + ((targetX - this._x) / 5);
}
}
function firstStageSet() {
this._y = this._y + ((378 - this._y) / 3);
if (this._y < 379) {
this._y = 378;
fFlag = 0;
}
}
fFlag = 1;
cameraMode = 1;
this._y = 600;
this.CharSet();
}
onClipEvent (enterFrame) {
if (_global.cameraFlag == 1) {
this.cameraSystem();
}
if (fFlag == 1) {
this.firstStageSet();
}
}
Frame 53
this.gotoAndStop(_currentframe - 2);
Frame 60
this.gotoAndStop(_currentframe + 2);
Frame 62
this.stop();
Frame 64
this.gotoAndStop(_currentframe - 2);
Frame 70
this.gotoAndStop(_currentframe + 2);
Frame 72
_root.AllSoundStop();
this.stop();
Frame 74
this.gotoAndStop(_currentframe - 2);
Frame 80
this.stop();
Symbol 1 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, inner);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 14 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 24 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 33 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 34 MovieClip [UpArrow] Frame 1
stop();
Symbol 34 MovieClip [UpArrow] Frame 2
stop();
Symbol 34 MovieClip [UpArrow] Frame 3
stop();
Symbol 41 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 48 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 53 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 54 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 62 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 70 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 78 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 79 MovieClip [DownArrow] Frame 1
stop();
Symbol 79 MovieClip [DownArrow] Frame 2
stop();
Symbol 79 MovieClip [DownArrow] Frame 3
stop();
Symbol 82 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 83 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var tmp = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
tmp = Math.min(tmp, this.maxPos);
this.setScrollPosition(Math.max(tmp, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var wasEnabled = this.enable;
if (enabledFlag && (!wasEnabled)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (wasEnabled)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var delt = this.smallScroll;
if (inc != "one") {
delt = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var newPos = (this.getScrollPosition() + (mode * delt));
if (newPos > this.maxPos) {
newPos = this.maxPos;
} else if (newPos < this.minPos) {
newPos = this.minPos;
}
this.setScrollPosition(newPos);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var c = this.controller;
c.scrollPosition = Math.round(((c.maxPos - c.minPos) * (this._y - c.scrollTop)) / c.trackHeight) + c.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var pos = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxhscroll));
} else {
var pos = this.textField.scroll;
var pageSize = (this.textField.bottomScroll - this.textField.scroll);
this.setScrollProperties(pageSize, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 85 MovieClip [tama_rocketS] Frame 1
function bomb() {
tempName = "waterBomb" + _global.rDeep;
_root.attachMovie("waterBomb", tempName, _global.rDeep);
_root[tempName]._x = this._x;
_root[tempName]._y = this._y;
_root[tempName]._xscale = 150;
_root[tempName]._yscale = 150;
_global.rDeep++;
this.removeMovieClip();
}
function hit() {
tempName = "waterBomb" + _global.rDeep;
_root.attachMovie("hitBomb", tempName, _global.rDeep);
_root[tempName]._x = this._x;
_root[tempName]._y = this._y;
_global.rDeep++;
this.removeMovieClip();
}
damage = 35;
this.onEnterFrame = function () {
this._x = this._x + ((speedX = speedX * 1.01));
this._y = this._y + ((speedY = speedY * 1.01));
if (this.hitTest(_root.mapShip.dmgArea)) {
_root.display.ChangeHp(damage);
this.hit();
}
if (this._y > _global.seaLineY) {
this.bomb();
}
};
_rotation = ((tempKakudo = Math.atan2(speedY, speedX) / (Math.PI/180)));
Symbol 116 MovieClip Frame 1
this._visible = false;
Symbol 135 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 135 MovieClip Frame 9
_parent.Normal();
Symbol 135 MovieClip Frame 17
this.gotoAndStop(5);
Symbol 140 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 140 MovieClip in Symbol 142 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
role = "monaZ";
}
Symbol 142 MovieClip Frame 5
_parent.Normal();
Symbol 145 MovieClip Frame 7
this.stop();
Instance of Symbol 140 MovieClip in Symbol 146 MovieClip Frame 7
//component parameters
onClipEvent (initialize) {
role = "monaX";
}
Symbol 146 MovieClip Frame 16
_parent.Normal();
Instance of Symbol 140 MovieClip in Symbol 154 MovieClip Frame 9
//component parameters
onClipEvent (initialize) {
role = "monaC1";
}
Symbol 154 MovieClip Frame 19
_parent.Normal();
Symbol 157 MovieClip Frame 1
this._visible = false;
Symbol 158 MovieClip Frame 12
_parent.dmgArea._name = "notDmgArea";
Symbol 158 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 158 MovieClip Frame 16
_parent.notDmgArea._name = "dmgArea";
Symbol 158 MovieClip Frame 26
_parent.Normal();
Symbol 161 MovieClip Frame 1
this._rotation = this._rotation + ((Math.random() * 80) - 40);
Symbol 161 MovieClip Frame 10
this.stop();
Symbol 162 MovieClip Frame 1
_root.mainStage[_parent.enemyName].damage(280, 0, 400, 1, 1);
_root.mainStage[_parent.enemyName].damage(1, 0, 400, 1, 1);
Symbol 162 MovieClip Frame 11
_parent.Normal();
Symbol 178 MovieClip Frame 3
if (_parent._y != basicHi) {
this.gotoAndPlay(_currentframe - 2);
}
Symbol 178 MovieClip Frame 12
_parent.Normal();
Symbol 185 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 185 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 185 MovieClip Frame 3
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 185 MovieClip Frame 4
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 185 MovieClip Frame 5
this.SetSmoke();
Symbol 185 MovieClip Frame 7
_parent.Normal();
Symbol 193 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 140 MovieClip in Symbol 193 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
role = "monaD";
}
Symbol 193 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 193 MovieClip Frame 15
_parent.Normal();
Symbol 208 MovieClip Frame 19
this.stop();
Symbol 210 MovieClip Frame 1
Symbol 210 MovieClip Frame 5
_parent.mode = "-";
_parent.Normal();
Symbol 212 MovieClip Frame 1
Symbol 212 MovieClip Frame 10
_parent.mode = "-";
_parent.Normal();
this.gotoAndPlay(6);
Symbol 213 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;
def = 20;
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) {
dmg = Math.round(dmg - (dmg * (def / 100)));
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");
if (_name == "mainChar1") {
_root.GameSet(2);
} else {
_root.GameSet(1);
}
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 win() {
trace((("\n-----\n" + _name) + "\u3001\u52DD\u5229\u30E1\u30BD\u30C3\u30C9\u5B9F\u884C") + "\n-----");
this._name = "winner";
actionFlag = 0;
baseMode = "x";
this.gotoAndStop("win");
}
function SystemLoop() {
if (mode != "dush") {
var sa = (this._x - _parent[enemyName]._x);
if (sa > 0) {
this._xscale = -basicScale;
aiMode = -1;
} else {
this._xscale = basicScale;
}
}
}
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 = -basicScale;
aiMode = -1;
} else if (sa < -10) {
this._xscale = basicScale;
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 = 0;
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";
this._xscale = this._xscale * -1;
}
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 213 MovieClip [A_Char_mona] Frame 10
this.stop();
Symbol 213 MovieClip [A_Char_mona] Frame 19
this.stop();
Symbol 213 MovieClip [A_Char_mona] Frame 29
this.stop();
Symbol 213 MovieClip [A_Char_mona] Frame 39
this.stop();
Symbol 213 MovieClip [A_Char_mona] Frame 49
this.stop();
Symbol 213 MovieClip [A_Char_mona] Frame 59
this.stop();
Symbol 213 MovieClip [A_Char_mona] Frame 69
this.stop();
Symbol 213 MovieClip [A_Char_mona] Frame 80
this.stop();
Symbol 213 MovieClip [A_Char_mona] Frame 90
this.stop();
Symbol 213 MovieClip [A_Char_mona] Frame 100
this.stop();
Symbol 213 MovieClip [A_Char_mona] Frame 120
this.stop();
Symbol 213 MovieClip [A_Char_mona] Frame 130
this.stop();
Symbol 213 MovieClip [A_Char_mona] Frame 160
this.stop();
Symbol 213 MovieClip [A_Char_mona] Frame 170
this.stop();
Symbol 214 MovieClip [removeItem] Frame 1
trace("\u6D88\u53BB\u7528\uFF29\uFF34\uFF25\uFF2D\u914D\u7F6E");
this.removeMovieClip();
Instance of Symbol 241 MovieClip in Symbol 251 MovieClip [ninjya] Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 260 MovieClip Frame 30
this.gotoAndPlay(1);
Symbol 266 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 266 MovieClip Frame 9
_parent.Normal();
Symbol 266 MovieClip Frame 17
this.gotoAndStop(5);
Instance of Symbol 140 MovieClip in Symbol 268 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
role = "ninZ";
}
Symbol 268 MovieClip Frame 5
_parent.Normal();
Instance of Symbol 140 MovieClip in Symbol 275 MovieClip Frame 8
//component parameters
onClipEvent (initialize) {
role = "ninX";
}
Symbol 275 MovieClip Frame 19
_parent.Normal();
Symbol 276 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 276 MovieClip Frame 11
_parent.Normal();
Symbol 281 MovieClip Frame 8
_parent.gotoAndStop("ext1-2");
Symbol 312 MovieClip Frame 1
this.stop();
Symbol 312 MovieClip Frame 3
i = 0;
Instance of Symbol 116 MovieClip in Symbol 312 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 312 MovieClip Frame 52
_parent.play();
Symbol 320 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 320 MovieClip Frame 42
_parent.body1.play();
Symbol 320 MovieClip Frame 43
_parent.body1.play();
this.stop();
Symbol 320 MovieClip Frame 50
this.stop();
Instance of Symbol 116 MovieClip in Symbol 327 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 327 MovieClip Frame 21
this.stop();
Symbol 327 MovieClip Frame 50
_parent._y = -350;
jumpFlag = "down";
jumpCnt = 0;
_parent.gotoAndStop("ext1-3");
Symbol 328 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 328 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 328 MovieClip Frame 3
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 328 MovieClip Frame 4
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 328 MovieClip Frame 5
this.SetSmoke();
Symbol 328 MovieClip Frame 7
_parent.Normal();
Symbol 329 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 329 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 140 MovieClip in Symbol 329 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
role = "ninD";
}
Instance of Symbol 116 MovieClip in Symbol 329 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 329 MovieClip Frame 15
_parent.Normal();
Symbol 330 MovieClip Frame 8
_parent.removeMovieClip();
this.stop();
Symbol 331 MovieClip Frame 1
Symbol 331 MovieClip Frame 5
_parent.mode = "-";
_parent.Normal();
Symbol 332 MovieClip Frame 10
_parent.mode = "-";
_parent.Normal();
this.gotoAndPlay(6);
Symbol 333 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 333 MovieClip [kage] Frame 10
this.stop();
Symbol 333 MovieClip [kage] Frame 19
this.stop();
Symbol 333 MovieClip [kage] Frame 29
this.stop();
Symbol 333 MovieClip [kage] Frame 39
this.stop();
Symbol 333 MovieClip [kage] Frame 49
this.stop();
Symbol 333 MovieClip [kage] Frame 59
this.stop();
Symbol 333 MovieClip [kage] Frame 69
this.stop();
Symbol 333 MovieClip [kage] Frame 80
this.stop();
Symbol 333 MovieClip [kage] Frame 90
this.stop();
Symbol 333 MovieClip [kage] Frame 100
this.stop();
Symbol 333 MovieClip [kage] Frame 120
this.stop();
Symbol 333 MovieClip [kage] Frame 130
this.stop();
Symbol 333 MovieClip [kage] Frame 150
this.stop();
Symbol 333 MovieClip [kage] Frame 160
this.stop();
Symbol 333 MovieClip [kage] Frame 170
this.stop();
Symbol 334 MovieClip Frame 23
this.gotoAndPlay(2);
Symbol 338 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 338 MovieClip Frame 9
_parent.Normal();
Symbol 338 MovieClip Frame 17
this.gotoAndStop(5);
Instance of Symbol 140 MovieClip in Symbol 340 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
role = "niraSZ";
}
Symbol 340 MovieClip Frame 5
_parent.Normal();
Instance of Symbol 140 MovieClip in Symbol 341 MovieClip Frame 5
//component parameters
onClipEvent (initialize) {
role = "niraSX";
}
Symbol 341 MovieClip Frame 14
_parent.Normal();
Symbol 343 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 343 MovieClip Frame 9
_parent.dmgArea._name = "notDmgArea";
Symbol 343 MovieClip Frame 11
_parent.dmgArea._name = "notDmgArea";
Symbol 343 MovieClip Frame 15
if (_parent.enemyName == "mainChar1") {
deep = 1121;
} else {
deep = 1122;
}
_parent._parent.attachMovie("char_nirat", "char_nirat", deep);
_parent._parent.char_nirat._x = _parent._x;
_parent._parent.char_nirat._y = -170;
_parent._parent.char_nirat.enemyName = _parent.enemyName;
Symbol 343 MovieClip Frame 17
_parent.notDmgArea._name = "dmgArea";
_parent.notDmgArea._name = "dmgArea";
_parent.Normal();
Symbol 344 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 344 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 344 MovieClip Frame 3
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 344 MovieClip Frame 4
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 344 MovieClip Frame 5
this.SetSmoke();
Symbol 344 MovieClip Frame 7
_parent.Normal();
Symbol 345 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 345 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 140 MovieClip in Symbol 345 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
role = "niraSD";
}
Symbol 345 MovieClip Frame 15
_parent.Normal();
Symbol 352 MovieClip Frame 35
this.gotoAndPlay(14);
Symbol 353 MovieClip Frame 1
Symbol 353 MovieClip Frame 5
_parent.mode = "-";
_parent.Normal();
Symbol 354 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.niraSEdmg = 30;
_global.niraSExf = 10;
_global.niraSEyf = 25;
walkSpeed = 3;
dushMove = 15;
jumpPower = 60;
downEx = 1.3;
upEx = 1.7;
xMoveExt = 1.2;
dcTime = 3;
def = 0;
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) {
dmg = Math.round(dmg - (dmg * (def / 100)));
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");
if (_name == "mainChar1") {
_root.GameSet(2);
} else {
_root.GameSet(1);
}
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 win() {
trace((("\n-----\n" + _name) + "\u3001\u52DD\u5229\u30E1\u30BD\u30C3\u30C9\u5B9F\u884C") + "\n-----");
this._name = "winner";
actionFlag = 0;
baseMode = "x";
this.gotoAndStop("win");
}
function SystemLoop() {
if (mode != "dush") {
var sa = (this._x - _parent[enemyName]._x);
if (sa > 0) {
this._xscale = -basicScale;
aiMode = -1;
} else {
this._xscale = basicScale;
}
}
}
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")) {
}
}
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 = -basicScale;
aiMode = -1;
} else if (sa < -10) {
this._xscale = basicScale;
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))) {
} 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 = 0;
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";
this._xscale = this._xscale * -1;
}
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 354 MovieClip [A_Char_niraS] Frame 10
this.stop();
Symbol 354 MovieClip [A_Char_niraS] Frame 19
this.stop();
Symbol 354 MovieClip [A_Char_niraS] Frame 29
this.stop();
Symbol 354 MovieClip [A_Char_niraS] Frame 39
this.stop();
Symbol 354 MovieClip [A_Char_niraS] Frame 49
this.stop();
Symbol 354 MovieClip [A_Char_niraS] Frame 59
this.stop();
Symbol 354 MovieClip [A_Char_niraS] Frame 69
this.stop();
Symbol 354 MovieClip [A_Char_niraS] Frame 80
this.stop();
Symbol 354 MovieClip [A_Char_niraS] Frame 90
this.stop();
Symbol 354 MovieClip [A_Char_niraS] Frame 100
this.stop();
Symbol 354 MovieClip [A_Char_niraS] Frame 120
this.stop();
Symbol 354 MovieClip [A_Char_niraS] Frame 130
this.stop();
Symbol 354 MovieClip [A_Char_niraS] Frame 160
this.stop();
Symbol 354 MovieClip [A_Char_niraS] Frame 170
this.stop();
Symbol 356 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 356 MovieClip Frame 12
Symbol 356 MovieClip Frame 15
_parent.dmgArea._name = "notDmgArea";
Symbol 356 MovieClip Frame 16
this.SetMy();
Symbol 356 MovieClip Frame 20
this.SetMy();
Symbol 356 MovieClip Frame 25
this.SetMy();
Symbol 356 MovieClip Frame 30
_parent.notDmgArea._name = "dmgArea";
_parent.notDmgArea._name = "dmgArea";
_parent.Normal();
Symbol 361 MovieClip Frame 12
this.stop();
Symbol 363 MovieClip Frame 10
_parent.mode = "-";
_parent.Normal();
this.gotoAndPlay(6);
Symbol 364 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 = 35;
jumpPower = 120;
downEx = 1.3;
upEx = 1.7;
xMoveExt = 1.2;
dcTime = 3;
def = 10;
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) {
dmg = Math.round(dmg - (dmg * (def / 100)));
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");
if (_name == "mainChar1") {
_root.GameSet(2);
} else {
_root.GameSet(1);
}
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 win() {
trace((("\n-----\n" + _name) + "\u3001\u52DD\u5229\u30E1\u30BD\u30C3\u30C9\u5B9F\u884C") + "\n-----");
this._name = "winner";
actionFlag = 0;
baseMode = "x";
this.gotoAndStop("win");
}
function SystemLoop() {
if (mode != "dush") {
var sa = (this._x - _parent[enemyName]._x);
if (sa > 0) {
this._xscale = -basicScale;
aiMode = -1;
} else {
this._xscale = basicScale;
}
}
}
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 = -basicScale;
aiMode = -1;
} else if (sa < -10) {
this._xscale = basicScale;
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 = 0;
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";
this._xscale = this._xscale * -1;
}
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 364 MovieClip [A_Char_ninjya] Frame 10
this.stop();
Symbol 364 MovieClip [A_Char_ninjya] Frame 19
this.stop();
Symbol 364 MovieClip [A_Char_ninjya] Frame 29
this.stop();
Symbol 364 MovieClip [A_Char_ninjya] Frame 39
this.stop();
Symbol 364 MovieClip [A_Char_ninjya] Frame 49
this.stop();
Symbol 364 MovieClip [A_Char_ninjya] Frame 59
this.stop();
Symbol 364 MovieClip [A_Char_ninjya] Frame 69
this.stop();
Symbol 364 MovieClip [A_Char_ninjya] Frame 80
this.stop();
Symbol 364 MovieClip [A_Char_ninjya] Frame 90
this.stop();
Symbol 364 MovieClip [A_Char_ninjya] Frame 100
this.stop();
Symbol 364 MovieClip [A_Char_ninjya] Frame 120
this.stop();
Symbol 364 MovieClip [A_Char_ninjya] Frame 130
this.stop();
Symbol 364 MovieClip [A_Char_ninjya] Frame 160
this.stop();
Symbol 364 MovieClip [A_Char_ninjya] Frame 170
this.stop();
Symbol 372 MovieClip Frame 26
this.gotoAndPlay(1);
Symbol 373 MovieClip Frame 12
this.gotoAndPlay(1);
Symbol 395 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 395 MovieClip Frame 9
_parent.Normal();
Symbol 395 MovieClip Frame 17
this.gotoAndStop(5);
Instance of Symbol 140 MovieClip in Symbol 400 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
role = "karuZ";
}
Symbol 400 MovieClip Frame 5
_parent.Normal();
Instance of Symbol 140 MovieClip in Symbol 406 MovieClip Frame 10
//component parameters
onClipEvent (initialize) {
role = "karuX";
}
Symbol 406 MovieClip Frame 16
_parent.Normal();
Symbol 407 MovieClip Frame 10
if (_parent._xscale > 0) {
speed = 35;
tXscale = 100;
} else {
speed = -35;
tXscale = -100;
}
zusaName = "bord" + _global.gDeep;
_root.mainStage.attachMovie("karupisuAttack", zusaName, _global.gDeep);
_root.mainStage[zusaName]._x = _parent._x + (60 * (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 407 MovieClip Frame 16
if (_parent._xscale > 0) {
speed = 35;
tXscale = 100;
} else {
speed = -35;
tXscale = -100;
}
zusaName = "bord" + _global.gDeep;
_root.mainStage.attachMovie("karupisuAttack", zusaName, _global.gDeep);
_root.mainStage[zusaName]._x = _parent._x + (60 * (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 407 MovieClip Frame 24
_parent.Normal();
Symbol 413 MovieClip Frame 4
function shot() {
saX = _root.mainStage[enemyName]._x - this._x;
saY = _root.mainStage[enemyName]._y - this._y;
kakudo = (tKakudo * Math.PI) / 180;
sY = power * Math.sin(kakudo);
sX = (-power) * Math.cos(kakudo);
tamaName = "s" + _global.gDeep;
_root.mainStage.attachMovie("karuseijin_tobu", tamaName, _global.gDeep);
ta = eval (_root.mainStage[tamaName]);
ta._xscale = -tXscale;
ta._x = _parent._x + ((80 * tXscale) / 100);
ta._y = _parent._y;
ta.speedX = ((-sX) * tXscale) / 100;
ta.speedY = sY;
ta.enemyName = enemyName;
_global.gDeep++;
}
_parent.dmgArea._name = "notDmgArea";
if (_parent._name == "mainChar1") {
enemyName = "mainChar2";
} else {
enemyName = "mainChar1";
}
if (_parent._xscale > 0) {
tXscale = 100;
} else {
tXscale = -100;
}
power = 20;
shotNo = 10;
no = 0;
Symbol 413 MovieClip Frame 16
no++;
Symbol 413 MovieClip Frame 19
this.shot();
Instance of Symbol 140 MovieClip in Symbol 413 MovieClip Frame 19
//component parameters
onClipEvent (initialize) {
role = "karuX";
}
Symbol 413 MovieClip Frame 22
if (no >= shotNo) {
this.gotoAndPlay("end");
} else {
this.gotoAndPlay(16);
}
Instance of Symbol 140 MovieClip in Symbol 413 MovieClip Frame 30
//component parameters
onClipEvent (initialize) {
role = "karuX";
}
Symbol 413 MovieClip Frame 41
_parent.notDmgArea._name = "dmgArea";
_parent.notDmgArea._name = "dmgArea";
_parent.Normal();
Symbol 414 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 414 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 414 MovieClip Frame 3
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 414 MovieClip Frame 4
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 414 MovieClip Frame 5
this.SetSmoke();
Symbol 414 MovieClip Frame 7
_parent.Normal();
Symbol 418 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;
Instance of Symbol 140 MovieClip in Symbol 418 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
role = "karuD";
}
Symbol 418 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 418 MovieClip Frame 15
_parent.Normal();
Symbol 423 MovieClip Frame 19
this.stop();
Symbol 427 MovieClip Frame 1
Symbol 427 MovieClip Frame 5
_parent.mode = "-";
_parent.Normal();
Symbol 428 MovieClip Frame 1
Symbol 428 MovieClip Frame 10
_parent.mode = "-";
_parent.Normal();
this.gotoAndPlay(6);
Symbol 429 MovieClip [A_Char_karu] Frame 1
_global.karuZdmg = 3;
_global.karuZxf = 7;
_global.karuZyf = 0;
_global.karuZres = 5;
_global.karuXdmg = 17;
_global.karuXxf = 50;
_global.karuXyf = 120;
_global.karuXres = 20;
_global.karuC1dmg = 25;
_global.karuC1xf = 50;
_global.karuC1yf = 20;
_global.karuC1res = 30;
_global.karuC2dmg = 5;
_global.karuC2xf = 10;
_global.karuC2yf = 0;
_global.karuC2res = 9;
_global.karuDdmg = 13;
_global.karuDxf = 16;
_global.karuDyf = 10;
_global.karuDres = 7;
_global.karuEdmg = 30;
_global.karuExf = 50;
_global.karuEyf = 20;
_global.karuEres = 1;
_global.karuE2dmg = 20;
_global.karuE2xf = 16;
_global.karuE2yf = 10;
_global.karuE2res = 1;
walkSpeed = 5;
dushMove = 25;
jumpPower = 80;
downEx = 1.2;
upEx = 1.7;
xMoveExt = 1.2;
dcTime = 3;
def = 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) {
dmg = Math.round(dmg - (dmg * (def / 100)));
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");
if (_name == "mainChar1") {
_root.GameSet(2);
} else {
_root.GameSet(1);
}
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 win() {
trace((("\n-----\n" + _name) + "\u3001\u52DD\u5229\u30E1\u30BD\u30C3\u30C9\u5B9F\u884C") + "\n-----");
this._name = "winner";
actionFlag = 0;
baseMode = "x";
this.gotoAndStop("win");
}
function SystemLoop() {
if (mode != "dush") {
var sa = (this._x - _parent[enemyName]._x);
if (sa > 0) {
this._xscale = -basicScale;
aiMode = -1;
} else {
this._xscale = basicScale;
}
}
}
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 = -basicScale;
aiMode = -1;
} else if (sa < -10) {
this._xscale = basicScale;
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 = 0;
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";
this._xscale = this._xscale * -1;
}
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 429 MovieClip [A_Char_karu] Frame 10
this.stop();
Symbol 429 MovieClip [A_Char_karu] Frame 19
this.stop();
Symbol 429 MovieClip [A_Char_karu] Frame 29
this.stop();
Symbol 429 MovieClip [A_Char_karu] Frame 39
this.stop();
Symbol 429 MovieClip [A_Char_karu] Frame 49
this.stop();
Symbol 429 MovieClip [A_Char_karu] Frame 59
this.stop();
Symbol 429 MovieClip [A_Char_karu] Frame 69
this.stop();
Symbol 429 MovieClip [A_Char_karu] Frame 80
this.stop();
Symbol 429 MovieClip [A_Char_karu] Frame 90
this.stop();
Symbol 429 MovieClip [A_Char_karu] Frame 100
this.stop();
Symbol 429 MovieClip [A_Char_karu] Frame 120
this.stop();
Symbol 429 MovieClip [A_Char_karu] Frame 130
this.stop();
Symbol 429 MovieClip [A_Char_karu] Frame 160
this.stop();
Symbol 429 MovieClip [A_Char_karu] Frame 170
this.stop();
Symbol 431 MovieClip Frame 13
this.gotoAndPlay(4);
Symbol 436 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 436 MovieClip Frame 9
_parent.Normal();
Symbol 436 MovieClip Frame 17
this.gotoAndStop(5);
Instance of Symbol 140 MovieClip in Symbol 438 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
role = "gikoZ";
}
Symbol 438 MovieClip Frame 5
_parent.Normal();
Symbol 440 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 140 MovieClip in Symbol 441 MovieClip Frame 8
//component parameters
onClipEvent (initialize) {
role = "gikoX";
}
Instance of Symbol 116 MovieClip in Symbol 441 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 441 MovieClip Frame 14
_parent.Normal();
Instance of Symbol 140 MovieClip in Symbol 442 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 442 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 442 MovieClip Frame 19
_parent.Normal();
Symbol 443 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 443 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 443 MovieClip Frame 3
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 443 MovieClip Frame 4
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 443 MovieClip Frame 5
this.SetSmoke();
Symbol 443 MovieClip Frame 7
_parent.Normal();
Symbol 450 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 450 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 116 MovieClip in Symbol 450 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 116 MovieClip in Symbol 450 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 450 MovieClip Frame 15
_parent.Normal();
Instance of Symbol 453 MovieClip in Symbol 454 MovieClip Frame 1
onClipEvent (load) {
this._xscale = _parent._parent._parent._xscale;
}
Symbol 455 MovieClip Frame 12
this.stop();
Symbol 456 MovieClip Frame 1
Symbol 456 MovieClip Frame 5
_parent.mode = "-";
_parent.Normal();
Symbol 457 MovieClip Frame 1
Symbol 457 MovieClip Frame 10
_parent.mode = "-";
_parent.Normal();
this.gotoAndPlay(6);
Symbol 458 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;
def = 15;
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) {
dmg = Math.round(dmg - (dmg * (def / 100)));
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");
if (_name == "mainChar1") {
_root.GameSet(2);
} else {
_root.GameSet(1);
}
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 = -basicScale;
aiMode = -1;
} else {
this._xscale = basicScale;
}
}
}
function win() {
trace((("\n-----\n" + _name) + "\u3001\u52DD\u5229\u30E1\u30BD\u30C3\u30C9\u5B9F\u884C") + "\n-----");
this._name = "winner";
actionFlag = 0;
baseMode = "x";
this.gotoAndStop("win");
}
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 = -basicScale;
aiMode = -1;
} else if (sa < -10) {
this._xscale = basicScale;
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 = 0;
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";
this._xscale = this._xscale * -1;
}
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 458 MovieClip [A_Char_giko] Frame 10
this.stop();
Symbol 458 MovieClip [A_Char_giko] Frame 19
this.stop();
Symbol 458 MovieClip [A_Char_giko] Frame 29
this.stop();
Symbol 458 MovieClip [A_Char_giko] Frame 39
this.stop();
Symbol 458 MovieClip [A_Char_giko] Frame 49
this.stop();
Symbol 458 MovieClip [A_Char_giko] Frame 59
this.stop();
Symbol 458 MovieClip [A_Char_giko] Frame 69
this.stop();
Symbol 458 MovieClip [A_Char_giko] Frame 80
this.stop();
Symbol 458 MovieClip [A_Char_giko] Frame 90
this.stop();
Symbol 458 MovieClip [A_Char_giko] Frame 100
this.stop();
Symbol 458 MovieClip [A_Char_giko] Frame 120
this.stop();
Symbol 458 MovieClip [A_Char_giko] Frame 130
this.stop();
Symbol 458 MovieClip [A_Char_giko] Frame 140
this.stop();
Symbol 458 MovieClip [A_Char_giko] Frame 160
this.stop();
Symbol 458 MovieClip [A_Char_giko] Frame 170
this.stop();
Symbol 461 MovieClip Frame 9
this.gotoAndPlay("walk");
Symbol 469 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 469 MovieClip Frame 9
_parent.Normal();
Symbol 469 MovieClip Frame 17
this.gotoAndStop(5);
Symbol 470 MovieClip Frame 2
this.stop();
Instance of Symbol 140 MovieClip in Symbol 471 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
role = "siZ";
}
Symbol 471 MovieClip Frame 5
_parent.Normal();
Instance of Symbol 140 MovieClip in Symbol 477 MovieClip Frame 4
//component parameters
onClipEvent (initialize) {
role = "siX";
}
Instance of Symbol 116 MovieClip in Symbol 477 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 477 MovieClip Frame 19
_parent.Normal();
Instance of Symbol 140 MovieClip in Symbol 483 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 483 MovieClip Frame 14
Symbol 483 MovieClip Frame 21
_parent.Normal();
Symbol 499 MovieClip Frame 16
_parent.dmgArea._name = "notDmgArea";
Symbol 499 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 499 MovieClip Frame 20
this.SetSmoke();
Symbol 499 MovieClip Frame 21
this.SetSmoke();
Symbol 499 MovieClip Frame 31
this.SetSmoke();
Symbol 499 MovieClip Frame 32
this.SetSmoke();
Symbol 499 MovieClip Frame 33
this.SetSmoke();
Symbol 499 MovieClip Frame 34
this.SetSmoke();
Symbol 499 MovieClip Frame 50
_parent.notDmgArea._name = "dmgArea";
_parent.Normal();
Symbol 500 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 500 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 500 MovieClip Frame 3
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 500 MovieClip Frame 4
if ((_parent.ToDushAttack() == 1) && (_parent.playerMode != "cpu")) {
_parent.mode == "attack";
_parent.gotoAndStop("dushAttack");
}
this.SetSmoke();
Symbol 500 MovieClip Frame 5
this.SetSmoke();
Symbol 500 MovieClip Frame 7
_parent.Normal();
Symbol 504 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 == "dushAttack";
if (_parent._xscale > 0) {
speed = 30;
tXscale = 100;
} else {
speed = -30;
tXscale = -100;
}
speedDownExt = 0.7;
Symbol 504 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 140 MovieClip in Symbol 504 MovieClip Frame 3
//component parameters
onClipEvent (initialize) {
role = "siD";
}
Symbol 504 MovieClip Frame 5
if (i < 4) {
i++;
this.gotoAndPlay(_currentframe - 2);
}
Symbol 504 MovieClip Frame 9
_parent.Normal();
Symbol 513 MovieClip Frame 40
this.gotoAndPlay(12);
Symbol 514 MovieClip Frame 1
Instance of Symbol 223 MovieClip in Symbol 514 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(16);
}
Symbol 514 MovieClip Frame 5
_parent.mode = "-";
_parent.Normal();
Symbol 515 MovieClip Frame 1
Instance of Symbol 223 MovieClip in Symbol 515 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(16);
}
Symbol 515 MovieClip Frame 5
_parent.mode = "-";
_parent.Normal();
Symbol 516 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 = 70;
downEx = 1.3;
upEx = 1.7;
xMoveExt = 1.2;
dcTime = 3;
def = 10;
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) {
dmg = Math.round(dmg - (dmg * (def / 100)));
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");
if (_name == "mainChar1") {
_root.GameSet(2);
} else {
_root.GameSet(1);
}
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 win() {
trace((("\n-----\n" + _name) + "\u3001\u52DD\u5229\u30E1\u30BD\u30C3\u30C9\u5B9F\u884C") + "\n-----");
this._name = "winner";
actionFlag = 0;
baseMode = "x";
this.gotoAndStop("win");
}
function SystemLoop() {
if (mode != "dush") {
var sa = (this._x - _parent[enemyName]._x);
if (sa > 0) {
this._xscale = -basicScale;
aiMode = -1;
} else {
this._xscale = basicScale;
}
}
}
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 = -basicScale;
aiMode = -1;
} else if (sa < -10) {
this._xscale = basicScale;
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 = 0;
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";
this._xscale = this._xscale * -1;
}
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 516 MovieClip [A_Char_si] Frame 10
this.stop();
Symbol 516 MovieClip [A_Char_si] Frame 20
this.stop();
Symbol 516 MovieClip [A_Char_si] Frame 30
this.stop();
Symbol 516 MovieClip [A_Char_si] Frame 40
this.stop();
Symbol 516 MovieClip [A_Char_si] Frame 50
this.stop();
Symbol 516 MovieClip [A_Char_si] Frame 60
this.stop();
Symbol 516 MovieClip [A_Char_si] Frame 120
this.stop();
Symbol 516 MovieClip [A_Char_si] Frame 130
this.stop();
Symbol 516 MovieClip [A_Char_si] Frame 160
this.stop();
Symbol 516 MovieClip [A_Char_si] Frame 170
this.stop();
Symbol 517 MovieClip [zusaKemuri] Frame 8
this.removeMovieClip();
Symbol 519 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 519 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 116 MovieClip in Symbol 519 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 519 MovieClip [bordAttack] Frame 3
this.gotoAndPlay(2);
Symbol 522 MovieClip [whiteMask] Frame 6
this.removeMovieClip();
this.stop();
Symbol 525 MovieClip [talk_itteyosi] Frame 32
this.removeMovieClip();
Symbol 535 Button
on (release) {
_root.AllSountStop();
_root.gotoAndStop("select");
_root.RemoveAllItem();
}
Symbol 536 Button
on (release) {
_root.AllSountStop();
_root.gotoAndPlay(49);
_root.RemoveAllItem();
}
Symbol 542 MovieClip Frame 1
bx = this._x;
by = this._y;
this.onEnterFrame = function () {
if (_parent.flag) {
this._x = this._x + ((tx - this._x) / _parent.moveExt);
this._y = this._y + ((ty - this._y) / _parent.moveExt);
this.tx = this.tx + _parent.xMove;
} else {
this._x = this._x + ((bx - this._x) / (_parent.moveExt / 2));
this._y = this._y + ((by - this._y) / (_parent.moveExt / 2));
}
};
Symbol 544 MovieClip Frame 1
bx = this._x;
by = this._y;
this.onEnterFrame = function () {
if (_parent.flag) {
this._x = this._x + ((tx - this._x) / _parent.moveExt);
this._y = this._y + ((ty - this._y) / _parent.moveExt);
this.tx = this.tx + _parent.xMove;
} else {
this._x = this._x + ((bx - this._x) / (_parent.moveExt / 2));
this._y = this._y + ((by - this._y) / (_parent.moveExt / 2));
}
};
Symbol 551 MovieClip [scene_endSelect] Frame 2
_root.mainStage.mainChar1.win();
_root.mainStage.mainChar2.win();
_root.mainStage.cameraMode = 2;
if (_global.gameMode == "normal") {
trace("win=" + win);
if (win == 1) {
this.gotoAndPlay("win");
} else {
this.gotoAndPlay("lose");
}
}
Symbol 551 MovieClip [scene_endSelect] Frame 11
this.stop();
Symbol 551 MovieClip [scene_endSelect] Frame 60
if (_global.nowStage > 3) {
this.gotoAndPlay("AllClear");
} else {
_global.nowStage++;
}
Symbol 551 MovieClip [scene_endSelect] Frame 67
_root.AllSountStop();
_root.gotoAndStop("nextEnemy");
_root.RemoveAllItem();
Symbol 551 MovieClip [scene_endSelect] Frame 95
this.gotoAndPlay("select");
Symbol 551 MovieClip [scene_endSelect] Frame 115
moveExt = 3;
flag = 1;
Instance of Symbol 542 MovieClip in Symbol 551 MovieClip [scene_endSelect] Frame 115
onClipEvent (load) {
tx = -58.3;
ty = -64.4;
}
Instance of Symbol 544 MovieClip in Symbol 551 MovieClip [scene_endSelect] Frame 117
onClipEvent (load) {
tx = 0;
ty = -63.2;
}
Instance of Symbol 544 MovieClip in Symbol 551 MovieClip [scene_endSelect] Frame 119
onClipEvent (load) {
tx = 50;
ty = -63.2;
}
Symbol 551 MovieClip [scene_endSelect] Frame 186
vol = 100;
this.onEnterFrame = function () {
if (vol > 0) {
vol = vol - 4;
if (vol <= 0) {
vol = 0;
}
_root.theRootSound.setVolume(vol);
}
};
Symbol 551 MovieClip [scene_endSelect] Frame 192
moveExt = 3;
flag = 1;
Symbol 551 MovieClip [scene_endSelect] Frame 245
_root.AllSountStop();
_root.theRootSound.setVolume(100);
_root.gotoAndStop("ending");
this.removeMovieClip();
Symbol 559 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 563 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 563 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 559 MovieClip in Symbol 563 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 559 MovieClip in Symbol 563 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 559 MovieClip in Symbol 563 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 559 MovieClip in Symbol 563 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 563 MovieClip [atk1] Frame 38
i++;
if (i < 4) {
this.Set();
this.gotoAndPlay("shot");
}
Symbol 563 MovieClip [atk1] Frame 39
pointX = (Math.random() * 550) - 275;
pointY = (-Math.random()) * 300;
Symbol 563 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 116 MovieClip in Symbol 563 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 116 MovieClip in Symbol 563 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 116 MovieClip in Symbol 563 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 116 MovieClip in Symbol 563 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 563 MovieClip [atk1] Frame 65
i++;
if (i < 4) {
this.Set();
this.gotoAndPlay("shot");
}
Symbol 563 MovieClip [atk1] Frame 71
this.removeMovieClip();
Symbol 569 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 559 MovieClip in Symbol 569 MovieClip [syuriken] Frame 1
//component parameters
onClipEvent (initialize) {
role = "ninC2";
hitRemove = 1;
}
Symbol 569 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 569 MovieClip [syuriken] Frame 3
this.gotoAndPlay(2);
Symbol 576 MovieClip [ExtOk] Frame 22
this.stop();
Symbol 581 MovieClip [ATUp3] Frame 19
this.stop();
Symbol 584 MovieClip [ATUp2] Frame 19
this.stop();
Symbol 587 MovieClip [ATUp1.5] Frame 19
this.stop();
Symbol 590 MovieClip [getCut_giko] Frame 25
this.removeMovieClip();
Symbol 592 MovieClip Frame 1
kiriban = _parent.kiriban;
Symbol 595 MovieClip Frame 1
num = "NEXT >>" + _parent.num;
Symbol 595 MovieClip Frame 5
this.gotoAndPlay(_currentframe - 2);
Symbol 597 MovieClip [nextNum] Frame 1
trace("\u30AD\u30EA\u756A\u8868\u793A\u3000\u8A2D\u7F6E");
Symbol 597 MovieClip [nextNum] Frame 36
this.stop();
Symbol 599 MovieClip Frame 1
num = _parent.num;
Symbol 601 MovieClip [num] Frame 1
trace("\u30AD\u30EA\u756A\u8868\u793A\u3000\u8A2D\u7F6E");
Symbol 601 MovieClip [num] Frame 34
this.removeMovieClip();
Symbol 607 Button
on (press) {
_quality = "HIGH";
}
Symbol 610 Button
on (press) {
_quality = "MEDIUM";
}
Symbol 613 Button
on (press) {
_quality = "LOW";
}
Symbol 616 Button
on (release) {
this.saving();
_parent.sFlag = -1;
this.removeMovieClip();
}
Symbol 620 Button
on (release) {
_global.basicHp = 500;
}
Symbol 623 Button
on (release) {
_global.basicHp = 2000;
}
Symbol 626 Button
on (release) {
_global.basicHp = 3000;
}
Symbol 627 Button
on (release) {
_global.basicHp = 1000;
}
Symbol 629 Button
on (release) {
_global.resExt = 0.5;
}
Symbol 630 Button
on (release) {
_global.resExt = 2;
}
Symbol 631 Button
on (release) {
_global.resExt = 3;
}
Symbol 632 Button
on (release) {
_global.resExt = 1;
}
Symbol 637 Button
on (press) {
_global.gameLv = 1;
}
Symbol 640 Button
on (press) {
_global.gameLv = 0;
}
Symbol 643 Button
on (press) {
_global.gameLv = 2;
}
Symbol 646 Button
on (press) {
_global.gameLv = 3;
}
Symbol 652 Button
on (release) {
_global.cameraFlag = 0;
}
Symbol 655 Button
on (release) {
_global.cameraFlag = 1;
}
Symbol 656 MovieClip [scene_option] Frame 1
function saving() {
trace("\u8A2D\u5B9A\u30C7\u30FC\u30BF\u3092\u4FDD\u5B58");
_root.so.data.gameLv = _global.gameLv;
_root.so.data.quality = _quality;
_root.so.data.basicHp = _global.basicHp;
_root.so.data.resExt = _global.resExt;
_root.so.data.cameraFlag = _global.cameraFlag;
}
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";
}
if (_global.cameraFlag == 1) {
cameraF = "ON";
} else {
cameraF = "OFF";
}
this._x = this._x + ((thePointX - this._x) / moveExt);
this._y = this._y + ((thePointY - this._y) / moveExt);
};
Symbol 667 MovieClip [mona_cutIn] Frame 28
_root.mainStage[name].gotoAndStop("ext1-2");
this.removeMovieClip();
Symbol 671 MovieClip [endMask] Frame 30
_root.AllSountStop();
_root.gotoAndStop("title");
Symbol 673 MovieClip [karupisuAttack] 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);
}
Symbol 673 MovieClip [karupisuAttack] Frame 2
this._x = this._x + move;
tMove = tMove + move;
if (Math.abs(tMove) > 300) {
trace("bord\u3092\u6D88\u53BB\u3057\u307E\u3057\u305F\u3002");
this.removeMovieClip();
}
Instance of Symbol 116 MovieClip in Symbol 673 MovieClip [karupisuAttack] Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainStage[_parent.enemyName].dmgArea)) {
_root.mainStage[_parent.enemyName].damage(_global.karuC2dmg, _global.karuC2xf, _global.karuC2yf, _global.karuC2res);
_parent.removeMovieClip();
}
}
Symbol 673 MovieClip [karupisuAttack] Frame 3
this.gotoAndPlay(2);
Symbol 676 MovieClip [karuseijin_tobu] 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.onEnterFrame = function () {
this._x = this._x + speedX;
this._y = this._y + speedY;
if ((this._y > 600) && (this._y < -600)) {
this.removeMovieClip();
}
};
Instance of Symbol 116 MovieClip in Symbol 676 MovieClip [karuseijin_tobu] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainStage[_parent.enemyName].dmgArea)) {
_root.mainStage[_parent.enemyName].damage(_global.karuE2dmg, _global.karuE2xf, _global.karuE2yf, _global.karuE2res);
_parent.removeMovieClip();
}
}
Symbol 676 MovieClip [karuseijin_tobu] Frame 4
this.gotoAndPlay(2);
Symbol 706 MovieClip [char_nirat] Frame 1
this.onEnterFrame = function () {
sa = this._x - _root.mainStage[enemyName]._x;
if (sa > 0) {
this._xscale = -100;
} else {
this._xscale = 100;
}
};
Instance of Symbol 116 MovieClip in Symbol 706 MovieClip [char_nirat] Frame 57
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainStage[_parent.enemyName].dmgArea)) {
_root.mainStage[_parent.enemyName].damage(_global.niraSEdmg, _global.niraSExf, _global.niraSEyf, 1);
}
}
Symbol 706 MovieClip [char_nirat] Frame 68
this.onEnterFrame = null;
Symbol 706 MovieClip [char_nirat] Frame 95
this.removeMovieClip();
Symbol 713 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 716 MovieClip Frame 13
this.gotoAndPlay(4);
Symbol 716 MovieClip Frame 25
this.stop();
Symbol 731 MovieClip Frame 1
totalSize = _root.getBytesTotal();
totalSizeDis = Math.round(totalSize / 1000);
Instance of Symbol 727 MovieClip "bar" in Symbol 731 MovieClip Frame 1
onClipEvent (load) {
function sizeChange(barSize) {
trace(barSize);
this._xscale = barSize;
}
this.sizeChange(0);
}
Symbol 731 MovieClip Frame 2
loadedSize = _root.getBytesLoaded();
disLoadedSize = Math.round(loadedSize / 1000);
if (loadedSize >= totalSize) {
this.bar.sizeChange(100);
this.char.gotoAndPlay("end");
this.gotoAndStop(4);
} else {
parcent = (loadedSize / totalSize) * 100;
this.bar.sizeChange(parcent);
}
Symbol 731 MovieClip Frame 3
this.gotoAndPlay(_currentframe - 1);
Symbol 731 MovieClip Frame 4
this.stop();
Symbol 734 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 741 Button
on (release) {
_root.gotoAndStop("select");
}
Symbol 744 Button
on (release) {
_root.gotoAndStop("credit");
}
Symbol 747 Button
on (release) {
getURL ("http://www12.plala.or.jp/nextframe/", _blank);
}
Symbol 751 Button
on (release) {
_root.gotoAndStop("log");
}
Symbol 752 MovieClip Frame 10
this.stop();
Symbol 758 Button
on (release) {
this.carsorChange("ok");
}
on (rollOver) {
this.carsorChange("select");
}
on (rollOut, dragOut) {
if (_parent.sFlag != 1) {
this.carsorChange("out");
}
}
Symbol 770 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 770 MovieClip Frame 2
this.stop();
Symbol 770 MovieClip Frame 10
this.stop();
Instance of Symbol 767 MovieClip in Symbol 770 MovieClip Frame 20
onClipEvent (load) {
this.stop();
}
Symbol 770 MovieClip Frame 30
_parent.sFlag = 1;
this.stop();
Symbol 773 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 773 MovieClip Frame 2
this.stop();
Symbol 773 MovieClip Frame 10
this.stop();
Instance of Symbol 767 MovieClip in Symbol 773 MovieClip Frame 20
onClipEvent (load) {
this.stop();
}
Symbol 773 MovieClip Frame 30
_parent.sFlag = 1;
this.stop();
Instance of Symbol 241 MovieClip in Symbol 774 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 776 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 776 MovieClip Frame 2
this.stop();
Symbol 776 MovieClip Frame 10
this.stop();
Instance of Symbol 767 MovieClip in Symbol 776 MovieClip Frame 20
onClipEvent (load) {
this.stop();
}
Symbol 776 MovieClip Frame 30
_parent.sFlag = 1;
this.stop();
Symbol 779 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 779 MovieClip Frame 5
this.gotoAndPlay(_currentframe - 2);
Symbol 782 Button
on (release) {
_parent.sFlag = 0;
_parent.c13.ModeGo();
_global.gameMode = "1p";
}
Symbol 783 MovieClip Frame 1
basicPointX = this._x;
this.onEnterFrame = function () {
if (_parent.sFlag == -1) {
this._x = this._x + ((thePointToX - this._x) / moveExt);
} else {
this._x = this._x + ((basicPointX - this._x) / moveExt);
}
};
Symbol 786 Button
on (release) {
_parent.sFlag = 0;
_parent.c13.ModeGo();
_global.gameMode = "vs";
}
Symbol 787 MovieClip Frame 1
basicPointX = this._x;
this.onEnterFrame = function () {
if (_parent.sFlag == -1) {
this._x = this._x + ((thePointToX - this._x) / moveExt);
} else {
this._x = this._x + ((basicPointX - this._x) / moveExt);
}
};
Symbol 790 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 790 MovieClip Frame 2
this.stop();
Symbol 790 MovieClip Frame 10
this.stop();
Instance of Symbol 767 MovieClip in Symbol 790 MovieClip Frame 20
onClipEvent (load) {
this.stop();
}
Symbol 790 MovieClip Frame 30
_parent.sFlag = 1;
this.stop();
Symbol 794 MovieClip Frame 1
function CarsorChange(mode) {
if ((mode == "ok") && (_parent.sFlag == 0)) {
var i = (Math.random() * 5);
var name;
if (i > 4) {
name = "karu";
} else 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 794 MovieClip Frame 2
this.stop();
Symbol 794 MovieClip Frame 10
this.stop();
Instance of Symbol 767 MovieClip in Symbol 794 MovieClip Frame 20
onClipEvent (load) {
this.stop();
}
Symbol 794 MovieClip Frame 30
_parent.sFlag = 1;
this.stop();
Symbol 797 Button
on (release) {
_parent.sFlag = -2;
_parent.attachMovie("scene_option", "scene_option", 1);
_parent.scene_option._x = 0;
_parent.scene_option._y = -50;
}
Symbol 798 MovieClip Frame 1
basicPointX = this._x;
this.onEnterFrame = function () {
if (_parent.sFlag == -1) {
this._x = this._x + ((thePointToX - this._x) / moveExt);
} else {
this._x = this._x + ((basicPointX - this._x) / moveExt);
}
};
Symbol 801 Button
on (release) {
_parent.sFlag = 0;
_parent.c13.ModeGo();
_global.gameMode = "training";
}
Symbol 802 MovieClip Frame 1
basicPointX = this._x;
this.onEnterFrame = function () {
if (_parent.sFlag == -1) {
this._x = this._x + ((thePointToX - this._x) / moveExt);
} else {
this._x = this._x + ((basicPointX - this._x) / moveExt);
}
};
Symbol 805 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 805 MovieClip Frame 2
this.stop();
Symbol 805 MovieClip Frame 10
this.stop();
Instance of Symbol 767 MovieClip in Symbol 805 MovieClip Frame 20
onClipEvent (load) {
this.stop();
}
Symbol 805 MovieClip Frame 30
_parent.sFlag = 1;
this.stop();
Symbol 810 Button
on (release) {
_parent.sFlag = 0;
_parent.c13.ModeGo();
_global.gameMode = "normal";
}
Symbol 811 MovieClip Frame 1
basicPointX = this._x;
this.onEnterFrame = function () {
if (_parent.sFlag == -1) {
this._x = this._x + ((thePointToX - this._x) / moveExt);
} else {
this._x = this._x + ((basicPointX - this._x) / moveExt);
}
};
Symbol 815 MovieClip Frame 1
function CarsorChange(mode) {
if ((mode == "ok") && (_parent.sFlag == 0)) {
_global[_parent.tempChar] = "karu";
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 815 MovieClip Frame 2
this.stop();
Symbol 815 MovieClip Frame 10
this.stop();
Instance of Symbol 767 MovieClip in Symbol 815 MovieClip Frame 20
onClipEvent (load) {
this.stop();
}
Symbol 815 MovieClip Frame 30
_parent.sFlag = 1;
this.stop();
Symbol 816 Button
on (press) {
this.setCarsor("c1");
}
Symbol 817 Button
on (press) {
this.setCarsor("c2");
}
Symbol 818 Button
on (press) {
this.setCarsor("c3");
}
Symbol 819 Button
on (press) {
this.setCarsor("c4");
}
Symbol 820 Button
on (press) {
this.setCarsor("c5");
}
Symbol 823 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) {
if ((_global.gameMode == "vs") || (_global.gameMode == "normal")) {
this._x = this._x + ((-this._x) / moveExt);
this._y = this._y + ((77 - this._y) / moveExt);
} else if (_global.gameMode == "training") {
this._x = this._x + ((-this._x) / moveExt);
this._y = this._y + ((77 - this._y) / moveExt);
} else {
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 833 Button
on (press) {
cpu = (_global.cpuPower = 0);
cpu = cpu + 1;
}
Symbol 835 Button
on (press) {
cpu = (_global.cpuPowerv = 1);
cpu = cpu + 1;
}
Symbol 837 Button
on (press) {
cpu = (_global.cpuPower = 2);
cpu = cpu + 1;
}
Symbol 839 Button
on (press) {
cpu = (_global.cpuPower = 3);
cpu = cpu + 1;
}
Symbol 841 Button
on (press) {
cpu = (_global.cpuPower = 4);
cpu = cpu + 1;
}
Symbol 842 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 846 Button
on (release) {
_parent.play();
}
Symbol 847 MovieClip Frame 1
basicPointX = this._x;
basicPointY = this._y;
this.onEnterFrame = function () {
if (_parent.sFlag == 1) {
if ((_global.gameMode == "1p") || (_global.gameMode == "normal")) {
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 850 Button
on (release) {
this.mode = 0;
_parent.Cancel();
}
Symbol 851 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 858 Button
on (release) {
this.Action();
}
Symbol 859 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 861 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 863 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 865 MovieClip Frame 1
function Cancel() {
trace("\u30AD\u30E3\u30F3\u30BB\u30EB\u5B9F\u884C");
if (sFlag == 0) {
tempChar = "char1";
i = 1;
while (i < 20) {
name = "c" + i;
sFlag = 0;
this[name].CarsorChange("out");
this[name].SetLoc("c");
i++;
}
sFlag = -1;
} else {
i = 1;
while (i < 20) {
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 < 20) {
name = "c" + i;
this[name].SetLoc();
i++;
}
}
};
this.stop();
Instance of Symbol 754 MovieClip in Symbol 865 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 754 MovieClip in Symbol 865 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 754 MovieClip in Symbol 865 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 754 MovieClip in Symbol 865 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 754 MovieClip in Symbol 865 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 754 MovieClip in Symbol 865 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 754 MovieClip in Symbol 865 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 770 MovieClip "c1" in Symbol 865 MovieClip Frame 1
onClipEvent (load) {
thePointToX = -150;
thePointToY = 0;
}
Instance of Symbol 773 MovieClip "c2" in Symbol 865 MovieClip Frame 1
onClipEvent (load) {
thePointToX = -50;
thePointToY = 0;
}
Instance of Symbol 776 MovieClip "c4" in Symbol 865 MovieClip Frame 1
onClipEvent (load) {
thePointToX = 150;
thePointToY = 0;
}
Instance of Symbol 779 MovieClip in Symbol 865 MovieClip Frame 1
onClipEvent (load) {
thePointToX = 0;
thePointToY = -140;
}
Instance of Symbol 783 MovieClip in Symbol 865 MovieClip Frame 1
onClipEvent (load) {
thePointToX = 0;
thePointToY = -100;
}
Instance of Symbol 787 MovieClip in Symbol 865 MovieClip Frame 1
onClipEvent (load) {
thePointToX = 0;
thePointToY = -30;
}
Instance of Symbol 790 MovieClip "c3" in Symbol 865 MovieClip Frame 1
onClipEvent (load) {
thePointToX = 50;
thePointToY = 0;
}
Instance of Symbol 794 MovieClip "c13" in Symbol 865 MovieClip Frame 1
onClipEvent (load) {
thePointToX = 100;
thePointToY = 100;
}
Instance of Symbol 798 MovieClip in Symbol 865 MovieClip Frame 1
onClipEvent (load) {
thePointToX = 0;
thePointToY = 100;
}
Instance of Symbol 802 MovieClip in Symbol 865 MovieClip Frame 1
onClipEvent (load) {
thePointToX = 0;
thePointToY = 30;
}
Instance of Symbol 805 MovieClip "c14" in Symbol 865 MovieClip Frame 1
onClipEvent (load) {
thePointToX = -100;
thePointToY = 100;
}
Instance of Symbol 811 MovieClip in Symbol 865 MovieClip Frame 1
onClipEvent (load) {
thePointToX = 0;
thePointToY = -30;
}
Instance of Symbol 815 MovieClip "c15" in Symbol 865 MovieClip Frame 1
onClipEvent (load) {
thePointToX = 0;
thePointToY = 100;
}
Instance of Symbol 823 MovieClip "c11" in Symbol 865 MovieClip Frame 1
onClipEvent (load) {
thePointX = -110;
thePointY = 77;
}
Instance of Symbol 842 MovieClip "c12" in Symbol 865 MovieClip Frame 1
onClipEvent (load) {
thePointX = 110;
thePointY = 78;
}
Instance of Symbol 847 MovieClip "c10" in Symbol 865 MovieClip Frame 1
onClipEvent (load) {
thePointX = 15;
thePointY = 150;
}
Instance of Symbol 851 MovieClip "c13" in Symbol 865 MovieClip Frame 1
onClipEvent (load) {
mode = 0;
thePointX1 = 150;
thePointY1 = -25;
thePointX2 = 210;
thePointY2 = 150;
}
Instance of Symbol 859 MovieClip in Symbol 865 MovieClip Frame 1
onClipEvent (load) {
thePointX = 15;
thePointY = 150;
}
Instance of Symbol 861 MovieClip in Symbol 865 MovieClip Frame 1
onClipEvent (load) {
thePointToX = -160;
thePointToY = -30;
}
Instance of Symbol 863 MovieClip in Symbol 865 MovieClip Frame 1
onClipEvent (load) {
thePointToX = -160;
thePointToY = -30;
}
Symbol 865 MovieClip Frame 12
enemyList = new Array();
enemyList = ["mona", "si", "giko", "ninjya", "karu"];
_root.AllSountStop();
if (_global.gameMode == "normal") {
_global.nextList = new Array();
_global.nowStage = 0;
while (_global.nextList.length < 5) {
tempEnemy = Math.floor(Math.random() * enemyList.length);
_global.nextList.push(enemyList[tempEnemy]);
enemyList.splice(tempEnemy, 1);
}
trace("\u6575\u308A\u3059\u3068=" + nextList);
_root.gotoAndStop("nextEnemy");
} else if (_global.gameMode == "1p") {
rand = Math.floor(Math.random() * enemyList.length);
trace("enemy" + rand);
_global.char2 = enemyList[rand];
}
_root.gotoAndStop("select2");
Symbol 868 MovieClip Frame 1
this.stop();
Symbol 868 MovieClip Frame 10
this.stop();
Symbol 868 MovieClip Frame 19
this.stop();
Symbol 868 MovieClip Frame 29
this.stop();
Symbol 868 MovieClip Frame 39
this.stop();
Symbol 868 MovieClip Frame 49
this.stop();
Symbol 868 MovieClip Frame 58
this.stop();
Symbol 871 MovieClip Frame 1
temp = "s" + _global.nowStage;
this.gotoAndStop(temp);
Instance of Symbol 868 MovieClip in Symbol 871 MovieClip Frame 1
onClipEvent (load) {
no = 0;
this.gotoAndStop(_global.nextList[no]);
}
Instance of Symbol 868 MovieClip in Symbol 871 MovieClip Frame 1
onClipEvent (load) {
no = 1;
this.gotoAndStop(_global.nextList[no]);
}
Instance of Symbol 868 MovieClip in Symbol 871 MovieClip Frame 1
onClipEvent (load) {
no = 2;
this.gotoAndStop(_global.nextList[no]);
}
Instance of Symbol 868 MovieClip in Symbol 871 MovieClip Frame 1
onClipEvent (load) {
no = 3;
this.gotoAndStop(_global.nextList[no]);
}
Instance of Symbol 868 MovieClip in Symbol 871 MovieClip Frame 1
onClipEvent (load) {
no = 4;
this.gotoAndStop(_global.nextList[no]);
}
Instance of Symbol 754 MovieClip in Symbol 875 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 754 MovieClip in Symbol 875 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 754 MovieClip in Symbol 875 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 754 MovieClip in Symbol 875 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 754 MovieClip in Symbol 875 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 754 MovieClip in Symbol 875 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 754 MovieClip in Symbol 875 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;
}
Symbol 875 MovieClip Frame 48
if (_global.nowStage < 1) {
_global.cpuPower = 0;
} else if (_global.nowStage < 2) {
_global.cpuPower = 1;
} else if (_global.nowStage < 3) {
_global.cpuPower = 2;
} else if (_global.nowStage < 4) {
_global.cpuPower = 3;
} else if (_global.nowStage < 5) {
_global.cpuPower = 4;
}
_global.char2 = _global.nextList[_global.nowStage];
trace("\u6B21\u306E\u6575\u306F=" + _global.char2);
trace("CPULV=" + _global.cpuPower);
Symbol 875 MovieClip Frame 82
_root.AllSountStop();
_root.gotoAndStop("select2");
Symbol 881 MovieClip Frame 10
this.stop();
Symbol 887 MovieClip Frame 1
_visible = false;
Instance of Symbol 888 MovieClip in Symbol 890 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 888 MovieClip in Symbol 890 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 890 MovieClip Frame 115
_root.AllSountStop();
_root.gotoAndStop("game");
Instance of Symbol 888 MovieClip in Symbol 890 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 888 MovieClip in Symbol 890 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 899 MovieClip Frame 1
function SelectBgm(name) {
trace("BGMBOX\u97F3\u697D\u5909\u66F4");
_root.AllSountStop();
if (name != "niraS") {
this.gotoAndPlay(name);
} else {
this.gotoAndPlay("si");
}
}
trace("BGMBOX\u5B58\u5728\u3057\u307E\u3059");
this.stop();
Symbol 899 MovieClip Frame 11
this.stop();
Symbol 899 MovieClip Frame 21
this.stop();
Symbol 899 MovieClip Frame 31
this.stop();
Symbol 899 MovieClip Frame 41
this.stop();
Symbol 899 MovieClip Frame 51
this.stop();
Symbol 899 MovieClip Frame 61
this.stop();
Symbol 905 MovieClip Frame 1
this.onEnterFrame = function () {
if (_global.gameMode == "vs") {
if (_root.mainStage.mainChar2 != undefined) {
this._x = this._x - ((this._x - _parent.mainChar2._x) / 2);
this._y = this._y - ((this._y - _parent.mainChar2._y) / 2);
} else {
this._y = -300;
}
}
};
Symbol 909 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.mainStage.mainChar1 != undefined) {
this._x = this._x - ((this._x - _parent.mainChar1._x) / 2);
this._y = this._y - ((this._y - _parent.mainChar1._y) / 2);
} else {
this._y = -300;
}
};
Symbol 930 MovieClip Frame 1
function Look() {
_visible = (!_visible);
}
_visible = false;
Symbol 933 Button
on (press) {
cpu = (_global.cpuPower = 1);
cpu = cpu + 1;
}
Symbol 934 Button
on (release) {
_root.AllSountStop();
_root.RemoveAllItem();
_root.gotoAndStop("select");
}
Symbol 936 Button
on (press) {
cpu = (_global.cpuPower = -1);
cpu = "\u6B62";
}
Symbol 938 Button
on (press) {
this.gotoAndStop(2);
}
Symbol 939 Button
on (press) {
this.gotoAndStop(1);
}
Symbol 941 MovieClip Frame 1
this.onEnterFrame = function () {
if (flag > 0) {
_global.mainChar1ext = 1;
}
};
flag = 0;
this.stop();
Symbol 941 MovieClip Frame 2
flag = 1;
this.stop();
Symbol 942 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 945 MovieClip Frame 1
bx = this._x;
by = this._y;
this.onEnterFrame = function () {
if (_parent.flag) {
this._x = this._x + ((tx - this._x) / _parent.moveExt);
this._y = this._y + ((ty - this._y) / _parent.moveExt);
this.tx = this.tx + _parent.xMove;
} else {
this._x = this._x + ((bx - this._x) / (_parent.moveExt / 2));
this._y = this._y + ((by - this._y) / (_parent.moveExt / 2));
}
};
Symbol 948 MovieClip Frame 1
bx = this._x;
by = this._y;
this.onEnterFrame = function () {
if (_parent.flag) {
this._x = this._x + ((tx - this._x) / _parent.moveExt);
this._y = this._y + ((ty - this._y) / _parent.moveExt);
this.tx = this.tx + _parent.xMove;
} else {
this._x = this._x + ((bx - this._x) / (_parent.moveExt / 2));
this._y = this._y + ((by - this._y) / (_parent.moveExt / 2));
}
};
Symbol 950 MovieClip Frame 1
bx = this._x;
by = this._y;
this.onEnterFrame = function () {
if (_parent.flag) {
this._x = this._x + ((tx - this._x) / _parent.moveExt);
this._y = this._y + ((ty - this._y) / _parent.moveExt);
this.tx = this.tx + _parent.xMove;
} else {
this._x = this._x + ((bx - this._x) / (_parent.moveExt / 2));
this._y = this._y + ((by - this._y) / (_parent.moveExt / 2));
}
};
Symbol 952 MovieClip Frame 1
bx = this._x;
by = this._y;
this.onEnterFrame = function () {
if (_parent.flag) {
this._x = this._x + ((tx - this._x) / _parent.moveExt);
this._y = this._y + ((ty - this._y) / _parent.moveExt);
this.tx = this.tx + _parent.xMove;
} else {
this._x = this._x + ((bx - this._x) / (_parent.moveExt / 2));
this._y = this._y + ((by - this._y) / (_parent.moveExt / 2));
}
};
Symbol 956 MovieClip Frame 1
moveExt = 3;
xMove = 0.2;
flag = 1;
Symbol 956 MovieClip Frame 5
moveExt = 3;
xMove = 0.2;
flag = 1;
Instance of Symbol 945 MovieClip in Symbol 956 MovieClip Frame 6
onClipEvent (load) {
tx = -120.6;
ty = -3.2;
}
Instance of Symbol 948 MovieClip in Symbol 956 MovieClip Frame 8
onClipEvent (load) {
tx = -62;
ty = -3.5;
}
Instance of Symbol 542 MovieClip in Symbol 956 MovieClip Frame 10
onClipEvent (load) {
tx = -0.1;
ty = -4;
}
Instance of Symbol 950 MovieClip in Symbol 956 MovieClip Frame 12
onClipEvent (load) {
tx = 61.7;
ty = -3.9;
}
Instance of Symbol 952 MovieClip in Symbol 956 MovieClip Frame 14
onClipEvent (load) {
tx = 120.3;
ty = -4.5;
}
Symbol 956 MovieClip Frame 44
flag = 0;
Symbol 956 MovieClip Frame 51
_root.mainStage.mainChar1.actionFlag = 1;
_root.mainStage.mainChar2.actionFlag = 1;
Symbol 956 MovieClip Frame 78
this.stop();
Symbol 960 Button
on (press) {
_quality = "MEDIUM";
}
Symbol 964 Button
on (press) {
_quality = "LOW";
}
Symbol 968 Button
on (press) {
_quality = "HIGH";
}
Symbol 973 Button
on (release) {
_root.help.Look();
}
Symbol 977 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 979 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 = 1);
}
if (this._xscale > 100) {
this._xscale = (this._yscale = this._yscale - ((this._xscale - 100) / 5));
}
}
disRes = (_global.res = 1);
resFlag = 1;
waitTime = 7000;
waitTimeCnt = 0;
timeAattackUp = 5000;
mainChar1cnt = 0;
mainChar2cnt = 0;
kiribanList = new Array();
kiribanList = [100, 200, 300, 400, 500, 600, 700, 800, 900, 1000];
this.onEnterFrame = function () {
this.AttackUpCount();
this.AllSystem();
};
Symbol 1006 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 1010 MovieClip Frame 1
Symbol 1010 MovieClip Frame 9
this.stop();
Symbol 1014 MovieClip Frame 1
this.onEnterFrame = function () {
if (_parent.kusaMoveFlag) {
this._x = this._x - 0.5;
if (this._x < -280) {
this._x = 280;
}
}
};
Symbol 1014 MovieClip Frame 20
this.stop();
Symbol 1015 MovieClip Frame 11
this.gotoAndPlay("walk");
Symbol 1015 MovieClip Frame 17
this._xscale = -100;
this.stop();
Symbol 1015 MovieClip Frame 22
this.stop();
Symbol 1016 MovieClip Frame 13
this.gotoAndPlay(1);
Symbol 1016 MovieClip Frame 19
this.stop();
Symbol 1016 MovieClip Frame 24
this.stop();
Symbol 1049 MovieClip Frame 1
function End() {
endFlag = 1;
this.attachMovie("endMask", endMask, 1);
this.endMask._x = 186;
this.endMask._y = -34;
}
_root.RemoveAllItem();
kusaMoveFlag = 1;
endFlag = 0;
vol = 100;
theSound = new Sound(this);
endCount = 0;
this.onMouseDown = function () {
this.EndCount++;
};
this.onEnterFrame = function () {
if (Key.isDown(90)) {
if (zTrigger) {
endCount++;
}
zTrigger = 0;
} else {
zTrigger = 1;
}
if ((endCount > 2) && (endFlag == 0)) {
this.End();
}
if ((vol > 0) && (endFlag)) {
vol = vol - 5;
theSound.setVolume(vol);
}
};
Symbol 1049 MovieClip Frame 842
kusaMoveFlag = 0;
Instance of Symbol 1015 MovieClip in Symbol 1049 MovieClip Frame 907
onClipEvent (load) {
this.gotoAndPlay("a1");
}
Instance of Symbol 1016 MovieClip in Symbol 1049 MovieClip Frame 915
onClipEvent (load) {
this.gotoAndPlay("a1");
}
Instance of Symbol 1015 MovieClip in Symbol 1049 MovieClip Frame 955
onClipEvent (load) {
this._xscale = -100;
this.gotoAndPlay("a2");
}
Instance of Symbol 1016 MovieClip in Symbol 1049 MovieClip Frame 955
onClipEvent (load) {
this.gotoAndPlay("a2");
}
Symbol 1049 MovieClip Frame 1037
this.stop();
Symbol 1055 MovieClip Frame 1
Symbol 1055 MovieClip Frame 9
this.stop();