STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228091
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5121

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/71480548?noj=FRM71480548-4DC" width="1" height="1"></div>

mahou shoujo madoka magica tomoe mami kyubey gertrud (madoka magica) adelbert mathieu takagi saburou flash game gun huge filesize magical musket weapon witch's labyrinth.swf

This is the info page for
Flash #135706

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
movieClip 19998 nowloda { frame 1 { function cMC(name, depth, x, y, target) { if (!target) { createEmptyMovieClip(name, depth); } else { (eval(target)).createEmptyMovieClip(name, depth); name = target + '.' + name; } with (eval(name)) { _x = x; _y = y; _yscale = sc * 100; _xscale = sc * 100; } } function cTX(name, depth, value, x, y, w, h, align, tf) { if (align.indexOf('l') == -1) { if (align.indexOf('r') == -1) { tx = w * -1 / 2; } else { tx = w * -1; } } else { tx = 0; } if (align.indexOf('t') == -1) { if (align.indexOf('b') == -1) { ty = h * -1 / 2; } else { ty = h * -1; } } else { ty = 0; } cMC(name, depth, x, y); (eval(name)).createTextField(name, 1, tx, ty, w, h); with (eval(name + '.' + name)) { text = value; selectable = false; setTextFormat(tf); if (_parent._parent.t_border == 1) { border = true; } } } function cTF(name, sz, cl, fn, ag, st) { with (eval(name)) { size = sz; color = cl; font = fn; align = ag; if (st.indexOf('b') != -1) { bold = true; } else { bold = false; } if (st.indexOf('i') != -1) { italic = true; } else { italic = false; } if (st.indexOf('u') != -1) { underline = true; } else { underline = false; } } } function setQuality(q) { _quality = q; qh.qh.setTextFormat(TFqb1); qm.qm.setTextFormat(TFqb1); ql.ql.setTextFormat(TFqb1); if (_quality != 'HIGH') { if (_quality != 'MEDIUM') { if (_quality == 'LOW') { ql.ql.setTextFormat(TFqb2); } } else { qm.qm.setTextFormat(TFqb2); } } else { qh.qh.setTextFormat(TFqb2); } } function onEnterFrame() { if (loaded >= 100) { if (loaded == 100) { if (autoplay != 1) { cTX('pb', 300, '>Play', x * 50, y * 45, 56, 28, 'cm', TFpb1); pb.onPress = function () { _root.play(); }; pb.onRollOver = function () { pb.pb.setTextFormat(TFpb2); }; pb.onRollOut = function () { pb.pb.setTextFormat(TFpb1); }; stat_txt.stat_txt.text = 'completed.'; stat_txt.stat_txt.setTextFormat(TFstat); } else { _root.play(); } loaded = 200; } } else { if (1 < _root._currentframe) { _root.gotoAndStop(1); } if (test_preview != 0) { if (test_preview != 0) { loaded += test_preview; } } else { loaded = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); } per.per.text = loaded + '%'; per.per.setTextFormat(TFper); with (mtMC) { clear(); lineStyle(3, c_mt, 100); moveTo(0, 80 * y); lineTo(loaded * x, 80 * y); } } } color_scheme = 2; autoplay = 0; q_button = 1; percentage = 1; stat_view = 1; parts_stretch = 0; test_preview = 0; if (test_preview != 0) { pb.removeMovieClip(); } x = Stage.width / 100; y = Stage.height / 100; if (parts_stretch != 1) { _global.sc = 1; } else { _global.sc = Stage.height / 240; } loaded = 0; t_border = 0; if (color_scheme != 1) { if (color_scheme == 2) { c_pb1 = 12303291; c_qb1 = 10066329; c_per = 12303291; c_pb2 = 16777215; c_qb2 = 14540253; c_stat = 13421772; c_bg = 0; c_mt = 13421772; } } else { c_pb1 = 8947848; c_qb1 = 11184810; c_per = 4473924; c_pb2 = 2236962; c_qb2 = 2236962; c_stat = 7829367; c_bg = 16777215; c_mt = 4473924; } TFpb1 = new TextFormat(); TFpb2 = new TextFormat(); TFqb1 = new TextFormat(); TFqb2 = new TextFormat(); TFper = new TextFormat(); TFstat = new TextFormat(); cTF('TFpb1', 20, c_pb1, '_serif', 'center', 'b'); cTF('TFpb2', 20, c_pb2, '_serif', 'center', 'b'); cTF('TFqb1', 14, c_qb1, '_serif', 'center', 'b'); cTF('TFqb2', 14, c_qb2, '_serif', 'center', 'b'); cTF('TFper', 22, c_per, '_serif', 'right', 'bi'); cTF('TFstat', 12, c_stat, '_serif', 'left', 'i'); if (q_button == 1) { cTX('qh', 201, 'High', 5 * sc, 5 * y, 42, 22, 'lm', TFqb1); cTX('qm', 202, 'Medium', 47 * sc, 5 * y, 58, 22, 'lm', TFqb1); cTX('ql', 203, 'Low', 105 * sc, 5 * y, 36, 22, 'lm', TFqb1); if (_quality != 'HIGH') { if (_quality != 'MEDIUM') { if (_quality == 'LOW') { setQuality('LOW'); } } else { setQuality('MEDIUM'); } } else { setQuality('HIGH'); } qh.onPress = function () { setQuality('HIGH'); }; qm.onPress = function () { setQuality('MEDIUM'); }; ql.onPress = function () { setQuality('LOW'); }; } if (percentage == 1) { cTX('per', 200, 0, 50 * x, 90 * y, 60, 40, 'cm', TFper); } if (stat_view == 1) { cTX('stat_txt', 100, 'Now loading...', 2 * x, 98 * y, 150, 19, 'lb', TFstat); } createEmptyMovieClip('bgMC', 1); with (bgMC) { lineStyle(); beginFill(c_bg, 100); lineTo(x * 100, 0); lineTo(x * 100, y * 100); lineTo(0, y * 100); lineTo(0, 0); endFill(); } createEmptyMovieClip('mtMC', 2); } frame 2 { stop(); } } movieClip 1380 9 { } movieClip 1378 8 { } movieClip 1376 7 { } movieClip 1374 6 { } movieClip 1372 5 { } movieClip 1370 4 { } movieClip 1368 3 { } movieClip 1364 2 { } movieClip 1362 1 { } movieClip 1366 0 { } movieClip 1384 -1 { instance minus of movieClip 1388 マイナス { onClipEvent (load) { this._visible = false; } } } movieClip 1388 マイナス { } movieClip 1414 Lv { } movieClip 1424 Hpイメージ { } movieClip 1420 Hpケージ { } movieClip 1418 パラメータ { instance hp of movieClip 1420 Hpケージ { onClipEvent (load) { this.Num = 0; this.OldNum = -1; this.Size = 375; this.MaxSize = 128; } onClipEvent (enterFrame) { if (this.OldNum != this.Num) { that = _parent._parent; var Hp = ((that.HpCountLim - that.HpCount) / that.HpCountLim) * (this.MaxSize / this.Size) * 100; this.image._xscale = Hp; this.OldNum = this.Num; } } } } movieClip 1386 負 { instance minus of movieClip 1388 マイナス { onClipEvent (load) { this._visible = false; } } } movieClip 1412 数 { instance num of movieClip 1360 ナンバー { onClipEvent (load) { this.Num = 0; this.OldNum = -1; this.Size = 40; } onClipEvent (enterFrame) { if (this.OldNum != this.Num) { var TempNum = this.Num; var digit = 0; var MinusFlag = 0; var TempDigitNum = 0; var that; if (this.Num < 0) { this.Num *= -1; MinusFlag = 1; } var n = 0; goto 300; for (;;) { ++n; label 300: if (n >= 7) break; TempNum *= 0.1; ++digit; if (TempNum < 1) { } else {} } if (6 < digit) { this.Num = 999999; digit = 6; } TempNum = this.Num; var n = 1; goto 468; for (;;) { ++n; label 468: if (digit < n) break; TempDigitNum = int(TempNum) % 10; TempNum *= 0.1; if (n == 1) { that = this.digit1; goto 780; } else { if (n == 2) { that = this.digit2; goto 780; } else { if (n == 3) { that = this.digit3; goto 780; } else { if (n == 4) { that = this.digit4; goto 780; } else { if (n == 5) { that = this.digit5; goto 780; } else { if (n == 6) { that = this.digit6; } else {} } } } } } label 780: n; that.Num = TempDigitNum; that._x = this.Size * (digit + MinusFlag - n); } var n = digit + 1; goto 875; for (;;) { ++n; label 875: if (n >= 7) break; if (n == 1) { that = this.digit1; goto 1148; } else { if (n == 2) { that = this.digit2; goto 1148; } else { if (n == 3) { that = this.digit3; goto 1148; } else { if (n == 4) { that = this.digit4; goto 1148; } else { if (n == 5) { that = this.digit5; goto 1148; } else { if (n == 6) { that = this.digit6; } else {} } } } } } label 1148: n; that.Num = -1; } if (!MinusFlag) { minus.Num = 0; } else { minus.Num = 1; } this.OldNum = this.Num; } } } } movieClip 1382 桁 { instance n9 of movieClip 1380 9 { onClipEvent (load) { this._visible = false; } } instance n8 of movieClip 1378 8 { onClipEvent (load) { this._visible = false; } } instance n7 of movieClip 1376 7 { onClipEvent (load) { this._visible = false; } } instance n6 of movieClip 1374 6 { onClipEvent (load) { this._visible = false; } } instance n5 of movieClip 1372 5 { onClipEvent (load) { this._visible = false; } } instance n4 of movieClip 1370 4 { onClipEvent (load) { this._visible = false; } } instance n3 of movieClip 1368 3 { onClipEvent (load) { this._visible = false; } } instance n2 of movieClip 1364 2 { onClipEvent (load) { this._visible = false; } } instance n1 of movieClip 1362 1 { onClipEvent (load) { this._visible = false; } } instance n0 of movieClip 1366 0 { onClipEvent (load) { this._visible = false; } } } movieClip 1360 ナンバー { instance digit1 of movieClip 1382 桁 { onClipEvent (load) { this.Num = -1; this.OldNum = -1; } onClipEvent (enterFrame) { if (this.OldNum != this.Num) { if (this.OldNum == -1) { goto 590; } else { if (this.OldNum == 0) { this.n0._visible = false; goto 590; } else { if (this.OldNum == 1) { this.n1._visible = false; goto 590; } else { if (this.OldNum == 2) { this.n2._visible = false; goto 590; } else { if (this.OldNum == 3) { this.n3._visible = false; goto 590; } else { if (this.OldNum == 4) { this.n4._visible = false; goto 590; } else { if (this.OldNum == 5) { this.n5._visible = false; goto 590; } else { if (this.OldNum == 6) { this.n6._visible = false; goto 590; } else { if (this.OldNum == 7) { this.n7._visible = false; goto 590; } else { if (this.OldNum == 8) { this.n8._visible = false; goto 590; } else { if (this.OldNum == 9) { this.n9._visible = false; } else {} } } } } } } } } } } label 590: this.OldNum; if (this.Num == -1) { goto 1089; } else { if (this.Num == 0) { this.n0._visible = true; goto 1089; } else { if (this.Num == 1) { this.n1._visible = true; goto 1089; } else { if (this.Num == 2) { this.n2._visible = true; goto 1089; } else { if (this.Num == 3) { this.n3._visible = true; goto 1089; } else { if (this.Num == 4) { this.n4._visible = true; goto 1089; } else { if (this.Num == 5) { this.n5._visible = true; goto 1089; } else { if (this.Num == 6) { this.n6._visible = true; goto 1089; } else { if (this.Num == 7) { this.n7._visible = true; goto 1089; } else { if (this.Num == 8) { this.n8._visible = true; goto 1089; } else { if (this.Num == 9) { this.n9._visible = true; } else {} } } } } } } } } } } label 1089: this.Num; this.OldNum = this.Num; } } } instance digit2 of movieClip 1382 桁 { onClipEvent (load) { this.Num = -1; this.OldNum = -1; } onClipEvent (enterFrame) { if (this.OldNum != this.Num) { if (this.OldNum == -1) { goto 590; } else { if (this.OldNum == 0) { this.n0._visible = false; goto 590; } else { if (this.OldNum == 1) { this.n1._visible = false; goto 590; } else { if (this.OldNum == 2) { this.n2._visible = false; goto 590; } else { if (this.OldNum == 3) { this.n3._visible = false; goto 590; } else { if (this.OldNum == 4) { this.n4._visible = false; goto 590; } else { if (this.OldNum == 5) { this.n5._visible = false; goto 590; } else { if (this.OldNum == 6) { this.n6._visible = false; goto 590; } else { if (this.OldNum == 7) { this.n7._visible = false; goto 590; } else { if (this.OldNum == 8) { this.n8._visible = false; goto 590; } else { if (this.OldNum == 9) { this.n9._visible = false; } else {} } } } } } } } } } } label 590: this.OldNum; if (this.Num == -1) { goto 1089; } else { if (this.Num == 0) { this.n0._visible = true; goto 1089; } else { if (this.Num == 1) { this.n1._visible = true; goto 1089; } else { if (this.Num == 2) { this.n2._visible = true; goto 1089; } else { if (this.Num == 3) { this.n3._visible = true; goto 1089; } else { if (this.Num == 4) { this.n4._visible = true; goto 1089; } else { if (this.Num == 5) { this.n5._visible = true; goto 1089; } else { if (this.Num == 6) { this.n6._visible = true; goto 1089; } else { if (this.Num == 7) { this.n7._visible = true; goto 1089; } else { if (this.Num == 8) { this.n8._visible = true; goto 1089; } else { if (this.Num == 9) { this.n9._visible = true; } else {} } } } } } } } } } } label 1089: this.Num; this.OldNum = this.Num; } } } instance digit3 of movieClip 1382 桁 { onClipEvent (load) { this.Num = -1; this.OldNum = -1; } onClipEvent (enterFrame) { if (this.OldNum != this.Num) { if (this.OldNum == -1) { goto 590; } else { if (this.OldNum == 0) { this.n0._visible = false; goto 590; } else { if (this.OldNum == 1) { this.n1._visible = false; goto 590; } else { if (this.OldNum == 2) { this.n2._visible = false; goto 590; } else { if (this.OldNum == 3) { this.n3._visible = false; goto 590; } else { if (this.OldNum == 4) { this.n4._visible = false; goto 590; } else { if (this.OldNum == 5) { this.n5._visible = false; goto 590; } else { if (this.OldNum == 6) { this.n6._visible = false; goto 590; } else { if (this.OldNum == 7) { this.n7._visible = false; goto 590; } else { if (this.OldNum == 8) { this.n8._visible = false; goto 590; } else { if (this.OldNum == 9) { this.n9._visible = false; } else {} } } } } } } } } } } label 590: this.OldNum; if (this.Num == -1) { goto 1089; } else { if (this.Num == 0) { this.n0._visible = true; goto 1089; } else { if (this.Num == 1) { this.n1._visible = true; goto 1089; } else { if (this.Num == 2) { this.n2._visible = true; goto 1089; } else { if (this.Num == 3) { this.n3._visible = true; goto 1089; } else { if (this.Num == 4) { this.n4._visible = true; goto 1089; } else { if (this.Num == 5) { this.n5._visible = true; goto 1089; } else { if (this.Num == 6) { this.n6._visible = true; goto 1089; } else { if (this.Num == 7) { this.n7._visible = true; goto 1089; } else { if (this.Num == 8) { this.n8._visible = true; goto 1089; } else { if (this.Num == 9) { this.n9._visible = true; } else {} } } } } } } } } } } label 1089: this.Num; this.OldNum = this.Num; } } } instance digit4 of movieClip 1382 桁 { onClipEvent (load) { this.Num = -1; this.OldNum = -1; } onClipEvent (enterFrame) { if (this.OldNum != this.Num) { if (this.OldNum == -1) { goto 590; } else { if (this.OldNum == 0) { this.n0._visible = false; goto 590; } else { if (this.OldNum == 1) { this.n1._visible = false; goto 590; } else { if (this.OldNum == 2) { this.n2._visible = false; goto 590; } else { if (this.OldNum == 3) { this.n3._visible = false; goto 590; } else { if (this.OldNum == 4) { this.n4._visible = false; goto 590; } else { if (this.OldNum == 5) { this.n5._visible = false; goto 590; } else { if (this.OldNum == 6) { this.n6._visible = false; goto 590; } else { if (this.OldNum == 7) { this.n7._visible = false; goto 590; } else { if (this.OldNum == 8) { this.n8._visible = false; goto 590; } else { if (this.OldNum == 9) { this.n9._visible = false; } else {} } } } } } } } } } } label 590: this.OldNum; if (this.Num == -1) { goto 1089; } else { if (this.Num == 0) { this.n0._visible = true; goto 1089; } else { if (this.Num == 1) { this.n1._visible = true; goto 1089; } else { if (this.Num == 2) { this.n2._visible = true; goto 1089; } else { if (this.Num == 3) { this.n3._visible = true; goto 1089; } else { if (this.Num == 4) { this.n4._visible = true; goto 1089; } else { if (this.Num == 5) { this.n5._visible = true; goto 1089; } else { if (this.Num == 6) { this.n6._visible = true; goto 1089; } else { if (this.Num == 7) { this.n7._visible = true; goto 1089; } else { if (this.Num == 8) { this.n8._visible = true; goto 1089; } else { if (this.Num == 9) { this.n9._visible = true; } else {} } } } } } } } } } } label 1089: this.Num; this.OldNum = this.Num; } } } instance digit5 of movieClip 1382 桁 { onClipEvent (load) { this.Num = -1; this.OldNum = -1; } onClipEvent (enterFrame) { if (this.OldNum != this.Num) { if (this.OldNum == -1) { goto 590; } else { if (this.OldNum == 0) { this.n0._visible = false; goto 590; } else { if (this.OldNum == 1) { this.n1._visible = false; goto 590; } else { if (this.OldNum == 2) { this.n2._visible = false; goto 590; } else { if (this.OldNum == 3) { this.n3._visible = false; goto 590; } else { if (this.OldNum == 4) { this.n4._visible = false; goto 590; } else { if (this.OldNum == 5) { this.n5._visible = false; goto 590; } else { if (this.OldNum == 6) { this.n6._visible = false; goto 590; } else { if (this.OldNum == 7) { this.n7._visible = false; goto 590; } else { if (this.OldNum == 8) { this.n8._visible = false; goto 590; } else { if (this.OldNum == 9) { this.n9._visible = false; } else {} } } } } } } } } } } label 590: this.OldNum; if (this.Num == -1) { goto 1089; } else { if (this.Num == 0) { this.n0._visible = true; goto 1089; } else { if (this.Num == 1) { this.n1._visible = true; goto 1089; } else { if (this.Num == 2) { this.n2._visible = true; goto 1089; } else { if (this.Num == 3) { this.n3._visible = true; goto 1089; } else { if (this.Num == 4) { this.n4._visible = true; goto 1089; } else { if (this.Num == 5) { this.n5._visible = true; goto 1089; } else { if (this.Num == 6) { this.n6._visible = true; goto 1089; } else { if (this.Num == 7) { this.n7._visible = true; goto 1089; } else { if (this.Num == 8) { this.n8._visible = true; goto 1089; } else { if (this.Num == 9) { this.n9._visible = true; } else {} } } } } } } } } } } label 1089: this.Num; this.OldNum = this.Num; } } } instance digit6 of movieClip 1382 桁 { onClipEvent (load) { this.Num = -1; this.OldNum = -1; } onClipEvent (enterFrame) { if (this.OldNum != this.Num) { if (this.OldNum == -1) { goto 590; } else { if (this.OldNum == 0) { this.n0._visible = false; goto 590; } else { if (this.OldNum == 1) { this.n1._visible = false; goto 590; } else { if (this.OldNum == 2) { this.n2._visible = false; goto 590; } else { if (this.OldNum == 3) { this.n3._visible = false; goto 590; } else { if (this.OldNum == 4) { this.n4._visible = false; goto 590; } else { if (this.OldNum == 5) { this.n5._visible = false; goto 590; } else { if (this.OldNum == 6) { this.n6._visible = false; goto 590; } else { if (this.OldNum == 7) { this.n7._visible = false; goto 590; } else { if (this.OldNum == 8) { this.n8._visible = false; goto 590; } else { if (this.OldNum == 9) { this.n9._visible = false; } else {} } } } } } } } } } } label 590: this.OldNum; if (this.Num == -1) { goto 1089; } else { if (this.Num == 0) { this.n0._visible = true; goto 1089; } else { if (this.Num == 1) { this.n1._visible = true; goto 1089; } else { if (this.Num == 2) { this.n2._visible = true; goto 1089; } else { if (this.Num == 3) { this.n3._visible = true; goto 1089; } else { if (this.Num == 4) { this.n4._visible = true; goto 1089; } else { if (this.Num == 5) { this.n5._visible = true; goto 1089; } else { if (this.Num == 6) { this.n6._visible = true; goto 1089; } else { if (this.Num == 7) { this.n7._visible = true; goto 1089; } else { if (this.Num == 8) { this.n8._visible = true; goto 1089; } else { if (this.Num == 9) { this.n9._visible = true; } else {} } } } } } } } } } } label 1089: this.Num; this.OldNum = this.Num; } } } instance minus of movieClip 1386 負 { onClipEvent (load) { this.Num = -1; this.OldNum = -1; } onClipEvent (enterFrame) { if (this.OldNum != this.Num) { if (this.Num != 1) { if (this.Num == 0) { this.minus._visible = false; } } else { this.minus._visible = true; } this.OldNum = this.Num; } } } } movieClip 478 オープニング { } movieClip 482 ロゴ { } movieClip 486 ボタンイメージ1 { } movieClip 490 ボタンSE { frame 2 { stop(); } frame 4 { stop(); } frame 6 { stop(); } } movieClip 488 ボタンイメージ2 { } movieClip 480 ボタン { instance image1 of movieClip 486 ボタンイメージ1 { onClipEvent (load) { _visible = true; } } instance image2 of movieClip 488 ボタンイメージ2 { onClipEvent (load) { _visible = false; } } } movieClip 772 ボタンイメージ2over { } movieClip 770 ボタンイメージ1over { } movieClip 610 ボタンover { instance image2 of movieClip 772 ボタンイメージ2over { onClipEvent (load) { _visible = false; } } instance image1 of movieClip 770 ボタンイメージ1over { onClipEvent (load) { _visible = true; } } } movieClip 476 ロゴOver { } movieClip 600 カーテンクローズ { } movieClip 602 カーテンキープ { } movieClip 30 world { } movieClip 598 ワールドフロント { instance cpGage of movieClip 496 CPゲージ { onClipEvent (load) { this.Char = WMyCharEval; this.Count = 0; this.OldChargePoint = 0; this.AppFlag = false; if (this == _parent.cpGage) { var n = 0; goto 249; for (;;) { ++n; label 249: if (n >= WWeaponNum) break; (eval('_parent.cpGage' + n)).removeMovieClip(); duplicateMovieClip('_parent.cpGage', 'cpGage' + n, 16384); var tempEval; tempEval = eval('_parent.cpGage' + n); tempEval._x = n * 30 + 140; tempEval._visible = true; } } } onClipEvent (enterFrame) { if (this == _parent.cpGage) { var that2; that2 = WMyCharEval; var Cp = that2.ChargePoint; if (Cp >= WCpIntervalFirst - 1 && Cp < WCpIntervalFirst + WCpIntervalDiffer * WCpIntervalNumLim) { if ((Cp - WCpIntervalFirst) % WCpIntervalDiffer == 0) { var that; var n = int((Cp - WCpIntervalFirst) / WCpIntervalDiffer); that = eval('_parent.cpGage' + n); that.gage.gotoAndPlay('movieStart1'); that.AppFlag = true; } } if (this.OldChargePoint != 0 && Cp == 0) { var n = 0; goto 510; for (;;) { ++n; label 510: if (n >= WCpIntervalNumLim) break; var that; that = eval('_parent.cpGage' + n); if (that.AppFlag != true) { break; continue; } that.gage.gotoAndPlay('movieStart2'); that.AppFlag = false; } } this.OldChargePoint = Cp; } } } instance textInfo of movieClip 1488 テンプテキストインフォ { onClipEvent (load) { this.OldInfoGaugeCp = 0; this.OldInfoGaugeTp = 0; this.OldInfoGaugeHp = 0; this.OldInfoGaugeExp = 0; this.OldInfoGaugeLv = 0; this.OldInfoGaugeGsp = 0; this.OldInfoGaugeSc = 0; this.FormatFlag = true; } onClipEvent (enterFrame) { if (this.FormatFlag) { this.FormatFlag = false; this.GaugeCp = WInfoGaugeCp; this.GaugeTc = WInfoGaugeTp; this.GaugeHp = WInfoGaugeHp; this.GaugeExp = WInfoGaugeExp; this.GaugeLv = WInfoGaugeLv; this.GaugeGsp = WInfoGaugeGsp; this.GaugeSc = WInfoGaugeSc; this.OldControl = 0; } var that; that = WMyCharEval; if (!(MControlMouse && MControlKeyboard == false)) { if (!(MControlMouse == false && MControlKeyboard)) { if (this.OldControl != 3) { this.control = 'Mouse(M) Key(K) <<Mouse&Key(J)>>'; this.OldControl = 3; } } else { if (this.OldControl != 2) { this.control = 'Mouse(M) <<Key(K)>> Mouse&Key(J)'; this.OldControl = 2; } } } else { if (this.OldControl != 1) { this.control = '<<Mouse(M)>> Key(K) Mouse&Key(J)'; this.OldControl = 1; } } if (this.OldInfoGaugeTp != WInfoGaugeTp) { this.GaugeTc = WInfoGaugeTp; this.OldInfoGaugeTp = WInfoGaugeTp; } if (this.OldInfoGaugeHp != WInfoGaugeHp) { this.GaugeHp = WInfoGaugeHp; this.OldInfoGaugeHp = WInfoGaugeHp; } if (this.OldInfoGaugeExp != WInfoGaugeExp) { this.GaugeExp = WInfoGaugeExp; this.OldInfoGaugeExp = WInfoGaugeExp; } if (this.OldInfoGaugeLv != WInfoGaugeLv) { this.GaugeLv = WInfoGaugeLv; this.OldInfoGaugeLv = WInfoGaugeLv; } if (this.OldInfoGaugeGsp != WInfoGaugeKp) { this.GaugeGsp = WInfoGaugeKp; this.OldInfoGaugeGsp = WInfoGaugeKp; } if (this.OldInfoGaugeSc != WInfoGaugeSc) { this.GaugeSc = WInfoGaugeSc; this.OldInfoGaugeSc = WInfoGaugeSc; } } } instance instruction of movieClip 2218 instruction { onClipEvent (load) { _visible = false; this.FormatFlag = true; this.Count = 0; this.CountLim = 60; this.ShowFlag = false; this.ShowNum = 0; } onClipEvent (enterFrame) { if (this.ShowFlag) { ++this.Count; if (this.Count == 1) { _visible = true; this.action2.gotoAndPlay('movieStart1'); if (this.ShowNum == 0) { goto 485; } else { if (this.ShowNum == 1) { this.action1.gotoAndPlay('movieStart1'); goto 485; } else { if (this.ShowNum == 2) { this.action1.gotoAndPlay('movieStart2'); goto 485; } else { if (this.ShowNum == 3) { this.action1.gotoAndPlay('movieStart3'); goto 485; } else { if (this.ShowNum == 4) { this.action1.gotoAndPlay('movieStart4'); } else {} } } } } label 485: this.ShowNum; } if (this.CountLim < this.Count) { _visible = false; this.Count = 0; this.ShowFlag = false; this.ShowNum = 0; this.action1.gotoAndPlay('movieStart0'); this.action2.gotoAndPlay('movieStart0'); } } } } instance scoreShow of movieClip 1596 スコアショウ { onClipEvent (load) { _visible = false; this.FormatFlag = true; this.Count = 0; this.CountLim = 300; this.GapActionCount = 0; this.OldActionNum = 0; this.ActionNum = 0; this.Score = 0; } onClipEvent (enterFrame) { if (!_visible) { if (this.Count != 0) { this.Count = 0; this.se.gotoAndPlay('clear'); } } else { ++this.Count; if (this.Count == 1) { _global.WScoreCount = _global.WInfoGaugeSc; this.GapActionCount = 0; this.OldActionNum = 0; this.ActionNum = 2; this.se.gotoAndPlay('drumRoll'); } if (this.OldActionNum != this.ActionNum) { this.GapActionCount = 0; this.OldActionNum = this.ActionNum; } ++this.GapActionCount; if (this.ActionNum == 0) { goto 1497; } else { if (this.ActionNum == 1) { goto 1497; } else { if (this.ActionNum == 2) { this.scoreCount.num.num.Num = int(WScoreCount / this.CountLim) * this.GapActionCount; if (_global.WScoreCount < this.scoreCount.num.num.Num) { this.scoreCount.num.num.Num = _global.WScoreCount; this.ActionNum = 3; } if (MLeftUp) { this.scoreCount.num.num.Num = _global.WScoreCount; this.ActionNum = 3; } goto 1497; } else { if (this.ActionNum == 3) { if (this.GapActionCount == 1) { this.se.gotoAndPlay('drumRollEnd'); } if (MLeftUp) { this.ActionNum = 4; } goto 1497; } else { if (this.ActionNum == 4) { _global.WScoreCount = 0; _global.WEnemyDamageCount = 0; _global.WCharDamageCount = 0; _global.WEnemyBreakCount = 0; _global.WEnemyBreakBonusCount = 0; _global.WCharBreakCount = 0; _global.WCharBreakBonusCount = 0; _global.WCharActionCount = 0; _global.WCharActionHitCount = 0; _global.WBonusCount = 0; _global.WScoreShowEndFlag = true; _global.WInfoGaugeSc = 0; _global.WInfoGaugeKp = 0; _global.WInfoGaugeGsp = 0; _global.WInfoGaugeCp = 0; _global.WInfoGaugeTp = 0; _visible = false; this.Count = 0; this.CountLim = 300; } else {} } } } } label 1497: this.ActionNum; } } } instance markTar of movieClip 592 ターゲットマーカー { onClipEvent (load) { _visible = true; this.FormatFlag = true; this.Pos = SGet(0, 0); this.Vec = SGet(0, 0); } onClipEvent (enterFrame) { if (_visible) { this.Pos = SEqual(WTPos); this.Pos.x += this.Vec.x; this.Pos.y += this.Vec.y; _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; that = WMyCharEval; this._rotation = Math.atan2(that.Pos.y - this.Pos.y, that.Pos.x - this.Pos.x) * 57.29577951; } } } instance markMouse of movieClip 1708 マウスマーカー { onClipEvent (load) { _visible = true; this.FormatFlag = true; this.Pos = SGet(0, 0); this.Vec = SGet(0, 0); } onClipEvent (enterFrame) { if (_visible) { this.Pos = SEqual(WMPos); this.Pos.x += this.Vec.x; this.Pos.y += this.Vec.y; _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; this._rotation += 17; } } } } movieClip 596 ワールドバック { instance back of movieClip 24 バック { } } movieClip 594 ワールドミドル { instance manage of movieClip 698 manage { onClipEvent (load) { this.Pos = SGet(_x + WPos.x, _y + WPos.y); this.Vec = SGet(0, 0); this.TempPos = SGet(0, 0); } onClipEvent (enterFrame) { _global.WWeaponIndexNum = 0; _global.WWitchIndexNum = 0; _global.WGriefSeedIndexNum = 0; _global.WBulletIndexNum = 0; _global.WMyCharIndexNum = 0; _global.WLineIndexNum = 0; _global.WWeaponHitIndexNum = 0; _global.WWitchHitIndexNum = 0; _global.WBulletHitIndexNum = 0; _global.WMagicHitIndexNum = 0; _global.WMyCharIndexNum = 0; that = WMyCharEval; if (that._visible && that.StandFlag == false) { _global.WMyCharIndexNum = 1; } _global.WPartnerIndexNum = 0; that = WPartnerEval; if (that._visible && that.StandFlag == false) { _global.WPartnerIndexNum = 1; } i = 0; goto 1141; for (;;) { ++i; label 1141: if (i >= WWeaponNum) break; that = WWeaponEval[i]; if (that._visible) { _global.WWeaponEvalHitIndex[_global.WWeaponHitIndexNum++] = that; if (that.AutoFlag == false && that.StandFlag == false) { _global.WWeaponEvalIndex[_global.WWeaponIndexNum++] = i; } } } i = 0; goto 1366; for (;;) { ++i; label 1366: if (i >= WWitchNum) break; that = WWitchEval[i]; if (that._visible) { if (that.InvincibleFlag == false) { _global.WWitchEvalHitIndex[_global.WWitchHitIndexNum++] = that; } if (that.StandFlag == false && that.PhysFlag) { _global.WWitchEvalIndex[_global.WWitchIndexNum++] = i; } } } i = 0; goto 1609; for (;;) { ++i; label 1609: if (i >= WGriefSeedNum) break; that = WGriefSeedEval[i]; if (that._visible && that.StandFlag == false && that.PhysFlag) { _global.WGriefSeedEvalIndex[_global.WGriefSeedIndexNum++] = i; } } i = 0; goto 1784; for (;;) { ++i; label 1784: if (i >= WBulletNum) break; that = WBulletEval[i]; if (that._visible) { if (that.StandFlag == false) { _global.WBulletEvalIndex[_global.WBulletIndexNum++] = i; } } } i = 0; goto 1937; for (;;) { ++i; label 1937: if (i >= WLineNum) break; that = WLineEval[i]; if (that._visible) { _global.WLineEvalIndex[_global.WLineIndexNum++] = i; } } i = 0; goto 2066; for (;;) { ++i; label 2066: if (i >= WMagicNum) break; that = WMagicEval[i]; if (that._visible && that.InvincibleFlag == false) { _global.WMagicEvalHitIndex[_global.WMagicHitIndexNum++] = that; } } var TempA = 0; var TempB = 1000000; var TempC = SGet(0, 0); var TempD = false; var a = 0; var b = 0; _global.TAimFlag = false; var CenPos = SGet(_parent.Pos.x, _parent.Pos.y + _parent.Radius); var that; i = 0; goto 2380; for (;;) { ++i; label 2380: if (i >= WWitchHitIndexNum) break; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.Radius + 800)) { a = that.HitPos.x - WMPos.x; b = that.HitPos.y - WMPos.y; TempA = a * a + b * b; if (TempA < TempB) { TempB = TempA; TempC = SEqual(that.HitPos); TempD = true; _global.TAimFlag = true; } } } i = 0; goto 2681; for (;;) { ++i; label 2681: if (i >= WMagicHitIndexNum) break; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 800)) { a = that._x - MPos.x; b = that._y - MPos.y; TempA = a * a + b * b; if (TempA < TempB) { TempB = TempA; TempC = SEqual(that.Pos); TempD = true; _global.TAimFlag = true; } } } if (!TempD) { TempPos = SGet(WMPos.x, WMPos.y); } else { TempPos = SEqual(TempC); } _global.TPos.x = (TempPos.x - WPos.x) * 1; _global.TPos.y = (TempPos.y - WPos.y) * 1; _global.WTPos.x = TempPos.x; _global.WTPos.y = TempPos.y; _global.WTAtan = Math.atan2(WTPos.y - WMyCharEval.Pos.y, WTPos.x - WMyCharEval.Pos.x); _global.WTAtan360 = _global.WTAtan * 57.29577951; _global.WMAtan = Math.atan2(WMPos.y - WMyCharEval.Pos.y, WMPos.x - WMyCharEval.Pos.x); _global.WMAtan360 = _global.WMAtan * 57.29577951; _global.WWCenPos = SAdd(WCenPos, WPos); } } instance myChar of movieClip 12 myChar { onClipEvent (load) { this.FormatFlag = true; this.Direction = 1; this.style = 'this.stand'; this.ActionFlag = false; this.ActionFinishFlag = true; this.FootholdEndFlag = false; this.FootholdPos = SGet(0, 0); this.FootholdPosBack = SGet(0, 0); this.KickChangeCount = 0; this.KickChangeDirection = 0; _global.WMyCharEval = _parent.myChar; this.ConectDashFlag = false; this.ConectDashCount = 0; this.DashGauge = 0; this.DashGaugeLim = 20; this.DashStopFlag = false; this.ManipulatedFlag = false; this.Wheel = 0; this.OldWheel = 0; this.Weight = 1; this._visible = false; this.OldActionAbleFlag = true; this.ActionAbleFlag = true; this.Radius = _height * 0.333 / 2; this.Pos = SGet(_global.WCenPos.x, _global.WCenPos.y); this.OldPos = SEqual(this.Pos); this.ChargePoint = 0; this.RapidShotFlag = false; this.RapidShotCount = 0; this.RapidShotNum = 0; this.JumpShotFlag = false; this.Vec = SGet(0, 0); this.Omega = 0; this.ExistFlag = true; this.StandFlag = false; this.WindowControlFlag = false; this.FootholdLim1 = SGet(0, 0); this.FootholdLim2 = SGet(0, 0); this.FootholdVec = SGet(0, 0); this.FootholdID = -1; this.HorizonVec = SGet(0, 0); this.AirJumpFlag = false; this.WirePos = SGet(0, 0); this.RoketFlag = false; this.RoketCount = 0; this.SlidingFlag = false; this.TempBulletVec = SGet(0, 0); this.TempWeaponVec = SGet(0, 0); this.Rad = (_rotation + 90) * 0.01745329; var Rad_x = this.Radius * Math.cos(this.Rad); var Rad_y = this.Radius * Math.sin(this.Rad); this.Line1 = SGet(0, 0); this.Line2 = SGet(0, 0); this.Line1.x = this.Pos.x - Rad_x; this.Line1.y = this.Pos.y - Rad_y; this.Line2.x = this.Pos.x + Rad_x; this.Line2.y = this.Pos.y + Rad_y; _x = _global.WCenPos.x - WPos.x; _y = _global.WCenPos.y - WPos.y; this.TimeCount = 0; this.TimeCountLim = 100000; this.OldLvCount = 0; this.LvCountLim = 7; this.LvCount = WMyCharLv; this.ExpCountLim = 50; this.ExpCount = 0; this.DeathFlag = false; this.DeathCount = 0; this.HpCountLim = WMyCharHp; this.HpCount = 0; this.OldHpCount = 0; this.ReactionFlag = false; this.ReactionVec = SGet(0, 0); this.ReactionCount = 0; this.PhysFlag = true; this.InvincibleFlag = false; this.InvincibleCount = 0; this.LeftUpAction1Flag = false; this.LeftUpAction2Flag = false; this.LeftUpAction3Flag = false; this.LeftUpAction4Flag = false; this.LeftUpActionCount = 0; this.LeftUpActionTime = 0; this.LeftUpActionComboFlag = false; } onClipEvent (enterFrame) { ++_global.WVisibleCount; if (_global.WVisibleCount % 10 != 0) { _global.WVisibleFlag = false; } else { _global.WVisibleFlag = true; } if (this.FormatFlag) { this.FormatFlag = false; _global.WVisibleFlag = true; SetVisible('stand', this.Direction); this.ManipulatedFlag = false; this._visible = true; this._alpha = 100; this.OldActionAbleFlag = true; this.ActionAbleFlag = true; this.LeftUpAction1Flag = false; this.LeftUpAction2Flag = false; this.LeftUpAction3Flag = false; this.LeftUpAction4Flag = false; this.LeftUpActionCount = 0; this.LeftUpActionTime = 0; this.LeftUpActionComboFlag = false; this.KickChangeCount = 0; this.KickChangeDirection = 0; this.ReactionFlag = false; this.ReactionVec = SGet(0, 0); this.ReactionCount = 0; this.PhysFlag = true; this.InvincibleFlag = false; this.InvincibleCount = 0; this.OldLvCount = this.LvCount; this.RoketFlag = false; this.RoketCount = 0; this.ActionFlag = false; this.ActionFinishFlag = false; this.FootholdEndFlag = false; this.ConectDashFlag = false; this.ConectDashCount = 0; this.DashGauge = 0; this.DashGaugeLim = 20; this.DashStopFlag = false; this.Wheel = 0; this.OldWheel = 0; this.RapidShotFlag = false; this.RapidShotCount = 0; this.RapidShotNum = 0; this.JumpShotFlag = false; this.Vec = SGet(0, 0); this.Omega = 0; this.ExistFlag = true; this.StandFlag = false; this.DeathCount = 0; } if (this._visible) { if (this.DeathFlag != false) { _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; ++this.DeathCount; if (this.DeathCount == 1) { this.se.gotoAndPlay('death'); this._xscale = 100; this._yscale = 100; this._alpha = 100; } if (1) { this._alpha -= 4; } if (this.DeathCount == 30) { _global.GameOver(); this.ExistFlag = false; _visible = false; } } else { if (this.ActionFinishFlag == true) { this.ActionFinishFlag = false; if (this.StandFlag != true) { SetVisible(jump, this.Direction); } else { SetVisible(stand, this.Direction); } } if (0 >= this.ReactionCount) { this.ReactionCount = 0; if (this.ReactionFlag == true) { this.ActionFlag = false; if (this.StandFlag != true) { SetVisible(jump, this.Direction); } else { SetVisible(stand, this.Direction); } } this.ReactionFlag = false; } else { --this.ReactionCount; if (this.ReactionFlag == false) { this.ActionFlag = true; if (!((this.stand._visible || this.jump._visible || this.dash._visible) && ChargePoint == 0)) { SetVisible('damage', this.Direction); } else { SetVisible('guard', this.Direction); this.Vec = SScale(this.Vec, 0.1); this.ReactionCount = int(this.ReactionCount * 0.2); if (this.ReactionCount < 1) { this.ReactionCount = 1; } this.InvincibleCount = int(this.InvincibleCount * 0.2); if (this.InvincibleCount < 1) { this.InvincibleCount = 1; } } } this.ReactionFlag = true; } if (0 >= this.InvincibleCount) { this.InvincibleCount = 0; this.InvincibleFlag = false; this._alpha = 100; } else { this.InvincibleFlag = true; --this.InvincibleCount; var Alpha = int(100 - this.InvincibleCount * 2); if (Alpha < 40) { Alpha = 40; } if (100 < Alpha) { Alpha = 100; } this._alpha = Alpha - 20; } if (this.HpCount >= this.HpCountLim) { this.HpCount = this.HpCountLim; this.DeathFlag = true; this.DeathCount = 0; } if (this.OldHpCount < this.HpCount) { if (!this.guard._visible) { this.se.gotoAndPlay('cry'); } else { this.HpCount -= (this.HpCount - this.OldHpCount) * 0.8; this.se.gotoAndPlay('guard'); } _global.WCharDamageCount += this.HpCount - this.OldHpCount; } this.OldHpCount = this.HpCount; if (this.OldLvCount != this.LvCount) { if (this.OldLvCount < this.LvCount) { _parent._parent.front.instruction.ShowFlag = true; _parent._parent.front.instruction.ShowNum = 4; } this.HpCountLim = WMyCharHp + this.LvCount * WMyCharHpRate; this.OldLvCount = this.LvCount; } this.OldActionAbleFlag = this.ActionAbleFlag; if (!(this.dash._visible || this.dashJump._visible || this.jump._visible || this.stand._visible || this.rolling._visible || this.sliding._visible || this.kick._visible || this.tripkick._visible || this.guard._visible || this.turnJump._visible)) { this.ActionAbleFlag = false; } else { this.ActionAbleFlag = true; } if (this.RoketFlag == true) { this.Vec = SScale(this.Vec, 0.9300000000000001); --this.RoketCount; if (0 >= this.RoketCount || this.StandFlag == true) { this.RoketFlag = false; } } if (!(this.StandFlag == false && this.RoketFlag == false)) { } else { this.Vec.y -= WGravity * this.Weight; } this.OldPos = SEqual(this.Pos); if (2500 < this.Vec.x * this.Vec.x + this.Vec.y * this.Vec.y) { this.Vec = SScale(SNorm(this.Vec), 50); } if (this.ManipulatedFlag == false) { this.Pos.x += this.Vec.x; this.Pos.y += this.Vec.y; } if (WLimPos2.y < this.Pos.y) { this.DeathFlag = true; this.DeathCount = 0; } _global.WVec.x = this.Vec.x * -1; _global.WVec.y = this.Vec.y * -1; _global.WCPos = SEqual(this.Pos); _global.WCVec = SEqual(this.Vec); _global.WPos.x = this.Pos.x - _global.WCenPos.x; _global.WPos.y = this.Pos.y - _global.WCenPos.y; if (_global.WPos.x < WLimPos1.x) { _global.WPos.x = WLimPos1.x; } if (WLimPos2.x - WCornerPos.x < _global.WPos.x) { _global.WPos.x = WLimPos2.x - WCornerPos.x; } if (_global.WPos.y < WLimPos1.y) { _global.WPos.y = WLimPos1.y; } if (WLimPos2.y - WCornerPos.y < _global.WPos.y) { _global.WPos.y = WLimPos2.y - WCornerPos.y; } _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; if (this.FootholdEndFlag && (MMiddleUp || MLeftUp || this.StandFlag == false || this.ActionFlag || this.Vec.x != 0 || this.Vec.y != 0)) { this.FootholdEndFlag = false; } if (this.StandFlag && this.FootholdEndFlag == false) { var TempAdd = SAdd(this.FootholdVec, this.Pos); var LimHit = Lim_Dot_Hit(this.FootholdLim1, this.FootholdLim2, TempAdd); if (LimHit == false) { var TempGapRadius = 5; var GetFootholdFlag = false; if (SSquareSize(SSub(this.FootholdLim1, TempAdd)) >= SSquareSize(SSub(this.FootholdLim2, TempAdd))) { this.FootholdPos = SEqual(FootholdLim2); this.FootholdPosBack = SEqual(FootholdLim1); } else { this.FootholdPos = SEqual(FootholdLim1); this.FootholdPosBack = SEqual(FootholdLim2); } i = 0; goto 7055; for (;;) { ++i; label 7055: if (i >= WLineIndexNum) break; var IndexNum = WLineEvalIndex[i]; var that = WLineEval[IndexNum]; if (that._visible == true && this.FootholdID != IndexNum) { if (_global.Dot_Circle_Hit(this.FootholdPos, that.Pos, that.Radius + TempGapRadius)) { if (_global.Line_Circle_Hit(that.Line1, that.Line2, this.FootholdPos, TempGapRadius)) { if (that.Type != 1) { if (that.Type == 2) { GetFootholdFlag = true; this.Pos = SAdd(SSub(this.FootholdPos, this.FootholdVec), SNorm(SSub(this.FootholdPosBack, this.FootholdPos))); this.Vec.x = 0; this.Vec.y = 0; if (this.ActionFlag == false) { SetVisible('stand', this.Direction); } } continue; } this.FootholdID = IndexNum; this.FootholdLim1.x = that.Line1.x; this.FootholdLim1.y = that.Line1.y; this.FootholdLim2.x = that.Line2.x; this.FootholdLim2.y = that.Line2.y; this.FootholdVec = SGet(0, 0); this.JumpFlag = false; this.HorizonVec = that.HorizonVec; if (this.DashGauge != 0) { this.Vec.x = this.HorizonVec.x * this.Direction * 20; this.Vec.y = this.HorizonVec.y * this.Direction * 20; } this.StandFlag = true; this.FootholdVec.x = 0; this.FootholdVec.y = this.Radius; var HorizonSize = 0; if (that.HorizonVec.x != 0) { HorizonSize = (this.Pos.x - that.Line1.x) / that.HorizonVec.x; } this.Pos.y = that.HorizonVec.y * HorizonSize + that.Line1.y - this.Radius; GetFootholdFlag = true; break; } } } } if (GetFootholdFlag == false) { this.FootholdEndFlag = true; this.Pos = SAdd(SSub(this.FootholdPos, this.FootholdVec), SNorm(SSub(this.FootholdPosBack, this.FootholdPos))); this.Vec.x = 0; this.Vec.y = 0; if (this.ActionFlag == false) { SetVisible('stand', this.Direction); } } } } if (this.FootholdEndFlag) { if (!(0 < MWheel && 0 < this.Direction || MWheel < 0 && this.Direction < 0)) { if (!(0 < MWheel && this.Direction < 0 || MWheel < 0 && 0 < this.Direction)) { } else { this.FootholdEndFlag = false; } } else { this.FootholdEndFlag = false; var Press; var TempRoketFlag = false; var TempJumpVec; Press = WGroundJumpPress; TempJumpVec = ParabolaVec(false, Press, _global.WGravity, SGet(_x, _y + this.Radius), MPos); if (TempJumpVec.y == 0 && TempJumpVec.x == 0) { TempRoketFlag = true; TempJumpVec = SScale(SNorm(SSub(MPos, SGet(_x, _y + this.Radius))), Press); } var TempCross = SCross(this.HorizonVec, TempJumpVec); if (0 >= TempCross) { if (TempRoketFlag != true) { this.RoketFlag = false; this.RoketCount = 0; } else { this.RoketFlag = true; this.RoketCount = 12; } this.ActionFlag = true; SetVisible('dashJump', this.Direction); this.Vec.x = TempJumpVec.x; this.Vec.y = TempJumpVec.y; } else { if (this.LvCount < 4) { this.RoketFlag = false; this.StandFlag = false; this.ActionFlag = false; } else { this.ActionFlag = true; this.RoketFlag = false; this.StandFlag = false; this.Vec = SAdd(SScale(SNorm(SSub(this.FootholdPos, this.FootholdPosBack)), 10), SGet(0, -5)); SetVisible('wireJump', this.Direction); this.wireJump.WireReversFlag = true; this.wireJump.WirePos = SEqual(this.FootholdPos); } } } } this.Line1.x = this.Pos.x; this.Line1.y = this.Pos.y - this.Radius; this.Line2.x = this.Pos.x; this.Line2.y = this.Pos.y + this.Radius; if (this.RapidShotNum < 0) { this.RapidShotNum = 0; } if (this.RapidShotNum >= 1 && this.ActionFlag == false) { this.ActionFlag = true; if (this.JumpShotFlag != true) { if (this.StandFlag != false) { if (this.DashGauge == 0) { SetVisible(turnShot, this.Direction); } else { SetVisible(dashShot, this.Direction); } } else { SetVisible(turnShot, this.Direction); } } else { this.JumpShotFlag = true; SetVisible(jumpShot, this.Direction); } } if (this.StandFlag && this.AirJumpFlag == false) { this.AirJumpFlag = true; } if (this.ActionFlag == false) { if (!(MControlKeyboard && MControlMouse == false)) { if (MWheelReleaseCount < 5 && MMiddlePress) { this.ActionFlag = true; SetVisible('sliding', this.Direction); } } else { if (MMiddleUp && MWheelPress) { this.ActionFlag = true; SetVisible('sliding', this.Direction); } } } if (!(this.ActionFlag == false && (MWheelReleaseCount >= 5 || MControlKeyboard && MControlMouse == false))) { var n = 0; goto 10277; for (;;) { ++n; label 10277: if (n >= WLightNum) break; var tempEval; tempEval = WLightEval[n]; tempEval._x = -100; tempEval._y = -100; } } else { if (1) { var Press; if (!(MMiddlePress || MMiddleUp)) { if (!this.StandFlag) { Press = WAirJumpPress; } else { Press = WGroundJumpPress; } } else { if (!this.StandFlag) { if (WAirJumpPressCountInterval >= MMiddlePressCount) { Press = WAirJumpPress; } else { Press = (MMiddlePressCount - WAirJumpPressCountInterval) * WAirJumpPressCountRate + WAirJumpPress; if (WAirJumpPressLim < Press) { Press = WAirJumpPressLim; } } } else { if (WGroundJumpPressCountInterval >= MMiddlePressCount) { Press = WGroundJumpPress; } else { Press = (MMiddlePressCount - WGroundJumpPressCountInterval) * WGroundJumpPressCountRate + WGroundJumpPress; if (WGroundJumpPressLim < Press) { Press = WGroundJumpPressLim; } } } this.Vec.x *= 0.1; this.Vec.y *= 0.1; this.JumpFlag = false; } var TempRoketFlag = false; var TempJumpVec; if (this.StandFlag != false) { TempJumpVec = ParabolaVec(true, Press, _global.WGravity, SGet(_x, _y + this.Radius), MPos); } else { TempJumpVec = ParabolaVec(false, Press, _global.WGravity, SGet(_x, _y + this.Radius), MPos); } if (TempJumpVec.y == 0 && TempJumpVec.x == 0) { TempRoketFlag = true; TempJumpVec = SScale(SNorm(SSub(MPos, SGet(_x, _y + this.Radius))), Press); } if (TempRoketFlag != true) { var n = 0; goto 11129; for (;;) { ++n; label 11129: if (n >= WLightNum) break; var tempEval; tempEval = WLightEval[n]; tempEval._x = TempJumpVec.x * n * WLightInterval + _x; tempEval._y = TempJumpVec.y * n * WLightInterval - 0.5 * WGravity * n * n * WLightInterval * WLightInterval + _y + this.Radius; } } else { var n = 0; goto 11347; for (;;) { ++n; label 11347: if (n >= WLightNum) break; var tempEval; tempEval = WLightEval[n]; tempEval._x = TempJumpVec.x * n * WLightInterval + _x; tempEval._y = TempJumpVec.y * n * WLightInterval + _y + this.Radius; } } if (MMiddleUp) { if (TempRoketFlag != true) { this.RoketFlag = false; this.RoketCount = 0; } else { this.RoketFlag = true; this.RoketCount = Press; } if (this.StandFlag != true) { if (TempRoketFlag != true) { if (!this.AirJumpFlag) { SetVisible('turnJump', this.Direction); } else { this.AirJumpFlag = false; SetVisible('dashJump', this.Direction); this.Vec.x = TempJumpVec.x; this.Vec.y = TempJumpVec.y; } } else { if (!this.AirJumpFlag) { if (this.LvCount < 4) { this.RoketFlag = false; SetVisible('turnJump', this.Direction); } else { this.RoketFlag = false; SetVisible('wireJump', this.Direction); this.wireJump.WireReversFlag = false; this.wireJump.WirePos = SEqual(WMPos); } } else { this.AirJumpFlag = false; SetVisible('dashJump', this.Direction); this.Vec.x = TempJumpVec.x; this.Vec.y = TempJumpVec.y; this.RoketCount = 12; } } } else { var TempCross = SCross(this.HorizonVec, TempJumpVec); if (0 >= TempCross) { this.Vec.x = TempJumpVec.x; this.Vec.y = TempJumpVec.y; if (TempRoketFlag != true) { SetVisible('jump', this.Direction); this.jump.TakeOffFlag = true; } else { if (this.LvCount < 4) { SetVisible('dashJump', this.Direction); this.RoketCount = 12; } else { SetVisible('wireJump', this.Direction); this.wireJump.WireReversFlag = false; this.wireJump.WirePos = SEqual(WMPos); this.RoketFlag = false; } } if (0 >= this.JumpVec.x) { } else {} } else { var TempDot = SDot(this.HorizonVec, TempJumpVec); this.StandFlag = true; if (0 >= TempDot) { TempDot = -1; } else { TempDot = 1; } this.Direction = TempDot; SetVisible('sliding', this.Direction); } } } } } if (this.StandFlag == false && this.ActionFlag == false) { if (MWheelDown && MWheel != 0) { if (0 >= MWheel) { this.Direction = -1; } else { this.Direction = 1; } SetVisible('rolling', this.Direction); } } if (!(this.StandFlag && (this.dash._visible || this.stand._visible))) { this.KickChangeCount = 0; this.KickChangeDirection = 0; } else { if (0 >= this.KickChangeCount) { this.KickChangeDirection = 0; } else { --this.KickChangeCount; } if (0 < MWheel) { if (this.KickChangeDirection == -1 && 0 < this.KickChangeCount) { this.Direction = -1; this.SetVisible('kick', this.Direction); this.ActionFlag = true; this.KickChangeCount = 0; this.KickChangeDirection = 0; } this.KickChangeDirection = 1; this.KickChangeCount = 4; } if (MWheel < 0) { if (this.KickChangeDirection == 1 && 0 < this.KickChangeCount) { this.Direction = 1; this.SetVisible('kick', this.Direction); this.ActionFlag = true; this.KickChangeCount = 0; this.KickChangeDirection = 0; } this.KickChangeDirection = -1; this.KickChangeCount = 4; } } if (this.StandFlag && this.ActionFlag == false && this.FootholdEndFlag == false) { if (MWheelPress && MWheel != 0) { if (!MWheelDown) { this.OldWheel = this.Wheel; } else { this.OldWheel = 0; } this.Wheel = MWheel; if (0 >= this.Wheel) { this.Wheel = -1; } else { this.Wheel = 1; } var TempWheel = 0; if (!(this.OldWheel == 1 && this.Wheel == -1 || this.OldWhee == -1 && this.Wheel == 1)) { if (Wheel < 1) { if (-1 >= Wheel) { if (0 >= this.Direction) { TempWheel = -1; if (0 < this.DashGauge) { this.DashGauge = 0; } else { if (!(MControlKeyboard && MControlMouse == false)) { this.DashGauge -= 4; } else { if (this.DashGauge != 0) { this.DashGauge -= 1; } else { this.DashGauge = -2; } } } this.Direction = -1; SetVisible('dash', this.Direction); } else { this.Direction = -1; if (!this.stand._visible) { this.DashGauge = -2; SetVisible('dash', this.Direction); } else { this.DashGauge = 0; SetVisible('stand', this.Direction); } } } } else { if (this.Direction >= 0) { TempWheel = 1; if (this.DashGauge < 0) { this.DashGauge = 0; } else { if (!(MControlKeyboard && MControlMouse == false)) { this.DashGauge += 4; } else { if (this.DashGauge != 0) { this.DashGauge += 1; } else { this.DashGauge = 2; } } } this.Direction = 1; SetVisible('dash', this.Direction); } else { this.Direction = 1; if (!this.stand._visible) { this.DashGauge = 2; SetVisible('dash', this.Direction); } else { this.DashGauge = 0; SetVisible('stand', this.Direction); } } } } else { this.DashGauge = 0; this.Vec.x = 0; this.Vec.y = 0; this.Wheel = 0; } if (this.DashStopFlag == false) { this.Vec.x = this.HorizonVec.x * TempWheel * 20; this.Vec.y = this.HorizonVec.y * TempWheel * 20; } } if (MWheelRelease && this.dashShot._visible == false) { if (this.DashGauge < this.DashGaugeLim && 0 < this.DashGauge) { this.DashGauge -= 1; if (0 >= this.DashGauge) { this.DashStopFlag = true; } } if (this.DashGaugeLim * -1 < this.DashGauge && this.DashGauge < 0) { this.DashGauge += 1; if (this.DashGauge >= 0) { this.DashStopFlag = true; } } } if (this.DashStopFlag) { SetVisible('stand', this.Direction); this.DashStopFlag = false; this.DashGauge = 0; this.Vec.x = 0; this.Vec.y = 0; this.Wheel = 0; } } if ((this.ActionFlag || this.StandFlag == false) && this.dashShot._visible == false) { this.DashStopFlag = false; this.Wheel = 0; this.DashGauge = 0; } if (this.ActionAbleFlag && this.OldActionAbleFlag) { if (MLeftUp) { if (ChargePoint >= WCpIntervalFirst) { if (ChargePoint >= WCpIntervalDiffer + WCpIntervalFirst) { if (ChargePoint >= WCpIntervalDiffer * 2 + WCpIntervalFirst) { if (ChargePoint >= WCpIntervalDiffer * WCpIntervalNumLim + WCpIntervalFirst) { this.ActionFlag = true; if (this.LvCount < 7) { SetVisible(throwing, this.Direction); this.throwing.WeaponNum = 8; } else { SetVisible(tiroFinale, this.Direction); } } else { this.ActionFlag = true; if (!(this.LvCount >= (ChargePoint + 1 - WCpIntervalFirst) / WCpIntervalDiffer && MMiddlePress == false)) { SetVisible(throwing, this.Direction); this.throwing.WeaponNum = (ChargePoint + 1 - WCpIntervalFirst) / WCpIntervalDiffer; } else { SetVisible(multiDraw, this.Direction); this.multiDraw.WeaponNum = (ChargePoint + 1 - WCpIntervalFirst) / WCpIntervalDiffer; } } } else { this.ActionFlag = true; if (this.LvCount < 2) { SetVisible(throwing, this.Direction); this.throwing.WeaponNum = 2; } else { if (this.DashGauge != 0) { SetVisible(doubleTwist, this.Direction); } else { SetVisible(hipDraw, this.Direction); } } } } else { this.ActionFlag = true; if (this.LvCount < 1) { SetVisible(throwing, this.Direction); this.throwing.WeaponNum = 1; } else { if (this.DashGauge != 0) { SetVisible(singleTwist, this.Direction); } else { SetVisible(chestDraw, this.Direction); } } } } else { this.ActionFlag = true; if (!(WPartnerEval._visible && WPartnerEval.ShoulderFlag)) { if (!StandFlag) { SetVisible(stepTurn, this.Direction); } else { if (this.DashGauge != 0) { SetVisible(roundTripSlap, this.Direction); } else { SetVisible(slap, this.Direction); } } } else { SetVisible(throwing, this.Direction); this.throwing.WeaponNum = 0; } } } } if (MLeftPress) { ++ChargePoint; if (WCpIntervalFirst + WCpIntervalDiffer * WCpIntervalNumLim < ChargePoint) { ChargePoint = WCpIntervalFirst + WCpIntervalDiffer * WCpIntervalNumLim; } } if (ChargePoint != 0) { if (this.ActionAbleFlag == false && this.wireJump._visible == false) { if (ChargePoint >= WCpIntervalFirst && this.damage._visible == false) { this.RapidShotNum += int((ChargePoint + 1 - WCpIntervalFirst) / WCpIntervalDiffer); this.se.gotoAndPlay('getting'); } ChargePoint = 0; } if (MLeftUp) { ChargePoint = 0; } } if (ExpCount >= ExpCountLim) { ++LvCount; ExpCount -= ExpCountLim; } if (1) { _global.WInfoGaugeCp = ChargePoint; ++_global.WInfoGaugeTp; _global.WInfoGaugeHp = HpCountLim - HpCount; _global.WInfoGaugeExp = ExpCount; _global.WInfoGaugeLv = LvCount; _global.WInfoGaugeSc = (WEnemyDamageCount - WCharDamageCount + WEnemyBreakBonusCount - WCharBreakBonusCount * 1000) * ((WCharActionHitCount + 100) / (WCharActionCount + 100)); _global.WInfoGaugeSc += _global.WBonusCount - WInfoGaugeTp * (this.LvCount + 1) / 30; _global.WInfoGaugeSc = int(_global.WInfoGaugeSc); if (_global.WInfoGaugeSc < 0) { _global.WInfoGaugeSc = 0; } } } } } } instance partner of movieClip 2308 パートナー { onClipEvent (load) { this.FormatFlag = true; this.Direction = 1; this.style = this.stand; this.ActionFlag = false; this.FootholdEndFlag = false; this.FootholdPos = SGet(0, 0); this.FootholdPosBack = SGet(0, 0); this.Weight = 1; this._visible = false; this.OldActionAbleFlag = true; this.ActionAbleFlag = true; this.Radius = _height * 0.333 / 2; this.Pos = SGet(_global.WCenPos.x, _global.WCenPos.y); this.OldPos = SEqual(this.Pos); this.ChargePoint = 0; this.RapidShotFlag = false; this.RapidShotCount = 0; this.RapidShotNum = 0; this.ShoulderFlag = false; this.Vec = SGet(0, 0); this.Omega = 0; this.ExistFlag = true; this.StandFlag = false; this.OldStandFlag = false; this.FootholdLim1 = SGet(0, 0); this.FootholdLim2 = SGet(0, 0); this.FootholdVec = SGet(0, 0); this.FootholdID = -1; this.HorizonVec = SGet(0, 0); this.AirJumpFlag = false; _global.WPartnerEval = _parent.partner; this.RoketFlag = false; this.RoketCount = 0; this.Line1 = SGet(0, 0); this.Line2 = SGet(0, 0); this.Line1.x = this.Pos.x - Rad_x; this.Line1.y = this.Pos.y - Rad_y; this.Line2.x = this.Pos.x + Rad_x; this.Line2.y = this.Pos.y + Rad_y; _x = _global.WCenPos.x - WPos.x; _y = _global.WCenPos.y - WPos.y; this.TimeCount = 0; this.TimeCountLim = 100000; this.OldLvCount = 0; this.LvCountLim = 7; this.LvCount = WMyCharLv; this.ExpCountLim = 50; this.ExpCount = 0; this.DeathFlag = false; this.DeathCount = 0; this.HpCountLim = WMyCharHp; this.HpCount = 0; this.OldHpCount = 0; this.ReactionFlag = false; this.ReactionVec = SGet(0, 0); this.ReactionCount = 0; this.PhysFlag = true; this.InvincibleFlag = false; this.InvincibleCount = 0; this.TarPos = SGet(0, 0); this.TarVec = SGet(0, 0); this.TarSize = 0; this.TarDirection = 0; this.OldTarDirection = 0; this.AimGetFlag = false; this.AimEval = ; this.AimEvalFlag = false; this.AimPointFlag = false; this.AimNearFlag = true; this.AimReturnFlag = false; } onClipEvent (enterFrame) { if (this.FormatFlag) { this.FormatFlag = false; SetVisible('stand', this.Direction); this._rotation = 0; this._visible = true; this._alpha = 100; this._xscale = 75; this._yscale = 75; this.OldActionAbleFlag = true; this.ActionAbleFlag = true; this.ReactionFlag = false; this.ReactionVec = SGet(0, 0); this.ReactionCount = 0; this.PhysFlag = true; this.InvincibleFlag = false; this.InvincibleCount = 0; this.OldLvCount = this.LvCount; this.RoketFlag = false; this.RoketCount = 0; this.ActionFlag = false; this.FootholdEndFlag = false; this.ShoulderFlag = false; this.Wheel = 0; this.OldWheel = 0; this.RapidShotFlag = false; this.RapidShotCount = 0; this.RapidShotNum = 0; this.JumpShotFlag = false; this.Vec = SGet(0, 0); this.Omega = 0; this.ExistFlag = true; this.StandFlag = false; this.OldStandFlag = false; this.DeathCount = 0; this.TarPos = SGet(0, 0); this.TarVec = SGet(0, 0); this.TarSize = 0; this.TarDirection = 0; this.OldTarDirection = 0; this.AimGetFlag = false; this.AimEval = ; this.AimEvalFlag = false; this.AimPointFlag = false; this.AimNearFlag = true; this.AimReturnFlag = false; this.DeathFlag = false; this.DeathCount = 0; this.HpCountLim = WMyCharHp; this.HpCount = 0; this.OldHpCount = 0; this.ReactionFlag = false; this.ReactionVec = SGet(0, 0); this.ReactionCount = 0; this.PhysFlag = true; this.InvincibleFlag = false; this.InvincibleCount = 0; } if (this._visible) { if (this.DeathFlag != false) { _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; ++this.DeathCount; if (this.DeathCount == 1) { this.se.gotoAndPlay('damage'); this._xscale = 100; this._yscale = 100; this._alpha = 100; } if (1) { this._alpha -= 4; } if (this.DeathCount == 30) { } } else { if (0 >= this.ReactionCount) { this.ReactionCount = 0; if (this.ReactionFlag) { this.ActionFlag = false; if (!this.ShoulderFlag) { if (!this.StandFlag) { SetVisible('jump', this.Direction); } else { SetVisible('stand', this.Direction); } } else { this.ActionFlag = true; SetVisible('shoulder', this.Direction); } } this.ReactionFlag = false; } else { --this.ReactionCount; if (this.ReactionFlag == false) { this.ActionFlag = true; this.PhysFlag = true; if (!(this.stand._visible || this.jump._visible || this.dash._visible)) { SetVisible('damage', this.Direction); } else { SetVisible('guard', this.Direction); this.Vec = SScale(this.Vec, 0.1); this.ReactionCount = int(this.ReactionCount * 0.2); if (this.ReactionCount < 1) { this.ReactionCount = 1; } this.InvincibleCount = int(this.InvincibleCount * 0.2); if (this.InvincibleCount < 1) { this.InvincibleCount = 1; } } } this.ReactionFlag = true; } if (0 >= this.InvincibleCount) { this.InvincibleCount = 0; this.InvincibleFlag = false; this._alpha = 100; } else { this.InvincibleFlag = true; --this.InvincibleCount; var Alpha = int(100 - this.InvincibleCount * 2); if (Alpha < 40) { Alpha = 40; } if (100 < Alpha) { Alpha = 100; } this._alpha = Alpha - 20; } if (this.HpCount >= this.HpCountLim) { this.HpCount = this.HpCountLim; this.DeathFlag = true; this.DeathCount = 0; } if (this.OldHpCount < this.HpCount) { if (!this.guard._visible) { this.se.gotoAndPlay('cry'); } else { this.HpCount -= (this.HpCount - this.OldHpCount) * 0.8; this.se.gotoAndPlay('guard'); } _global.WCharDamageCount += this.HpCount - this.OldHpCount; } this.OldHpCount = this.HpCount; if (this.OldLvCount != this.LvCount) { this.HpCountLim = WMyCharHp + this.LvCount * WMyCharHpRate; this.OldLvCount = this.LvCount; } this.OldActionAbleFlag = this.ActionAbleFlag; if (!(this.dash._visible || this.jump._visible || this.stand._visible || this.rolling._visible || this.guard._visible)) { this.ActionAbleFlag = false; } else { this.ActionAbleFlag = true; } if (this.RoketFlag == true) { this.Vec = SScale(this.Vec, 0.9300000000000001); --this.RoketCount; if (0 >= this.RoketCount || this.StandFlag == true) { this.RoketFlag = false; } } if (!(this.StandFlag == false && this.RoketFlag == false)) { } else { this.Vec.y -= WGravity * this.Weight; } this.OldPos = SEqual(this.Pos); if (2500 < this.Vec.x * this.Vec.x + this.Vec.y * this.Vec.y) { this.Vec = SScale(SNorm(this.Vec), 50); } this.Pos.x += this.Vec.x; this.Pos.y += this.Vec.y; if (this.ShoulderFlag) { this.Pos.x = WMyCharEval.Pos.x; this.Pos.y = WMyCharEval.Pos.y - 55; this.Vec.y = 0; this.Vec.x = 0; } _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; this.Line1.x = this.Pos.x; this.Line1.y = this.Pos.y - this.Radius; this.Line2.x = this.Pos.x; this.Line2.y = this.Pos.y + this.Radius; if ((this.AimGetFlag || this.AimNearFlag || this.AimEval._visible == false && this.AimEvalFlag) && this.AimReturnFlag == false && this.ShoulderFlag == false) { var TempA = 0; var TempB = 1000000; var TempC = SGet(0, 0); var TempD = false; var CenPos = SGet(this.Pos.x, this.Pos.y); var that; i = 0; goto 5155; for (;;) { ++i; label 5155: if (i >= WWeaponHitIndexNum) break; that = WWeaponEvalHitIndex[i]; if (that.StandFlag && that.ActionNum == 1) { if (Dot_Circle_Hit(WMyCharEval.Pos, that.Pos, 800)) { var a = that.Pos.x - this.Pos.x; var b = that.Pos.y - this.Pos.y; TempA = a * a + b * b; if (TempA < TempB) { TempB = TempA; TempC = SEqual(that.Pos); TempD = true; this.AimEval = that; this.AimEvalFlag = true; } } } } i = 0; goto 5514; for (;;) { ++i; label 5514: if (i >= WGriefSeedNum) break; that = WGriefSeedEval[i]; if (that._visible) { if (that.StandFlag) { if (Dot_Circle_Hit(WMyCharEval.Pos, that.Pos, 800)) { var a = that.Pos.x - this.Pos.x; var b = that.Pos.y - this.Pos.y; TempA = a * a + b * b; if (TempA < TempB) { TempB = TempA; TempC = SEqual(that.Pos); TempD = true; this.AimEval = that; this.AimEvalFlag = true; } } } } } if (!TempD) { this.AimEval = WMyCharEval; this.AimEvalFlag = true; this.AimPointFlag = false; this.AimNearFlag = true; this.TarPos = SEqual(this.AimEval.Pos); } else { this.TarPos = SEqual(this.AimEval.Pos); this.AimPointFlag = true; this.AimNearFlag = false; } } if (this.AimEvalFlag) { if (!this.AimEval._visible) { } else { this.TarPos = SEqual(this.AimEval.Pos); } } this.TarVec = SSub(this.TarPos, this.Pos); this.TarSize = SSize(this.TarVec); this.AimGetFlag = false; if (Dot_Circle_Hit(WMyCharEval.Pos, this.Pos, 500) == false) { this.AimPointFlag = false; this.AimNearFlag = true; this.AimReturnFlag = true; this.TarPos = SEqual(WMyCharEval.Pos); this.TarVec = SSub(WMyCharEval.Pos, this.Pos); this.TarSize = SSize(this.TarVec); } if (3 < this.RapidShotNum && this.AimReturnFlag == false && this.AimPointFlag == false) { this.AimPointFlag = true; this.AimNearFlag = false; this.AimReturnFlag = true; this.TarPos = SEqual(WMyCharEval.Pos); this.TarVec = SSub(WMyCharEval.Pos, this.Pos); this.TarSize = SSize(this.TarVec); } if (this.AimNearFlag && this.AimReturnFlag == false && this.StandFlag && 0 < this.RapidShotNum) { if (Dot_Circle_Hit(WMyCharEval.Pos, this.Pos, 50)) { this.AimPointFlag = false; this.AimNearFlag = true; this.AimReturnFlag = false; this.TarPos = SEqual(WMyCharEval.Pos); this.TarVec = SSub(WMyCharEval.Pos, this.Pos); this.TarSize = SSize(this.TarVec); SetVisible('shoulder', this.Direction); } } if (this.AimReturnFlag && this.AimNearFlag) { if (Dot_Circle_Hit(WMyCharEval.Pos, this.Pos, 100) && this.StandFlag) { this.AimPointFlag = false; this.AimNearFlag = true; this.AimReturnFlag = false; this.TarPos = SEqual(WMyCharEval.Pos); this.TarVec = SSub(WMyCharEval.Pos, this.Pos); this.TarSize = SSize(this.TarVec); } } if (this.AimReturnFlag && this.AimPointFlag && this.StandFlag) { if (Dot_Circle_Hit(WMyCharEval.Pos, this.Pos, 50)) { this.AimPointFlag = false; this.AimNearFlag = true; this.AimReturnFlag = false; this.TarPos = SEqual(WMyCharEval.Pos); this.TarVec = SSub(WMyCharEval.Pos, this.Pos); this.TarSize = SSize(this.TarVec); SetVisible('shoulder', this.Direction); } } this.OldTarDirection = this.TarDirection; if (0 >= this.TarVec.x) { this.TarDirection = -1; } else { this.TarDirection = 1; } if (this.OldTarDirection == 0) { this.OldTarDirection = this.TarDirection; } if (this.FootholdEndFlag && (this.StandFlag == false || this.ActionFlag || this.Vec.x != 0 || this.Vec.y != 0)) { this.FootholdEndFlag = false; } if (this.StandFlag && this.FootholdEndFlag == false) { var TempAdd = SAdd(this.FootholdVec, this.Pos); var LimHit = Lim_Dot_Hit(this.FootholdLim1, this.FootholdLim2, TempAdd); if (LimHit == false) { var TempGapRadius = 5; var GetFootholdFlag = false; if (SSquareSize(SSub(this.FootholdLim1, TempAdd)) >= SSquareSize(SSub(this.FootholdLim2, TempAdd))) { this.FootholdPos = SEqual(FootholdLim2); this.FootholdPosBack = SEqual(FootholdLim1); } else { this.FootholdPos = SEqual(FootholdLim1); this.FootholdPosBack = SEqual(FootholdLim2); } i = 0; goto 8129; for (;;) { ++i; label 8129: if (i >= WLineIndexNum) break; var IndexNum = WLineEvalIndex[i]; var that = WLineEval[IndexNum]; if (that._visible == true && this.FootholdID != IndexNum) { if (_global.Dot_Circle_Hit(this.FootholdPos, that.Pos, that.Radius + TempGapRadius)) { if (_global.Line_Circle_Hit(that.Line1, that.Line2, this.FootholdPos, TempGapRadius)) { if (that.Type != 1) { if (that.Type == 2) { GetFootholdFlag = true; this.Pos = SAdd(SSub(this.FootholdPos, this.FootholdVec), SNorm(SSub(this.FootholdPosBack, this.FootholdPos))); this.Vec.x = 0; this.Vec.y = 0; if (this.ActionFlag == false) { SetVisible('stand', this.Direction); } } continue; } this.FootholdID = IndexNum; this.FootholdLim1.x = that.Line1.x; this.FootholdLim1.y = that.Line1.y; this.FootholdLim2.x = that.Line2.x; this.FootholdLim2.y = that.Line2.y; this.FootholdVec = SGet(0, 0); this.JumpFlag = false; this.HorizonVec = that.HorizonVec; this.StandFlag = true; this.FootholdVec.x = 0; this.FootholdVec.y = this.Radius; this._rotation = Math.atan2(this.HorizonVec.y, this.HorizonVec.x) * 57.29577951; var HorizonSize = 0; if (that.HorizonVec.x != 0) { HorizonSize = (this.Pos.x - that.Line1.x) / that.HorizonVec.x; } this.Pos.y = that.HorizonVec.y * HorizonSize + that.Line1.y - this.Radius; GetFootholdFlag = true; break; } } } } if (GetFootholdFlag == false) { this.FootholdEndFlag = true; this.Pos = SAdd(SSub(this.FootholdPos, this.FootholdVec), SNorm(SSub(this.FootholdPosBack, this.FootholdPos))); this.Vec.x = 0; this.Vec.y = 0; if (this.ActionFlag == false) { SetVisible('stand', this.Direction); } } } } if (this.AimEvalFlag) { if (this.FootholdEndFlag && AimEval.StandFlag) { this.FootholdEndFlag = false; var Press; var TempRoketFlag = false; var TempJumpVec; Press = 30; TempJumpVec = ParabolaVec(false, Press, _global.WGravity, SGet(this.Pos.x, this.Pos.y + this.Radius), SGet(this.TarPos.x, this.TarPos.y + this.AimEval.Radius)); if (TempJumpVec.y == 0 && TempJumpVec.x == 0) { TempRoketFlag = true; TempJumpVec = SScale(SNorm(SSub(this.TarPos, SGet(this.Pos.x, this.Pos.y + this.Radius))), Press); } var TempCross = SCross(this.HorizonVec, TempJumpVec); if (0 >= TempCross) { if (TempRoketFlag != true) { this.RoketFlag = false; this.RoketCount = 0; } else { this.RoketFlag = true; this.RoketCount = 12; } this.ActionFlag = false; SetVisible('jump', this.Direction); this.StandFlag = false; this.Vec.x = TempJumpVec.x; this.Vec.y = TempJumpVec.y; } else { this.RoketFlag = false; this.StandFlag = false; this.ActionFlag = false; SetVisible('jump', this.Direction); this.Pos.x += this.HorizonVec.x * this.Direction * 10; this.Pos.y += this.HorizonVec.y * this.Direction * 10; this.Vec.x = TempJumpVec.x; this.Vec.y = TempJumpVec.y; } } } if (this.StandFlag && this.AirJumpFlag == false) { this.AirJumpFlag = true; } if (this.AimEvalFlag && this.shoulder._visible == false) { if (this.AimEval.StandFlag) { if (this.ActionFlag == false && this.StandFlag && 100 < this.TarVec.y && this.TarVec.x < 50 && -50 < this.TarVec.x) { SetVisible('jump', this.Direction); this.Vec.x = 0; this.Vec.y = 0; this.Pos.y += this.Radius * 2 + 1; this.OldPos = SEqual(this.Pos); this.StandFlag = false; } } } if (this.AimEvalFlag && this.shoulder._visible == false) { if (this.AimEval.StandFlag) { if (this.ActionFlag == false && (this.StandFlag && this.TarVec.y < -100 && this.TarVec.x < 50 && -50 < this.TarVec.x || this.StandFlag == false && 0 < this.Vec.y && this.TarVec.y < 100) && this.AirJumpFlag) { if (1) { var Press = 30; var TempRoketFlag = false; var TempJumpVec; if (this.StandFlag != false) { TempJumpVec = ParabolaVec(true, 25, _global.WGravity, SGet(this.Pos.x, this.Pos.y + this.Radius), SGet(this.TarPos.x, this.TarPos.y + this.AimEval.Radius)); } else { if (this.TarVec.y >= 0) { TempJumpVec = ParabolaVec(false, 25, _global.WGravity, SGet(this.Pos.x, this.Pos.y + this.Radius), SGet(this.TarPos.x, this.TarPos.y + this.AimEval.Radius)); } else { TempJumpVec = ParabolaVec(true, 25, _global.WGravity, SGet(this.Pos.x, this.Pos.y + this.Radius), SGet(this.TarPos.x, this.TarPos.y + this.AimEval.Radius)); } } if (TempJumpVec.y == 0 && TempJumpVec.x == 0) { TempRoketFlag = true; TempJumpVec = SScale(SNorm(SSub(this.TarPos, SGet(this.Pos.x, this.Pos.y + this.Radius))), Press); } if (1) { if (TempRoketFlag != true) { this.RoketFlag = false; this.RoketCount = 0; } else { this.RoketFlag = true; this.RoketCount = 12; } if (this.StandFlag != true) { if (TempRoketFlag != true) { if (!this.AirJumpFlag) { SetVisible('jump', this.Direction); this.RoketCount = 12; this.Vec.x = TempJumpVec.x; this.Vec.y = TempJumpVec.y; } else { this.AirJumpFlag = false; SetVisible('jump', this.Direction); this.RoketCount = 12; this.Vec.x = TempJumpVec.x; this.Vec.y = TempJumpVec.y; } } else { if (!this.AirJumpFlag) { this.RoketFlag = false; SetVisible('jump', this.Direction); this.Vec.x = TempJumpVec.x; this.Vec.y = TempJumpVec.y; } else { this.AirJumpFlag = false; SetVisible('jump', this.Direction); this.Vec.x = TempJumpVec.x; this.Vec.y = TempJumpVec.y; this.RoketCount = 12; } } } else { var TempCross = SCross(this.HorizonVec, TempJumpVec); if (0 >= TempCross) { this.Vec.x = TempJumpVec.x; this.Vec.y = TempJumpVec.y; if (TempRoketFlag != true) { SetVisible('jump', this.Direction); } else { SetVisible('jump', this.Direction); this.RoketCount = 12; } if (0 >= this.JumpVec.x) { this.Direction = -1; } else { this.Direction = 1; } } else { var TempDot = SDot(this.HorizonVec, TempJumpVec); if (0 >= TempDot) { TempDot = -1; } else { TempDot = 1; } this.Direction = TempDot; SetVisible('jump', this.Direction); } } } } } } } if (his.TarVec.y < -100 && this.AirJumpFlag == false && 0 < this.Vec.y && this.fly._visible == false && this.ShoulderFlag == false || this.AimReturnFlag && this.AimNearFlag && this.fly._visible == false && this.ShoulderFlag == false) { SetVisible('fly', this.Direction); } if (this.StandFlag != this.OldStandFlag) { if (!this.StandFlag) { this._rotation = 0; } else { this._rotation = Math.atan2(this.HorizonVec.y, this.HorizonVec.x) * 57.29577951; } this.OldStandFlag = this.StandFlag; } if (1) { } } } } } instance station of movieClip 32 ステーション { onClipEvent (load) { Line = new Array(WLineNum); var n = 0; goto 484; for (;;) { ++n; label 484: if (n >= WLineNum) break; Line[n] = LineMake0(); } Witch = new Array(WWitchNum); var n = 0; goto 577; for (;;) { ++n; label 577: if (n >= WWitchNum) break; Witch[n] = WitchMake0(); } this.EnCountLim = 0; this.EnCount = 0; this.ReturnPosFlag = false; this.ReturnPos = SGet(0, 0); this.SectionNum = 0; this.SectionCount = 0; this.Count = 0; this.DeathFlag = false; this.Num = 0; this.FirstFlag = true; this.SecondFlag = false; this.ThirdFlag = false; this.UsuallyFlag = false; this.Scale = 1; this.WitchCountOld = 0; this.LineCountOld = 0; this.FaceCount = 0; this.WitchCount = 0; this.LineCount = 0; this.A1 = SGet(0, 0); this.A2 = SGet(0, 0); this.A3 = SGet(0, 0); this.A4 = SGet(0, 0); this.A5 = SGet(0, 0); this.A6 = SGet(0, 0); this.A7 = SGet(0, 0); this.A8 = SGet(0, 0); this.A9 = SGet(0, 0); this.A10 = SGet(0, 0); this.A11 = SGet(0, 0); this.A12 = SGet(0, 0); this.A13 = SGet(0, 0); this.A14 = SGet(0, 0); this.A15 = SGet(0, 0); this.A16 = SGet(0, 0); this.A17 = SGet(0, 0); this.A18 = SGet(0, 0); this.A19 = SGet(0, 0); this.A20 = SGet(0, 0); this.A21 = SGet(0, 0); this.StationNum = 2; this.OldStationNum = 2; this.NowStationNum = 2; this.FormatFlag = false; _parent._parent.front.curtain.gotoAndPlay('movieStart1'); } onClipEvent (unload) { delete Line; delete Witch; } onClipEvent (enterFrame) { ++this.Count; ++this.FaceCount; if (this.FormatFlag) { this.FormatFlag = false; this.SectionCount = 0; _global.WMiniStageFlag = false; this.EnCountLim = 0; this.EnCount = 0; this.SectionNum = 0; this.OldStationNum = this.NowStationNum; this.NowStationNum = this.StationNum; var n = 0; goto 1799; for (;;) { ++n; label 1799: if (n >= WLineNum) break; Line[n] = LineMake0(); } var n = 0; goto 1872; for (;;) { ++n; label 1872: if (n >= WWitchNum) break; Witch[n] = WitchMake0(); } this.Count = 1; this.DeathFlag = false; this.Num = 0; this.FirstFlag = true; this.SecondFlag = false; this.ThirdFlag = false; this.UsuallyFlag = false; this.Scale = 1; this.WitchCountOld = 0; this.LineCountOld = 0; this.FaceCount = 1; this.WitchCount = 0; this.LineCount = 0; _parent.myChar._visible = false; _parent._parent.front.markMouse._visible = true; _parent._parent.front.markTar._visible = true; _parent._parent.front.textInfo._visible = true; var n = 0; goto 2267; for (;;) { ++n; label 2267: if (n >= WMagicNum) break; WMagicEval[n].removeMovieClip(); } _global.WMagicNum = 0; var n = 0; goto 2358; for (;;) { ++n; label 2358: if (n >= WLineNum) break; WLineEval[n].removeMovieClip(); } var n = 0; goto 2432; for (;;) { ++n; label 2432: if (n >= WGriefSeedNum) break; WGriefSeedEval[n].removeMovieClip(); } var n = 0; goto 2506; for (;;) { ++n; label 2506: if (n >= WWeaponNum) break; WWeaponEval[n].removeMovieClip(); } var n = 0; goto 2580; for (;;) { ++n; label 2580: if (n >= WBulletNum) break; _global.WFireEval[n].removeMovieClip(); _global.WBulletEval[n].removeMovieClip(); } var n = 0; goto 2691; for (;;) { ++n; label 2691: if (n >= WWitchNum) break; WWitchEval[n].removeMovieClip(); } var n = 0; goto 2765; for (;;) { ++n; label 2765: if (n >= WGateNum) break; (eval('_parent.gate' + n)).removeMovieClip(); } var n = 0; goto 2836; for (;;) { ++n; label 2836: if (n >= WMapPointNum) break; (eval('_parent.mapPoint' + n)).removeMovieClip(); } var n = 0; goto 2907; for (;;) { ++n; label 2907: if (n >= WLightNum) break; (eval('_parent.light' + n)).removeMovieClip(); } var n = 0; goto 2978; for (;;) { ++n; label 2978: if (WStageNum < n) break; (eval('_parent._parent.back.back.back' + n))._visible = false; (eval('_parent._parent.front.front.front' + n))._visible = false; } _parent.myChar._visible = false; _parent._parent.front.curtain.gotoAndPlay('movieStart1'); } if (this.FirstFlag == true) { _parent._parent.middle._visible = false; _parent._parent.back._visible = false; } if (this.SecondFlag == true && this.FaceCount == 1) { var n = 0; goto 3251; for (;;) { ++n; label 3251: if (n >= WBulletNum) break; (eval('_parent.bullet' + n)).removeMovieClip(); duplicateMovieClip('_parent.bullet', 'bullet' + n, 16384); } var n = 0; goto 3358; for (;;) { ++n; label 3358: if (n >= WWeaponNum) break; (eval('_parent.weapon' + n)).removeMovieClip(); duplicateMovieClip('_parent.weapon', 'weapon' + n, 16384); } var n = 0; goto 3465; for (;;) { ++n; label 3465: if (n >= WBulletNum) break; (eval('_parent.fire' + n)).removeMovieClip(); duplicateMovieClip('_parent.fire', 'fire' + n, 16384); } var n = 0; goto 3579; for (;;) { ++n; label 3579: if (n >= WGriefSeedNum) break; (eval('_parent.griefSeed' + n)).removeMovieClip(); duplicateMovieClip('_parent.griefSeed', 'griefSeed' + n, 16384); } var n = 0; goto 3686; for (;;) { ++n; label 3686: if (n >= WLightNum) break; (eval('_parent.light' + n)).removeMovieClip(); duplicateMovieClip('_parent.light', 'light' + n, 16384); var tempEval; tempEval = eval('_parent.light' + n); tempEval._x = -100; tempEval._y = -100; } } if (this.ThirdFlag == true && this.FaceCount == 1) { i = 0; goto 3899; for (;;) { ++i; label 3899: if (i >= WBulletNum) break; _global.WBulletEval[i] = eval('_parent.bullet' + i); _global.WBulletEval[i].ID = i; _global.WFireEval[i] = eval('_parent.fire' + i); _global.WFireEval[i].ID = i; } i = 0; goto 4062; for (;;) { ++i; label 4062: if (i >= WMagicNum) break; _global.WMagicEval[i] = eval('_parent.magic' + i); } i = 0; goto 4140; for (;;) { ++i; label 4140: if (i >= WWeaponNum) break; _global.WWeaponEval[i] = eval('_parent.weapon' + i); } i = 0; goto 4218; for (;;) { ++i; label 4218: if (i >= WWitchNum) break; _global.WWitchEval[i] = eval('_parent.witch' + i); } i = 0; goto 4296; for (;;) { ++i; label 4296: if (i >= WLineNum) break; _global.WLineEval[i] = eval('_parent.line' + i); } i = 0; goto 4374; for (;;) { ++i; label 4374: if (i >= WGriefSeedNum) break; _global.WGriefSeedEval[i] = eval('_parent.griefSeed' + i); } i = 0; goto 4452; for (;;) { ++i; label 4452: if (i >= WLightNum) break; _global.WLightEval[i] = eval('_parent.light' + i); } } if (this.UsuallyFlag == true && this.FaceCount == 1) { _parent._parent.middle._visible = true; _parent._parent.back._visible = true; _parent._parent.front.curtain.gotoAndPlay('movieStart2'); } if (this.StationNum == 0) { this.Num = this.StationNum; if (this.DeathFlag != true) { if (UsuallyFlag != true) { if (this.FirstFlag != true) { if (this.SecondFlag != true) { if (this.ThirdFlag == true) { if (this.FaceCount == 0) { goto 5781; } else { if (this.FaceCount == 1) { if (!this.ReturnPosFlag) { _parent.myChar.Pos = SScale(SGet(1150, 600), Scale); _parent.partner.Pos = SScale(SGet(1150, 600), Scale); } else { this.ReturnPosFlag = false; _parent.myChar.Pos = SEqual(this.ReturnPos); _parent.partner.Pos = SEqual(this.ReturnPos); } _parent.myChar.Vec = SGet(0, 0); _parent.myChar.Direction = -1; _parent.myChar.FormatFlag = true; if (!_global.WPartnerUseFlag) { _parent.partner._visible = false; } else { _parent.partner.Vec = SGet(0, 0); _parent.partner.Direction = -1; _parent.partner.FormatFlag = true; } _global.WPos.x = _parent.myChar.Pos.x - WCenterPos.x; _global.WPos.y = _parent.myChar.Pos.y - WCenterPos.y; SetLine(); SetGate(3, this.Num, 3, SScale(SGet(318, 291), Scale)); SetGate(5, this.Num, 5, SScale(SGet(1200, 100), Scale)); SetGate(1, 2, 1, SScale(SGet(1250, 650), Scale)); goto 5781; } else { if (this.FaceCount == 2) { goto 5781; } else { if (this.FaceCount == 3) { goto 5781; } } } } this.ThirdFlag = false; UsuallyFlag = true; this.FaceCount = 0; _parent._parent.front.instruction.ShowFlag = true; _parent._parent.front.instruction.ShowNum = 1; label 5781: this.FaceCount; } } else { if (this.FaceCount == 0) { goto 7570; } else { if (this.FaceCount == 1) { (eval('_parent._parent.front.front.front' + this.Num))._visible = true; (eval('_parent._parent.back.back.back' + this.Num))._visible = true; _global.WPos.x = 0; _global.WPos.y = 0; _parent.bgm.gotoAndPlay('bgm' + this.Num); goto 7570; } else { if (this.FaceCount == 2) { this.Scale = 1; _global.WLimPos1 = SScale(SGet(0, 0), Scale); _global.WLimPos2 = SScale(SGet(1280, 720), Scale); var Lim1 = SScale(SGet(0, 0), Scale); var Lim2 = SScale(SGet(0, 720), Scale); var Lim3 = SScale(SGet(1280, 720), Scale); var Lim4 = SScale(SGet(1280, 0), Scale); this.LineCount = 0; Line[LineCount++] = LineSKMake(Lim1, Lim2, 2); Line[LineCount++] = LineSKMake(Lim3, Lim4, 2); Line[LineCount++] = LineSKMake(Lim4, Lim1, 2); A1 = SScale(SGet(0, 700), Scale); A2 = SScale(SGet(1280, 700), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); A1 = SScale(SGet(0, 356), Scale); A2 = SScale(SGet(190, 356), Scale); A3 = SScale(SGet(436, 356), Scale); A4 = SScale(SGet(840, 356), Scale); A5 = SScale(SGet(1280, 159), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); Line[LineCount++] = LineSKMake(A3, A4, 1); Line[LineCount++] = LineSKMake(A4, A5, 1); A1 = SScale(SGet(0, 290), Scale); A2 = SScale(SGet(237, 290), Scale); A3 = SScale(SGet(400, 290), Scale); A4 = SScale(SGet(607, 290), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); Line[LineCount++] = LineSKMake(A3, A4, 1); A1 = SScale(SGet(1071, 465), Scale); A2 = SScale(SGet(1110, 429), Scale); A3 = SScale(SGet(1198, 440), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); Line[LineCount++] = LineSKMake(A2, A3, 1); CreateLine(); goto 7570; } else { if (this.FaceCount == 3) { CreateGate(3); CreateGate(5); CreateGate(1); goto 7570; } } } } this.SecondFlag = false; this.ThirdFlag = true; this.FaceCount = 0; label 7570: this.FaceCount; } } else { this.FirstFlag = false; this.SecondFlag = true; this.FaceCount = 0; _parent.bgm.gotoAndPlay('clear'); } } else { _global.WInfoGaugeTp = 0; _global.WInfoGaugeSc = 0; if (this.EnCount == 0) { ++this.EnCount; this.EnCountLim = 120 + random(360); this.SectionCount = 0; } if (_parent.myChar.stand._visible == false) { ++this.EnCount; } if (this.EnCountLim < this.EnCount) { ++this.SectionCount; if (this.SectionCount == 1) { _parent.effect.FormatFlag = true; } if (this.SectionCount == 20) { this.SectionCount = 0; this.EnCount = 0; this.StationNum = 10; this.FormatFlag = true; this.ReturnPosFlag = true; this.ReturnPos = SEqual(_parent.myChar.Pos); } } } } else {} } if (this.StationNum == 2) { this.Num = this.StationNum; if (this.DeathFlag != true) { if (UsuallyFlag != true) { if (this.FirstFlag != true) { if (this.SecondFlag != true) { if (this.ThirdFlag == true) { if (this.FaceCount == 0) { goto 9055; } else { if (this.FaceCount == 1) { _global.WPos.x = 0; _global.WPos.y = 0; goto 9055; } else { if (this.FaceCount == 2) { SetLine(); goto 9055; } else { if (this.FaceCount == 3) { SetGate(1, this.Num, 1, SScale(SGet(0, 564), Scale)); goto 9055; } } } } this.ThirdFlag = false; UsuallyFlag = true; this.FaceCount = 0; if (!this.ReturnPosFlag) { _parent.myChar.Pos = SScale(SGet(200, 564), Scale); _parent.partner.Pos = SScale(SGet(200, 564), Scale); } else { this.ReturnPosFlag = false; _parent.myChar.Pos = SEqual(this.ReturnPos); _parent.partner.Pos = SEqual(this.ReturnPos); } _parent.myChar.Vec = SGet(0, 0); _parent.myChar.Direction = -1; _parent.myChar.FormatFlag = true; if (!_global.WPartnerUseFlag) { _parent.partner._visible = false; } else { _parent.partner.Vec = SGet(0, 0); _parent.partner.Direction = -1; _parent.partner.FormatFlag = true; } _global.WPos.x = _parent.myChar.Pos.x - WCenterPos.x; _global.WPos.y = _parent.myChar.Pos.y - WCenterPos.y; label 9055: this.FaceCount; } } else { if (this.FaceCount == 0) { goto 10719; } else { if (this.FaceCount == 1) { (eval('_parent._parent.front.front.front' + this.Num))._visible = true; (eval('_parent._parent.back.back.back' + this.Num))._visible = true; _global.WPos.x = 0; _global.WPos.y = 0; _parent.bgm.gotoAndPlay('bgm' + this.Num); goto 10719; } else { if (this.FaceCount == 2) { this.Scale = 1; _global.WLimPos1 = SScale(SGet(0, 0), Scale); _global.WLimPos2 = SScale(SGet(786, 720), Scale); var Lim1 = SScale(SGet(0, 0), Scale); var Lim2 = SScale(SGet(0, 720), Scale); var Lim3 = SScale(SGet(786, 720), Scale); var Lim4 = SScale(SGet(786, 0), Scale); this.LineCount = 0; Line[LineCount++] = LineSKMake(Lim1, Lim2, 2); Line[LineCount++] = LineSKMake(Lim3, Lim4, 2); Line[LineCount++] = LineSKMake(Lim4, Lim1, 2); A1 = SScale(SGet(0, 610), Scale); A2 = SScale(SGet(786, 610), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); A1 = SScale(SGet(174, 505), Scale); A2 = SScale(SGet(347, 505), Scale); A3 = SScale(SGet(548, 543), Scale); A4 = SScale(SGet(697, 395), Scale); A5 = SScale(SGet(786, 395), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); Line[LineCount++] = LineSKMake(A3, A4, 1); Line[LineCount++] = LineSKMake(A4, A5, 1); A1 = SScale(SGet(0, 340), Scale); A2 = SScale(SGet(692, 340), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); A1 = SScale(SGet(494, 513), Scale); A2 = SScale(SGet(514, 513), Scale); A3 = SScale(SGet(548, 442), Scale); A4 = SScale(SGet(596, 442), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); Line[LineCount++] = LineSKMake(A3, A4, 1); CreateLine(); goto 10719; } else { if (this.FaceCount == 3) { CreateGate(1); goto 10719; } } } } this.SecondFlag = false; this.ThirdFlag = true; this.FaceCount = 0; label 10719: this.FaceCount; } } else { this.FirstFlag = false; this.SecondFlag = true; this.FaceCount = 0; _parent.bgm.gotoAndPlay('clear'); _parent._parent.front.markMouse._visible = false; _parent._parent.front.markTar._visible = false; _parent._parent.front.textInfo._visible = false; } } else { _global.WInfoGaugeTp = 0; _global.WInfoGaugeSc = 0; } } else {} } if (this.StationNum == 1) { this.Num = this.StationNum; if (this.DeathFlag != true) { if (UsuallyFlag != true) { if (this.FirstFlag != true) { if (this.SecondFlag != true) { if (this.ThirdFlag == true) { if (this.FaceCount == 0) { goto 11569; } else { if (this.FaceCount == 1) { _parent.myChar._visible = false; _parent.partner._visible = false; _global.WPos.x = 0; _global.WPos.y = 0; goto 11569; } else { if (this.FaceCount == 2) { SetLine(); goto 11569; } else { if (this.FaceCount == 3) { this.Scale = 1; SetMapPoint(0, 0, 0, SScale(SGet(50, 70), Scale)); SetMapPoint(2, 2, 2, SScale(SGet(502, 443), Scale)); SetMapPoint(7, 7, 7, SScale(SGet(110, 93), Scale)); goto 11569; } } } } this.ThirdFlag = false; UsuallyFlag = true; this.FaceCount = 0; label 11569: this.FaceCount; } } else { if (this.FaceCount == 0) { goto 12068; } else { if (this.FaceCount == 1) { (eval('_parent._parent.front.front.front' + this.Num))._visible = true; (eval('_parent._parent.back.back.back' + this.Num))._visible = true; _global.WPos.x = 0; _global.WPos.y = 0; if (this.OldStationNum != 2) { _parent.bgm.gotoAndPlay('bgm' + 2); } else {} goto 12068; } else { if (this.FaceCount == 2) { this.Scale = 1; _global.WLimPos1 = SScale(SGet(0, 0), Scale); _global.WLimPos2 = SScale(SGet(640, 480), Scale); goto 12068; } else { if (this.FaceCount == 3) { CreateMapPoint(0); CreateMapPoint(7); CreateMapPoint(2); goto 12068; } } } } this.SecondFlag = false; this.ThirdFlag = true; this.FaceCount = 0; label 12068: this.FaceCount; } } else { this.FirstFlag = false; this.SecondFlag = true; this.FaceCount = 0; if (this.OldStationNum != 2) { _parent.bgm.gotoAndPlay('clear'); } else {} _parent._parent.front.markMouse._visible = false; _parent._parent.front.markTar._visible = false; _parent._parent.front.textInfo._visible = false; } } else { _global.WInfoGaugeTp = 0; _global.WInfoGaugeSc = 0; } } else {} } if (this.StationNum == 7) { this.Num = this.StationNum; if (this.DeathFlag != true) { if (UsuallyFlag != true) { if (this.FirstFlag != true) { if (this.SecondFlag != true) { if (this.ThirdFlag == true) { if (this.FaceCount == 0) { goto 13138; } else { if (this.FaceCount == 1) { _parent.myChar.Pos = SScale(SGet(100, 600), Scale); _parent.myChar.Vec = SGet(0, 0); _parent.myChar.Direction = -1; _parent.myChar.FormatFlag = true; if (!_global.WPartnerUseFlag) { _parent.partner._visible = false; } else { _parent.partner.Pos = SScale(SGet(100, 600), Scale); _parent.partner.Vec = SGet(0, 0); _parent.partner.Direction = -1; _parent.partner.FormatFlag = true; } _global.WPos.x = _parent.myChar.Pos.x - WCenterPos.x; _global.WPos.y = _parent.myChar.Pos.y - WCenterPos.y; SetLine(); SetWitch(); goto 13138; } else { if (this.FaceCount == 2) { goto 13138; } else { if (this.FaceCount == 3) { SetGate(1, 2, 1, SScale(SGet(0, 600), Scale)); goto 13138; } } } } this.ThirdFlag = false; UsuallyFlag = true; this.FaceCount = 0; label 13138: this.FaceCount; } } else { if (this.FaceCount == 0) { goto 14248; } else { if (this.FaceCount == 1) { (eval('_parent._parent.front.front.front' + this.Num))._visible = true; (eval('_parent._parent.back.back.back' + this.Num))._visible = true; _global.WPos.x = 0; _global.WPos.y = 0; _parent.bgm.gotoAndPlay('bgm' + this.Num); goto 14248; } else { if (this.FaceCount == 2) { this.Scale = 1; _global.WLimPos1 = SScale(SGet(0, 0), Scale); _global.WLimPos2 = SScale(SGet(1280, 720), Scale); var Lim1 = SScale(SGet(0, 0), Scale); var Lim2 = SScale(SGet(0, 720), Scale); var Lim3 = SScale(SGet(1280, 720), Scale); var Lim4 = SScale(SGet(1280, 0), Scale); this.LineCount = 0; Line[LineCount++] = LineSKMake(Lim1, Lim2, 2); Line[LineCount++] = LineSKMake(Lim3, Lim4, 2); Line[LineCount++] = LineSKMake(Lim4, Lim1, 2); A1 = SScale(SGet(0, 700), Scale); A2 = SScale(SGet(1280, 700), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); CreateLine(); goto 14248; } else { if (this.FaceCount == 3) { CreateGate(1); WitchCount = 0; WitchCountOld = WitchCount; var n = 0; goto 14031; for (;;) { ++n; label 14031: if (n >= 10) break; Witch[WitchCount++] = WitchSKMake(SScale(SGet(random(1080) + 100, random(500) + 100), Scale), 5); } CreateWitchNum(WitchCountOld, WitchCount); goto 14248; } } } } this.SecondFlag = false; this.ThirdFlag = true; this.FaceCount = 0; label 14248: this.FaceCount; } } else { this.FirstFlag = false; this.SecondFlag = true; this.FaceCount = 0; _parent.bgm.gotoAndPlay('clear'); } } else { if (this.Count % 200 == 0) { MaxNum = 5; j = 0; goto 14402; for (;;) { ++j; label 14402: if (j >= MaxNum) break; var TempFlag = true; i = 0; goto 14454; for (;;) { ++i; label 14454: if (i >= WWitchNum) break; var that; that = WWitchEval[i]; if (that.ExistFlag == false && that.BossFlag == false) { that.FormatFlag = true; that.LvCount = WMyCharEval.LvCount + random(3); that.Vec = SGet(0, 0); that.Pos = SScale(SGet(random(800) + 200, random(700)), Scale); TempFlag = false; } else {} } if (TempFlag) { } else {} } } } } else {} } if (this.StationNum == 6) { this.Num = this.StationNum; if (this.DeathFlag != true) { if (UsuallyFlag != true) { if (this.FirstFlag != true) { if (this.SecondFlag != true) { if (this.ThirdFlag == true) { if (this.FaceCount == 0) { goto 15612; } else { if (this.FaceCount == 1) { _parent.myChar.Pos = SScale(SGet(320, 240), Scale); _parent.myChar.Vec = SGet(0, 0); _parent.myChar.Direction = 1; _parent.myChar.FormatFlag = true; if (!_global.WPartnerUseFlag) { _parent.partner._visible = false; } else { _parent.partner.Pos = SScale(SGet(300, 240), Scale); _parent.partner.Vec = SGet(0, 0); _parent.partner.Direction = 1; _parent.partner.FormatFlag = true; } _global.WPos.x = _parent.myChar.Pos.x - WCenterPos.x; _global.WPos.y = _parent.myChar.Pos.y - WCenterPos.y; SetLine(); goto 15612; } else { if (this.FaceCount == 2) { SetGate(0, this.Num, 0, SScale(SGet(4000, 2000), Scale)); goto 15612; } else { if (this.FaceCount == 3) { goto 15612; } else { if (this.FaceCount == 4) { goto 15612; } else { if (this.FaceCount == 5) { goto 15612; } } } } } } _parent._parent.front.scoreShow._visible = true; this.ThirdFlag = false; UsuallyFlag = true; this.FaceCount = 0; label 15612: this.FaceCount; } } else { if (this.FaceCount == 0) { goto 16489; } else { if (this.FaceCount == 1) { (eval('_parent._parent.front.front.front' + this.Num))._visible = true; (eval('_parent._parent.back.back.back' + this.Num))._visible = true; _global.WPos.x = 0; _global.WPos.y = 0; _parent.bgm.gotoAndPlay('bgm' + this.Num); goto 16489; } else { if (this.FaceCount == 2) { this.Scale = 1; _global.WLimPos1 = SScale(SGet(0, 0), Scale); _global.WLimPos2 = SScale(SGet(640, 480), Scale); var Lim1 = SScale(SGet(0, 0), Scale); var Lim2 = SScale(SGet(0, 480), Scale); var Lim3 = SScale(SGet(640, 480), Scale); var Lim4 = SScale(SGet(640, 0), Scale); LineCount = 0; Line[LineCount++] = LineSKMake(Lim1, Lim2, 2); Line[LineCount++] = LineSKMake(Lim2, Lim3, 1); Line[LineCount++] = LineSKMake(Lim3, Lim4, 2); Line[LineCount++] = LineSKMake(Lim4, Lim1, 2); CreateLine(); goto 16489; } else { if (this.FaceCount == 3) { CreateGate(0); goto 16489; } else { if (this.FaceCount == 4) { goto 16489; } else { if (this.FaceCount == 5) { goto 16489; } } } } } } this.FaceCount = 0; this.SecondFlag = false; this.ThirdFlag = true; label 16489: this.FaceCount; } } else { this.FirstFlag = false; this.SecondFlag = true; this.FaceCount = 0; _parent.bgm.gotoAndPlay('clear'); } } else { if (_global.WScoreShowEndFlag == true) { _global.WScoreShowEndFlag = false; OpenGate(0, 0); } } } else {} } if (this.StationNum == 5) { this.Num = this.StationNum; if (this.DeathFlag != true) { if (UsuallyFlag != true) { if (this.FirstFlag != true) { if (this.SecondFlag != true) { if (this.ThirdFlag == true) { if (this.FaceCount == 0) { goto 17860; } else { if (this.FaceCount == 1) { _parent.myChar.Pos = SScale(SGet(1000, 240), Scale); _parent.myChar.Vec = SGet(0, 0); _parent.myChar.Direction = 1; _parent.myChar.FormatFlag = true; if (!_global.WPartnerUseFlag) { _parent.partner._visible = false; } else { _parent.partner.Pos = SScale(SGet(960, 240), Scale); _parent.partner.Vec = SGet(0, 0); _parent.partner.Direction = -1; _parent.partner.FormatFlag = true; } _global.WPos.x = _parent.myChar.Pos.x - WCenterPos.x; _global.WPos.y = _parent.myChar.Pos.y - WCenterPos.y; SetLine(); goto 17860; } else { if (this.FaceCount == 2) { goto 17860; } else { if (this.FaceCount == 3) { SetWitch(); goto 17860; } else { if (this.FaceCount == 4) { MaxNum = 1; j = 0; goto 17396; for (;;) { ++j; label 17396: if (j >= MaxNum) break; i = 0; goto 17440; for (;;) { ++i; label 17440: if (i >= WWitchNum) break; var that; that = WWitchEval[i]; if (that.BossFlag) { that.FormatFlag = true; that.LvCount = random(WMyCharEval.LvCount) + 10; that.Vec = SGet(0, 0); that.Pos = SScale(SGet(1400, 850), Scale); } else {} } } goto 17860; } else { if (this.FaceCount == 5) { SetGate(6, this.Num, 6, SScale(SGet(-100, 5000), Scale)); goto 17860; } } } } } } this.FaceCount = 0; this.ThirdFlag = false; UsuallyFlag = true; _parent._parent.front.instruction.ShowFlag = true; _parent._parent.front.instruction.ShowNum = 3; label 17860: this.FaceCount; } } else { if (this.FaceCount == 0) { goto 18672; } else { if (this.FaceCount == 1) { (eval('_parent._parent.front.front.front' + this.Num))._visible = true; (eval('_parent._parent.back.back.back' + this.Num))._visible = true; _global.WPos.x = 0; _global.WPos.y = 0; _parent.bgm.gotoAndPlay('bgm' + this.Num); goto 18672; } else { if (this.FaceCount == 2) { this.Scale = 1; _global.WLimPos1 = SScale(SGet(0, 0), Scale); _global.WLimPos2 = SScale(SGet(2000, 1000), Scale); var Lim1 = SScale(SGet(-10000, 1000), Scale); var Lim2 = SScale(SGet(10000, 1000), Scale); LineCount = 0; A1 = SGet(-10000, 960); A2 = SGet(10000, 960); Line[LineCount++] = LineSKMake(A1, A2, 1); CreateLine(); goto 18672; } else { if (this.FaceCount == 3) { CreateGate(6); goto 18672; } else { if (this.FaceCount == 4) { var WitchCount = 0; Witch[WitchCount++] = WitchSKPMake(SScale(SGet(1400, 850), Scale), 4, 1, 0, 0, 0); CreateWitch(); goto 18672; } else { if (this.FaceCount == 5) { goto 18672; } } } } } } this.FaceCount = 0; this.SecondFlag = false; this.ThirdFlag = true; label 18672: this.FaceCount; } } else { this.FirstFlag = false; this.SecondFlag = true; this.FaceCount = 0; _parent.bgm.gotoAndPlay('clear'); } } else { if (_global.WInfoBossDeathFlag == true) { _global.WInfoBossDeathFlag = false; var GateID; OpenGate(6, 60); } } } else {} } if (this.StationNum == 3) { this.Num = this.StationNum; if (this.DeathFlag != true) { if (UsuallyFlag != true) { if (this.FirstFlag != true) { if (this.SecondFlag != true) { if (this.ThirdFlag == true) { if (this.FaceCount == 0) { goto 20311; } else { if (this.FaceCount == 1) { _parent.myChar.Pos = SScale(SGet(900, 650), Scale); _parent.myChar.Vec = SGet(0, 0); _parent.myChar.Direction = -1; _parent.myChar.FormatFlag = true; if (!_global.WPartnerUseFlag) { _parent.partner._visible = false; } else { _parent.partner.Pos = SScale(SGet(860, 650), Scale); _parent.partner.Vec = SGet(0, 0); _parent.partner.Direction = -1; _parent.partner.FormatFlag = true; } _global.WPos.x = _parent.myChar.Pos.x - WCenterPos.x; _global.WPos.y = _parent.myChar.Pos.y - WCenterPos.y; SetLine(); SetWitch(); goto 20311; } else { if (this.FaceCount == 2) { SetGate(5, this.Num, 5, SScale(SGet(-15000, -18000), Scale)); var m = 0; goto 19594; for (;;) { ++m; label 19594: if (m >= 4) break; var that; var TempFlag = false; var n = 0; goto 19654; for (;;) { ++n; label 19654: if (n >= WGriefSeedNum) break; that = eval('_parent.griefSeed' + n); if (that.KeyFlag == false) { that.KeyFlag = true; that.ExistFlag = true; TempFlag = true; } else {} } if (TempFlag == true) { if (m != 0) { if (m != 1) { if (m != 2) { if (m == 3) { that.Pos = SScale(SGet(988, 427), Scale); } } else { that.Pos = SScale(SGet(1156, 60), Scale); } } else { that.Pos = SScale(SGet(141, 621), Scale); } } else { that.Pos = SScale(SGet(202, 211), Scale); } that.Vec = SGet(0, 0); that.FormatFlag = true; } } goto 20311; } else { if (this.FaceCount == 3) { goto 20311; } else { if (this.FaceCount == 4) { goto 20311; } else { if (this.FaceCount == 5) { goto 20311; } } } } } } this.FaceCount = 0; this.ThirdFlag = false; UsuallyFlag = true; _parent._parent.front.instruction.ShowFlag = true; _parent._parent.front.instruction.ShowNum = 2; label 20311: this.FaceCount; } } else { if (this.FaceCount == 0) { goto 29857; } else { if (this.FaceCount == 1) { (eval('_parent._parent.front.front.front' + this.Num))._visible = true; (eval('_parent._parent.back.back.back' + this.Num))._visible = true; _global.WPos.x = 0; _global.WPos.y = 0; _parent.bgm.gotoAndPlay('bgm' + this.Num); goto 29857; } else { if (this.FaceCount == 2) { this.Scale = 4; _global.WLimPos1 = SScale(SGet(0, 0), Scale); _global.WLimPos2 = SScale(SGet(1200, 800), Scale); var Lim1 = SScale(SGet(0, 0), Scale); var Lim2 = SScale(SGet(0, 8000), Scale); var Lim3 = SScale(SGet(1200, 800), Scale); var Lim4 = SScale(SGet(1200, 0), Scale); LineCount = 0; LineCountOld = 0; Line[LineCount++] = LineSKMake(Lim2, Lim3, 1); goto 29857; } else { if (this.FaceCount == 3) { A1 = SScale(SGet(348, 40), Scale); A2 = SScale(SGet(440, 40), Scale); A3 = SScale(SGet(400, 40), Scale); A4 = SScale(SGet(400, 62), Scale); A5 = SScale(SGet(215, 229), Scale); A6 = SScale(SGet(17, 229), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); Line[LineCount++] = LineSKMake(A3, A4, 2); Line[LineCount++] = LineSKMake(A4, A5, 1); Line[LineCount++] = LineSKMake(A5, A6, 1); A1 = SScale(SGet(528, 40), Scale); A2 = SScale(SGet(620, 40), Scale); A3 = SScale(SGet(673, 129), Scale); A4 = SScale(SGet(799, 129), Scale); A5 = SScale(SGet(714, 68), Scale); A6 = SScale(SGet(792, 68), Scale); A7 = SScale(SGet(772, 10), Scale); A8 = SScale(SGet(802, 10), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); Line[LineCount++] = LineSKMake(A3, A2, 1); Line[LineCount++] = LineSKMake(A3, A4, 1); Line[LineCount++] = LineSKMake(A5, A6, 1); Line[LineCount++] = LineSKMake(A7, A8, 1); A1 = SScale(SGet(400, 191), Scale); A2 = SScale(SGet(467, 191), Scale); A3 = SScale(SGet(512, 191), Scale); A4 = SScale(SGet(589, 191), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); Line[LineCount++] = LineSKMake(A3, A4, 1); A1 = SScale(SGet(565, 228), Scale); A2 = SScale(SGet(658, 228), Scale); A3 = SScale(SGet(717, 197), Scale); A4 = SScale(SGet(762, 254), Scale); A5 = SScale(SGet(835, 254), Scale); A6 = SScale(SGet(804, 209), Scale); A7 = SScale(SGet(864, 209), Scale); A8 = SScale(SGet(828, 161), Scale); A9 = SScale(SGet(864, 161), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); Line[LineCount++] = LineSKMake(A3, A2, 1); Line[LineCount++] = LineSKMake(A3, A4, 1); Line[LineCount++] = LineSKMake(A5, A4, 1); Line[LineCount++] = LineSKMake(A7, A6, 1); Line[LineCount++] = LineSKMake(A9, A8, 1); A1 = SScale(SGet(179, 371), Scale); A2 = SScale(SGet(297, 371), Scale); A3 = SScale(SGet(262, 405), Scale); A4 = SScale(SGet(304, 405), Scale); A5 = SScale(SGet(271, 444), Scale); A6 = SScale(SGet(371, 444), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); Line[LineCount++] = LineSKMake(A3, A4, 1); Line[LineCount++] = LineSKMake(A5, A6, 1); A1 = SScale(SGet(395, 275), Scale); A2 = SScale(SGet(636, 275), Scale); A3 = SScale(SGet(352, 324), Scale); A4 = SScale(SGet(419, 324), Scale); A5 = SScale(SGet(429, 348), Scale); A6 = SScale(SGet(463, 348), Scale); A7 = SScale(SGet(478, 338), Scale); A8 = SScale(SGet(546, 338), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); Line[LineCount++] = LineSKMake(A3, A4, 1); Line[LineCount++] = LineSKMake(A6, A5, 1); Line[LineCount++] = LineSKMake(A7, A8, 1); CreateLineNum(LineCountOld, LineCount); goto 29857; } else { if (this.FaceCount == 4) { LineCountOld = LineCount; A1 = SScale(SGet(631, 300), Scale); A2 = SScale(SGet(657, 300), Scale); A3 = SScale(SGet(646, 324), Scale); A4 = SScale(SGet(672, 324), Scale); A5 = SScale(SGet(630, 356), Scale); A6 = SScale(SGet(657, 356), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); Line[LineCount++] = LineSKMake(A3, A4, 1); Line[LineCount++] = LineSKMake(A5, A6, 1); A1 = SScale(SGet(392, 433), Scale); A2 = SScale(SGet(458, 433), Scale); A3 = SScale(SGet(439, 478), Scale); A4 = SScale(SGet(499, 478), Scale); A5 = SScale(SGet(486, 523), Scale); A6 = SScale(SGet(548, 523), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); Line[LineCount++] = LineSKMake(A3, A4, 1); Line[LineCount++] = LineSKMake(A5, A6, 1); A1 = SScale(SGet(563, 398), Scale); A2 = SScale(SGet(633, 398), Scale); A3 = SScale(SGet(518, 446), Scale); A4 = SScale(SGet(660, 446), Scale); A5 = SScale(SGet(453, 565), Scale); A6 = SScale(SGet(639, 565), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); Line[LineCount++] = LineSKMake(A3, A4, 1); Line[LineCount++] = LineSKMake(A5, A6, 1); A1 = SScale(SGet(693, 516), Scale); A2 = SScale(SGet(753, 516), Scale); A3 = SScale(SGet(684, 565), Scale); A4 = SScale(SGet(841, 565), Scale); A5 = SScale(SGet(736, 695), Scale); A6 = SScale(SGet(1014, 695), Scale); A7 = SScale(SGet(649, 644), Scale); A8 = SScale(SGet(764, 644), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); Line[LineCount++] = LineSKMake(A3, A4, 1); Line[LineCount++] = LineSKMake(A5, A6, 1); Line[LineCount++] = LineSKMake(A7, A8, 1); A1 = SScale(SGet(524, 637), Scale); A2 = SScale(SGet(586, 637), Scale); A3 = SScale(SGet(611, 684), Scale); A4 = SScale(SGet(672, 684), Scale); A5 = SScale(SGet(690, 724), Scale); A6 = SScale(SGet(752, 724), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); Line[LineCount++] = LineSKMake(A3, A4, 1); Line[LineCount++] = LineSKMake(A5, A6, 1); A1 = SScale(SGet(315, 529), Scale); A2 = SScale(SGet(423, 529), Scale); A3 = SScale(SGet(377, 529), Scale); A4 = SScale(SGet(377, 563), Scale); A5 = SScale(SGet(431, 609), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); Line[LineCount++] = LineSKMake(A3, A4, 2); Line[LineCount++] = LineSKMake(A5, A4, 1); CreateLineNum(LineCountOld, LineCount); goto 29857; } else { if (this.FaceCount == 5) { LineCountOld = LineCount; A1 = SScale(SGet(234, 688), Scale); A2 = SScale(SGet(413, 688), Scale); A3 = SScale(SGet(461, 632), Scale); A4 = SScale(SGet(630, 772), Scale); A5 = SScale(SGet(102, 639), Scale); A6 = SScale(SGet(176, 639), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); Line[LineCount++] = LineSKMake(A3, A2, 1); Line[LineCount++] = LineSKMake(A4, A3, 1); Line[LineCount++] = LineSKMake(A5, A6, 1); A1 = SScale(SGet(957, 282), Scale); A2 = SScale(SGet(1022, 204), Scale); A3 = SScale(SGet(1074, 143), Scale); A4 = SScale(SGet(1126, 82), Scale); A5 = SScale(SGet(1177, 82), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); Line[LineCount++] = LineSKMake(A3, A4, 1); Line[LineCount++] = LineSKMake(A5, A4, 1); A1 = SScale(SGet(1144, 222), Scale); A2 = SScale(SGet(1177, 222), Scale); A3 = SScale(SGet(1025, 273), Scale); A4 = SScale(SGet(1101, 186), Scale); A5 = SScale(SGet(1177, 186), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); Line[LineCount++] = LineSKMake(A3, A4, 1); Line[LineCount++] = LineSKMake(A5, A4, 1); A1 = SScale(SGet(808, 380), Scale); A2 = SScale(SGet(873, 380), Scale); A3 = SScale(SGet(932, 312), Scale); A4 = SScale(SGet(1086, 312), Scale); A5 = SScale(SGet(1185, 411), Scale); A6 = SScale(SGet(1098, 268), Scale); A7 = SScale(SGet(1177, 268), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); Line[LineCount++] = LineSKMake(A2, A3, 1); Line[LineCount++] = LineSKMake(A3, A4, 1); Line[LineCount++] = LineSKMake(A5, A4, 1); Line[LineCount++] = LineSKMake(A7, A6, 1); A1 = SScale(SGet(859, 451), Scale); A2 = SScale(SGet(1022, 451), Scale); A3 = SScale(SGet(954, 498), Scale); A4 = SScale(SGet(1072, 498), Scale); A5 = SScale(SGet(886, 530), Scale); A6 = SScale(SGet(924, 530), Scale); A7 = SScale(SGet(983, 590), Scale); A8 = SScale(SGet(1196, 590), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); Line[LineCount++] = LineSKMake(A3, A4, 1); Line[LineCount++] = LineSKMake(A5, A6, 1); Line[LineCount++] = LineSKMake(A7, A8, 1); CreateLineNum(LineCountOld, LineCount); goto 29857; } else { if (this.FaceCount == 6) { CreateGate(5); WitchCount = 0; WitchCountOld = WitchCount; var n = 0; goto 28702; for (;;) { ++n; label 28702: if (n >= 2) break; Witch[WitchCount++] = WitchSKMake(SScale(SGet(random(800) + 200, random(700)), Scale), 1); } var n = 0; goto 28846; for (;;) { ++n; label 28846: if (n >= 1) break; Witch[WitchCount++] = WitchSKMake(SScale(SGet(random(800) + 200, random(700)), Scale), 3); } var n = 0; goto 28990; for (;;) { ++n; label 28990: if (n >= 2) break; Witch[WitchCount++] = WitchSKMake(SScale(SGet(random(800) + 200, random(700)), Scale), 2); } CreateWitchNum(WitchCountOld, WitchCount); goto 29857; } else { if (this.FaceCount == 7) { } else { if (this.FaceCount == 8) { } else { if (this.FaceCount == 9) { } else { if (this.FaceCount == 10) { } else { if (this.FaceCount == 11) { } else { if (this.FaceCount == 12) { } else { if (this.FaceCount == 13) { } else { if (this.FaceCount == 14) { } else { if (this.FaceCount == 15) { WitchCountOld = WitchCount; var n = 0; goto 29361; for (;;) { ++n; label 29361: if (n >= 2) break; Witch[WitchCount++] = WitchSKMake(SScale(SGet(random(800) + 200, random(700)), Scale), 1); } var n = 0; goto 29505; for (;;) { ++n; label 29505: if (n >= 2) break; Witch[WitchCount++] = WitchSKMake(SScale(SGet(random(800) + 200, random(700)), Scale), 3); } var n = 0; goto 29649; for (;;) { ++n; label 29649: if (n >= 2) break; Witch[WitchCount++] = WitchSKMake(SScale(SGet(random(800) + 200, random(700)), Scale), 2); } CreateWitchNum(WitchCountOld, WitchCount); goto 29857; } } } } } } } } } } } } } } } } this.FaceCount = 0; this.SecondFlag = false; this.ThirdFlag = true; label 29857: this.FaceCount; } } else { this.FirstFlag = false; this.SecondFlag = true; this.FaceCount = 0; _parent.bgm.gotoAndPlay('clear'); } } else { if (_global.WInfoGaugeKp >= 4) { _global.WInfoGaugeKp = 0; _global.WInfoBossFlag = true; _global.VisibleLange2 = 1000; } if (_global.WInfoBossFlag == true) { _global.WInfoBossFlag = false; OpenGate(5, 30); } if (_global.WInfoBossFlag == false) { if (this.Count % 500 == 0) { MaxNum = random(WMyCharEval.LvCount) + random(3); j = 0; goto 30186; for (;;) { ++j; label 30186: if (j >= MaxNum) break; i = 0; goto 30230; for (;;) { ++i; label 30230: if (i >= WWitchNum) break; var that; that = WWitchEval[i]; if (that.ExistFlag == false && that.BossFlag == false) { that.FormatFlag = true; that.LvCount = WMyCharEval.LvCount + random(3); that.Vec = SGet(0, 0); that.Pos = SScale(SGet(random(800) + 200, random(700)), Scale); } else {} } } } } } } else {} } if (this.StationNum == 10) { this.Num = this.StationNum; if (this.DeathFlag != true) { if (UsuallyFlag != true) { if (this.FirstFlag != true) { if (this.SecondFlag != true) { if (this.ThirdFlag == true) { if (this.FaceCount == 0) { goto 31373; } else { if (this.FaceCount == 1) { _parent.myChar.Pos = SScale(SGet(580, 380), Scale); _parent.myChar.Vec = SGet(0, 0); _parent.myChar.Direction = -1; _parent.myChar.FormatFlag = true; if (!_global.WPartnerUseFlag) { _parent.partner._visible = false; } else { _parent.partner.Pos = SScale(SGet(580, 380), Scale); _parent.partner.Vec = SGet(0, 0); _parent.partner.Direction = -1; _parent.partner.FormatFlag = true; } _global.WPos.x = _parent.myChar.Pos.x - WCenterPos.x; _global.WPos.y = _parent.myChar.Pos.y - WCenterPos.y; SetLine(); SetWitch(); goto 31373; } else { if (this.FaceCount == 2) { goto 31373; } else { if (this.FaceCount == 3) { goto 31373; } else { if (this.FaceCount == 4) { goto 31373; } else { if (this.FaceCount == 5) { goto 31373; } } } } } } this.FaceCount = 0; this.ThirdFlag = false; UsuallyFlag = true; this.SectionNum = 1; _parent._parent.front.instruction.ShowFlag = true; _parent._parent.front.instruction.ShowNum = 2; label 31373: this.FaceCount; } } else { if (this.FaceCount == 0) { goto 32935; } else { if (this.FaceCount == 1) { (eval('_parent._parent.front.front.front' + this.Num))._visible = true; (eval('_parent._parent.back.back.back' + this.Num))._visible = true; _global.WPos.x = 0; _global.WPos.y = 0; _parent.bgm.gotoAndPlay('bgm' + this.Num); goto 32935; } else { if (this.FaceCount == 2) { this.Scale = 1; _global.WLimPos1 = SScale(SGet(0, 0), Scale); _global.WLimPos2 = SScale(SGet(640, 480), Scale); var Lim1 = SScale(SGet(0, 0), Scale); var Lim2 = SScale(SGet(0, 480), Scale); var Lim3 = SScale(SGet(640, 480), Scale); var Lim4 = SScale(SGet(640, 0), Scale); LineCount = 0; LineCountOld = 0; Line[LineCount++] = LineSKMake(Lim1, Lim2, 2); Line[LineCount++] = LineSKMake(Lim3, Lim4, 2); Line[LineCount++] = LineSKMake(Lim4, Lim1, 2); A1 = SScale(SGet(0, 440), Scale); A2 = SScale(SGet(640, 440), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); CreateLineNum(LineCountOld, LineCount); goto 32935; } else { if (this.FaceCount == 3) { WitchCount = 0; WitchCountOld = WitchCount; _global.WWitchExistNum = 0; var n = 0; goto 32283; for (;;) { ++n; label 32283: if (n >= 2) break; Witch[WitchCount++] = WitchSKMake(SScale(SGet(random(_global.WLimPos2.x - 100) + 50, random(_global.WLimPos2.x - 100) + 50), Scale), 1); } var n = 0; goto 32474; for (;;) { ++n; label 32474: if (n >= 1) break; Witch[WitchCount++] = WitchSKMake(SScale(SGet(random(_global.WLimPos2.x - 100) + 50, random(_global.WLimPos2.x - 100) + 50), Scale), 3); } var n = 0; goto 32665; for (;;) { ++n; label 32665: if (n >= 2) break; Witch[WitchCount++] = WitchSKMake(SScale(SGet(random(_global.WLimPos2.x - 100) + 50, random(_global.WLimPos2.x - 100) + 50), Scale), 2); } _global.WWitchExistNum = WitchCount; CreateWitchNum(WitchCountOld, WitchCount); goto 32935; } } } } this.FaceCount = 0; this.SecondFlag = false; this.ThirdFlag = true; label 32935: this.FaceCount; } } else { this.FirstFlag = false; this.SecondFlag = true; this.FaceCount = 0; this.SectionNum = 0; _parent.bgm.gotoAndPlay('clear'); _global.WMiniStageFlag = true; } } else { if (0 >= WWitchExistNum && this.SectionNum == 1) { this.SectionNum = 2; _parent._parent.front.scoreShow._visible = true; _global.WScoreShowEndFlag = false; } if (_global.WScoreShowEndFlag && this.SectionNum == 2) { this.SectionNum = 3; _global.WScoreShowEndFlag = false; this.StationNum = this.OldStationNum; this.FormatFlag = true; } } } else {} } if (this.StationNum == 200) { this.Num = this.StationNum; if (this.DeathFlag != true) { if (UsuallyFlag != true) { if (this.FirstFlag != true) { if (this.SecondFlag != true) { if (this.ThirdFlag == true) { this.ThirdFlag = false; UsuallyFlag = true; _parent.myChar.Pos = SScale(SGet(300, 400), Scale); _parent.myChar.Vec = SGet(0, 0); _parent.myChar._visible = true; _parent.myChar.FormatFlag = true; _global.WPos.x = _parent.myChar.Pos.x - WCenterPos.x; _global.WPos.y = _parent.myChar.Pos.y - WCenterPos.y; SetLine(); SetWitch(); var GateID; GateID = 0; (eval('_parent.gate' + GateID)).GotoStationNum = GateID; (eval('_parent.gate' + GateID)).HostStationNum = this.Num; GateID = 1; (eval('_parent.gate' + GateID)).GotoStationNum = 0; (eval('_parent.gate' + GateID)).HostStationNum = this.Num; } } else { this.SecondFlag = false; this.ThirdFlag = true; (eval('_parent._parent.front.front.front' + this.Num))._visible = true; (eval('_parent._parent.back.back.back' + this.Num))._visible = true; _global.WPos.x = 0; _global.WPos.y = 0; _parent.bgm.gotoAndPlay('bgm' + this.Num); this.Scale = 2; _global.WLimPos1 = SScale(SGet(0, 0), Scale); _global.WLimPos2 = SScale(SGet(4000, 1000), Scale); var Lim1 = SScale(SGet(0, 0), Scale); var Lim2 = SScale(SGet(0, 1000), Scale); var Lim3 = SScale(SGet(4000, 1000), Scale); var Lim4 = SScale(SGet(4000, 0), Scale); var LineCount = 0; Line[LineCount++] = LineSKMake(Lim1, Lim2, 2); Line[LineCount++] = LineSKMake(Lim2, Lim3, 1); Line[LineCount++] = LineSKMake(Lim3, Lim4, 2); Line[LineCount++] = LineSKMake(Lim4, Lim1, 2); var A1; var A2; var A3; var A4; var A5; var A6; var A7; var A8; var A9; var A10; var A11; var A12; var A13; var A14; var A15; var A16; var A17; var A18; var A19; var A20; var A21; A1 = SScale(SGet(0, 500), Scale); A2 = SScale(SGet(550, 500), Scale); A3 = SScale(SGet(550, 620), Scale); A4 = SScale(SGet(450, 680), Scale); A5 = SScale(SGet(490, 880), Scale); A6 = SScale(SGet(700, 880), Scale); A7 = SScale(SGet(700, 760), Scale); A8 = SScale(SGet(800, 780), Scale); A9 = SScale(SGet(1030, 780), Scale); A10 = SScale(SGet(1110, 730), Scale); A11 = SScale(SGet(1250, 900), Scale); A12 = SScale(SGet(1750, 900), Scale); A13 = SScale(SGet(1790, 790), Scale); A14 = SScale(SGet(2150, 790), Scale); A15 = SScale(SGet(2180, 900), Scale); A16 = SScale(SGet(2920, 900), Scale); A17 = SScale(SGet(2920, 720), Scale); A18 = SScale(SGet(2970, 630), Scale); A19 = SScale(SGet(3170, 740), Scale); A20 = SScale(SGet(3240, 850), Scale); A21 = SScale(SGet(3240, 1000), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); Line[LineCount++] = LineSKMake(A3, A2, 2); Line[LineCount++] = LineSKMake(A3, A4, 2); Line[LineCount++] = LineSKMake(A5, A4, 2); Line[LineCount++] = LineSKMake(A5, A6, 1); Line[LineCount++] = LineSKMake(A7, A6, 2); Line[LineCount++] = LineSKMake(A8, A7, 1); Line[LineCount++] = LineSKMake(A8, A9, 1); Line[LineCount++] = LineSKMake(A10, A9, 1); Line[LineCount++] = LineSKMake(A11, A10, 1); Line[LineCount++] = LineSKMake(A11, A12, 1); Line[LineCount++] = LineSKMake(A12, A13, 1); Line[LineCount++] = LineSKMake(A13, A14, 1); Line[LineCount++] = LineSKMake(A14, A15, 1); Line[LineCount++] = LineSKMake(A15, A16, 1); Line[LineCount++] = LineSKMake(A16, A17, 2); Line[LineCount++] = LineSKMake(A17, A18, 1); Line[LineCount++] = LineSKMake(A18, A19, 1); Line[LineCount++] = LineSKMake(A20, A19, 1); Line[LineCount++] = LineSKMake(A21, A20, 2); A1 = SScale(SGet(1280, 680), Scale); A2 = SScale(SGet(1450, 460), Scale); A3 = SScale(SGet(1700, 500), Scale); A4 = SScale(SGet(1700, 620), Scale); Line[LineCount++] = LineSKMake(A1, A2, 1); Line[LineCount++] = LineSKMake(A3, A2, 1); Line[LineCount++] = LineSKMake(A3, A4, 2); Line[LineCount++] = LineSKMake(A1, A4, 2); A1 = SScale(SGet(2240, 670), Scale); A2 = SScale(SGet(2240, 260), Scale); A3 = SScale(SGet(2390, 260), Scale); A4 = SScale(SGet(2760, 550), Scale); A5 = SScale(SGet(2550, 550), Scale); A6 = SScale(SGet(2550, 670), Scale); A7 = SScale(SGet(2760, 450), Scale); Line[LineCount++] = LineSKMake(A1, A2, 2); Line[LineCount++] = LineSKMake(A3, A2, 1); Line[LineCount++] = LineSKMake(A3, A7, 1); Line[LineCount++] = LineSKMake(A7, A4, 2); Line[LineCount++] = LineSKMake(A5, A4, 2); Line[LineCount++] = LineSKMake(A5, A6, 2); Line[LineCount++] = LineSKMake(A1, A6, 2); A1 = SScale(SGet(3420, 1000), Scale); A2 = SScale(SGet(3380, 800), Scale); A3 = SScale(SGet(3470, 750), Scale); A4 = SScale(SGet(3520, 340), Scale); A5 = SScale(SGet(3620, 380), Scale); A6 = SScale(SGet(3620, 550), Scale); A7 = SScale(SGet(3730, 590), Scale); A8 = SScale(SGet(3790, 650), Scale); A9 = SScale(SGet(4000, 560), Scale); Line[LineCount++] = LineSKMake(A1, A2, 2); Line[LineCount++] = LineSKMake(A3, A2, 1); Line[LineCount++] = LineSKMake(A3, A4, 2); Line[LineCount++] = LineSKMake(A5, A4, 1); Line[LineCount++] = LineSKMake(A5, A6, 2); Line[LineCount++] = LineSKMake(A7, A6, 1); Line[LineCount++] = LineSKMake(A8, A7, 1); Line[LineCount++] = LineSKMake(A8, A9, 1); CreateLine(); var GateID; GateID = 0; (eval('_parent.gate' + GateID)).removeMovieClip(); duplicateMovieClip('_parent.gate', 'gate' + GateID, 16384); (eval('_parent.gate' + GateID))._x = 500 * Scale; (eval('_parent.gate' + GateID))._y = 800 * Scale; var GateID; GateID = 1; (eval('_parent.gate' + GateID)).removeMovieClip(); duplicateMovieClip('_parent.gate', 'gate' + GateID, 16384); (eval('_parent.gate' + GateID))._x = 3800 * Scale; (eval('_parent.gate' + GateID))._y = 500 * Scale; var WitchCount = 0; Witch[WitchCount++] = WitchSKMake(SScale(SGet(100, 1700), Scale), 1); var n = 0; goto 38597; for (;;) { ++n; label 38597: if (n >= 25) break; Witch[WitchCount++] = WitchSKMake(SScale(SGet(random(10000) + 1000, random(400) + 300), Scale), 1); } var n = 0; goto 38750; for (;;) { ++n; label 38750: if (n >= 25) break; Witch[WitchCount++] = WitchSKMake(SScale(SGet(random(10000) + 1000, random(400) + 300), Scale), 3); } CreateWitch(); } } else { this.FirstFlag = false; this.SecondFlag = true; _parent.bgm.gotoAndPlay('clear'); } } else {} } else {} } } } instance foothold of movieClip 84 ライン一方通行 { onClipEvent (load) { this._visible = 0; this.MasterFlag = false; if (this == _parent.foothold) { this.MasterFlag = true; } this.Pos = SGet(_x + WPos.x, _y + WPos.y); this.Vec = SGet(0, 0); this.ExistFlag = true; this.ID = -1; this.Type = 1; this.Radius = 0; this.VertVec = SGet(0, 0); this.HorizonVec = SGet(0, 0); this.Line1 = SGet(0, 0); this.Line2 = SGet(0, 0); this.myCharCount = 0; this.WeaponCount = new Array(WWeaponNum); i = 0; goto 652; for (;;) { ++i; label 652: if (i >= WWeaponNum) break; this.WeaponCount[i] = 0; } this.WitchCount = new Array(WWitchNum); i = 0; goto 754; for (;;) { ++i; label 754: if (i >= WWitchNum) break; this.WitchCount[i] = 0; } this.BulletCount = new Array(WBulletNum); i = 0; goto 856; for (;;) { ++i; label 856: if (i >= WBulletNum) break; this.BulletCount[i] = 0; } this.GriefSeedCount = new Array(WGriefSeedNum); i = 0; goto 958; for (;;) { ++i; label 958: if (i >= WGriefSeedNum) break; this.GriefSeedCount[i] = 0; } } onClipEvent (unload) { delete WeaponCount; delete WitchCount; delete BulletCount; delete GriefSeedCount; } onClipEvent (enterFrame) { if (_global.WVisibleFlag && this.MasterFlag == false) { if (Dot_Dot_Distance(this.Pos, _global.WWCenPos) - (this.Radius + VisibleLange2) >= 0) { this._visible = false; } else { this._visible = true; } } if (_visible == 1) { _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; var that; var IndexNum; var j = 0; goto 1041; for (;;) { ++j; label 1041: if (j >= 2) break; if (j != 0) { that = WPartnerEval; } else { that = WMyCharEval; } if (that.StandFlag == false && that.PhysFlag) { if (_global.Dot_Circle_Hit(this.Pos, that.Pos, this.Radius + that.Radius)) { if (_global.LimX_Circle_Hit(this.Line1, this.Line2, that.Pos, that.Radius) || _global.Line_Line_Hit(this.Line1, this.Line2, that.OldPos, that.Pos)) { var DotIgnore1 = SDot(this.VertVec, that.Vec); var DotVec0 = SDot(this.VertVec, SSub(that.OldPos, this.Pos)); if (0 >= DotVec0) { } else { if (that.ReactionFlag != false) { that.Vec = SAdd(SScale(this.VertVec, Math.abs(DotIgnore1) + 1), SScale(this.HorizonVec, SDot(this.HorizonVec, that.Vec))); var DotVec1 = SDot(this.VertVec, SSub(that.Line1, this.Pos)); var DotVec2 = SDot(this.VertVec, SSub(that.Line2, this.Pos)); if (DotVec1 >= DotVec2) { that.Pos.x -= this.VertVec.x * (DotVec2 - 10); that.Pos.y -= this.VertVec.y * (DotVec2 - 10); } else { that.Pos.x -= this.VertVec.x * (DotVec1 - 10); that.Pos.y -= this.VertVec.y * (DotVec1 - 10); } that.Pos = SAdd(that.Vec, that.Pos); that.OldPos = SEqual(that.Pos); that.DashStopFlag = true; that.ConectDashCount = 100; } else { if (DotIgnore1 < 0) { that.FootholdID = this.ID; that.FootholdLim1.x = this.Line1.x; that.FootholdLim1.y = this.Line1.y; that.FootholdLim2.x = this.Line2.x; that.FootholdLim2.y = this.Line2.y; that.FootholdVec = SGet(0, 0); that.HorizonVec = this.HorizonVec; that.Vec.x = 0; that.Vec.y = 0; that.StandFlag = true; that.FootholdVec.x = 0; that.FootholdVec.y = that.Radius; var HorizonSize = 0; if (this.HorizonVec.x != 0) { HorizonSize = (that.Pos.x - this.Line1.x) / this.HorizonVec.x; } that.Pos.y = this.HorizonVec.y * HorizonSize + this.Line1.y - that.Radius; } } } } } } } i = 0; goto 2683; for (;;) { ++i; label 2683: if (i >= WWeaponIndexNum) break; IndexNum = WWeaponEvalIndex[i]; --this.WeaponCount[IndexNum]; if (this.WeaponCount[IndexNum] < 0) { that = WWeaponEval[IndexNum]; this.WeaponCount[IndexNum] = int((Dot_Dot_Distance(this.Pos, that.Pos) - (this.Radius + that.Radius)) * 0.02); if (_global.Dot_Circle_Hit(this.Pos, that.Pos, this.Radius + that.Radius)) { if (_global.Line_Circle_Hit(this.Line1, this.Line2, that.Pos, that.Radius)) { var DotIgnore1 = SDot(this.VertVec, that.Vec); var DotVec0 = SDot(this.VertVec, SSub(that.OldPos, this.Pos)); if (0 >= DotVec0) { } else { if (DotIgnore1 < 0) { that.HorizonVec = this.HorizonVec; that.Vec.x = 0; that.Vec.y = 0; that._rotation = this._rotation + 90; that.Omega = 0; that.StandFlag = true; that.SpinFlag = false; that.Pos.x = that.OldPos.x + this.VertVec.x * (that.Radius - DotVec0); that.Pos.y = that.OldPos.y + this.VertVec.y * (that.Radius - DotVec0); that.OldPos = SEqual(that.Pos); } } } } } } i = 0; goto 3515; for (;;) { ++i; label 3515: if (i >= WBulletIndexNum) break; IndexNum = WBulletEvalIndex[i]; that = WBulletEval[IndexNum]; if (_global.Dot_Circle_Hit(this.Pos, that.Pos, this.Radius + that.Radius + 50)) { if (_global.Line_Line_Hit(that.OldPos, that.Pos, this.Line1, this.Line2)) { var TempPos = _global.Line_Line_Pos(that.OldPos, that.Pos, this.Line1, this.Line2); that.Pos = SEqual(TempPos); that.HorizonVec = this.HorizonVec; that.Vec.x = 0; that.Vec.y = 0; that.StandFlag = true; that.Omega = 0; } } } i = 0; goto 3940; for (;;) { ++i; label 3940: if (i >= WWitchIndexNum) break; IndexNum = WWitchEvalIndex[i]; --this.WitchCount[IndexNum]; if (this.WitchCount[IndexNum] < 0) { that = WWitchEval[IndexNum]; this.WitchCount[IndexNum] = int((Dot_Dot_Distance(this.Pos, that.Pos) - (this.Radius + that.Radius)) * 0.02); if (_global.Dot_Circle_Hit(this.Pos, that.Pos, this.Radius + that.Radius)) { if (_global.LimX_Circle_Hit(this.Line1, this.Line2, that.Pos, that.Radius) || _global.Line_Line_Hit(this.Line1, this.Line2, that.OldPos, that.Pos)) { var DotIgnore1 = SDot(this.VertVec, that.Vec); var DotVec0 = SDot(this.VertVec, SSub(that.OldPos, this.Pos)); if (DotVec0 >= 0) { if (that.ReactionFlag != false) { that.Vec = SAdd(SScale(this.VertVec, Math.abs(DotIgnore1) + 1), SScale(this.HorizonVec, SDot(this.HorizonVec, that.Vec))); that.Pos.x = that.OldPos.x + this.VertVec.x * (that.Radius - DotVec0); that.Pos.y = that.OldPos.y + this.VertVec.y * (that.Radius - DotVec0); that.OldPos = SEqual(that.Pos); that.Pos = SAdd(that.Vec, that.Pos); that.OldPos = SEqual(that.Pos); } else { if (DotIgnore1 < 0) { if (that.FootFlag != true) { that.Vec = SAdd(SScale(this.VertVec, Math.abs(DotIgnore1) + 1), SScale(this.HorizonVec, SDot(this.HorizonVec, that.Vec))); } else { that.FootholdID = this.ID; that.FootholdLim1.x = this.Line1.x; that.FootholdLim1.y = this.Line1.y; that.FootholdLim2.x = this.Line2.x; that.FootholdLim2.y = this.Line2.y; that.FootholdVec = SGet(0, 0); that.HorizonVec = this.HorizonVec; that.Vec.x = 0; that.Vec.y = 0; that.StandFlag = true; } that.FootholdVec.x = 0; that.FootholdVec.y = that.Radius; var HorizonSize = 0; if (this.HorizonVec.x != 0) { HorizonSize = (that.Pos.x - this.Line1.x) / this.HorizonVec.x; } that.Pos.y = this.HorizonVec.y * HorizonSize + this.Line1.y - that.Radius; that.OldPos = SEqual(that.Pos); } } } } } } } i = 0; goto 5622; for (;;) { ++i; label 5622: if (i >= WGriefSeedIndexNum) break; IndexNum = WGriefSeedEvalIndex[i]; --this.GriefSeedCount[IndexNum]; if (this.GriefSeedCount[IndexNum] < 0) { that = WGriefSeedEval[IndexNum]; this.GriefSeedCount[IndexNum] = int((Dot_Dot_Distance(this.Pos, that.Pos) - (this.Radius + that.Radius)) * 0.02); if (_global.Dot_Circle_Hit(this.Pos, that.Pos, this.Radius + that.Radius)) { if (_global.Lim_Circle_Hit(this.Line1, this.Line2, that.Pos, that.Radius)) { var DotIgnore1 = SDot(this.VertVec, that.Vec); var DotVec0 = SDot(this.VertVec, SSub(that.OldPos, this.Pos)); if (DotVec0 >= 0) { if (that.SitFlag != false) { that.Vec = SGet(0, 0); that.StandFlag = true; } else { that.Vec = SAdd(SScale(this.VertVec, Math.abs(DotIgnore1) + 1), SScale(this.HorizonVec, SDot(this.HorizonVec, that.Vec))); } that.Pos.x = that.OldPos.x + this.VertVec.x * (that.Radius - DotVec0); that.Pos.y = that.OldPos.y + this.VertVec.y * (that.Radius - DotVec0); that.OldPos = SEqual(that.Pos); } } } } } } } } instance wall of movieClip 126 ライン通行禁止 { onClipEvent (load) { this._visible = 0; this.MasterFlag = false; if (this == _parent.wall) { this.MasterFlag = true; } this.Pos = SGet(_x + WPos.x, _y + WPos.y); this.Vec = SGet(0, 0); this.ExistFlag = true; this.Radius = 0; this.VertVec = SGet(0, 0); this.HorizonVec = SGet(0, 0); this.Line1 = SGet(0, 0); this.Line2 = SGet(0, 0); this.ID = -1; this.Type = 2; this.myCharCount = 0; this.WeaponCount = new Array(WWeaponNum); i = 0; goto 648; for (;;) { ++i; label 648: if (i >= WWeaponNum) break; this.WeaponCount[i] = 0; } this.WitchCount = new Array(WWitchNum); i = 0; goto 750; for (;;) { ++i; label 750: if (i >= WWitchNum) break; this.WitchCount[i] = 0; } this.BulletCount = new Array(WBulletNum); i = 0; goto 852; for (;;) { ++i; label 852: if (i >= WBulletNum) break; this.BulletCount[i] = 0; } this.GriefSeedCount = new Array(WGriefSeedNum); i = 0; goto 954; for (;;) { ++i; label 954: if (i >= WGriefSeedNum) break; this.GriefSeedCount[i] = 0; } } onClipEvent (unload) { delete WeaponCount; delete WitchCount; delete BulletCount; delete GriefSeedCount; } onClipEvent (enterFrame) { if (_global.WVisibleFlag && this.MasterFlag == false) { if (Dot_Dot_Distance(this.Pos, _global.WWCenPos) - (this.Radius + VisibleLange2) >= 0) { this._visible = false; } else { this._visible = true; } } if (_visible == 1) { this.Pos.x += this.Vec.x; this.Pos.y += this.Vec.y; _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; var Rot = 0; if (Rot == 0) { this.Line1.x += this.Vec.x; this.Line1.y += this.Vec.y; this.Line2.x += this.Vec.x; this.Line2.y += this.Vec.y; } else { _rotation += Rot; var Red = _rotation * 0.01745329; var Red_x = _height * 0.5 * Math.cos(this.Red); var Red_y = _height * 0.5 * Math.sin(this.Red); this.Line1.x = this.Pos.x - Red_x; this.Line1.y = this.Pos.y - Red_y; this.Line2.x = this.Pos.x + Red_x; this.Line2.y = this.Pos.y + Red_y; } var that; var IndexNum; var j = 0; goto 1583; for (;;) { ++j; label 1583: if (j >= 2) break; if (j != 0) { that = WPartnerEval; } else { that = WMyCharEval; } if (that.StandFlag == false && that.PhysFlag) { if (_global.Dot_Circle_Hit(this.Pos, that.Pos, this.Radius + that.Radius)) { if (_global.Line_Line_Hit(this.Line1, this.Line2, that.OldPos, that.Pos)) { var DotIgnore1 = SDot(this.VertVec, that.Vec); var DotVec0 = SDot(this.VertVec, SSub(that.OldPos, this.Pos)); if (DotVec0 < 0) { if (0 < DotIgnore1) { that.Vec = SAdd(SScale(this.VertVec, Math.abs(DotIgnore1) * -1 - 1), SScale(this.HorizonVec, SDot(this.HorizonVec, that.Vec))); var DotVec1 = SDot(this.VertVec, SSub(that.Line1, this.Pos)); var DotVec2 = SDot(this.VertVec, SSub(that.Line2, this.Pos)); if (DotVec2 >= DotVec1) { that.Pos.x -= this.VertVec.x * (DotVec2 + 10); that.Pos.y -= this.VertVec.y * (DotVec2 + 10); } else { that.Pos.x -= this.VertVec.x * (DotVec1 + 10); that.Pos.y -= this.VertVec.y * (DotVec1 + 10); } that.Pos = SAdd(that.Vec, that.Pos); that.OldPos = SEqual(that.Pos); that.DashStopFlag = true; that.ConectDashCount = 100; } } else { if (DotIgnore1 < 0) { that.Vec = SAdd(SScale(this.VertVec, Math.abs(DotIgnore1) + 1), SScale(this.HorizonVec, SDot(this.HorizonVec, that.Vec))); var DotVec1 = SDot(this.VertVec, SSub(that.Line1, this.Pos)); var DotVec2 = SDot(this.VertVec, SSub(that.Line2, this.Pos)); if (DotVec1 >= DotVec2) { that.Pos.x -= this.VertVec.x * (DotVec2 - 10); that.Pos.y -= this.VertVec.y * (DotVec2 - 10); } else { that.Pos.x -= this.VertVec.x * (DotVec1 - 10); that.Pos.y -= this.VertVec.y * (DotVec1 - 10); } that.Pos = SAdd(that.Vec, that.Pos); that.OldPos = SEqual(that.Pos); that.DashStopFlag = true; that.ConectDashCount = 100; } } } } } } i = 0; goto 3295; for (;;) { ++i; label 3295: if (i >= WWeaponIndexNum) break; IndexNum = WWeaponEvalIndex[i]; --this.WeaponCount[IndexNum]; if (this.WeaponCount[IndexNum] < 0) { that = WWeaponEval[IndexNum]; this.WeaponCount[IndexNum] = int((Dot_Dot_Distance(this.Pos, that.Pos) - (this.Radius + that.Radius)) * 0.02); if (_global.Dot_Circle_Hit(this.Pos, that.Pos, this.Radius + that.Radius)) { if (_global.Line_Circle_Hit(this.Line1, this.Line2, that.Pos, that.Radius)) { var DotIgnore1 = SDot(this.VertVec, that.Vec); var DotVec0 = SDot(this.VertVec, SSub(that.OldPos, this.Pos)); if (0 >= DotVec0) { if (0 < DotIgnore1) { that.HorizonVec = this.HorizonVec; that.Vec.x = 0; that.Vec.y = 0; that._rotation = this._rotation + 90 + 180; that.Omega = 0; that.StandFlag = true; that.SpinFlag = false; that.Pos.x = that.OldPos.x - this.VertVec.x * (that.Radius + DotVec0); that.Pos.y = that.OldPos.y - this.VertVec.y * (that.Radius + DotVec0); } } else { if (DotIgnore1 < 0) { that.HorizonVec = this.HorizonVec; that.Vec.x = 0; that.Vec.y = 0; that._rotation = this._rotation + 90; that.Omega = 0; that.StandFlag = true; that.SpinFlag = false; that.Pos.x = that.OldPos.x + this.VertVec.x * (that.Radius - DotVec0); that.Pos.y = that.OldPos.y + this.VertVec.y * (that.Radius - DotVec0); that.OldPos = SEqual(that.Pos); } } } } } } i = 0; goto 4440; for (;;) { ++i; label 4440: if (i >= WBulletIndexNum) break; IndexNum = WBulletEvalIndex[i]; that = WBulletEval[IndexNum]; if (_global.Dot_Circle_Hit(this.Pos, that.Pos, this.Radius + that.Radius)) { if (_global.Line_Line_Hit(that.OldPos, that.Pos, this.Line1, this.Line2)) { var TempPos = _global.Line_Line_Pos(that.OldPos, that.Pos, this.Line1, this.Line2); that.Pos = SEqual(TempPos); that.HorizonVec = this.HorizonVec; that.Vec.x = 0; that.Vec.y = 0; that.StandFlag = true; that.Omega = 0; } } } i = 0; goto 4856; for (;;) { ++i; label 4856: if (i >= WWitchIndexNum) break; IndexNum = WWitchEvalIndex[i]; --this.WitchCount[IndexNum]; if (this.WitchCount[IndexNum] < 0) { that = WWitchEval[IndexNum]; this.WitchCount[IndexNum] = int((Dot_Dot_Distance(this.Pos, that.Pos) - (this.Radius + that.Radius)) * 0.02); if (_global.Dot_Circle_Hit(this.Pos, that.Pos, this.Radius + that.Radius)) { if (_global.Line_Line_Hit(this.Line1, this.Line2, that.OldPos, that.Pos)) { var DotIgnore1 = SDot(this.VertVec, that.Vec); var DotVec0 = SDot(this.VertVec, SSub(that.OldPos, this.Pos)); if (DotVec0 < 0) { if (0 < DotIgnore1) { that.Vec = SAdd(SScale(this.VertVec, Math.abs(DotIgnore1) * -1 - 1), SScale(this.HorizonVec, SDot(this.HorizonVec, that.Vec))); that.Pos.x = that.OldPos.x - this.VertVec.x * (that.Radius - DotVec0); that.Pos.y = that.OldPos.y - this.VertVec.y * (that.Radius - DotVec0); that.OldPos = SEqual(that.Pos); } } else { if (DotIgnore1 < 0) { that.Vec = SAdd(SScale(this.VertVec, Math.abs(DotIgnore1) + 1), SScale(this.HorizonVec, SDot(this.HorizonVec, that.Vec))); that.Pos.x = that.OldPos.x + this.VertVec.x * (that.Radius - DotVec0); that.Pos.y = that.OldPos.y + this.VertVec.y * (that.Radius - DotVec0); that.OldPos = SEqual(that.Pos); } } } } } } i = 0; goto 6019; for (;;) { ++i; label 6019: if (i >= WGriefSeedIndexNum) break; IndexNum = WGriefSeedEvalIndex[i]; --this.GriefSeedCount[IndexNum]; if (this.GriefSeedCount[IndexNum] < 0) { that = WGriefSeedEval[IndexNum]; this.GriefSeedCount[IndexNum] = int((Dot_Dot_Distance(this.Pos, that.Pos) - (this.Radius + that.Radius)) * 0.02); if (_global.Dot_Circle_Hit(this.Pos, that.Pos, this.Radius + that.Radius)) { if (_global.Lim_Circle_Hit(this.Line1, this.Line2, that.Pos, that.Radius)) { var DotIgnore1 = SDot(this.VertVec, that.Vec); var DotVec0 = SDot(this.VertVec, SSub(that.OldPos, this.Pos)); if (DotVec0 < 0) { if (0 < DotIgnore1) { if (that.SitFlag != false) { that.Vec = SGet(0, 0); that.StandFlag = true; } else { that.Vec = SAdd(SScale(this.VertVec, Math.abs(DotIgnore1) * -1 - 1), SScale(this.HorizonVec, SDot(this.HorizonVec, that.Vec))); } that.Pos.x = that.OldPos.x - this.VertVec.x * (that.Radius - DotVec0); that.Pos.y = that.OldPos.y - this.VertVec.y * (that.Radius - DotVec0); that.OldPos = SEqual(that.Pos); } } else { if (DotIgnore1 < 0) { if (that.SitFlag != false) { that.Vec = SGet(0, 0); that.StandFlag = true; } else { that.Vec = SAdd(SScale(this.VertVec, Math.abs(DotIgnore1) + 1), SScale(this.HorizonVec, SDot(this.HorizonVec, that.Vec))); } that.Pos.x = that.OldPos.x + this.VertVec.x * (that.Radius - DotVec0); that.Pos.y = that.OldPos.y + this.VertVec.y * (that.Radius - DotVec0); that.OldPos = SEqual(that.Pos); } } } } } } } } } instance drum of movieClip 2388 ドラム { onClipEvent (load) { this._visible = 0; this.MasterFlag = false; this.ExistFlag = false; this.FormatFlag = false; if (this == _parent.drum) { this.MasterFlag = true; } this.Pos = SGet(_x + WPos.x, _y + WPos.y); this.OldPos = SEqual(this.Pos); this.Vec = SGet(0, 0); this.Radius = _height * 0.25; this.Omega = 0; this.Weight = 1; this.HitDis = SGet(0, 0); this.HitPos = SAdd(this.Pos, this.HitDis); this.HitRadius = this.Radius; this.Char = eval(_parent.myChar); this.style = 'stand'; this.ActionFlag = false; this.ActionFinishFlag = true; this.StandFlag = false; this.OldStandFlag = false; this.Direction = 1; this.HorizonVec = SGet(0, 0); this.FootholdLim1 = SGet(0, 0); this.FootholdLim2 = SGet(0, 0); this.FootholdVec = SGet(0, 0); this.FootFlag = true; this.MoveCount = 0; this.MoveCountLim = 0; this.MoveFlag = true; this.DeathCount = 0; this.TempVisibleStyleFlag = false; this.TempVisibleStyle = ''; this.TempStyleFlag = false; this.TempStyle = ''; this.DeathFlag = false; this.HpCountLim = 300; this.HpCount = 0; this.OldHpCount = 0; this.ReactionFlag = false; this.ReactionVec = SGet(0, 0); this.ReactionCount = 0; this.PhysFlag = true; this.InvincibleFlag = false; this.InvincibleCount = 0; this.ID = -1; this.BossFlag = false; this.LvCountLim = 7; this.LvCount = 0; this.ExpCountLim = 100; this.ExpCount = 0; this.FootholdPos = SGet(0, 0); this.FootholdPosBack = SGet(0, 0); this.FootholdID = -1; } onClipEvent (enterFrame) { if (_global.WVisibleFlag && this.MasterFlag == false && this.ExistFlag == true && WMiniStageFlag == false) { if (Dot_Dot_Distance(this.Pos, _global.WWCenPos) - (this.Radius + VisibleLange1) >= 0) { if (this.TempVisibleStyleFlag == false) { this.TempVisibleStyleFlag = true; this.TempVisibleStyle = style; } this._visible = false; } else { if (this._visible == false) { this.LvCount = random(WMyCharEval.LvCount + 1) + random(WMyCharEval.LvCount + 1); if (this.PhysFlag == true) { i = 0; goto 1529; for (;;) { ++i; label 1529: if (i >= WLineIndexNum) break; var that = WLineEval[WLineEvalIndex[i]]; if (that._visible) { that.WitchCount[this.ID] = 1; } } } } if (this.TempVisibleStyleFlag == true) { this.TempVisibleStyleFlag = false; SetVisible(this.TempVisibleStyle, this.Direction); } this._visible = true; } } if (this.FormatFlag) { this.FormatFlag = false; this.stand._visible = false; this.damage._visible = false; this.TempVisibleStyleFlag = false; this.TempVisibleStyle = ''; this.TempStyleFlag = false; this.TempStyle = ''; this.style = 'stand'; SetVisible('stand', 0); this._visible = true; this._xscale = 100; this._yscale = 100; this.OldPos = SEqual(this.Pos); this.HitDis = SGet(0, 0); this.HitPos = SAdd(this.Pos, this.HitDis); this.HitRadius = this.Radius; this.HpCountLim = 100 * this.LvCount + 500; this.HpCount = 0; this.OldHpCount = 0; this.ReactionFlag = false; this.ReactionVec = SGet(0, 0); this.ReactionCount = 0; this.PhysFlag = true; this.InvincibleFlag = false; this.InvincibleCount = 0; this.ActionFlag = false; this.ActionFinishFlag = true; this.StandFlag = false; this.Direction = 1; this.DeathCount = 0; this.DeathFlag = false; this.ExistFlag = true; } if (_visible) { if (this.DeathFlag != false) { _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; ++this.DeathCount; this._xscale *= 1.1; this._yscale *= 1.1; if (5 < this.DeathCount) { if (_global.WInfoBossFlag == true) { if (this.BossFlag == true) { _global.WInfoBossDeathFlag = true; this.BossFlag = false; } } var MaxNum = 10; var TempMaxNum = (this.LvCount - WMyCharEval.LvCount + 2) * 5; if (TempMaxNum < 5) { TempMaxNum = 5; } TempMaxNum += random(5); MaxNum = TempMaxNum; var m = 0; goto 2762; for (;;) { ++m; label 2762: if (m >= MaxNum) break; var that; var TempA = 0; var TempB = 0; var TempC = -1; var n = 0; goto 2845; for (;;) { ++n; label 2845: if (n >= WGriefSeedNum) break; that = WGriefSeedEval[n]; if (that.KeyFlag == false) { TempA = that.Time; if (TempB < TempA) { TempB = TempA; TempC = n; } if (that.ExistFlag == false) { that.ExistFlag = true; TempC = n; } else {} } } if (TempC != -1) { that = WGriefSeedEval[TempC]; that.Time = 0; that.Pos = SAdd(this.Pos, SGet(0, 0)); that.Vec = SGet(random(41) - 20, random(41) - 20); that.FormatFlag = true; } } this.ExistFlag = false; _visible = false; } } else { this.para.LvNum = this.LvCount; this.para.hp.Num = this.HpCount; if (this.StandFlag == false) { this.Vec.y -= WGravity * this.Weight; } this.OldPos = SEqual(this.Pos); this.Pos.x += this.Vec.x; this.Pos.y += this.Vec.y; if (!this.PhysFlag) { if (this.Pos.x < WLimPos1.x) { this.Pos.x = WLimPos1.x; } if (this.Pos.y < WLimPos1.y) { this.Pos.y = WLimPos1.y; } if (WLimPos2.x < this.Pos.x) { this.Pos.x = WLimPos2.x; } if (WLimPos2.y < this.Pos.y) { this.Pos.y = WLimPos2.y; } } else { if (this.Pos.x < WLimPos1.x) { this.Pos.x = WLimPos1.x; } if (WLimPos2.x < this.Pos.x) { this.Pos.x = WLimPos2.x; } if (WLimPos2.y < this.Pos.y) { this.DeathFlag = true; } } _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; this.HitPos.x = this.Pos.x + this.HitDis.x; this.HitPos.y = this.Pos.y + this.HitDis.y; if (this.HpCount >= this.HpCountLim) { this.se.gotoAndPlay('death'); this.HpCount = this.HpCountLim; this.DeathFlag = true; _global.WEnemyBreakBonusCount += this.LvCount * 100 + 100; } if (this.OldHpCount < this.HpCount) { _global.WEnemyDamageCount += this.HpCount - this.OldHpCount; if (this.OldHpCount + 75 * (this.LvCount + 1) >= this.HpCount) { if (this.OldHpCount + 50 * (this.LvCount + 1) >= this.HpCount) { this.se.gotoAndPlay('cry'); } else { this.se.gotoAndPlay('cry2'); } } else { this.se.gotoAndPlay('cry3'); } } this.OldHpCount = this.HpCount; if (this.OldStandFlag != this.StandFlag) { if (this.StandFlag == false) { i = 0; goto 4631; for (;;) { ++i; label 4631: if (i >= WLineIndexNum) break; var that = WLineEval[WLineEvalIndex[i]]; if (that._visible) { that.WitchCount[this.ID] = 1; } } } this.OldStandFlag = this.StandFlag; } if (this.StandFlag) { var TempAdd = SAdd(this.FootholdVec, this.Pos); var LimHit = Lim_Dot_Hit(this.FootholdLim1, this.FootholdLim2, TempAdd); if (LimHit == false) { var TempGapRadius = 5; var GetFootholdFlag = false; if (SSquareSize(SSub(this.FootholdLim1, TempAdd)) >= SSquareSize(SSub(this.FootholdLim2, TempAdd))) { this.FootholdPos = SEqual(FootholdLim2); this.FootholdPosBack = SEqual(FootholdLim1); } else { this.FootholdPos = SEqual(FootholdLim1); this.FootholdPosBack = SEqual(FootholdLim2); } i = 0; goto 5107; for (;;) { ++i; label 5107: if (i >= WLineIndexNum) break; var IndexNum = WLineEvalIndex[i]; var that = WLineEval[IndexNum]; if (that._visible == true && this.FootholdID != IndexNum) { if (_global.Dot_Circle_Hit(this.FootholdPos, that.Pos, that.Radius + TempGapRadius)) { if (_global.Line_Circle_Hit(that.Line1, that.Line2, this.FootholdPos, TempGapRadius)) { if (that.Type != 1) { if (that.Type == 2) { GetFootholdFlag = true; this.Pos = SAdd(SSub(this.FootholdPos, this.FootholdVec), SNorm(SSub(this.FootholdPosBack, this.FootholdPos))); this.Vec.x = 0; this.Vec.y = 0; } continue; } this.FootholdID = IndexNum; this.FootholdLim1.x = that.Line1.x; this.FootholdLim1.y = that.Line1.y; this.FootholdLim2.x = that.Line2.x; this.FootholdLim2.y = that.Line2.y; this.FootholdVec = SGet(0, 0); this.HorizonVec = that.HorizonVec; this.StandFlag = true; this.FootholdVec.x = 0; this.FootholdVec.y = this.Radius; var HorizonSize = 0; if (that.HorizonVec.x != 0) { HorizonSize = (this.Pos.x - that.Line1.x) / that.HorizonVec.x; } this.Pos.y = that.HorizonVec.y * HorizonSize + that.Line1.y - this.Radius; this.OldPos = SEqual(this.Pos); GetFootholdFlag = true; break; } } } } if (GetFootholdFlag == false) { this.Pos = SAdd(SSub(this.FootholdPos, this.FootholdVec), SNorm(SSub(this.FootholdPosBack, this.FootholdPos))); if (this.StandFlag) { var that = WMyCharEval; var CenPos = SGet(this.HitPos.x, this.HitPos.y); var TarPos = SGet(that.Pos.x, that.Pos.y); var TempPress = 30; this.Vec = ParabolaVec(true, TempPress * this.Weight, WGravity * this.Weight, CenPos, TarPos); if (this.Vec.x == 0 && this.Vec.y == 0) { this.Vec = SScale(SNorm(SSub(TarPos, CenPos)), TempPress); } this.StandFlag = false; } } } } if (this.ReactionFlag != true) { if (this.TempStyleFlag == true) { this.TempStyleFlag = false; SetVisible(TempStyle, 0); fscommand('ParaFlaTrace', TempStyle); } } else { if (this.TempStyleFlag == false) { this.TempStyleFlag = true; this.TempStyle = style; SetVisible('reaction', -3); } } ++this.MoveCount; if (this.MoveCountLim < this.MoveCount) { this.MoveCount = 0; this.MoveCountLim = 5 + random(10); if (0 >= WMyCharEval.Pos.x - this.Pos.x) { this.Direction = -1; } else { this.Direction = 1; } } if (0 >= this.ReactionCount) { this.ReactionCount = 0; this.ReactionFlag = false; } else { --this.ReactionCount; this.ReactionFlag = true; } if (0 >= this.InvincibleCount) { this.InvincibleCount = 0; this.InvincibleFlag = false; } else { this.InvincibleFlag = true; --this.InvincibleCount; } } } } } instance anthony of movieClip 700 アントニー { onClipEvent (load) { this._visible = 0; this.MasterFlag = false; this.ExistFlag = false; this.FormatFlag = false; if (this == _parent.anthony) { this.MasterFlag = true; } this.Pos = SGet(_x + WPos.x, _y + WPos.y); this.OldPos = SEqual(this.Pos); this.Vec = SGet(0, 0); this.Radius = _height * 0.25; this.Omega = 0; this.Weight = 1; this.HitDis = SGet(0, 0); this.HitPos = SAdd(this.Pos, this.HitDis); this.HitRadius = this.Radius; this.Char = eval(_parent.myChar); this.style = 'stand'; this.ActionFlag = false; this.ActionFinishFlag = true; this.StandFlag = false; this.OldStandFlag = false; this.Direction = 1; this.HorizonVec = SGet(0, 0); this.FootholdLim1 = SGet(0, 0); this.FootholdLim2 = SGet(0, 0); this.FootholdVec = SGet(0, 0); this.FootFlag = true; this.MoveCount = 0; this.MoveCountLim = 0; this.MoveFlag = true; this.DeathCount = 0; this.TempVisibleStyleFlag = false; this.TempVisibleStyle = ''; this.TempStyleFlag = false; this.TempStyle = ''; this.DeathFlag = false; this.HpCountLim = 300; this.HpCount = 0; this.OldHpCount = 0; this.ReactionFlag = false; this.ReactionVec = SGet(0, 0); this.ReactionCount = 0; this.PhysFlag = true; this.InvincibleFlag = false; this.InvincibleCount = 0; this.ID = -1; this.MagicNum = 5; this.MagicCount = 0; this.MagicGuide = 0; var m = 0; var n = WMagicNum; goto 1756; for (;;) { ++n; label 1756: if (n >= WMagicNum + this.MagicNum) break; (eval('_parent.magic' + n)).removeMovieClip(); duplicateMovieClip('_parent.roseBall', 'magic' + n, 16384); _global.WMagicEval[m] = eval('_parent.magic' + n); _global.WMagicEval[m]._visible = false; ++m; } this.MagicGuide = _global.WMagicNum; _global.WMagicNum += this.MagicNum; this.BossFlag = false; this.LvCountLim = 7; this.LvCount = 0; this.ExpCountLim = 100; this.ExpCount = 0; this.FootholdPos = SGet(0, 0); this.FootholdPosBack = SGet(0, 0); this.FootholdID = -1; } onClipEvent (enterFrame) { if (_global.WVisibleFlag && this.MasterFlag == false && this.ExistFlag == true && WMiniStageFlag == false) { if (Dot_Dot_Distance(this.Pos, _global.WWCenPos) - (this.Radius + VisibleLange1) >= 0) { if (this.TempVisibleStyleFlag == false) { this.TempVisibleStyleFlag = true; this.TempVisibleStyle = style; } this._visible = false; } else { if (this._visible == false) { this.LvCount = random(WMyCharEval.LvCount + 1) + random(WMyCharEval.LvCount + 1); if (this.PhysFlag == true) { i = 0; goto 1585; for (;;) { ++i; label 1585: if (i >= WLineIndexNum) break; var that = WLineEval[WLineEvalIndex[i]]; if (that._visible) { that.WitchCount[this.ID] = 1; } } } } if (this.TempVisibleStyleFlag == true) { this.TempVisibleStyleFlag = false; SetVisible(this.TempVisibleStyle, this.Direction); } this._visible = true; } } if (this.FormatFlag == true) { this.FormatFlag = false; this.hold._visible = false; this.stand._visible = false; this.pass._visible = false; this.chathing._visible = false; this.berserk._visible = false; this.reaction._visible = false; this.TempVisibleStyleFlag = false; this.TempVisibleStyle = ''; this.TempStyleFlag = false; this.TempStyle = ''; this.style = 'stand'; SetVisible('stand', 0); this._visible = true; this._xscale = 50; this._yscale = 50; this.OldPos = SEqual(this.Pos); this.HitDis = SGet(0, 0); this.HitPos = SAdd(this.Pos, this.HitDis); this.HitRadius = this.Radius; this.HpCountLim = 40 * this.LvCount + 60; this.HpCount = 0; this.OldHpCount = 0; this.ReactionFlag = false; this.ReactionVec = SGet(0, 0); this.ReactionCount = 0; this.PhysFlag = true; this.InvincibleFlag = false; this.InvincibleCount = 0; this.ActionFlag = false; this.ActionFinishFlag = true; this.StandFlag = false; this.Direction = 1; this.DeathCount = 0; this.DeathFlag = false; this.ExistFlag = true; var that; var n = 0; goto 2504; for (;;) { ++n; label 2504: if (n >= this.MagicNum) break; that = WMagicEval[this.MagicGuide + n]; that.ID = this.MagicGuide + n; } } if (_visible) { if (this.DeathFlag != false) { _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; ++this.DeathCount; this._xscale *= 1.1; this._yscale *= 1.1; if (5 < this.DeathCount) { if (_global.WInfoBossFlag == true) { if (this.BossFlag == true) { _global.WInfoBossDeathFlag = true; this.BossFlag = false; } } --_global.WWitchExistNum; var MaxNum = 10; var TempMaxNum = (this.LvCount - WMyCharEval.LvCount + 2) * 5; if (TempMaxNum < 5) { TempMaxNum = 5; } TempMaxNum += random(5); MaxNum = TempMaxNum; var m = 0; goto 3043; for (;;) { ++m; label 3043: if (m >= MaxNum) break; var that; var TempA = 0; var TempB = 0; var TempC = -1; var n = 0; goto 3126; for (;;) { ++n; label 3126: if (n >= WGriefSeedNum) break; that = WGriefSeedEval[n]; if (that.KeyFlag == false) { TempA = that.Time; if (TempB < TempA) { TempB = TempA; TempC = n; } if (that.ExistFlag == false) { that.ExistFlag = true; TempC = n; } else {} } } if (TempC != -1) { that = WGriefSeedEval[TempC]; that.Time = 0; that.Pos = SAdd(this.Pos, SGet(0, 0)); that.Vec = SGet(random(41) - 20, random(41) - 20); that.FormatFlag = true; } } this.ExistFlag = false; _visible = false; } } else { this.para.LvNum = this.LvCount; this.para.hp.Num = this.HpCount; if (this.StandFlag == false) { this.Vec.y -= WGravity * this.Weight; } this.OldPos = SEqual(this.Pos); this.Pos.x += this.Vec.x; this.Pos.y += this.Vec.y; if (!this.PhysFlag) { if (this.Pos.x < WLimPos1.x) { this.Pos.x = WLimPos1.x; } if (this.Pos.y < WLimPos1.y) { this.Pos.y = WLimPos1.y; } if (WLimPos2.x < this.Pos.x) { this.Pos.x = WLimPos2.x; } if (WLimPos2.y < this.Pos.y) { this.Pos.y = WLimPos2.y; } } else { if (this.Pos.x < WLimPos1.x) { this.Pos.x = WLimPos1.x; } if (WLimPos2.x < this.Pos.x) { this.Pos.x = WLimPos2.x; } if (WLimPos2.y < this.Pos.y) { this.DeathFlag = true; } } _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; this.HitPos.x = this.Pos.x + this.HitDis.x; this.HitPos.y = this.Pos.y + this.HitDis.y; if (this.HpCount >= this.HpCountLim) { this.se.gotoAndPlay('death'); this.HpCount = this.HpCountLim; this.DeathFlag = true; _global.WEnemyBreakBonusCount += this.LvCount * 100 + 100; } if (this.OldHpCount < this.HpCount) { _global.WEnemyDamageCount += this.HpCount - this.OldHpCount; if (this.OldHpCount + 5 < this.HpCount) { this.se.gotoAndPlay('cry'); } } this.OldHpCount = this.HpCount; if (this.OldStandFlag != this.StandFlag) { if (this.StandFlag == false) { i = 0; goto 4774; for (;;) { ++i; label 4774: if (i >= WLineIndexNum) break; var that = WLineEval[WLineEvalIndex[i]]; if (that._visible) { that.WitchCount[this.ID] = 1; } } } this.OldStandFlag = this.StandFlag; } if (this.StandFlag) { var TempAdd = SAdd(this.FootholdVec, this.Pos); var LimHit = Lim_Dot_Hit(this.FootholdLim1, this.FootholdLim2, TempAdd); if (LimHit == false) { var TempGapRadius = 5; var GetFootholdFlag = false; if (SSquareSize(SSub(this.FootholdLim1, TempAdd)) >= SSquareSize(SSub(this.FootholdLim2, TempAdd))) { this.FootholdPos = SEqual(FootholdLim2); this.FootholdPosBack = SEqual(FootholdLim1); } else { this.FootholdPos = SEqual(FootholdLim1); this.FootholdPosBack = SEqual(FootholdLim2); } i = 0; goto 5250; for (;;) { ++i; label 5250: if (i >= WLineIndexNum) break; var IndexNum = WLineEvalIndex[i]; var that = WLineEval[IndexNum]; if (that._visible == true && this.FootholdID != IndexNum) { if (_global.Dot_Circle_Hit(this.FootholdPos, that.Pos, that.Radius + TempGapRadius)) { if (_global.Line_Circle_Hit(that.Line1, that.Line2, this.FootholdPos, TempGapRadius)) { if (that.Type != 1) { if (that.Type == 2) { GetFootholdFlag = true; this.Pos = SAdd(SSub(this.FootholdPos, this.FootholdVec), SNorm(SSub(this.FootholdPosBack, this.FootholdPos))); this.Vec.x = 0; this.Vec.y = 0; } continue; } this.FootholdID = IndexNum; this.FootholdLim1.x = that.Line1.x; this.FootholdLim1.y = that.Line1.y; this.FootholdLim2.x = that.Line2.x; this.FootholdLim2.y = that.Line2.y; this.FootholdVec = SGet(0, 0); this.HorizonVec = that.HorizonVec; this.StandFlag = true; this.FootholdVec.x = 0; this.FootholdVec.y = this.Radius; var HorizonSize = 0; if (that.HorizonVec.x != 0) { HorizonSize = (this.Pos.x - that.Line1.x) / that.HorizonVec.x; } this.Pos.y = that.HorizonVec.y * HorizonSize + that.Line1.y - this.Radius; this.OldPos = SEqual(this.Pos); GetFootholdFlag = true; break; } } } } if (GetFootholdFlag == false) { this.Pos = SAdd(SSub(this.FootholdPos, this.FootholdVec), SNorm(SSub(this.FootholdPosBack, this.FootholdPos))); if (this.StandFlag) { var that = WMyCharEval; var CenPos = SGet(this.HitPos.x, this.HitPos.y); var TarPos = SGet(that.Pos.x, that.Pos.y); var TempPress = 30; this.Vec = ParabolaVec(true, TempPress * this.Weight, WGravity * this.Weight, CenPos, TarPos); if (this.Vec.x == 0 && this.Vec.y == 0) { this.Vec = SScale(SNorm(SSub(TarPos, CenPos)), TempPress); } this.StandFlag = false; } } } } if (this.ReactionFlag != true) { if (this.TempStyleFlag == true) { this.TempStyleFlag = false; SetVisible(TempStyle, 0); fscommand('ParaFlaTrace', TempStyle); } } else { if (this.TempStyleFlag == false) { this.TempStyleFlag = true; this.TempStyle = style; SetVisible('reaction', -3); } } ++this.MoveCount; if (this.MoveCountLim < this.MoveCount) { this.MoveCount = 0; this.MoveCountLim = 5 + random(10); if (0 >= WMyCharEval.Pos.x - this.Pos.x) { this.Direction = -1; } else { this.Direction = 1; } } if (0 >= this.ReactionCount) { this.ReactionCount = 0; this.ReactionFlag = false; } else { --this.ReactionCount; this.ReactionFlag = true; } if (0 >= this.InvincibleCount) { this.InvincibleCount = 0; this.InvincibleFlag = false; } else { this.InvincibleFlag = true; --this.InvincibleCount; } } } } } instance adelbert of movieClip 702 アーデルベルト { onClipEvent (load) { this._visible = 0; this.MasterFlag = false; this.ExistFlag = false; this.FormatFlag = false; if (this == _parent.adelbert) { this.MasterFlag = true; } this.Rot = 0; this.Pos = SGet(_x + WPos.x, _y + WPos.y); this.OldPos = SEqual(this.Pos); this.Vec = SGet(0, 0); this.Radius = _height * 0.5; this.Omega = 0; this.HitDis = SGet(0, 0); this.HitPos = SAdd(this.Pos, this.HitDis); this.HitRadius = this.Radius; this.StandFlag = false; this.FootFlag = false; this.Rad = 3.141592 * 0.5; this.Radius = 30; this.Char = eval(_parent.myChar); this.TempVisibleStyleFlag = false; this.TempVisibleStyle = ''; this.TempStyleFlag = false; this.TempStyle = 'a'; this.MoveCount = 0; this.MoveCountLim = 0; this.MoveFlag = false; this.DeathCount = 0; this.ActionFlag = false; this.ActionFinishFlag = false; this.DeathFlag = false; this.HpCountLim = 200; this.HpCount = 0; this.OldHpCount = this.HpCount; this.ReactionFlag = false; this.ReactionVec = SGet(0, 0); this.ReactionCount = 0; this.PhysFlag = false; this.InvincibleFlag = false; this.InvincibleCount = 0; this.ID = -1; this.MagicNum = 5; this.MagicCount = 0; this.MagicGuide = 0; var m = 0; var n = WMagicNum; goto 1525; for (;;) { ++n; label 1525: if (n >= WMagicNum + this.MagicNum) break; (eval('_parent.magic' + n)).removeMovieClip(); duplicateMovieClip('_parent.cottonEye', 'magic' + n, 16384); _global.WMagicEval[m] = eval('_parent.magic' + n); _global.WMagicEval[m]._visible = false; ++m; } this.MagicGuide = _global.WMagicNum; _global.WMagicNum += this.MagicNum; this.BossFlag = false; this.LvCountLim = 7; this.LvCount = 0; this.ExpCountLim = 100; this.ExpCount = 0; } onClipEvent (enterFrame) { if (_global.WVisibleFlag && this.MasterFlag == false && this.ExistFlag == true && WMiniStageFlag == false) { if (Dot_Dot_Distance(this.Pos, _global.WWCenPos) - (this.Radius + VisibleLange1) >= 0) { if (this.TempVisibleStyleFlag == false) { this.TempVisibleStyleFlag = true; this.TempVisibleStyle = style; } this._visible = false; } else { if (this._visible == false) { this.LvCount = random(WMyCharEval.LvCount + 1) + random(WMyCharEval.LvCount + 1); if (this.PhysFlag == true) { i = 0; goto 1312; for (;;) { ++i; label 1312: if (i >= WLineIndexNum) break; var that = WLineEval[WLineEvalIndex[i]]; if (that._visible) { that.WitchCount[this.ID] = 1; } } } } if (this.TempVisibleStyleFlag == true) { this.TempVisibleStyleFlag = false; SetVisible(this.TempVisibleStyle, this.Direction); } this._visible = true; } } if (this.FormatFlag == true) { this.FormatFlag = false; this.fly._visible = false; this.butt._visible = false; this.death._visible = false; this.reaction._visible = false; this.style = 'fly'; SetVisible('fly', 0); this._xscale = 25; this._yscale = 25; this._visible = true; this.Rot = 0; this.MoveCount = 0; this.MoveCountLim = 0; this.MoveFlag = false; this.DeathCount = 0; this.ActionFlag = false; this.ActionFinishFlag = false; this.DeathFlag = false; this.HpCountLim = 35 * this.LvCount + 50; this.HpCount = 0; this.OldHpCount = this.HpCount; this.ReactionFlag = false; this.ReactionVec = SGet(0, 0); this.ReactionCount = 0; this.PhysFlag = false; this.InvincibleFlag = false; this.InvincibleCount = 0; this.OldPos = SEqual(this.Pos); this.HitDis = SGet(0, 0); this.HitPos = SAdd(this.Pos, this.HitDis); this.HitRadius = this.Radius; this.ExistFlag = true; this.StandFlag = false; var that; var n = 0; goto 2187; for (;;) { ++n; label 2187: if (n >= this.MagicNum) break; that = WMagicEval[this.MagicGuide + n]; that.ID = this.MagicGuide + n; } } if (_visible == 1) { if (this.DeathFlag != false) { _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; ++this.DeathCount; if (this.DeathCount == 1) { SetVisible('death', -3); } this._xscale *= 1.1; this._yscale *= 1.1; if (5 < this.DeathCount) { if (_global.WInfoBossFlag == true) { if (this.BossFlag == true) { _global.WInfoBossDeathFlag = true; this.BossFlag = false; } } --_global.WWitchExistNum; var MaxNum = 10; var TempMaxNum = (this.LvCount - WMyCharEval.LvCount + 2) * 5; if (TempMaxNum < 5) { TempMaxNum = 5; } TempMaxNum += random(5); MaxNum = TempMaxNum; var m = 0; goto 2781; for (;;) { ++m; label 2781: if (m >= MaxNum) break; var that; var TempA = 0; var TempB = 0; var TempC = -1; var n = 0; goto 2864; for (;;) { ++n; label 2864: if (n >= WGriefSeedNum) break; that = WGriefSeedEval[n]; if (that.KeyFlag == false) { TempA = that.Time; if (TempB < TempA) { TempB = TempA; TempC = n; } if (that.ExistFlag == false) { that.ExistFlag = true; TempC = n; } else {} } } if (TempC != -1) { that = WGriefSeedEval[TempC]; that.Time = 0; that.Pos = SAdd(this.Pos, SGet(0, 0)); that.Vec = SGet(random(41) - 20, random(41) - 20); that.FormatFlag = true; } } this.ExistFlag = false; _visible = false; } } else { this.para.LvNum = this.LvCount; this.para.hp.Num = this.HpCount; if (this.ReactionFlag == true) { this.Vec.y -= WGravity; } this.OldPos = SEqual(this.Pos); this.Pos.x += this.Vec.x; this.Pos.y += this.Vec.y; if (!this.PhysFlag) { if (this.Pos.x < WLimPos1.x) { this.Pos.x = WLimPos1.x; } if (this.Pos.y < WLimPos1.y) { this.Pos.y = WLimPos1.y; } if (WLimPos2.x < this.Pos.x) { this.Pos.x = WLimPos2.x; } if (WLimPos2.y < this.Pos.y) { this.Pos.y = WLimPos2.y; } } else { if (this.Pos.x < WLimPos1.x) { this.Pos.x = WLimPos1.x; } if (WLimPos2.x < this.Pos.x) { this.Pos.x = WLimPos2.x; } if (WLimPos2.y < this.Pos.y) { this.DeathFlag = true; } } _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; this.HitPos.x = this.Pos.x + this.HitDis.x; this.HitPos.y = this.Pos.y + this.HitDis.y; if (this.HpCount >= this.HpCountLim) { this.se.gotoAndPlay('death'); this.HpCount = this.HpCountLim; this.DeathFlag = true; _global.WEnemyBreakBonusCount += this.LvCount * 100 + 100; } if (this.OldHpCount < this.HpCount) { _global.WEnemyDamageCount += this.HpCount - this.OldHpCount; if (this.OldHpCount + 5 < this.HpCount) { this.se.gotoAndPlay('cry'); } } this.OldHpCount = this.HpCount; ++this.MoveCount; if (this.ActionFinishFlag == true) { this.ActionFinishFlag = false; SetVisible('fly', 0); } if (this.ReactionFlag != true) { if (this.TempStyleFlag == true) { this.TempStyleFlag = false; SetVisible(TempStyle, 0); fscommand('ParaFlaTrace', TempStyle); } } else { if (this.TempStyleFlag == false) { this.TempStyleFlag = true; this.TempStyle = style; SetVisible('reaction', -3); } } if (this.MoveCountLim < this.MoveCount) { this.MoveCount = 0; this.MoveCountLim = 5 + random(10); var that = WMyCharEval; var TempVec = SSearchVec(this.Pos, that.Pos); if (this.ReactionFlag == false && this.ActionFlag == false) { if (5 >= random(100)) { if (!_global.Dot_Circle_Hit(this.Pos, that.Pos, that.Radius + this.Radius + 160)) { SetVisible('shot', -3); } else { SetVisible('butt', -3); } } } } if (0 >= this.ReactionCount) { this.ReactionCount = 0; this.ReactionFlag = false; this.PhysFlag = false; } else { --this.ReactionCount; this.ReactionFlag = true; this.PhysFlag = true; } if (0 >= this.InvincibleCount) { this.InvincibleCount = 0; this.InvincibleFlag = false; } else { this.InvincibleFlag = true; --this.InvincibleCount; } if (InvincibleFlag == false) { } } } } } instance gertrud of movieClip 704 ゲルトルート { onClipEvent (load) { this._visible = 0; this.MasterFlag = false; this.ExistFlag = false; this.FormatFlag = false; if (this == _parent.gertrud) { this.MasterFlag = true; } this.Pos = SGet(_x + WPos.x, _y + WPos.y); this.OldPos = SEqual(this.Pos); this.Vec = SGet(0, 0); this.Radius = 275 * 0.75; this.Omega = 0; this.Weight = 1; this.HitDis = SGet(0, 0); this.HitPos = SAdd(this.Pos, this.HitDis); this.HitRadius = this.Radius; this.Char = eval(_parent.myChar); this.style = 'sit'; this.ActionFlag = false; this.ActionFinishFlag = false; this.StandFlag = false; this.Direction = 1; this.HorizonVec = SGet(0, 0); this.FootholdLim1 = SGet(0, 0); this.FootholdLim2 = SGet(0, 0); this.FootholdVec = SGet(0, 0); this.FootFlag = true; this.MoveCount = 0; this.MoveCountLim = 0; this.MoveFlag = true; this.DeathCount = 0; this.TempStyleFlag = false; this.TempStyle = ''; this.TempVisibleStyleFlag = false; this.TempVisibleStyle = ''; this.DeathFlag = false; this.HpCountLim = 1000; this.HpCount = 0; this.OldHpCount = 0; this.ReactionFlag = false; this.ReactionVec = SGet(0, 0); this.ReactionCount = 0; this.PhysFlag = true; this.InvincibleFlag = false; this.InvincibleCount = 0; this.ID = -1; this.MagicNum = 200; this.MagicCount = 0; this.MagicGuide = 0; var m = 0; var n = WMagicNum; goto 1718; for (;;) { ++n; label 1718: if (n >= WMagicNum + this.MagicNum) break; (eval('_parent.magic' + n)).removeMovieClip(); duplicateMovieClip('_parent.roseBall', 'magic' + n, 16384); _global.WMagicEval[m] = eval('_parent.magic' + n); _global.WMagicEval[m]._visible = false; ++m; } this.MagicGuide = _global.WMagicNum; _global.WMagicNum += this.MagicNum; this.LvCountLim = 7; this.LvCount = 0; this.ExpCountLim = 100; this.ExpCount = 0; this.BossFlag = false; this.FootholdPos = SGet(0, 0); this.FootholdPosBack = SGet(0, 0); this.FootholdID = -1; } onClipEvent (enterFrame) { if (_global.WVisibleFlag && this.MasterFlag == false && this.ExistFlag == true && WMiniStageFlag == false) { if (!(Dot_Dot_Distance(this.Pos, _global.WWCenPos) - (this.Radius + VisibleLange2) < 0 || 1)) { if (this.TempVisibleStyleFlag == false) { this.TempVisibleStyleFlag = true; this.TempVisibleStyle = style; } this._visible = false; } else { if (this._visible == false) { if (this.PhysFlag == true) { i = 0; goto 1540; for (;;) { ++i; label 1540: if (i >= WLineIndexNum) break; var that = WLineEval[WLineEvalIndex[i]]; if (that._visible) { that.WitchCount[this.ID] = 1; } } } } if (this.TempVisibleStyleFlag == true) { this.TempVisibleStyleFlag = false; SetVisible(this.TempVisibleStyle, this.Direction); } this._visible = true; } } if (this.FormatFlag == true) { this.FormatFlag = false; this.dash._visible = false; this.walk._visible = false; this.reaction._visible = false; this.sit._visible = false; this.ball._visible = false; this.crash._visible = false; this.style = 'sit'; SetVisible('sit', this.Direction); this.ActionFlag = false; this.ActionFinishFlag = false; this.OldPos = SEqual(this.Pos); this.HitDis = SGet(0, 0); this.HitPos = SAdd(this.Pos, this.HitDis); this.HitRadius = this.Radius; this.ExistFlag = true; this._visible = true; if (this.PhysFlag == true) { i = 0; goto 2156; for (;;) { ++i; label 2156: if (i >= WLineNum) break; var that; that = WLineEval[i]; if (that.ExistFlag == true) { that.WitchCount[this.ID] = 1; } } } this._xscale = 150; this._yscale = 150; this.ActionFlag = false; this.ActionFinishFlag = false; this.StandFlag = false; this.Direction = 1; this.DeathCount = 0; this.DeathFlag = false; this.HpCountLim = 300 * this.LvCount + 1000; this.HpCount = 0; this.OldHpCount = 0; this.ReactionFlag = false; this.ReactionVec = SGet(0, 0); this.ReactionCount = 0; this.PhysFlag = true; this.InvincibleFlag = false; this.InvincibleCount = 0; var that; var n = 0; goto 2590; for (;;) { ++n; label 2590: if (n >= this.MagicNum) break; that = WMagicEval[this.MagicGuide + n]; that.ID = this.MagicGuide + n; } } if (_visible == 1) { if (this.DeathFlag != false) { _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; ++this.DeathCount; this._xscale *= 1.1; this._yscale *= 1.1; if (5 < this.DeathCount) { if (this.BossFlag == true) { _global.WInfoBossDeathFlag = true; this.BossFlag = false; } --_global.WWitchExistNum; var MaxNum = 10; var TempMaxNum = (this.LvCount - WMyCharEval.LvCount + 2) * 5; if (TempMaxNum < 5) { TempMaxNum = 5; } TempMaxNum += random(5); MaxNum = TempMaxNum; var m = 0; goto 3114; for (;;) { ++m; label 3114: if (m >= MaxNum) break; var that; var TempA = 0; var TempB = 0; var TempC = -1; var n = 0; goto 3197; for (;;) { ++n; label 3197: if (n >= WGriefSeedNum) break; that = WGriefSeedEval[n]; if (that.KeyFlag == false) { TempA = that.Time; if (TempB < TempA) { TempB = TempA; TempC = n; } if (that.ExistFlag == false) { that.ExistFlag = true; TempC = n; } else {} } } if (TempC != -1) { that = WGriefSeedEval[TempC]; that.Time = 0; that.Pos = SAdd(this.Pos, SGet(0, 0)); that.Vec = SGet(random(41) - 20, random(41) - 20); that.FormatFlag = true; } } this.ExistFlag = false; _visible = false; } } else { this.para.LvNum = this.LvCount; this.para.hp.Num = this.HpCount; if (this.ActionFinishFlag == true) { this.ActionFinishFlag = false; if (this.StandFlag != true) { SetVisible('walk', this.Direction); } else { SetVisible('walk', this.Direction); } } if (this.StandFlag == false) { this.Vec.y -= WGravity * this.Weight; } this.OldPos = SEqual(this.Pos); this.Pos.x += this.Vec.x; this.Pos.y += this.Vec.y; if (!this.PhysFlag) { if (this.Pos.x < WLimPos1.x) { this.Pos.x = WLimPos1.x; } if (this.Pos.y < WLimPos1.y) { this.Pos.y = WLimPos1.y; } if (WLimPos2.x < this.Pos.x) { this.Pos.x = WLimPos2.x; } if (WLimPos2.y < this.Pos.y) { this.Pos.y = WLimPos2.y; } } else { if (this.Pos.x < WLimPos1.x) { this.Pos.x = WLimPos1.x; } if (WLimPos2.x < this.Pos.x) { this.Pos.x = WLimPos2.x; } if (WLimPos2.y < this.Pos.y) { this.DeathFlag = true; } } _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; this.HitPos.x = this.Pos.x + this.HitDis.x; this.HitPos.y = this.Pos.y + this.HitDis.y; if (this.OldStandFlag != this.StandFlag) { if (this.StandFlag == false) { i = 0; goto 4655; for (;;) { ++i; label 4655: if (i >= WLineIndexNum) break; var that = WLineEval[WLineEvalIndex[i]]; if (that._visible) { that.WitchCount[this.ID] = 1; } } } this.OldStandFlag = this.StandFlag; } if (this.StandFlag) { var TempAdd = SAdd(this.FootholdVec, this.Pos); var LimHit = Lim_Dot_Hit(this.FootholdLim1, this.FootholdLim2, TempAdd); if (LimHit == false) { var TempGapRadius = 5; var GetFootholdFlag = false; if (SSquareSize(SSub(this.FootholdLim1, TempAdd)) >= SSquareSize(SSub(this.FootholdLim2, TempAdd))) { this.FootholdPos = SEqual(FootholdLim2); this.FootholdPosBack = SEqual(FootholdLim1); } else { this.FootholdPos = SEqual(FootholdLim1); this.FootholdPosBack = SEqual(FootholdLim2); } i = 0; goto 5131; for (;;) { ++i; label 5131: if (i >= WLineIndexNum) break; var IndexNum = WLineEvalIndex[i]; var that = WLineEval[IndexNum]; if (that._visible == true && this.FootholdID != IndexNum) { if (_global.Dot_Circle_Hit(this.FootholdPos, that.Pos, that.Radius + TempGapRadius)) { if (_global.Line_Circle_Hit(that.Line1, that.Line2, this.FootholdPos, TempGapRadius)) { if (that.Type != 1) { if (that.Type == 2) { GetFootholdFlag = true; this.Pos = SAdd(SSub(this.FootholdPos, this.FootholdVec), SNorm(SSub(this.FootholdPosBack, this.FootholdPos))); this.Vec.x = 0; this.Vec.y = 0; } continue; } this.FootholdID = IndexNum; this.FootholdLim1.x = that.Line1.x; this.FootholdLim1.y = that.Line1.y; this.FootholdLim2.x = that.Line2.x; this.FootholdLim2.y = that.Line2.y; this.FootholdVec = SGet(0, 0); this.HorizonVec = that.HorizonVec; this.StandFlag = true; this.FootholdVec.x = 0; this.FootholdVec.y = this.Radius; var HorizonSize = 0; if (that.HorizonVec.x != 0) { HorizonSize = (this.Pos.x - that.Line1.x) / that.HorizonVec.x; } this.Pos.y = that.HorizonVec.y * HorizonSize + that.Line1.y - this.Radius; this.OldPos = SEqual(this.Pos); GetFootholdFlag = true; break; } } } } if (GetFootholdFlag == false) { this.Pos = SAdd(SSub(this.FootholdPos, this.FootholdVec), SNorm(SSub(this.FootholdPosBack, this.FootholdPos))); if (this.StandFlag) { var that = WMyCharEval; var CenPos = SGet(this.HitPos.x, this.HitPos.y); var TarPos = SGet(that.Pos.x, that.Pos.y); var TempPress = 30; this.Vec = ParabolaVec(true, TempPress * this.Weight, WGravity * this.Weight, CenPos, TarPos); if (this.Vec.x == 0 && this.Vec.y == 0) { this.Vec = SScale(SNorm(SSub(TarPos, CenPos)), TempPress); } this.StandFlag = false; } } } } if (this.ReactionFlag != true) { if (this.TempStyleFlag == true) { this.TempStyleFlag = false; SetVisible(TempStyle, this.Direction); fscommand('ParaFlaTrace', TempStyle); } } else { if (this.TempStyleFlag == false) { this.TempStyleFlag = true; this.TempStyle = style; SetVisible('reaction', this.Direction); } } if (this.HpCount >= this.HpCountLim) { this.se.gotoAndPlay('death'); this.HpCount = this.HpCountLim; this.DeathFlag = true; _global.WEnemyBreakBonusCount += this.LvCount * 100 + 100; } if (this.OldHpCount < this.HpCount) { _global.WEnemyDamageCount += this.HpCount - this.OldHpCount; if (this.OldHpCount + 5 < this.HpCount) { this.se.gotoAndPlay('cry'); } } this.OldHpCount = this.HpCount; ++this.MoveCount; if (this.MoveCountLim < this.MoveCount) { this.MoveCount = 0; this.MoveCountLim = 5 + random(10); var that = WMyCharEval; var TempVec = SSub(that.Pos, this.Pos); if (0 >= TempVec.x) { this.Direction = -1; } else { this.Direction = 1; } } if (this.ActionFlag == false) { } if (this.ball._visible == false) { if (0 >= this.ReactionCount) { if (this.ReactionFlag == true) { } this.ReactionCount = 0; this.ReactionFlag = false; } else { --this.ReactionCount; this.ReactionFlag = true; } } if (0 >= this.InvincibleCount) { this.InvincibleCount = 0; this.InvincibleFlag = false; } else { this.InvincibleFlag = true; --this.InvincibleCount; } if (InvincibleFlag == false) { } } } } } instance adelbertMini of movieClip 100 バラ園の魔女の妖精 { onClipEvent (load) { this._visible = 0; this.MasterFlag = false; this.FormatFlag = false; this.ExistFlag = false; if (this == _parent.adelbertMini) { this.MasterFlag = true; } this.Pos = SGet(_x + WPos.x, _y + WPos.y); this.OldPos = SEqual(this.Pos); this.Vec = SGet(0, 0); this.Radius = _height * 0.5; this.Omega = 0; this.HitDis = SGet(0, 0); this.HitPos = SAdd(this.Pos, this.HitDis); this.HitRadius = this.Radius; this.StandFlag = false; this.FootFlag = false; this.Rad = 3.141592 * 0.5; this.Radius = 30; this.Char = eval(_parent.myChar); this.TempVisibleStyleFlag = false; this.TempVisibleStyle = ''; this.TempStyleFlag = false; this.TempStyle = 'a'; this.MoveCount = 0; this.MoveCountLim = 0; this.MoveFlag = false; this.DeathCount = 0; this.ActionFlag = false; this.ActionFinishFlag = false; this.DeathFlag = false; this.HpCountLim = 100; this.HpCount = 0; this.OldHpCount = this.HpCount; this.ReactionFlag = false; this.ReactionVec = SGet(0, 0); this.ReactionCount = 0; this.PhysFlag = false; this.InvincibleFlag = false; this.InvincibleCount = 0; this.ID = -1; this.BossFlag = false; this.LvCountLim = 7; this.LvCount = 0; this.ExpCountLim = 100; this.ExpCount = 0; } onClipEvent (enterFrame) { if (_global.WVisibleFlag && this.MasterFlag == false && this.ExistFlag == true && WMiniStageFlag == false) { if (Dot_Dot_Distance(this.Pos, _global.WWCenPos) - (this.Radius + VisibleLange1) >= 0) { if (this.TempVisibleStyleFlag == false) { this.TempVisibleStyleFlag = true; this.TempVisibleStyle = style; } this._visible = false; } else { if (this._visible == false) { this.LvCount = random(WMyCharEval.LvCount + 1) + random(WMyCharEval.LvCount + 1); if (this.PhysFlag == true) { i = 0; goto 1313; for (;;) { ++i; label 1313: if (i >= WLineIndexNum) break; var that = WLineEval[WLineEvalIndex[i]]; if (that._visible) { that.WitchCount[this.ID] = 1; } } } } if (this.TempVisibleStyleFlag == true) { this.TempVisibleStyleFlag = false; SetVisible(this.TempVisibleStyle, this.Direction); } this._visible = true; } } if (this.FormatFlag == true) { this.FormatFlag = false; this.fly._visible = false; this.butt._visible = false; this.death._visible = false; this.reaction._visible = false; this.TempVisibleStyleFlag = false; this.TempVisibleStyle = ''; this.TempStyleFlag = false; this.TempStyle = ''; this.style = 'fly'; SetVisible('fly', 0); this.OldPos = SEqual(this.Pos); this.HitDis = SGet(0, 0); this.HitPos = SAdd(this.Pos, this.HitDis); this.HitRadius = this.Radius; this._xscale = 50; this._yscale = 50; this._visible = true; this.ExistFlag = true; this.StandFlag = false; this.MoveCount = 0; this.MoveCountLim = 0; this.MoveFlag = false; this.DeathCount = 0; this.ActionFlag = false; this.ActionFinishFlag = false; this.DeathFlag = false; this.HpCountLim = 25 * this.LvCount + 25; this.HpCount = 0; this.OldHpCount = this.HpCount; this.ReactionFlag = false; this.ReactionVec = SGet(0, 0); this.ReactionCount = 0; this.PhysFlag = false; this.InvincibleFlag = false; this.InvincibleCount = 0; } if (_visible == 1) { if (this.DeathFlag != false) { _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; ++this.DeathCount; if (this.DeathCount == 1) { SetVisible('death', -3); } this._xscale *= 1.1; this._yscale *= 1.1; if (5 < this.DeathCount) { this.ExistFlag = false; _visible = false; if (_global.WInfoBossFlag == true) { if (this.BossFlag == true) { _global.WInfoBossDeathFlag = true; this.BossFlag = false; } } --_global.WWitchExistNum; var MaxNum = 10; var TempMaxNum = (this.LvCount - WMyCharEval.LvCount + 2) * 5; if (TempMaxNum < 5) { TempMaxNum = 5; } TempMaxNum += random(5); MaxNum = TempMaxNum; var m = 0; goto 2725; for (;;) { ++m; label 2725: if (m >= MaxNum) break; var that; var TempA = 0; var TempB = 0; var TempC = -1; var n = 0; goto 2808; for (;;) { ++n; label 2808: if (n >= WGriefSeedNum) break; that = WGriefSeedEval[n]; if (that.KeyFlag == false) { TempA = that.Time; if (TempB < TempA) { TempB = TempA; TempC = n; } if (that.ExistFlag == false) { that.ExistFlag = true; TempC = n; } else {} } } if (TempC != -1) { that = WGriefSeedEval[TempC]; that.Time = 0; that.Pos = SAdd(this.Pos, SGet(0, 0)); that.Vec = SGet(random(41) - 20, random(41) - 20); that.FormatFlag = true; } } } } else { this.para.LvNum = this.LvCount; this.para.hp.Num = this.HpCount; if (this.ReactionFlag == true) { this.Vec.y -= WGravity; } this.OldPos = SEqual(this.Pos); this.Pos.x += this.Vec.x; this.Pos.y += this.Vec.y; if (!this.PhysFlag) { if (this.Pos.x < WLimPos1.x) { this.Pos.x = WLimPos1.x; } if (this.Pos.y < WLimPos1.y) { this.Pos.y = WLimPos1.y; } if (WLimPos2.x < this.Pos.x) { this.Pos.x = WLimPos2.x; } if (WLimPos2.y < this.Pos.y) { this.Pos.y = WLimPos2.y; } } else { if (this.Pos.x < WLimPos1.x) { this.Pos.x = WLimPos1.x; } if (WLimPos2.x < this.Pos.x) { this.Pos.x = WLimPos2.x; } if (WLimPos2.y < this.Pos.y) { this.DeathFlag = true; } } _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; this.HitPos.x = this.Pos.x + this.HitDis.x; this.HitPos.y = this.Pos.y + this.HitDis.y; if (this.HpCount >= this.HpCountLim) { this.se.gotoAndPlay('death'); this.HpCount = this.HpCountLim; this.DeathFlag = true; _global.WEnemyBreakBonusCount += this.LvCount * 100 + 100; } if (this.OldHpCount < this.HpCount) { _global.WEnemyDamageCount += this.HpCount - this.OldHpCount; if (this.OldHpCount + 5 < this.HpCount) { this.se.gotoAndPlay('cry'); } } this.OldHpCount = this.HpCount; ++this.MoveCount; if (this.ActionFinishFlag == true) { this.ActionFinishFlag = false; SetVisible('fly', 0); } if (this.ReactionFlag != true) { if (this.TempStyleFlag == true) { this.TempStyleFlag = false; SetVisible(TempStyle, 0); fscommand('ParaFlaTrace', TempStyle); } } else { if (this.TempStyleFlag == false) { this.TempStyleFlag = true; this.TempStyle = style; SetVisible('reaction', -3); } } if (this.MoveCountLim < this.MoveCount) { this.MoveCount = 0; this.MoveCountLim = 15 + random(10); var that = WMyCharEval; var TempVec = SSearchVec(this.Pos, that.Pos); if (this.ReactionFlag == false && this.ActionFlag == false) { if (5 >= random(100)) { if (_global.Dot_Circle_Hit(this.Pos, that.Pos, that.Radius + this.Radius + 300)) { SetVisible('butt', -3); } } if (!this.MoveFlag) { this.Vec.x = 0; this.Vec.y = 0; } else { this.Vec.x = TempVec.x * (-8 + random(24)); this.Vec.y = TempVec.y * (-8 + random(24)); } if (0 >= TempVec.x) { if (this.fly.left._visible != true) { if (this.fly.front_left._visible != true) { if (this.fly.front._visible != true) { if (this.fly.front_right._visible != true) { if (this.fly.right._visible == true) { this.fly.right._visible = false; this.fly.front_right._visible = true; this.MoveFlag = false; } } else { this.fly.front_right._visible = false; this.fly.front._visible = true; this.MoveFlag = false; } } else { this.fly.front._visible = false; this.fly.front_left._visible = true; this.MoveFlag = false; } } else { this.fly.front_left._visible = false; this.fly.left._visible = true; this.MoveFlag = false; } } else { this.MoveFlag = true; } } else { if (this.fly.left._visible != true) { if (this.fly.front_left._visible != true) { if (this.fly.front._visible != true) { if (this.fly.front_right._visible != true) { if (this.fly.right._visible == true) { this.MoveFlag = true; } } else { this.fly.front_right._visible = false; this.fly.right._visible = true; this.MoveFlag = false; } } else { this.fly.front._visible = false; this.fly.front_right._visible = true; this.MoveFlag = false; } } else { this.fly.front_left._visible = false; this.fly.front._visible = true; this.MoveFlag = false; } } else { this.fly.left._visible = false; this.fly.front_left._visible = true; this.MoveFlag = false; } } } } if (0 >= this.ReactionCount) { this.ReactionCount = 0; this.ReactionFlag = false; this.PhysFlag = false; } else { --this.ReactionCount; this.ReactionFlag = true; this.PhysFlag = true; } if (0 >= this.InvincibleCount) { this.InvincibleCount = 0; this.InvincibleFlag = false; } else { this.InvincibleFlag = true; --this.InvincibleCount; } if (InvincibleFlag == false) { } } } } } instance weapon of movieClip 20 ウエポン { onClipEvent (load) { _visible = 0; this.ID = -1; var n = 0; goto 563; for (;;) { ++n; label 563: if (n >= WWeaponNum) break; if (this == eval('_parent.weapon' + n)) { this.ID = n; } else {} } this.Radius = _height * 0.5; this.Pos = SGet(_x + WPos.x, _y + WPos.y); this.OldPos = SEqual(this.Pos); this.Vec = SGet(0, 0); this.Omega = 0; this.ExistFlag = true; this.StandFlag = false; this.HorizonVec = SGet(0, 0); this.DeathCount = 0; this.SpinFlag = false; this.SpinCount = 0; this.VisibleCount = 0; this.StockFlag = false; this.ShotFlag = false; this.AutoFlag = false; this.AutoCount = 0; this.AutoCountLim = 0; this.AutoRotationFlag = false; this.AutoInputVec = SGet(0, 0); _rotation = 90; this.FormatFlag = false; this.FormatType = 0; this.ActionNum = 0; this.ActionCount = 0; this.ActionCountLim = 0; this.ActionCountLimFlag = false; this.FormatAppFlag = false; this.Direction = 0; this.RoundRadius = 0; this.RoundRadiusLim = 100; this.PreFlag_visible = false; this.Press = 60; this.AttackPower = 30; this.AttackReactionVec = SGet(0, -20); this.AttackReactionCount = 10; this.AttackInvincibleCount = 5; this.PhysFlag = true; } onClipEvent (enterFrame) { if (this.FormatFlag) { this.FormatFlag = false; this.DeathCount = 0; i = 0; goto 1200; for (;;) { ++i; label 1200: if (i >= WLineIndexNum) break; var that = WLineEval[WLineEvalIndex[i]]; if (that._visible) { that.WitchCount[this.ID] = 1; } } if (0 >= this.Direction) { this.right._visible = true; this.left._visible = false; } else { this.right._visible = false; this.left._visible = true; } this._visible = true; if (this.FormatType == 0) { this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.Pos = SGet(0, 0); this.OldPos = SEqual(this.Pos); this.Vec = SGet(0, 0); this.Omega = 0; this.ExistFlag = true; this.StandFlag = false; this.HorizonVec = SGet(0, 0); this.SpinFlag = false; this.ShotFlag = false; this.AutoFlag = false; this.AutoCount = 0; this.AutoCountLim = 0; this.AutoRotationFlag = false; this.AutoInputVec = SGet(0, 0); _rotation = 90; this.FormatFlag = false; this.FormatType = 0; this.ActionNum = 0; this.ActionCount = 0; this.ActionCountLim = 0; this.ActionCountLimFlag = false; this.Direction = 0; goto 3831; } else { if (this.FormatType == 1) { if (!this.FormatAppFlag) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } } else { if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } } this.FormatAppFlag = false; this.OldPos = SEqual(this.Pos); this.ExistFlag = true; this.StandFlag = false; this.HorizonVec = SGet(0, 0); this.ShotFlag = false; this.AutoFlag = false; this.AutoCount = 0; this.AutoCountLim = 0; this.AutoRotationFlag = false; this.AutoInputVec = SGet(0, 0); this.FormatFlag = false; this.FormatType = 0; this.ActionNum = 1; this.ActionCount = 0; this.ActionCountLim = 0; this.ActionCountLimFlag = false; goto 3831; } else { if (this.FormatType == 2) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart3'); } else { this.left.gotoAndPlay('movieStart3'); } this.FormatAppFlag = false; this.OldPos = SEqual(this.Pos); this.ExistFlag = true; this.StandFlag = false; this.HorizonVec = SGet(0, 0); this.ShotFlag = true; this.AutoFlag = false; this.AutoCount = 0; this.AutoCountLim = 0; this.AutoRotationFlag = false; this.AutoInputVec = SGet(0, 0); this.FormatFlag = false; this.FormatType = 0; this.ActionNum = 2; this.ActionCount = 0; this.ActionCountLimFlag = true; goto 3831; } else { if (this.FormatType == 3) { if (!this.FormatAppFlag) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } } else { if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } } this.FormatAppFlag = false; this.OldPos = SEqual(this.Pos); this.ExistFlag = true; this.StandFlag = false; this.HorizonVec = SGet(0, 0); this.Omega = 0; this.ShotFlag = false; this.AutoFlag = true; this.AutoCount = 0; this.FormatFlag = false; this.FormatType = 0; this.ActionNum = 3; this.ActionCount = 0; this.ActionCountLim = 0; this.ActionCountLimFlag = false; goto 3831; } else { if (this.FormatType == 4) { if (!this.FormatAppFlag) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } } else { if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } } this.FormatAppFlag = false; this.OldPos = SEqual(this.Pos); this.ExistFlag = true; this.StandFlag = false; this.HorizonVec = SGet(0, 0); this.Omega = 0; this.ShotFlag = false; this.AutoFlag = true; this.AutoCount = 0; this.AutoCountLim = 0; this.AutoRotationFlag = false; this.AutoInputVec = SGet(0, 0); this.FormatFlag = false; this.FormatType = 0; this.ActionNum = 4; this.ActionCount = 0; this.ActionCountLim = 0; this.ActionCountLimFlag = false; } else {} } } } } label 3831: this.FormatType; } if (_visible) { ++this.VisibleCount; ++this.ActionCount; if (this.StandFlag == false && this.AutoFlag == false) { this.Vec.y -= WGravity; } this.OldPos = SEqual(this.Pos); this.Pos.x += this.Vec.x; this.Pos.y += this.Vec.y; if (1) { if (this.Pos.x < WLimPos1.x) { this.Pos.x = WLimPos1.x; this.OldPos = SEqual(this.Pos); } if (WLimPos2.x < this.Pos.x) { this.Pos.x = WLimPos2.x; this.OldPos = SEqual(this.Pos); } if (WLimPos2.y < this.Pos.y) { _visible = false; this.ExistFlag = false; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; if (this.Omega != 0) { _rotation += this.Omega; } if (this.ActionNum == 0) { goto 7985; } else { if (this.ActionNum == 1) { if (this.ActionCount == 4) { this.left.gotoAndPlay('movieStart2'); this.right.gotoAndPlay('movieStart2'); } if (4 < this.ActionCount) { var that = WMyCharEval; if (that._visible && MMiddlePress == false) { if (_global.Dot_Circle_Hit(that.Pos, this.Pos, 20 + that.Radius)) { if (_global.Line_Circle_Hit(that.Line1, that.Line2, this.Pos, 20)) { ++that.RapidShotNum; this.se.gotoAndPlay('getting'); this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this._visible = false; this.ExistFlag = false; } } } that = WPartnerEval; if (that._visible && that.ShoulderFlag == false) { if (_global.Dot_Circle_Hit(that.Pos, this.Pos, 50 + that.Radius)) { if (_global.Line_Circle_Hit(that.Line1, that.Line2, this.Pos, 50)) { ++that.RapidShotNum; that.AimGetFlag = true; this.se.gotoAndPlay('getting'); this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this._visible = false; this.ExistFlag = false; } } } } goto 7985; } else { if (this.ActionNum == 2) { if (!this.ActionCountLimFlag) { if (this.StandFlag) { ++this.DeathCount; if (this.DeathCount == 1) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart4'); } else { this.left.gotoAndPlay('movieStart4'); } } if (8 < this.DeathCount) { this._visible = false; this.ExistFlag = false; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } else { if (this.ActionCount + 7 == this.ActionCountLim) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart4'); } else { this.left.gotoAndPlay('movieStart4'); } } if (this.ActionCountLim < this.ActionCount) { this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this._visible = false; this.ExistFlag = false; } } goto 7985; } else { if (this.ActionNum == 3) { ++this.AutoCount; if (this.AutoRotationFlag == true) { this._rotation = Math.atan2(MPos.y - _parent.myChar._y, MPos.x - _parent.myChar._x) * 57.29577951; } if (this.AutoCountLim < this.AutoCount) { this.AutoCount = 0; this.AutoFlag = false; var JumpVec = SGet(0, 0); if (this.AutoRotationFlag != true) { var TempRot = this._rotation / 57.29577951; JumpVec = SScale(SGet(Math.cos(TempRot), Math.sin(TempRot)), this.Press); } else { JumpVec = ParabolaVec(false, this.Press, _global.WGravity, WMyCharEval.Pos, WMPos); } var MaxNum = 1; var m = 0; goto 6328; for (;;) { ++m; label 6328: if (m >= MaxNum) break; var that = WGetBulletEval(); that.FormatFlag = true; that.Pos = SEqual(this.Pos); that.Vec = SEqual(JumpVec); } var TempVec = SNorm(SSub(WMPos, this.Pos)); this.Vec = SEqual(SScale(TempVec, 10)); this.StandFlag = false; this.SpinFlag = true; this.ActionCount = 0; this.ActionCountLim = 20; this.ActionCountLimFlag = true; this.FormatFlag = true; this.FormatType = 2; this.FormatAppFlag = false; } goto 7985; } else { if (this.ActionNum == 4) { if (this.RoundRadiusLim < RoundRadius) { RoundRadius -= 5; if (RoundRadius < this.RoundRadiusLim) { RoundRadius = this.RoundRadiusLim; } } if (RoundRadius < this.RoundRadiusLim) { RoundRadius += 5; if (this.RoundRadiusLim < RoundRadius) { RoundRadius = this.RoundRadiusLim; } } var that = WMyCharEval; this.Pos = SAdd(this.Pos, SSub(that.Pos, that.OldPos)); var CenPos = SGet(that.Pos.x, that.Pos.y - that.Radius); var TempVec = SSub(this.Pos, CenPos); if (that.Direction != 1) { TempVec = SSpinSub90(TempVec); } else { TempVec = SSpinAdd90(TempVec); } TempVec = SScale(SNorm(TempVec), 20); this.Pos = SAdd(SScale(SNorm(SSub(SAdd(TempVec, this.Pos), CenPos)), this.RoundRadius), CenPos); this.Vec.x = 0; this.Vec.y = 0; this._rotation = Math.atan2(this.Pos.y - CenPos.y, this.Pos.x - CenPos.x) * 57.29577951; if (TAimFlag) { if (Sight_360(15, this._rotation, WTAtan360) != 0) { this._rotation = WTAtan360; var JumpVec = ParabolaVec(false, this.Press, _global.WGravity, this.Pos, WTPos); if (!(JumpVec.x == 0 && JumpVec.y == 0)) { this._rotation = Math.atan2(JumpVec.y, JumpVec.x) * 57.29577951; var MaxNum = 1; var m = 0; goto 7654; for (;;) { ++m; label 7654: if (m >= MaxNum) break; var that = WGetBulletEval(); that.FormatFlag = true; that.Pos = SEqual(this.Pos); that.Vec = SEqual(JumpVec); } var TempVec = SNorm(SSub(WMPos, this.Pos)); this.Vec = SEqual(SScale(TempVec, 10)); this.StandFlag = false; this.SpinFlag = true; this.ActionCount = 0; this.ActionCountLim = 20; this.ActionCountLimFlag = true; this.FormatFlag = true; this.FormatType = 2; this.FormatAppFlag = false; } else {} } } } else {} } } } } label 7985: this.ActionNum; if (this.SpinFlag) { ++this.SpinCount; if (this.SpinCount % 4 == 0) { i = 0; goto 8086; for (;;) { ++i; label 8086: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(this.Pos, that.HitPos, this.Radius + that.HitRadius)) { that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; that.InvincibleFlag = true; this.se.gotoAndPlay('hit'); ++_global.WCharActionHitCount; this.Omega *= -1; var JumpVec = ParabolaVec(false, 25, _global.WGravity, this.Pos, WMyCharEval.Pos); if (JumpVec.x == 0 && JumpVec.y == 0) { JumpVec = ParabolaVec(true, 35, _global.WGravity, this.Pos, WMyCharEval.Pos); } if (JumpVec.x == 0 && JumpVec.y == 0) { JumpVec = SGet(0, -20); } this.Vec = SEqual(JumpVec); } } i = 0; goto 8748; for (;;) { ++i; label 8748: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(this.Pos, that.Pos, this.Radius + that.Radius)) { that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; that.InvincibleFlag = true; this.se.gotoAndPlay('hit'); ++_global.WCharActionHitCount; this.Omega *= -1; var JumpVec = ParabolaVec(false, 25, _global.WGravity, this.Pos, WMyCharEval.Pos); if (JumpVec.x == 0 && JumpVec.y == 0) { JumpVec = ParabolaVec(true, 35, _global.WGravity, this.Pos, WMyCharEval.Pos); } if (JumpVec.x == 0 && JumpVec.y == 0) { JumpVec = SGet(0, -20); } this.Vec = SEqual(JumpVec); } } } } if (_y < WCornerPos.y * -1 || WCornerPos.y * 2 < _y || _x < WCornerPos.x * -1 || WCornerPos.x * 2 < _x) { _visible = false; this.ExistFlag = false; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance bullet of movieClip 80 bullet { onClipEvent (load) { _visible = false; this.ID = -1; this.Pos = SGet(0, 0); this.OldPos = SEqual(this.Pos); this.Vec = SGet(0, 0); this.TempBaceVec = SGet(0, 0); this.TarType = -1; this.TarFlag = false; this.TarEval = 0; this.FormatFlag = false; this.ExistFlag = false; this.StandFlag = false; this.Radius = 30; this.Omega = 0; this.Line1 = SGet(this.Pos.x, this.Pos.y); this.Line2 = SGet(this.Pos.x, this.Pos.y); this.HorizonVec = SGet(0, 0); this.PreFlag_visible = false; this.LimTime = 150; this.Time = 0; this.OldStandFlag = false; this.LvCount = 0; this.AttackPower = 50; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 10; this.AttackInvincibleCount = 5; } onClipEvent (enterFrame) { if (this.FormatFlag) { this.FormatFlag = false; _visible = true; this.ExistFlag = true; var that = _global.WFireEval[this.ID]; that.FormatFlag = true; that.Pos = SEqual(this.Pos); var TempRot = int(Math.atan2(Vec.y, Vec.x) * 57.29577951); this.middle.action1._rotation = TempRot; that._rotation = TempRot; that.RotVec = SNorm(this.Vec); this.OldPos = SEqual(this.Pos); this.middle.gotoAndPlay('movieStart1'); this.OldStandFlag = false; this.StandFlag = false; this.LvCount = WMyCharEval.LvCount; this.AttackPower = 50 + 25 * this.LvCount; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 5 + 5 * this.LvCount; this.AttackInvincibleCount = 5; this.LimTime = 150; this.Time = 0; this.TarType = -1; this.TarFlag = false; this.TarEval = 0; } if (_visible) { if (this.OldStandFlag != this.StandFlag) { if (!this.StandFlag) { this.middle.gotoAndPlay('movieStart1'); } else { this.se.gotoAndPlay('footOn'); } this.OldStandFlag = this.StandFlag; } if (this.StandFlag == false) { this.Vec.y -= WGravity; } this.Line1 = SGet(this.Pos.x, this.Pos.y); this.OldPos = SEqual(this.Pos); this.Pos.x += this.Vec.x; this.Pos.y += this.Vec.y; _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; this.AttackReactionVec = SGet(this.Vec.x * 0.25, this.Vec.y * 0.25); this.Line2 = SGet(this.Pos.x + this.Vec.x, this.Pos.y + this.Vec.y - WGravity); ++this.Time; if (this.LimTime < this.Time) { this.Time = 0; this.Vec = SGet(0, 0); this.ExistFlag = false; _visible = false; this.middle.gotoAndPlay('movieStart3'); } if (this.StandFlag != false) { if (WMyCharEval.LvCount >= 3) { if (TarFlag == false && this.Time % 5 == 0) { var TempA = 0; var TempB = 1000000; var TempC = 0; var TempD = false; var CenPos = SGet(this.Pos.x, this.Pos.y); i = 0; goto 2322; for (;;) { ++i; label 2322: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 400)) { var a = that._x - MPos.x; var b = that._y - MPos.y; TempA = a * a + b * b; if (TempA < TempB) { TempB = TempA; TempC = that.ID; TempD = true; this.TarType = 1; } } } i = 0; goto 2609; for (;;) { ++i; label 2609: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 400)) { var a = that._x - MPos.x; var b = that._y - MPos.y; TempA = a * a + b * b; if (TempA < TempB) { TempB = TempA; TempC = that.ID; TempD = true; this.TarType = 2; } } } if (TempD != true) { this.TarFlag = false; } else { this.TarEval = TempC; this.TarFlag = true; this.middle.gotoAndPlay('movieStart2'); this.se.gotoAndPlay('getting'); } } if (TarFlag) { if (TarType != 1) { if (TarType == 2) { var that; that = WMagicEval[TarEval]; if (!that._visible) { this.TarFlag = false; } else { this.TempBaceVec.x = that.Pos.x - this.Pos.x; this.TempBaceVec.y = that.Pos.y - this.Pos.y; var TempVec = SNorm(this.TempBaceVec); var TempDis = SSize(this.TempBaceVec); this.middle.action2.bindNeck._x = TempVec.x * TempDis; this.middle.action2.bindNeck._y = TempVec.y * TempDis; this.middle.action2.bindRoot._rotation = 0; this.middle.action2.bindRoot._width = TempDis * 0.78125; this.middle.action2.bindRoot._rotation = Math.atan2(TempBaceVec.y, TempBaceVec.x) * 57.29577951; this.TempBaceVec.y += 200; that.Vec = SScale(SAdd(SScale(SNorm(this.TempBaceVec), SSize(this.TempBaceVec) * -0.02), that.Vec), 0.96); that.ReactionCount = 2; that.StandFlag = false; } } } else { var that; that = WWitchEval[TarEval]; if (!that._visible) { this.TarFlag = false; } else { this.TempBaceVec.x = that.Pos.x - this.Pos.x; this.TempBaceVec.y = that.Pos.y - this.Pos.y; var TempVec = SNorm(this.TempBaceVec); var TempDis = SSize(this.TempBaceVec); this.middle.action2.bindNeck._x = TempVec.x * TempDis; this.middle.action2.bindNeck._y = TempVec.y * TempDis; this.middle.action2.bindRoot._rotation = 0; this.middle.action2.bindRoot._width = TempDis * 0.78125; this.middle.action2.bindRoot._rotation = Math.atan2(TempBaceVec.y, TempBaceVec.x) * 57.29577951; this.TempBaceVec.y += 200; that.Vec = SScale(SAdd(SScale(SNorm(this.TempBaceVec), SSize(this.TempBaceVec) * -0.02), that.Vec), 0.96); that.ReactionCount = 2; that.StandFlag = false; } } } if (TarFlag == false) { if (this.TarEval != -1) { this.TarEval = -1; this.middle.gotoAndPlay('movieStart1'); } } } } else { i = 0; goto 4477; for (;;) { ++i; label 4477: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(this.Pos, that.HitPos, this.Radius + that.HitRadius)) { if (_global.Line_Circle_Hit(this.OldPos, this.Pos, that.HitPos, that.HitRadius)) { that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; that.InvincibleFlag = true; this.se.gotoAndPlay('hit'); ++_global.WCharActionHitCount; } } } i = 0; goto 4905; for (;;) { ++i; label 4905: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(this.Pos, that.Pos, this.Radius + that.Radius)) { if (_global.Line_Circle_Hit(this.OldPos, this.Pos, that.Pos, that.Radius)) { that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; that.InvincibleFlag = true; this.se.gotoAndPlay('hit'); ++_global.WCharActionHitCount; } } } } } } } instance roseBall of movieClip 1124 バラ { onClipEvent (load) { this.MasterFlag = false; if (this == _parent.roseBall) { this.MasterFlag = true; } _visible = 0; this.ID = -1; this.Pos = SGet(0, 0); this.OldPos = SEqual(this.Pos); this.Vec = SGet(0, 0); this.FormatFlag = false; this.DeathFlag = false; this.DeathCount = 0; this.ExistFlag = true; this.StandFlag = false; this.OldStandFlag = false; this.HorizonVec = SGet(0, 0); this.Radius = 20; this.TimeLim = 200; this.Time = 0; _rotation = 0; this.AttackPower = 0; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 0; this.AttackInvincibleCount = 0; this.HpCountLim = 0; this.HpCount = 0; this.OldHpCount = 0; this.ReactionFlag = false; this.ReactionVec = SGet(0, 0); this.ReactionCount = 0; this.PhysFlag = true; this.InvincibleFlag = false; this.InvincibleCount = 0; this.LvCountLim = 7; this.LvCount = 0; } onClipEvent (enterFrame) { if (this.FormatFlag) { this.FormatFlag = false; _visible = true; _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; this.TimeLime = 200; this.Time = 0; this.OldPos = SEqual(this.Pos); this.DeathFlag = false; this.DeathCount = 0; this.ExistFlag = true; this.StandFlag = false; this.OldStandFlag = false; this.AttackPower = 50; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 5; this.AttackInvincibleCount = 1; this.HpCountLim = 50; this.HpCount = 0; this.OldHpCount = 0; this.ReactionFlag = false; this.ReactionVec = SGet(0, 0); this.ReactionCount = 0; this.PhysFlag = true; this.InvincibleFlag = false; this.InvincibleCount = 0; this.middle.gotoAndPlay('movieStart1'); } if (this.DeathFlag != true) { if (_visible == 1) { this.OldPos = SEqual(this.Pos); this.Vec.y -= WGravity; this.Pos.x += this.Vec.x; this.Pos.y += this.Vec.y; _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; this.AttackReactionVec = SGet(this.Vec.x * 0.75, this.Vec.y * 0.75); if (0 >= this.ReactionCount) { this.ReactionCount = 0; this.ReactionFlag = false; this.PhysFlag = false; } else { --this.ReactionCount; this.ReactionFlag = true; this.PhysFlag = true; } if (0 >= this.InvincibleCount) { this.InvincibleCount = 0; this.InvincibleFlag = false; } else { this.InvincibleFlag = true; --this.InvincibleCount; } ++this.Time; if (this.TimeLim < this.Time) { this.Time = 0; this.DeathFlag = true; this.middle.gotoAndPlay('movieStart2'); } if (this.HpCount >= this.HpCountLim) { this.HpCount = this.HpCountLim; this.DeathFlag = true; this.middle.gotoAndPlay('movieStart2'); this.se.gotoAndPlay('death'); } if (this.OldHpCount < this.HpCount) { _global.WEnemyDamageCount += this.HpCount - this.OldHpCount; if (this.OldHpCount + 5 < this.HpCount) { this.se.gotoAndPlay('cry'); } } this.OldHpCount = this.HpCount; if (this.Time % 2 == 0) { var that; that = WMyCharEval; if (that._visible && that.InvincibleFlag == false) { if (_global.Dot_Circle_Hit(this.Pos, that.Pos, this.Radius + 50)) { if (_global.Line_Circle_Hit(this.OldPos, this.Pos, that.Pos, this.Radius)) { that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; that.InvincibleFlag = true; this.se.gotoAndPlay('hit'); this.HpCount = this.HpCountLim; } } } } } } else { _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; ++this.DeathCount; if (5 < this.DeathCount) { this.DeathFlag = false; this._visible = false; this.middle.gotoAndPlay('movieStart0'); this.ExistFlag = false; } } } } instance cottonEye of movieClip 1120 コットンアイ { onClipEvent (load) { this.MasterFlag = false; if (this == _parent.cottonEye) { this.MasterFlag = true; } _visible = 0; this.ID = -1; this.Pos = SGet(0, 0); this.OldPos = SEqual(this.Pos); this.Vec = SGet(0, 0); this.FormatFlag = false; this.DeathFlag = false; this.DeathCount = 0; this.ExistFlag = true; this.StandFlag = false; this.OldStandFlag = false; this.HorizonVec = SGet(0, 0); this.Radius = 20; this.TimeLim = 300; this.Time = 0; _rotation = 0; this.AttackPower = 0; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 0; this.AttackInvincibleCount = 0; this.HpCountLim = 0; this.HpCount = 0; this.OldHpCount = 0; this.ReactionFlag = false; this.ReactionVec = SGet(0, 0); this.ReactionCount = 0; this.PhysFlag = true; this.InvincibleFlag = false; this.InvincibleCount = 0; this.LvCountLim = 7; this.LvCount = 0; } onClipEvent (enterFrame) { if (this.FormatFlag) { this.FormatFlag = false; _visible = true; _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; this.TimeLime = 200; this.Time = 0; this.OldPos = SEqual(this.Pos); this.DeathFlag = false; this.DeathCount = 0; this.ExistFlag = true; this.StandFlag = false; this.OldStandFlag = false; this.AttackPower = 50; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 5; this.AttackInvincibleCount = 25; this.HpCountLim = 75; this.HpCount = 0; this.OldHpCount = 0; this.ReactionFlag = false; this.ReactionVec = SGet(0, 0); this.ReactionCount = 0; this.PhysFlag = true; this.InvincibleFlag = false; this.InvincibleCount = 0; this.middle.gotoAndPlay('movieStart1'); } if (this.DeathFlag != true) { if (_visible == 1) { this.OldPos = SEqual(this.Pos); if (this.ReactionFlag) { this.Vec.y -= WGravity; } this.Pos.x += this.Vec.x; this.Pos.y += this.Vec.y; _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; this.AttackReactionVec = SGet(this.Vec.x * 0.75, this.Vec.y * 0.75); if (0 >= this.ReactionCount) { this.ReactionCount = 0; this.ReactionFlag = false; this.PhysFlag = false; } else { --this.ReactionCount; this.ReactionFlag = true; this.PhysFlag = true; } if (0 >= this.InvincibleCount) { this.InvincibleCount = 0; this.InvincibleFlag = false; } else { this.InvincibleFlag = true; --this.InvincibleCount; } ++this.Time; if (this.TimeLim < this.Time) { this.Time = 0; this.DeathFlag = true; this.middle.gotoAndPlay('movieStart2'); } if (this.HpCount >= this.HpCountLim) { this.HpCount = this.HpCountLim; this.DeathFlag = true; this.middle.gotoAndPlay('movieStart2'); this.se.gotoAndPlay('death'); } if (this.OldHpCount < this.HpCount) { _global.WEnemyDamageCount += this.HpCount - this.OldHpCount; if (this.OldHpCount + 5 < this.HpCount) { this.se.gotoAndPlay('cry'); } } this.OldHpCount = this.HpCount; if (this.StandFlag == false && this.Time % 2 == 0) { var that; that = WMyCharEval; if (that._visible == true && that.InvincibleFlag == false) { if (_global.Dot_Circle_Hit(this.Pos, that.Pos, this.Radius + that.Radius)) { if (_global.Line_Circle_Hit(this.OldPos, this.Pos, that.Pos, this.Radius)) { that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; that.InvincibleFlag = true; this.se.gotoAndPlay('hit'); this.HpCount = this.HpCountLim; } } } } } } else { _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; ++this.DeathCount; if (5 < this.DeathCount) { this.DeathFlag = false; this._visible = false; this.middle.gotoAndPlay('movieStart0'); this.ExistFlag = false; } } } } instance fire of movieClip 534 発射エフェクト { onClipEvent (load) { this._visible = false; this.Count = 0; this.CountLim = 12; this.FormatFlag = false; this.ID = -1; this.Pos = SGet(0, 0); this.RotVec = SGet(0, 0); this.LvCount = 0; this.AttackPower = 50; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 10; this.AttackInvincibleCount = 5; } onClipEvent (enterFrame) { if (this.FormatFlag) { this.FormatFlag = false; this.LvCount = WMyCharEval.LvCount; this.AttackPower = 50 + 25 * this.LvCount; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 5 + 5 * this.LvCount; this.AttackInvincibleCount = 5; this._visible = true; this.Count = 0; } if (this._visible) { _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; ++this.Count; if (this.Count == 1) { this.shoot.gotoAndPlay('movieStart'); var Line1 = SAdd(this.Pos, SScale(this.RotVec, 175)); var Line2 = SAdd(this.Pos, SScale(this.RotVec, 0)); var CenPos = SScale(SAdd(Line1, Line2), 0.5); i = 0; goto 1021; for (;;) { ++i; label 1021: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(this.Pos, that.HitPos, this.Radius + that.HitRadius)) { if (_global.Line_Circle_Hit(Line1, Line2, that.HitPos, that.HitRadius + 50)) { this.AttackReactionVec = SScale(this.RotVec, 20); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; that.InvincibleFlag = true; this.se.gotoAndPlay('hit'); ++_global.WCharActionHitCount; } } } i = 0; goto 1483; for (;;) { ++i; label 1483: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(this.Pos, that.Pos, this.Radius + that.Radius)) { if (_global.Line_Circle_Hit(Line1, Line2, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SScale(this.RotVec, 20); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; that.InvincibleFlag = true; this.se.gotoAndPlay('hit'); ++_global.WCharActionHitCount; } } } } if (this.CountLim < this.Count) { this._visible = false; } } } } instance circle of movieClip 52 circle { } instance light of movieClip 38 light { onClipEvent (load) { if (this != _parent.light) { _visible = 1; } else { _visible = 0; } this.Pos = SGet(_x + WPos.x, _y + WPos.y); this.Vec = SGet(0, 0); this.ExistFlag = true; } } instance ground of movieClip 128 ライン半分足場 { onClipEvent (load) { if (this != _parent.ground) { _visible = 1; } else { _visible = 0; } this.Pos = SGet(_x + WPos.x, _y + WPos.y); this.Vec = SGet(0, 0); this.ExistFlag = true; this.Radius = this._xscale * 0.01 * 128 * 0.5; var Rad = _rotation * 0.01745329; var Rad_x = this.Radius * Math.cos(this.Rad); var Rad_y = this.Radius * Math.sin(this.Rad); this.Line1 = SGet(this.Pos.x - Rad_x, this.Pos.y - Rad_y); this.Line2 = SGet(this.Pos.x + Rad_x, this.Pos.y + Rad_y); this.HorizonVec = SNorm(SSub(this.Line2, this.Line1)); var Rad2 = (_rotation - 90) * 0.01745329; this.VertVec = SGet(Math.cos(Rad2), Math.sin(Rad2)); } onClipEvent (enterFrame) { if (_visible) { this.Pos.x += this.Vec.x; this.Pos.y += this.Vec.y; _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; var Rot = 0; if (Rot == 0) { this.Line1.x += this.Vec.x; this.Line1.y += this.Vec.y; this.Line2.x += this.Vec.x; this.Line2.y += this.Vec.y; } else { _rotation += Rot; var Red = _rotation * 0.01745329; var Red_x = _height * 0.5 * Math.cos(this.Red); var Red_y = _height * 0.5 * Math.sin(this.Red); this.Line1.x = this.Pos.x - Red_x; this.Line1.y = this.Pos.y - Red_y; this.Line2.x = this.Pos.x + Red_x; this.Line2.y = this.Pos.y + Red_y; } var that; that = _parent.myChar; if (that.ExistFlag == true) { if (that.StandFlag == false) { if (_global.Dot_Circle_Hit(this.Pos, that.Pos, this.Radius + that.Radius)) { if (_global.Lim_Circle_Hit(this.Line1, this.Line2, that.Line2, that.Radius)) { var DotIgnore1 = SDot(this.VertVec, that.Vec); var DotVec0 = SDot(this.VertVec, SSub(that.OldPos, this.Pos)); if (0 >= DotVec0) { if (0 < DotIgnore1) { that.Vec.x = 0; that.Vec.y = 0; var DotVec1 = SDot(this.VertVec, SSub(that.Line1, this.Pos)); if (0 >= DotVec1) { var DotVec2 = SDot(this.VertVec, SSub(that.Line2, this.Pos)); that.Pos.x -= this.VertVec.x * DotVec2; that.Pos.y -= this.VertVec.y * DotVec2; } else { that.Pos.x -= this.VertVec.x * DotVec1; that.Pos.y -= this.VertVec.y * DotVec1; } } } else { if (DotIgnore1 < 0) { that.FootholdLim1.x = this.Line1.x; that.FootholdLim1.y = this.Line1.y; that.FootholdLim2.x = this.Line2.x; that.FootholdLim2.y = this.Line2.y; fscommand('ParaFlaTrace', that.FootholdLim2.x); that.FootholdVec = SGet(0, 0); that.JumpFlag = false; that.HorizonVec = this.HorizonVec; if (SDot(SGet(1, 0), that.HorizonVec) < 0) { that.HorizonVec.x *= -1; that.HorizonVec.y *= -1; } that.Vec.x = 0; that.Vec.y = 0; that.StandFlag = true; var DotVec1 = SDot(this.VertVec, SSub(that.Line1, this.Pos)); if (DotVec1 >= 0) { that.FootholdVec.x = that.Line2.x - that.Pos.x; that.FootholdVec.y = that.Line2.y - that.Pos.y; var DotVec2 = SDot(this.VertVec, SSub(that.Line2, this.Pos)); that.Pos.x -= this.VertVec.x * DotVec2; that.Pos.y -= this.VertVec.y * DotVec2; } else { that.FootholdVec.x = that.Line1.x - that.Pos.x; that.FootholdVec.y = that.Line1.y - that.Pos.y; that.Pos.x -= this.VertVec.x * DotVec1; that.Pos.y -= this.VertVec.y * DotVec1; } } } } } } } i = 0; goto 2929; for (;;) { ++i; label 2929: if (i >= WWeaponNum) break; var that; that = eval('_parent.weapon' + i); if (that.ExistFlag == true && that.PreFlag_visible == true) { if (that.StandFlag == false && (2 < that.SpinCount || that.SpinCount == 0)) { if (_global.Dot_Circle_Hit(this.Pos, that.Pos, this.Radius + that.Radius)) { if (that.SpinFlag != false) { if (_global.Line_Circle_Hit(this.Line1, this.Line2, that.Pos, that.Radius)) { var DotIgnore1 = SDot(this.VertVec, that.Vec); var DotVec0 = SDot(this.VertVec, SSub(that.OldPos, this.Pos)); if (0 >= DotVec0) { if (0 < DotIgnore1) { that.Vec.x = 0; that.Vec.y = WGravity; that.Pos.x -= this.VertVec.x * (that.Radius + DotVec0); that.Pos.y -= this.VertVec.y * (that.Radius + DotVec0); } } else { if (DotIgnore1 < 0) { that.HorizonVec = this.HorizonVec; that.Vec.x = 0; that.Vec.y = 0; that._rotation = this._rotation + 90; that.Omega = 0; that.StandFlag = true; that.SpinFlag = false; if (that.ShotFlag == true) { that.PreFlag_visible = false; } that.Pos.x += this.VertVec.x * (that.Radius - DotVec0); that.Pos.y += this.VertVec.y * (that.Radius - DotVec0); } } } } else { if (_global.Line_Line_Hit(this.Line1, this.Line2, that.Line1, that.Line2)) { var DotIgnore1 = SDot(this.VertVec, that.Vec); var DotVec0 = SDot(this.VertVec, SSub(that.OldPos, this.Pos)); if (0 >= DotVec0) { if (DotIgnore1 < 0) { that.Vec.x = 0; that.Vec.y = WGravity; var DotVec1 = SDot(this.VertVec, SSub(that.Line1, this.Pos)); if (0 >= DotVec1) { var DotVec2 = SDot(this.VertVec, SSub(that.Line2, this.Pos)); that.Pos.x -= this.VertVec.x * DotVec2; that.Pos.y -= this.VertVec.y * DotVec2; } else { that.Pos.x -= this.VertVec.x * DotVec1; that.Pos.y -= this.VertVec.y * DotVec1; } } } else { if (DotIgnore1 < 0) { that.HorizonVec = this.HorizonVec; that.Vec.x = 0; that.Vec.y = 0; that._rotation -= Rot; that.Omega = 0; that.StandFlag = true; if (that.ShotFlag == true) { that.PreFlag_visible = false; } var DotVec1 = SDot(this.VertVec, SSub(that.Line1, this.Pos)); if (DotVec1 >= 0) { var DotVec2 = SDot(this.VertVec, SSub(that.Line2, this.Pos)); that.Pos.x -= this.VertVec.x * DotVec2; that.Pos.y -= this.VertVec.y * DotVec2; } else { that.Pos.x -= this.VertVec.x * DotVec1; that.Pos.y -= this.VertVec.y * DotVec1; } } } } } } } } } i = 0; goto 5088; for (;;) { ++i; label 5088: if (i >= WBulletNum) break; var that; that = eval('_parent.bullet' + i); if (that.ExistFlag == true && that._visible == true) { if (that.StandFlag == false) { if (_global.Dot_Circle_Hit(this.Pos, that.Pos, this.Radius + that.Radius)) { if (_global.Line_Line_Hit(this.Line1, this.Line2, that.Line1, that.Line2)) { that.HorizonVec = this.HorizonVec; that.Pos.x -= that.Vec.x; that.Pos.y -= that.Vec.y; that.Vec.x = 0; that.Vec.y = 0; that.StandFlag = true; that.Omega = 0; } } } } } } } } instance griefSeed of movieClip 1128 グリーフシード { onClipEvent (load) { this.MasterFlag = false; if (this == _parent.griefSeed) { this.MasterFlag = true; } this._visible = false; this.ID = -1; var n = 0; goto 345; for (;;) { ++n; label 345: if (n >= WGriefSeedNum) break; if (this == eval('_parent.griefSeed' + n)) { this.ID = n; } else {} } this.PhysFlag = true; this.flyFlag = false; this.SitFlag = false; this.KeyFlag = false; this.Pos = SGet(0, 0); this.OldPos = SEqual(this.Pos); this.Vec = SGet(0, 0); this.FormatFlag = false; this.ExistFlag = false; this.StandFlag = false; this.Radius = 30; this.Omega = 0; this.HorizonVec = SGet(0, 0); _rotation = 0; this.LimTime = 10000; this.Time = 0; this.OldStandFlag = false; } onClipEvent (enterFrame) { if (_global.WVisibleFlag && this.MasterFlag == false && this.ExistFlag == true) { if (Dot_Dot_Distance(this.Pos, _global.WWCenPos) - (this.Radius + VisibleLange1) >= 0) { this._visible = false; } else { if (this._visible == false) { if (this.PhysFlag == true) { i = 0; goto 757; for (;;) { ++i; label 757: if (i >= WLineIndexNum) break; var that = WLineEval[WLineEvalIndex[i]]; if (that._visible) { that.WitchCount[this.ID] = 1; } } } } this._visible = true; } } if (this.FormatFlag == true) { if (!this.KeyFlag) { this.PhysFlag = true; this.flyFlag = false; this.SitFlag = false; this.Radius = 30; this._xscale = 25; this._yscale = 25; } else { this.PhysFlag = false; this.flyFlag = true; this.SitFlag = false; this.Radius = 60; this._xscale = 100; this._yscale = 100; } this.OldPos = SEqual(this.Pos); this.FormatFlag = false; this.ExistFlag = true; this.StandFlag = false; this.Omega = 0; this.HorizonVec = SGet(0, 0); this._visible = true; this.LimTime = 10000; this.Time = 0; this.OldStandFlag = false; i = 0; goto 1309; for (;;) { ++i; label 1309: if (i >= WLineIndexNum) break; var that = WLineEval[WLineEvalIndex[i]]; if (that._visible) { that.WitchCount[this.ID] = 1; } } this.middle.gotoAndPlay('movieStart1'); } if (_visible) { if (this.StandFlag == false && this.flyFlag == false) { this.Vec.y -= WGravity; this.Vec = SScale(this.Vec, 0.95); } if (this.Vec.y * this.Vec.y < 25) { this.SitFlag = true; } this.OldPos = SEqual(this.Pos); this.Pos.x += this.Vec.x; this.Pos.y += this.Vec.y; if (1) { if (this.Pos.x < WLimPos1.x) { this.Pos.x = WLimPos1.x; this.OldPos = SEqual(this.Pos); } if (WLimPos2.x < this.Pos.x) { this.Pos.x = WLimPos2.x; this.OldPos = SEqual(this.Pos); } if (WLimPos2.y < this.Pos.y) { _visible = false; this.ExistFlag = false; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; ++this.Time; if (this.LimTime < this.Time) { this.Time = 0; this._visible = false; this.middle.gotoAndPlay('movieStart3'); } if (1 < this.Time) { var that; that = WMyCharEval; if (that._visible) { if (_global.Dot_Circle_Hit(this.Pos, that.Pos, this.Radius + that.Radius)) { this._visible = false; this.ExistFlag = false; this.se.gotoAndPlay('coin'); ++_global.WInfoGaugeGsp; if (!this.KeyFlag) { that.ExpCount += 1; that.HpCount -= 10; if (that.HpCount < 0) { that.HpCount = 0; } } else { this.KeyFlag = false; ++_global.WInfoGaugeKp; that.ExpCount += 20; that.HpCount -= 500; if (that.HpCount < 0) { that.HpCount = 0; } } } } if (this._visible) { that = WPartnerEval; if (that._visible) { if (_global.Dot_Circle_Hit(this.Pos, that.Pos, this.Radius + that.Radius)) { this._visible = false; this.ExistFlag = false; this.se.gotoAndPlay('coin'); ++_global.WInfoGaugeGsp; if (!this.KeyFlag) { WMyCharEval.ExpCount += 1; WMyCharEval.HpCount -= 10; if (that.HpCount < 0) { that.HpCount = 0; } } else { this.KeyFlag = false; ++_global.WInfoGaugeKp; that.AimGetFlag = true; WMyCharEval.ExpCount += 20; WMyCharEval.HpCount -= 500; if (that.HpCount < 0) { that.HpCount = 0; } } } } } } } } } instance gate of movieClip 132 ゲート { onClipEvent (load) { this.Pos = SGet(_x + WPos.x, _y + WPos.y); this.Vec = SGet(0, 0); this._visible = false; this.FormatFlag = false; this.ExistFlag = true; this.StandFlag = false; this.Radius = 60; this.HostStationNum = 0; this.GotoStationNum = 0; this.OpenCount = 0; this.Open = false; this.PostOpenFlag = false; } onClipEvent (enterFrame) { if (this.FormatFlag) { this.FormatFlag = false; _visible = true; this.image.gotoAndPlay('movieStart' + this.HostStationNum); } if (_visible) { this.Pos.x += this.Vec.x; this.Pos.y += this.Vec.y; _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; var that = WMyCharEval; if (this.Open == true) { --this.OpenCount; if (this.OpenCount < 0) { this.OpenCount = 0; this.PostOpenFlag = true; } } if (Dot_Circle_Hit(this.Pos, that.Pos, this.Radius) && that._visible || this.PostOpenFlag == true) { this.PostOpenFlag = false; this.Open = false; WMyCharEval._visible = false; var that = _parent.station; that.StationNum = this.GotoStationNum; that.FormatFlag = true; this.removeMovieClip(); } } } } instance mapPoint of movieClip 2476 マップ { onClipEvent (load) { this.OnFlag = false; this.OnCount = 0; this.DownFlag = false; this.Pos = SGet(0, 0); this.Radius = 20; this._visible = false; this.GotoStationNum = -1; this.HostStationNum = -1; this.FormatFlag = false; } onClipEvent (enterFrame) { if (this.FormatFlag) { this.FormatFlag = false; this.OnFlag = false; this.OnCount = 0; this.DownFlag = false; this._visible = true; this.word.name = ''; this.image.gotoAndPlay('movieStart' + this.HostStationNum * 2); } if (_visible) { _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; if (!Dot_Circle_Hit(this.Pos, WMPos, this.Radius)) { this.OnFlag = false; } else { this.OnFlag = true; } if (!this.OnFlag) { if (this.OnCount != 0) { this.OnCount = 0; this.word.name = ''; this.image.gotoAndPlay('movieStart' + this.HostStationNum * 2); } } else { ++this.OnCount; if (this.OnCount == 1) { this.se.gotoAndPlay('over'); this.image.gotoAndPlay('movieStart' + (this.HostStationNum * 2 + 1)); if (this.HostStationNum == 0) { this.word.name = '廃ビル'; goto 1103; } else { if (this.HostStationNum == 1) { this.word.name = ''; goto 1103; } else { if (this.HostStationNum == 2) { this.word.name = 'アパートメント'; goto 1103; } else { if (this.HostStationNum == 7) { this.word.name = '橋の下'; goto 1103; } else { if (this.HostStationNum == defalt) { this.word.name = '????'; } else {} } } } } label 1103: this.HostStationNum; this.DownFlag = false; } if (MLeftUp) { if (this.DownFlag == false) { this.DownFlag = true; this.se.gotoAndPlay('crick'); var that = _parent.station; that.StationNum = this.GotoStationNum; that.FormatFlag = true; } } } } } } instance effect of movieClip 2514 エフェクト { onClipEvent (load) { this.Pos = SGet(0, 0); this._visible = false; this.FormatFlag = false; this.Count = 0; this.CountLim = 30; SOURCE_MOVIECLIP = _root.world; BlurRect = {'x': 0, 'y': 0, 'w': 640, 'h': 480}; BlurLength = 1.02; BlurAlpha = 0.9; bmpData = new flash.display.BitmapData(BlurRect.w, BlurRect.h, true, 16777215); bmpBuffer = new flash.display.BitmapData(BlurRect.w, BlurRect.h, true, 16777215); render = SOURCE_MOVIECLIP.createEmptyMovieClip('render', SOURCE_MOVIECLIP.getNextHighestDepth()); render._x = BlurRect.x; render._y = BlurRect.y; var trans = new flash.geom.Transform(render); var color = new flash.geom.ColorTransform(1, 1, 1, BlurAlpha, 0, 0, 0, 0); trans.colorTransform = color; } onClipEvent (enterFrame) { if (this.FormatFlag) { this.FormatFlag = false; _visible = true; this.se.gotoAndPlay('encount'); SOURCE_MOVIECLIP.render._visible = true; this.Count = 0; } if (!_visible) { if (this.Count != 0) { this.Count = 0; SOURCE_MOVIECLIP.render._visible = false; } } else { ++this.Count; this.Pos.x += this.Vec.x; this.Pos.y += this.Vec.y; _x = this.Pos.x - WPos.x; _y = this.Pos.y - WPos.y; if (this.Count % 2 == 1) { GetBlur(); } if (this.CountLim < this.Count) { _visible = false; this.Count = 0; SOURCE_MOVIECLIP.render._visible = false; } } } } } movieClip 34 mouse { } movieClip 2514 エフェクト { frame 1 { GetBlur = function () { bmpData.copyPixels(bmpBuffer, new flash.geom.Rectangle(0, 0, BlurRect.w, BlurRect.h), new flash.geom.Point(0, 0)); var m = new flash.geom.Matrix(1, 0, 0, 1, BlurRect.x * -1, BlurRect.y * -1); bmpBuffer.fillRect(new flash.geom.Rectangle(0, 0, BlurRect.w, BlurRect.h), 16777215); bmpBuffer.draw(SOURCE_MOVIECLIP, m); var m = new flash.geom.Matrix(1, 0, 0, 1, 0, 0); m.translate(_root._xmouse * -1, _root._ymouse * -1); m.scale(BlurLength, BlurLength); m.translate(_root._xmouse, _root._ymouse); render.clear(); render.beginBitmapFill(bmpData, m, true, true); render.moveTo(0, 0); render.lineTo(0, BlurRect.h); render.lineTo(BlurRect.w, BlurRect.h); render.lineTo(BlurRect.w, 0); render.endFill(); }; } } movieClip 2520 se { frame 2 { stop(); } frame 4 { stop(); } } movieClip 698 manage { } movieClip 32 ステーション { frame 1 { CreateLine = function () { var n = 0; goto 778; for (;;) { ++n; label 778: if (n >= WLineNum) break; if (Line[n].flag == true) { if (Line[n].kind != 1) { if (Line[n].kind != 2) { if (Line[n].kind == 3) { (eval('_parent.line' + n)).removeMovieClip(); duplicateMovieClip('_parent.ground', 'line' + n, 16384); } } else { (eval('_parent.line' + n)).removeMovieClip(); duplicateMovieClip('_parent.wall', 'line' + n, 16384); } } else { (eval('_parent.line' + n)).removeMovieClip(); duplicateMovieClip('_parent.foothold', 'line' + n, 16384); } } } }; CreateLineNum = function (StartNum, EndNum) { if (WLineNum < EndNum) { EndNum = WLineNum; } var n = StartNum; goto 1198; for (;;) { ++n; label 1198: if (n >= EndNum) break; if (Line[n].flag == true) { if (Line[n].kind != 1) { if (Line[n].kind != 2) { if (Line[n].kind == 3) { (eval('_parent.line' + n)).removeMovieClip(); duplicateMovieClip('_parent.ground', 'line' + n, 16384); } } else { (eval('_parent.line' + n)).removeMovieClip(); duplicateMovieClip('_parent.wall', 'line' + n, 16384); } } else { (eval('_parent.line' + n)).removeMovieClip(); duplicateMovieClip('_parent.foothold', 'line' + n, 16384); } } } }; CreateWitch = function () { var n = 0; goto 1576; for (;;) { ++n; label 1576: if (n >= WWitchNum) break; if (Witch[n].flag == true) { if (Witch[n].kind != 1) { if (Witch[n].kind != 2) { if (Witch[n].kind != 3) { if (Witch[n].kind != 4) { if (Witch[n].kind == 5) { duplicateMovieClip('_parent.drum', 'witch' + n, 16384); } } else { duplicateMovieClip('_parent.gertrud', 'witch' + n, 16384); } } else { duplicateMovieClip('_parent.adelbertMini', 'witch' + n, 16384); } } else { duplicateMovieClip('_parent.adelbert', 'witch' + n, 16384); } } else { duplicateMovieClip('_parent.anthony', 'witch' + n, 16384); } } } }; CreateWitchNum = function (StartNum, EndNum) { if (WWitchNum < EndNum) { EndNum = WWitchNum; } var n = StartNum; goto 2078; for (;;) { ++n; label 2078: if (n >= EndNum) break; if (Witch[n].flag == true) { if (Witch[n].kind != 1) { if (Witch[n].kind != 2) { if (Witch[n].kind != 3) { if (Witch[n].kind != 4) { if (Witch[n].kind == 5) { duplicateMovieClip('_parent.drum', 'witch' + n, 16384); } } else { duplicateMovieClip('_parent.gertrud', 'witch' + n, 16384); } } else { duplicateMovieClip('_parent.adelbertMini', 'witch' + n, 16384); } } else { duplicateMovieClip('_parent.adelbert', 'witch' + n, 16384); } } else { duplicateMovieClip('_parent.anthony', 'witch' + n, 16384); } } } }; SetLine = function () { var n = 0; goto 2538; for (;;) { ++n; label 2538: if (n >= WLineNum) break; if (this.Line[n].flag == true) { var TempPass; TempPass = eval('_parent.line' + n); TempPass.Pos.x = (this.Line[n].x1 + this.Line[n].x2) * 0.5; TempPass._x = TempPass.Pos.x; TempPass.Pos.y = (this.Line[n].y1 + this.Line[n].y2) * 0.5; TempPass._y = TempPass.Pos.y; TempPass.Line1.x = this.Line[n].x1; TempPass.Line1.y = this.Line[n].y1; TempPass.Line2.x = this.Line[n].x2; TempPass.Line2.y = this.Line[n].y2; var LineVec_x = this.Line[n].x2 - this.Line[n].x1; var LineVec_y = this.Line[n].y2 - this.Line[n].y1; var LineSize = Math.sqrt(LineVec_x * LineVec_x + LineVec_y * LineVec_y); TempPass._xscale = (LineSize / 128) * 100; TempPass._rotation = Math.atan2(LineVec_y, LineVec_x) * 57.29577951; TempPass.Radius = LineSize * 0.5; if (90 < TempPass._rotation || TempPass._rotation < -90) { TempPass._rotation += 180; } var Rad1 = TempPass._rotation * 0.01745329; TempPass.HorizonVec = SGet(Math.cos(Rad1), Math.sin(Rad1)); var Rad2 = (TempPass._rotation - 90) * 0.01745329; TempPass.VertVec = SGet(Math.cos(Rad2), Math.sin(Rad2)); TempPass.ID = n; } } }; SetWitch = function () { var n = 0; goto 3571; for (;;) { ++n; label 3571: if (n >= WWitchNum) break; if (Witch[n].flag == true) { TempPass = eval('_parent.witch' + n); TempPass.Pos.x = Witch[n].x; TempPass._x = TempPass.Pos.x; TempPass.Pos.y = Witch[n].y; TempPass._y = TempPass.Pos.y; if (Witch[n].p1 != 1) { TempPass.FormatFlag = true; } else { TempPass.BossFlag = true; TempPass.FormatFlag = true; } TempPass.ID = n; TempPass.LvCount = random(10); } } }; CreateGate = function (GateID) { (eval('_parent.gate' + GateID)).removeMovieClip(); duplicateMovieClip('_parent.gate', 'gate' + GateID, 16384); }; SetGate = function (GateID, HostID, GotoID, Pos) { var that = eval('_parent.gate' + GateID); that.GotoStationNum = GotoID; that.HostStationNum = HostID; that.Pos.x = Pos.x; that.Pos.y = Pos.y; that.FormatFlag = true; }; OpenGate = function (GateID, Count) { var that = eval('_parent.gate' + GateID); that.Open = true; that.OpenCount = Count; }; CreateMapPoint = function (MapPointID) { (eval('_parent.mapPoint' + MapPointID)).removeMovieClip(); duplicateMovieClip('_parent.mapPoint', 'mapPoint' + MapPointID, 16384); fscommand('ParaFlaTrace', 'MapPointID' + MapPointID); }; SetMapPoint = function (MapPointID, HostID, GotoID, Pos) { var that = eval('_parent.mapPoint' + MapPointID); that.GotoStationNum = GotoID; that.HostStationNum = HostID; that.Pos.x = Pos.x; that.Pos.y = Pos.y; fscommand('ParaFlaTrace', 'X座標' + that.Pos.x + 'Y座標' + that.Pos.y + 'MapPointID' + MapPointID + 'HostID' + HostID + 'GotoID' + GotoID); that.FormatFlag = true; }; } } movieClip 492 空 { } movieClip 356 イメージ4 { } movieClip 2232 イメージ3 { } movieClip 2230 イメージ1 { } movieClip 2228 イメージ5 { } movieClip 2220 アクション { frame 2 { stop(); } frame 63 { stop(); } frame 124 { stop(); } frame 185 { stop(); } frame 246 { stop(); } } movieClip 2234 ブラインド { frame 2 { stop(); } frame 63 { stop(); } } movieClip 2236 ブラック { } movieClip 2218 instruction { } movieClip 2272 チャージリング { frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 2276 リング { } movieClip 2280 マックスナンバー { } movieClip 2278 マックスリング { } movieClip 2274 ナンバー { } movieClip 1914 フレーム { } movieClip 38 light { } movieClip 496 CPゲージ { } movieClip 494 HPゲージ { } movieClip 504 CPノーマル { frame 2 { stop(); } frame 59 { gotoAndPlay('Loop'); } frame 60 { stop(); } frame 67 { stop(); } } movieClip 498 HPノーマル { } movieClip 500 HPリアクション { } movieClip 512 HPリアクションゲージ枠 { } movieClip 508 HPゲージ枠 { } movieClip 510 HPリアクションゲージ中 { } movieClip 506 HPゲージ中 { } movieClip 514 middle { } movieClip 516 退出 { } movieClip 518 存在 { } movieClip 502 出現 { } movieClip 1482 CountCount { } movieClip 1480 Count { } movieClip 1484 ScoreCount { } movieClip 1478 Score { } movieClip 1486 GspCount { } movieClip 1476 Gsp { } movieClip 1466 ExpCount { } movieClip 1468 ExpゲージDx { } movieClip 1464 Exp { } movieClip 1460 LvCount { } movieClip 1454 スラッシュ { } movieClip 1458 HpCountLim { } movieClip 1452 HpCount { } movieClip 1448 CpゲージDx { } movieClip 1446 Cp { } movieClip 1442 Hp { } movieClip 1488 テンプテキストインフォ { instance hpGauge of movieClip 1440 HpゲージDx { onClipEvent (load) { this.Num = 0; this.OldNum = -1; this.NumLim = 0; this.OldNumLim = -1; this.Size = 375; this.MaxSize = 400; } onClipEvent (enterFrame) { var that = WMyCharEval; this.Num = that.HpCount; this.NumLim = that.HpCountLim; if (this.OldNum != this.Num || this.OldNumLim != this.NumLim) { var Hp = ((this.NumLim - this.Num) / this.NumLim) * (this.MaxSize / this.Size) * 100; this.image._xscale = Hp; this.OldNum = this.Num; this.OldNumLim = this.NumLim; } } } instance expGauge of movieClip 1468 ExpゲージDx { onClipEvent (load) { this.Num = 0; this.OldNum = -1; this.NumLim = 100; this.OldNumLim = -1; this.Size = 375; this.MaxSize = 200; } onClipEvent (enterFrame) { var that = WMyCharEval; this.Num = that.ExpCount; this.NumLim = that.ExpCountLim; if (this.OldNum != this.Num || this.OldNumLim != this.NumLim) { var Hp = (this.Num / this.NumLim) * (this.MaxSize / this.Size) * 100; this.image._xscale = Hp; this.OldNum = this.Num; this.OldNumLim = this.NumLim; } } } instance chageRing of movieClip 2272 チャージリング { onClipEvent (load) { this.OldChargePoint = 0; } onClipEvent (enterFrame) { if (WMyCharEval.ChargePoint != this.OldChargePoint) { var that = WMyCharEval; if (that.ChargePoint != 1) { if (that.ChargePoint == 0) { this.gotoAndPlay('movieStart0'); } } else { this.gotoAndPlay('movieStart1'); } if (that.ChargePoint == WCpIntervalFirst + WCpIntervalDiffer * WCpIntervalNumLim) { this.gotoAndPlay('movieStart2'); } this.OldChargePoint = that.ChargePoint; } } } } movieClip 1440 HpゲージDx { } movieClip 2538 se { frame 2 { stop(); } frame 3 { stop(); } frame 5 { stop(); } frame 7 { stop(); } } movieClip 1600 ブラック { } movieClip 1602 ブラックフェード { } movieClip 1596 スコアショウ { } movieClip 1708 マウスマーカー { } movieClip 592 ターゲットマーカー { } movieClip 52 circle { } movieClip 2392 リアクション { frame 2 { stop(); } frame 4 { stop(); } frame 6 { stop(); } frame 8 { stop(); } } movieClip 2390 スタンド { } movieClip 2394 SE { frame 2 { stop(); } frame 4 { stop(); } frame 6 { stop(); } frame 8 { stop(); } frame 10 { stop(); } frame 12 { stop(); } frame 13 { stop(); } } movieClip 2388 ドラム { instance stand of movieClip 2392 リアクション { onClipEvent (load) { this.ActionCount = 0; this._visible = false; this.Forward = 1; this.OldHpCount = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = false; if (_parent.HpCount >= _parent.HpCountLim * 0.25) { if (_parent.HpCount >= _parent.HpCountLim * 0.5) { this.gotoAndPlay('movieStart3'); } else { this.gotoAndPlay('movieStart2'); } } else { this.gotoAndPlay('movieStart1'); } } if (_parent.HpCount != this.OldHpCount) { if (_parent.HpCount >= _parent.HpCountLim * 0.25) { if (_parent.HpCount >= _parent.HpCountLim * 0.5) { this.gotoAndPlay('movieStart3'); } else { this.gotoAndPlay('movieStart2'); } } else { this.gotoAndPlay('movieStart1'); } this.OldHpCount = _parent.HpCount; } } } } instance reaction of movieClip 2390 スタンド { onClipEvent (load) { this._visible = false; this.Forward = 1; } } frame 1 { function SetVisible(Name, Name2) { this.style._visible = false; var that = eval('this.' + Name); that._visible = true; if (0 >= Name2) { if (0 >= that.Forward) { that._xscale = -100; } else { that._xscale = 100; } } else { if (0 >= that.Forward) { that._xscale = 100; } else { that._xscale = -100; } } this.style = eval('this.' + Name); } } instance stand of movieClip 2392 リアクション { onClipEvent (load) { this.ActionCount = 0; this._visible = false; this.Forward = 1; this.OldHpCount = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = false; if (_parent.HpCount >= _parent.HpCountLim * 0.25) { if (_parent.HpCount >= _parent.HpCountLim * 0.5) { this.gotoAndPlay('movieStart3'); } else { this.gotoAndPlay('movieStart2'); } } else { this.gotoAndPlay('movieStart1'); } } if (_parent.HpCount != this.OldHpCount) { if (_parent.HpCount >= _parent.HpCountLim * 0.25) { if (_parent.HpCount >= _parent.HpCountLim * 0.5) { this.gotoAndPlay('movieStart3'); } else { this.gotoAndPlay('movieStart2'); } } else { this.gotoAndPlay('movieStart1'); } this.OldHpCount = _parent.HpCount; } } } } instance reaction of movieClip 2390 スタンド { onClipEvent (load) { this._visible = false; this.Forward = 1; } } frame 2 { function SetVisible(Name, Name2) { this.style._visible = false; var that = eval('this.' + Name); that._visible = true; if (0 >= Name2) { if (0 >= that.Forward) { that._xscale = -100; } else { that._xscale = 100; } } else { if (0 >= that.Forward) { that._xscale = 100; } else { that._xscale = -100; } } this.style = eval('this.' + Name); } } } movieClip 100 バラ園の魔女の妖精 { instance fly of movieClip 88 フライ { onClipEvent (load) { this._visible = false; } } instance butt of movieClip 90 ヘットアタック { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 300; this._visible = false; this.AttackPower = 25; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 3; this.AttackInvincibleCount = 15; this.ChangeFlag = false; this.ChangeDirection = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible && _parent.ReactionFlag == false)) { if (this.ActionCount != 0) { this.ActionCount = 0; this._rotation = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this._rotation = 0; } if (this.ActionCount % 1 == 0) { var that = WMyCharEval; var TempVec = SSearchVec(_parent.Pos, that.Pos); var TempAtan = Math.atan2(TempVec.y, TempVec.x) * 57.29577951; var Rol = _parent.LvCount + 4; var Si = _global.Sight_360(179.9, this._rotation - 90, TempAtan); if (0 != Si) { if (0 == _global.Sight_360(Rol, this._rotation - 90, TempAtan)) { this._rotation += Si * Rol; } else { this._rotation = TempAtan + 90; } } var TempRat = (this._rotation - 90) / 57.29577951; _parent.Vec = SGet(Math.cos(TempRat) * (15 + _parent.LvCount * 3), Math.sin(TempRat) * (15 + _parent.LvCount * 3)); } if (this.ActionCount % 2 == 0) { var that = WMyCharEval; if (_global.Dot_Circle_Hit(_parent.Pos, that.Pos, _parent.Radius)) { if (that.InvincibleFlag == false) { this.AttackReactionVec = SGet(0, -20); that.HpCount += this.AttackPower; if (that.HpCount >= that.HpCountLim) { that.DeathFlag = true; } that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; } } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this._rotation = 0; } } } } instance death of movieClip 124 デス { onClipEvent (load) { this._visible = false; } } instance reaction of movieClip 788 リアクション { onClipEvent (load) { this._visible = false; } } frame 1 { function SetVisible(Name, Name2) { (eval(this.style))._visible = false; (eval('this.' + Name))._visible = true; if (Name2 != 0) { if (Name2 != -1) { if (Name2 != 1) { if (Name2 != -0.5) { if (Name2 != 0.5) { if (Name2 == 2 || Name2 == -2) { (eval('this.' + Name)).front._visible = false; (eval('this.' + Name)).left._visible = false; (eval('this.' + Name)).right._visible = false; (eval('this.' + Name)).front_left._visible = false; (eval('this.' + Name)).front_right._visible = false; (eval('this.' + Name)).back._visible = false; } } else { (eval('this.' + Name)).front._visible = false; (eval('this.' + Name)).left._visible = false; (eval('this.' + Name)).right._visible = false; (eval('this.' + Name)).front_left._visible = false; (eval('this.' + Name)).front_right._visible = true; (eval('this.' + Name)).back._visible = false; } } else { (eval('this.' + Name)).front._visible = false; (eval('this.' + Name)).left._visible = false; (eval('this.' + Name)).right._visible = false; (eval('this.' + Name)).front_left._visible = true; (eval('this.' + Name)).front_right._visible = false; (eval('this.' + Name)).back._visible = false; } } else { (eval('this.' + Name)).front._visible = false; (eval('this.' + Name)).left._visible = false; (eval('this.' + Name)).right._visible = true; (eval('this.' + Name)).front_left._visible = false; (eval('this.' + Name)).front_right._visible = false; (eval('this.' + Name)).back._visible = false; } } else { (eval('this.' + Name)).front._visible = false; (eval('this.' + Name)).left._visible = true; (eval('this.' + Name)).right._visible = false; (eval('this.' + Name)).front_left._visible = false; (eval('this.' + Name)).front_right._visible = false; (eval('this.' + Name)).back._visible = false; } } else { (eval('this.' + Name)).front._visible = true; (eval('this.' + Name)).left._visible = false; (eval('this.' + Name)).right._visible = false; (eval('this.' + Name)).front_left._visible = false; (eval('this.' + Name)).front_right._visible = false; (eval('this.' + Name)).back._visible = false; } this.style = Name; } } instance fly of movieClip 88 フライ { onClipEvent (load) { this._visible = false; } } instance butt of movieClip 90 ヘットアタック { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 300; this._visible = false; this.AttackPower = 25; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 3; this.AttackInvincibleCount = 15; this.ChangeFlag = false; this.ChangeDirection = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible && _parent.ReactionFlag == false)) { if (this.ActionCount != 0) { this.ActionCount = 0; this._rotation = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this._rotation = 0; } if (this.ActionCount % 1 == 0) { var that = WMyCharEval; var TempVec = SSearchVec(_parent.Pos, that.Pos); var TempAtan = Math.atan2(TempVec.y, TempVec.x) * 57.29577951; var Rol = _parent.LvCount + 4; var Si = _global.Sight_360(179.9, this._rotation - 90, TempAtan); if (0 != Si) { if (0 == _global.Sight_360(Rol, this._rotation - 90, TempAtan)) { this._rotation += Si * Rol; } else { this._rotation = TempAtan + 90; } } var TempRat = (this._rotation - 90) / 57.29577951; _parent.Vec = SGet(Math.cos(TempRat) * (15 + _parent.LvCount * 3), Math.sin(TempRat) * (15 + _parent.LvCount * 3)); } if (this.ActionCount % 2 == 0) { var that = WMyCharEval; if (_global.Dot_Circle_Hit(_parent.Pos, that.Pos, _parent.Radius)) { if (that.InvincibleFlag == false) { this.AttackReactionVec = SGet(0, -20); that.HpCount += this.AttackPower; if (that.HpCount >= that.HpCountLim) { that.DeathFlag = true; } that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; } } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this._rotation = 0; } } } } instance death of movieClip 124 デス { onClipEvent (load) { this._visible = false; } } instance reaction of movieClip 788 リアクション { onClipEvent (load) { this._visible = false; } } frame 2 { function SetVisible(Name, Name2) { (eval(this.style))._visible = false; (eval('this.' + Name))._visible = true; if (Name2 != 0) { if (Name2 != -1) { if (Name2 != 1) { if (Name2 != -0.5) { if (Name2 != 0.5) { if (Name2 == 2 || Name2 == -2) { (eval('this.' + Name)).front._visible = false; (eval('this.' + Name)).left._visible = false; (eval('this.' + Name)).right._visible = false; (eval('this.' + Name)).front_left._visible = false; (eval('this.' + Name)).front_right._visible = false; (eval('this.' + Name)).back._visible = false; } } else { (eval('this.' + Name)).front._visible = false; (eval('this.' + Name)).left._visible = false; (eval('this.' + Name)).right._visible = false; (eval('this.' + Name)).front_left._visible = false; (eval('this.' + Name)).front_right._visible = true; (eval('this.' + Name)).back._visible = false; } } else { (eval('this.' + Name)).front._visible = false; (eval('this.' + Name)).left._visible = false; (eval('this.' + Name)).right._visible = false; (eval('this.' + Name)).front_left._visible = true; (eval('this.' + Name)).front_right._visible = false; (eval('this.' + Name)).back._visible = false; } } else { (eval('this.' + Name)).front._visible = false; (eval('this.' + Name)).left._visible = false; (eval('this.' + Name)).right._visible = true; (eval('this.' + Name)).front_left._visible = false; (eval('this.' + Name)).front_right._visible = false; (eval('this.' + Name)).back._visible = false; } } else { (eval('this.' + Name)).front._visible = false; (eval('this.' + Name)).left._visible = true; (eval('this.' + Name)).right._visible = false; (eval('this.' + Name)).front_left._visible = false; (eval('this.' + Name)).front_right._visible = false; (eval('this.' + Name)).back._visible = false; } } else { (eval('this.' + Name)).front._visible = true; (eval('this.' + Name)).left._visible = false; (eval('this.' + Name)).right._visible = false; (eval('this.' + Name)).front_left._visible = false; (eval('this.' + Name)).front_right._visible = false; (eval('this.' + Name)).back._visible = false; } this.style = Name; } } } movieClip 106 バラ園の魔女の妖精、正面 { } movieClip 788 リアクション { } movieClip 88 フライ { } movieClip 90 ヘットアタック { } movieClip 124 デス { } movieClip 434 効果音 { frame 2 { stop(); } frame 4 { stop(); } frame 6 { stop(); } frame 8 { stop(); } frame 10 { stop(); } frame 11 { stop(); } } movieClip 108 バラ園の魔女の妖精、前斜め右 { } movieClip 110 バラ園の魔女の妖精、前斜め左 { } movieClip 112 バラ園の魔女の妖精、左 { } movieClip 114 バラ園の魔女の妖精、右 { } movieClip 116 バラ園の魔女の妖精、後 { } movieClip 870 リアクション { } movieClip 444 コウカオン { frame 2 { stop(); } frame 4 { stop(); } frame 6 { stop(); } frame 8 { stop(); } frame 10 { stop(); } frame 11 { stop(); } } movieClip 178 パス { frame 2 { stop(); } frame 18 { stop(); } } movieClip 174 キャッチ { } movieClip 172 バーサーク { } movieClip 432 フライ { } movieClip 78 スタンド { } movieClip 700 アントニー { instance pass of movieClip 178 パス { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 15; this.Forward = 1; this._visible = false; this.ShotVec = SGet(0, 0); this.NormVec = SGet(0, 0); this.TempRand = SGet(0, 0); this.Press = 15; this.AttackPower = 25; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 3; this.AttackInvincibleCount = 15; this.ChangeFlag = false; this.ChangeDirection = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible && _parent.ReactionFlag == false)) { if (this.ActionCount != 0) { this.ActionCount = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; _parent.Vec.x = 0; _parent.Vec.y = 0; this.gotoAndPlay('movieStart1'); } if (this.ActionCount == 1) { var that; that = WMyCharEval; this.ShotVec = ParabolaVec(true, this.Press, WGravity, _parent.Pos, that.Pos); if (this.ShotVec.x == 0 && this.ShotVec.y == 0) { this.NormVec = SNorm(SSub(that.Pos, _parent.Pos)); this.ShotVec = SScale(this.NormVec, this.Press); } var MaxNum = 1; var m = 0; goto 875; for (;;) { ++m; label 875: if (m >= MaxNum) break; var that; var TempFlag = false; var n = 0; goto 933; for (;;) { ++n; label 933: if (n >= _parent.MagicNum) break; that = WMagicEval[_parent.MagicGuide + n]; if (that._visible == false) { TempFlag = true; } else {} } if (TempFlag == false) { ++_parent.MagicCount; if (_parent.MagicCount >= _parent.MagicNum) { _parent.MagicCount = 0; } that = WMagicEval[_parent.MagicGuide + _parent.MagicCount]; } that.Pos = SEqual(_parent.Pos); that._x = that.Pos.x - WPos.x; that._y = that.Pos.y - WPos.y; that.Vec = SEqual(this.ShotVec); that.FormatFlag = true; } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.gotoAndPlay('movieStart0'); _parent.SetVisible('stand', -3); } } } } instance catching of movieClip 174 キャッチ { onClipEvent (load) { this._visible = false; this.Forward = 1; } } instance berserk of movieClip 172 バーサーク { onClipEvent (load) { this._visible = false; this.Forward = 1; this.ActionCount = 0; this.AttackPower = 50 * _parent.LvCount + 50; this.AttackReactionVec = SGet(0, -20); this.AttackReactionCount = 3; this.AttackInvincibleCount = 20; this.Press = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible && _parent.ReactionFlag == false)) { if (this.ActionCount != 0) { this.ActionCount = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; _parent.PhysFlag = true; } if (this.ActionCount % 5 == 1) { var that = eval(_parent._parent.myChar); if (_global.Dot_Circle_Hit(_parent.Pos, that.Pos, _parent.Radius)) { if (that.InvincibleFlag == false) { this.AttackReactionVec = SGet(0, -20); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; } } } if (!_parent.StandFlag) { } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * (10 + _parent.LvCount * 1); _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * (10 + _parent.LvCount * 1); } if (this.ActionCount % 20 == 1) { if (_parent.StandFlag) { var that = WMyCharEval; var CenPos = SGet(_parent.HitPos.x, _parent.HitPos.y); var TarPos = SGet(that.Pos.x, that.Pos.y); this.Press = random(10) + random(10) + 5; _parent.Vec = ParabolaVec(true, this.Press * _parent.Weight, WGravity * _parent.Weight, CenPos, TarPos); if (_parent.Vec.x == 0 && _parent.Vec.y == 0) { _parent.Vec = SScale(SNorm(SSub(TarPos, CenPos)), this.Press); } _parent.StandFlag = false; } } if (100 >= _parent.HpCount) { _parent.SetVisible('stand', -3); } } } } instance stand of movieClip 78 スタンド { onClipEvent (load) { this._visible = false; this.Forward = 1; this.ActionCount = 0; this.ActionTime = 300; this.AttackPower = 50; this.AttackReactionVec = SGet(0, -20); this.AttackReactionCount = 3; this.AttackInvincibleCount = 20; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible && _parent.ReactionFlag == false)) { if (this.ActionCount != 0) { this.ActionCount = 0; this._visible = false; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ActionCount = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; _parent.PhysFlag = true; _parent.Vec.x = 0; _parent.Vec.y = 0; } if (_parent.StandFlag != true) { _parent.SetVisible('fly', _parent.Direction); } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 6; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 6; } if (100 < _parent.HpCount) { _parent.SetVisible('berserk', -3); } if (100 / _parent.LvCount < this.ActionCount) { _parent.SetVisible('pass', -3); } } } } instance fly of movieClip 432 フライ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 150; this._visible = false; this.Forward = 1; this.TempRand = SGet(0, 0); this.AttackPower = 25; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 3; this.AttackInvincibleCount = 15; this.ChangeFlag = false; this.ChangeDirection = 0; this.Rot = 90; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible && _parent.ReactionFlag == false)) { if (this.ActionCount != 0) { this.ActionCount = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { this.Rot = 90; } if (_parent.StandFlag != true) { if (this.ActionCount % 10 == 1) { this.TempRand = SGet(-8 + random(24), -8 + random(24)); } if (this.ActionCount % 2 == 0) { var that = WMyCharEval; var TempVec = SSearchVec(_parent.Pos, that.Pos); var TempAtan = Math.atan2(TempVec.y, TempVec.x) * 57.29577951; var Si = _global.Sight_360(179.9, this.Rot, TempAtan); if (0 != Si) { if (0 == _global.Sight_360(4, this.Rot, TempAtan)) { this.Rot += Si * 4; } else { this.Rot = TempAtan; } } var TempRat = this.Rot / 57.29577951; TempVec = SGet(Math.cos(TempRat), Math.sin(TempRat)); _parent.Vec.x = TempVec.x * this.TempRand.x; _parent.Vec.y = TempVec.y * this.TempRand.y; } } else { _parent.SetVisible('stand', -3); } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; _parent.SetVisible('stand', -3); } } } } instance reaction of movieClip 870 リアクション { onClipEvent (load) { this._visible = false; this.Forward = 1; } } frame 1 { function SetVisible(Name, Name2) { this.style._visible = false; var that = eval('this.' + Name); that._visible = true; if (0 >= Name2) { if (0 >= that.Forward) { that._xscale = -100; } else { that._xscale = 100; } } else { if (0 >= that.Forward) { that._xscale = 100; } else { that._xscale = -100; } } this.style = eval('this.' + Name); } } instance pass of movieClip 178 パス { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 15; this.Forward = 1; this._visible = false; this.ShotVec = SGet(0, 0); this.NormVec = SGet(0, 0); this.TempRand = SGet(0, 0); this.Press = 15; this.AttackPower = 25; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 3; this.AttackInvincibleCount = 15; this.ChangeFlag = false; this.ChangeDirection = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible && _parent.ReactionFlag == false)) { if (this.ActionCount != 0) { this.ActionCount = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; _parent.Vec.x = 0; _parent.Vec.y = 0; this.gotoAndPlay('movieStart1'); } if (this.ActionCount == 1) { var that; that = WMyCharEval; this.ShotVec = ParabolaVec(true, this.Press, WGravity, _parent.Pos, that.Pos); if (this.ShotVec.x == 0 && this.ShotVec.y == 0) { this.NormVec = SNorm(SSub(that.Pos, _parent.Pos)); this.ShotVec = SScale(this.NormVec, this.Press); } var MaxNum = 1; var m = 0; goto 875; for (;;) { ++m; label 875: if (m >= MaxNum) break; var that; var TempFlag = false; var n = 0; goto 933; for (;;) { ++n; label 933: if (n >= _parent.MagicNum) break; that = WMagicEval[_parent.MagicGuide + n]; if (that._visible == false) { TempFlag = true; } else {} } if (TempFlag == false) { ++_parent.MagicCount; if (_parent.MagicCount >= _parent.MagicNum) { _parent.MagicCount = 0; } that = WMagicEval[_parent.MagicGuide + _parent.MagicCount]; } that.Pos = SEqual(_parent.Pos); that._x = that.Pos.x - WPos.x; that._y = that.Pos.y - WPos.y; that.Vec = SEqual(this.ShotVec); that.FormatFlag = true; } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.gotoAndPlay('movieStart0'); _parent.SetVisible('stand', -3); } } } } instance catching of movieClip 174 キャッチ { onClipEvent (load) { this._visible = false; this.Forward = 1; } } instance berserk of movieClip 172 バーサーク { onClipEvent (load) { this._visible = false; this.Forward = 1; this.ActionCount = 0; this.AttackPower = 50 * _parent.LvCount + 50; this.AttackReactionVec = SGet(0, -20); this.AttackReactionCount = 3; this.AttackInvincibleCount = 20; this.Press = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible && _parent.ReactionFlag == false)) { if (this.ActionCount != 0) { this.ActionCount = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; _parent.PhysFlag = true; } if (this.ActionCount % 5 == 1) { var that = eval(_parent._parent.myChar); if (_global.Dot_Circle_Hit(_parent.Pos, that.Pos, _parent.Radius)) { if (that.InvincibleFlag == false) { this.AttackReactionVec = SGet(0, -20); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; } } } if (!_parent.StandFlag) { } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * (10 + _parent.LvCount * 1); _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * (10 + _parent.LvCount * 1); } if (this.ActionCount % 20 == 1) { if (_parent.StandFlag) { var that = WMyCharEval; var CenPos = SGet(_parent.HitPos.x, _parent.HitPos.y); var TarPos = SGet(that.Pos.x, that.Pos.y); this.Press = random(10) + random(10) + 5; _parent.Vec = ParabolaVec(true, this.Press * _parent.Weight, WGravity * _parent.Weight, CenPos, TarPos); if (_parent.Vec.x == 0 && _parent.Vec.y == 0) { _parent.Vec = SScale(SNorm(SSub(TarPos, CenPos)), this.Press); } _parent.StandFlag = false; } } if (100 >= _parent.HpCount) { _parent.SetVisible('stand', -3); } } } } instance stand of movieClip 78 スタンド { onClipEvent (load) { this._visible = false; this.Forward = 1; this.ActionCount = 0; this.ActionTime = 300; this.AttackPower = 50; this.AttackReactionVec = SGet(0, -20); this.AttackReactionCount = 3; this.AttackInvincibleCount = 20; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible && _parent.ReactionFlag == false)) { if (this.ActionCount != 0) { this.ActionCount = 0; this._visible = false; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ActionCount = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; _parent.PhysFlag = true; _parent.Vec.x = 0; _parent.Vec.y = 0; } if (_parent.StandFlag != true) { _parent.SetVisible('fly', _parent.Direction); } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 6; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 6; } if (100 < _parent.HpCount) { _parent.SetVisible('berserk', -3); } if (100 / _parent.LvCount < this.ActionCount) { _parent.SetVisible('pass', -3); } } } } instance fly of movieClip 432 フライ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 150; this._visible = false; this.Forward = 1; this.TempRand = SGet(0, 0); this.AttackPower = 25; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 3; this.AttackInvincibleCount = 15; this.ChangeFlag = false; this.ChangeDirection = 0; this.Rot = 90; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible && _parent.ReactionFlag == false)) { if (this.ActionCount != 0) { this.ActionCount = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { this.Rot = 90; } if (_parent.StandFlag != true) { if (this.ActionCount % 10 == 1) { this.TempRand = SGet(-8 + random(24), -8 + random(24)); } if (this.ActionCount % 2 == 0) { var that = WMyCharEval; var TempVec = SSearchVec(_parent.Pos, that.Pos); var TempAtan = Math.atan2(TempVec.y, TempVec.x) * 57.29577951; var Si = _global.Sight_360(179.9, this.Rot, TempAtan); if (0 != Si) { if (0 == _global.Sight_360(4, this.Rot, TempAtan)) { this.Rot += Si * 4; } else { this.Rot = TempAtan; } } var TempRat = this.Rot / 57.29577951; TempVec = SGet(Math.cos(TempRat), Math.sin(TempRat)); _parent.Vec.x = TempVec.x * this.TempRand.x; _parent.Vec.y = TempVec.y * this.TempRand.y; } } else { _parent.SetVisible('stand', -3); } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; _parent.SetVisible('stand', -3); } } } } instance reaction of movieClip 870 リアクション { onClipEvent (load) { this._visible = false; this.Forward = 1; } } frame 2 { function SetVisible(Name, Name2) { this.style._visible = false; var that = eval('this.' + Name); that._visible = true; if (0 >= Name2) { if (0 >= that.Forward) { that._xscale = -100; } else { that._xscale = 100; } } else { if (0 >= that.Forward) { that._xscale = 100; } else { that._xscale = -100; } } this.style = eval('this.' + Name); } } } movieClip 2224 SE { frame 2 { stop(); } frame 4 { stop(); } frame 6 { stop(); } frame 8 { stop(); } frame 10 { stop(); } frame 11 { stop(); } } movieClip 1118 頭突き { } movieClip 1110 フライ { } movieClip 1116 デス { } movieClip 1114 リアクション { } movieClip 1112 ショット { } movieClip 702 アーデルベルト { instance butt of movieClip 1118 頭突き { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 300; this._visible = false; this.AttackPower = 25 + _parent.LvCount * 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 3; this.AttackInvincibleCount = 15; this.ChangeFlag = false; this.ChangeDirection = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible && _parent.ReactionFlag == false)) { if (this.ActionCount != 0) { this.ActionCount = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; } if (this.ActionCount % 3 == 1) { if (20 >= this.ActionCount % 40) { var that = eval(_parent._parent.myChar); var TempVec = SSearchVec(_parent.Pos, that.Pos); var TempAtan = Math.atan2(TempVec.y, TempVec.x) * 57.29577951; var Si = _global.Sight_360(179.9, _parent.Rot - 90, TempAtan); var Roll = 12 + _parent.LvCount * 2; if (0 != Si) { if (0 == _global.Sight_360(Roll, _parent.Rot - 90, TempAtan)) { _parent.Rot += Si * Roll; } else { _parent.Rot = TempAtan + 90; } } var TempRat = (_parent.Rot - 90) / 57.29577951; _parent.Vec = SGet(Math.cos(TempRat) * -5, Math.sin(TempRat) * -5); } else { var that = WMyCharEval; var TempVec = SSearchVec(_parent.Pos, that.Pos); var TempAtan = Math.atan2(TempVec.y, TempVec.x) * 57.29577951; var Si = _global.Sight_360(179.9, _parent.Rot - 90, TempAtan); var Roll = 4 + _parent.LvCount * 2; if (0 != Si) { if (0 == _global.Sight_360(Roll, _parent.Rot - 90, TempAtan)) { _parent.Rot += Si * Roll; } else { _parent.Rot = TempAtan + 90; } } var TempRat = (_parent.Rot - 90) / 57.29577951; _parent.Vec = SGet(Math.cos(TempRat) * (24 + _parent.LvCount * 3), Math.sin(TempRat) * (24 + _parent.LvCount * 3)); } } if (this.ActionCount % 2 == 0) { var that = WMyCharEval; if (_global.Dot_Circle_Hit(_parent.Pos, that.Pos, _parent.Radius)) { if (that.InvincibleFlag == false) { this.AttackReactionVec = SGet(0, -20); that.HpCount += this.AttackPower; if (that.HpCount >= that.HpCountLim) { that.DeathFlag = true; } that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; } } } this._rotation = _parent.Rot; if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; } } } } instance fly of movieClip 1110 フライ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 300; this._visible = false; this.TempRand = SGet(0, 0); this.AttackPower = 15 + _parent.LvCount * 5; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 3; this.AttackInvincibleCount = 15; this.ChangeFlag = false; this.ChangeDirection = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible && _parent.ReactionFlag == false)) { if (this.ActionCount != 0) { this.ActionCount = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { } if (this.ActionCount % 10 == 1) { this.TempRand = SGet(-8 + random(24), -8 + random(24)); } if (this.ActionCount % 3 == 0) { var that = WMyCharEval; var TempVec = SSearchVec(_parent.Pos, that.Pos); var TempAtan = Math.atan2(TempVec.y, TempVec.x) * 57.29577951; var Si = _global.Sight_360(179.9, _parent.Rot - 90, TempAtan); if (0 != Si) { if (0 == _global.Sight_360(4, _parent.Rot - 90, TempAtan)) { _parent.Rot += Si * 4; } else { _parent.Rot = TempAtan + 90; } } var TempRat = (_parent.Rot - 90) / 57.29577951; TempVec = SGet(Math.cos(TempRat), Math.sin(TempRat)); _parent.Vec.x = TempVec.x * this.TempRand.x; _parent.Vec.y = TempVec.y * this.TempRand.y; } this._rotation = _parent.Rot; if (this.ActionCount % 2 == 0) { var that = WMyCharEval; if (_global.Dot_Circle_Hit(_parent.Pos, that.Pos, _parent.Radius)) { if (that.InvincibleFlag == false) { this.AttackReactionVec = SGet(0, -20); that.HpCount += this.AttackPower; if (that.HpCount >= that.HpCountLim) { that.DeathFlag = true; } that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; } } } } } } instance death of movieClip 1116 デス { onClipEvent (load) { this._visible = false; } } instance reaction of movieClip 1114 リアクション { onClipEvent (load) { this._visible = false; } } instance shot of movieClip 1112 ショット { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 60; this._visible = false; this.ShotVec = SGet(0, 0); this.NormVec = SGet(0, 0); this.TempRand = SGet(0, 0); this.Press = 15; this.AttackPower = 25; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 3; this.AttackInvincibleCount = 15; this.ChangeFlag = false; this.ChangeDirection = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible && _parent.ReactionFlag == false)) { if (this.ActionCount != 0) { this.ActionCount = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; } if (this.ActionCount % 18 == 9) { NormVec = SNorm(SSub(_parent._parent.myChar.Pos, _parent.Pos)); this.ShotVec = SScale(this.NormVec, this.Press); var MaxNum = 1; var m = 0; goto 719; for (;;) { ++m; label 719: if (m >= MaxNum) break; var that; var TempFlag = false; var n = 0; goto 777; for (;;) { ++n; label 777: if (n >= _parent.MagicNum) break; that = WMagicEval[_parent.MagicGuide + n]; if (that._visible == false) { TempFlag = true; } else {} } if (TempFlag == false) { ++_parent.MagicCount; if (_parent.MagicCount >= _parent.MagicNum) { _parent.MagicCount = 0; } that = WMagicEval[_parent.MagicGuide + _parent.MagicCount]; } that.Pos = SAdd(_parent.Pos, SScale(NormVec, 50)); that._x = that.Pos.x - WPos.x; that._y = that.Pos.y - WPos.y; that.Vec = SEqual(this.ShotVec); that.FormatFlag = true; } } if (this.ActionCount % 10 == 1) { this.TempRand = SGet(-8 + random(24), -8 + random(24)); } if (this.ActionCount % 3 == 0) { var that = WMyCharEval; var TempVec = SSearchVec(_parent.Pos, that.Pos); var TempAtan = Math.atan2(TempVec.y, TempVec.x) * 57.29577951; var Si = _global.Sight_360(179.9, _parent.Rot - 90, TempAtan); if (0 != Si) { if (0 == _global.Sight_360(4, _parent.Rot - 90, TempAtan)) { _parent.Rot += Si * 4; } else { _parent.Rot = TempAtan + 90; } } var TempRat = (_parent.Rot - 90) / 57.29577951; TempVec = SGet(Math.cos(TempRat), Math.sin(TempRat)); _parent.Vec.x = TempVec.x * this.TempRand.x; _parent.Vec.y = TempVec.y * this.TempRand.y; } this._rotation = _parent.Rot; if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; } } } } instance se of movieClip 2224 SE { onClipEvent (load) { this._visible = false; } } frame 1 { function SetVisible(Name, Name2) { (eval(this.style))._visible = false; (eval('this.' + Name))._visible = true; if (Name2 != -1) { if (Name2 == 1) { (eval('this.' + Name)).left._visible = false; (eval('this.' + Name)).right._visible = true; } } else { (eval('this.' + Name)).left._visible = true; (eval('this.' + Name)).right._visible = false; } this.style = Name; } } instance butt of movieClip 1118 頭突き { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 300; this._visible = false; this.AttackPower = 25 + _parent.LvCount * 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 3; this.AttackInvincibleCount = 15; this.ChangeFlag = false; this.ChangeDirection = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible && _parent.ReactionFlag == false)) { if (this.ActionCount != 0) { this.ActionCount = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; } if (this.ActionCount % 3 == 1) { if (20 >= this.ActionCount % 40) { var that = eval(_parent._parent.myChar); var TempVec = SSearchVec(_parent.Pos, that.Pos); var TempAtan = Math.atan2(TempVec.y, TempVec.x) * 57.29577951; var Si = _global.Sight_360(179.9, _parent.Rot - 90, TempAtan); var Roll = 12 + _parent.LvCount * 2; if (0 != Si) { if (0 == _global.Sight_360(Roll, _parent.Rot - 90, TempAtan)) { _parent.Rot += Si * Roll; } else { _parent.Rot = TempAtan + 90; } } var TempRat = (_parent.Rot - 90) / 57.29577951; _parent.Vec = SGet(Math.cos(TempRat) * -5, Math.sin(TempRat) * -5); } else { var that = WMyCharEval; var TempVec = SSearchVec(_parent.Pos, that.Pos); var TempAtan = Math.atan2(TempVec.y, TempVec.x) * 57.29577951; var Si = _global.Sight_360(179.9, _parent.Rot - 90, TempAtan); var Roll = 4 + _parent.LvCount * 2; if (0 != Si) { if (0 == _global.Sight_360(Roll, _parent.Rot - 90, TempAtan)) { _parent.Rot += Si * Roll; } else { _parent.Rot = TempAtan + 90; } } var TempRat = (_parent.Rot - 90) / 57.29577951; _parent.Vec = SGet(Math.cos(TempRat) * (24 + _parent.LvCount * 3), Math.sin(TempRat) * (24 + _parent.LvCount * 3)); } } if (this.ActionCount % 2 == 0) { var that = WMyCharEval; if (_global.Dot_Circle_Hit(_parent.Pos, that.Pos, _parent.Radius)) { if (that.InvincibleFlag == false) { this.AttackReactionVec = SGet(0, -20); that.HpCount += this.AttackPower; if (that.HpCount >= that.HpCountLim) { that.DeathFlag = true; } that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; } } } this._rotation = _parent.Rot; if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; } } } } instance fly of movieClip 1110 フライ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 300; this._visible = false; this.TempRand = SGet(0, 0); this.AttackPower = 15 + _parent.LvCount * 5; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 3; this.AttackInvincibleCount = 15; this.ChangeFlag = false; this.ChangeDirection = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible && _parent.ReactionFlag == false)) { if (this.ActionCount != 0) { this.ActionCount = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { } if (this.ActionCount % 10 == 1) { this.TempRand = SGet(-8 + random(24), -8 + random(24)); } if (this.ActionCount % 3 == 0) { var that = WMyCharEval; var TempVec = SSearchVec(_parent.Pos, that.Pos); var TempAtan = Math.atan2(TempVec.y, TempVec.x) * 57.29577951; var Si = _global.Sight_360(179.9, _parent.Rot - 90, TempAtan); if (0 != Si) { if (0 == _global.Sight_360(4, _parent.Rot - 90, TempAtan)) { _parent.Rot += Si * 4; } else { _parent.Rot = TempAtan + 90; } } var TempRat = (_parent.Rot - 90) / 57.29577951; TempVec = SGet(Math.cos(TempRat), Math.sin(TempRat)); _parent.Vec.x = TempVec.x * this.TempRand.x; _parent.Vec.y = TempVec.y * this.TempRand.y; } this._rotation = _parent.Rot; if (this.ActionCount % 2 == 0) { var that = WMyCharEval; if (_global.Dot_Circle_Hit(_parent.Pos, that.Pos, _parent.Radius)) { if (that.InvincibleFlag == false) { this.AttackReactionVec = SGet(0, -20); that.HpCount += this.AttackPower; if (that.HpCount >= that.HpCountLim) { that.DeathFlag = true; } that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; } } } } } } instance death of movieClip 1116 デス { onClipEvent (load) { this._visible = false; } } instance reaction of movieClip 1114 リアクション { onClipEvent (load) { this._visible = false; } } instance shot of movieClip 1112 ショット { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 60; this._visible = false; this.ShotVec = SGet(0, 0); this.NormVec = SGet(0, 0); this.TempRand = SGet(0, 0); this.Press = 15; this.AttackPower = 25; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 3; this.AttackInvincibleCount = 15; this.ChangeFlag = false; this.ChangeDirection = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible && _parent.ReactionFlag == false)) { if (this.ActionCount != 0) { this.ActionCount = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; } if (this.ActionCount % 18 == 9) { NormVec = SNorm(SSub(_parent._parent.myChar.Pos, _parent.Pos)); this.ShotVec = SScale(this.NormVec, this.Press); var MaxNum = 1; var m = 0; goto 719; for (;;) { ++m; label 719: if (m >= MaxNum) break; var that; var TempFlag = false; var n = 0; goto 777; for (;;) { ++n; label 777: if (n >= _parent.MagicNum) break; that = WMagicEval[_parent.MagicGuide + n]; if (that._visible == false) { TempFlag = true; } else {} } if (TempFlag == false) { ++_parent.MagicCount; if (_parent.MagicCount >= _parent.MagicNum) { _parent.MagicCount = 0; } that = WMagicEval[_parent.MagicGuide + _parent.MagicCount]; } that.Pos = SAdd(_parent.Pos, SScale(NormVec, 50)); that._x = that.Pos.x - WPos.x; that._y = that.Pos.y - WPos.y; that.Vec = SEqual(this.ShotVec); that.FormatFlag = true; } } if (this.ActionCount % 10 == 1) { this.TempRand = SGet(-8 + random(24), -8 + random(24)); } if (this.ActionCount % 3 == 0) { var that = WMyCharEval; var TempVec = SSearchVec(_parent.Pos, that.Pos); var TempAtan = Math.atan2(TempVec.y, TempVec.x) * 57.29577951; var Si = _global.Sight_360(179.9, _parent.Rot - 90, TempAtan); if (0 != Si) { if (0 == _global.Sight_360(4, _parent.Rot - 90, TempAtan)) { _parent.Rot += Si * 4; } else { _parent.Rot = TempAtan + 90; } } var TempRat = (_parent.Rot - 90) / 57.29577951; TempVec = SGet(Math.cos(TempRat), Math.sin(TempRat)); _parent.Vec.x = TempVec.x * this.TempRand.x; _parent.Vec.y = TempVec.y * this.TempRand.y; } this._rotation = _parent.Rot; if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; } } } } instance se of movieClip 2224 SE { onClipEvent (load) { this._visible = false; } } frame 2 { function SetVisible(Name, Name2) { (eval(this.style))._visible = false; (eval('this.' + Name))._visible = true; if (Name2 != -1) { if (Name2 == 1) { (eval('this.' + Name)).left._visible = false; (eval('this.' + Name)).right._visible = true; } } else { (eval('this.' + Name)).left._visible = true; (eval('this.' + Name)).right._visible = false; } this.style = Name; } } } movieClip 2316 パラ { instance hp of movieClip 1420 Hpケージ { onClipEvent (load) { this.Num = 0; this.OldNum = -1; this.Size = 375; this.MaxSize = 128; } onClipEvent (enterFrame) { if (this.OldNum != this.Num) { that = _parent._parent; var Hp = ((that.HpCountLim - that.HpCount) / that.HpCountLim) * (this.MaxSize / this.Size) * 100; this.image._xscale = Hp; this.OldNum = this.Num; } } } } movieClip 1552 ゲルトボールレフト { frame 2 { stop(); } frame 103 { gotoAndPlay('Loop'); } frame 104 { stop(); } frame 205 { gotoAndPlay('Loop2'); } frame 206 { stop(); } frame 307 { gotoAndPlay('Loop3'); } frame 308 { stop(); } } movieClip 1554 ゲルトボールライト { frame 2 { stop(); } frame 103 { gotoAndPlay('Loop'); } frame 104 { stop(); } frame 205 { gotoAndPlay('Loop2'); } frame 206 { stop(); } frame 307 { gotoAndPlay('Loop3'); } frame 308 { stop(); } } movieClip 1550 ゲルトボール { } movieClip 1570 ボールアクション3 { } movieClip 1568 ボールアクション2 { } movieClip 1556 ボールアクション1 { } movieClip 1558 ボールアクションボディ1 { } movieClip 1566 ボールアクションボディ3 { } movieClip 1564 ボールアクション2アーム { frame 2 { stop(); } } movieClip 1562 ボールアクション3アーム { } movieClip 1560 ボールアクション1アーム { frame 2 { stop(); } frame 4 { stop(); } frame 6 { stop(); } } movieClip 1330 ウォークレフト { frame 2 { stop(); } frame 11 { gotoAndPlay('Loop'); } frame 12 { stop(); } frame 13 { stop(); } } movieClip 1332 ウォークライト { frame 2 { stop(); } frame 11 { gotoAndPlay('Loop'); } frame 12 { stop(); } frame 13 { stop(); } } movieClip 1320 ウォーク { } movieClip 1534 クラッシュアクション { } movieClip 1524 クラッシュライト { frame 3 { stop(); } frame 34 { stop(); } } movieClip 1522 クラッシュレフト { frame 3 { stop(); } frame 34 { stop(); } } movieClip 1520 クラッシュ { } movieClip 1356 リアクションレフト { } movieClip 1354 リアクションライト { } movieClip 1352 リアクション { } movieClip 1350 ダッシュアクション { } movieClip 1328 ダッシュレフト { frame 2 { stop(); } frame 103 { gotoAndPlay('Loop'); } frame 104 { stop(); } frame 105 { stop(); } } movieClip 1326 ダッシュライト { frame 2 { stop(); } frame 103 { gotoAndPlay('Loop'); } frame 104 { stop(); } frame 105 { stop(); } } movieClip 1318 ダッシュ { } movieClip 1324 シットライト { frame 2 { stop(); } frame 4 { stop(); } } movieClip 1322 シットレフト { frame 2 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 1316 シット { } movieClip 1334 効果音 { frame 2 { stop(); } frame 4 { stop(); } frame 6 { stop(); } frame 8 { stop(); } frame 11 { stop(); } frame 12 { stop(); } } movieClip 704 ゲルトルート { instance walk of movieClip 1320 ウォーク { onClipEvent (load) { this._visible = false; this.ActionCount = 0; this.ActionTime = 300; this.ShotVec = SGet(0, 0); this.NormVec = SGet(0, 0); this.Press = 30; this.AttackPower = 50; this.AttackReactionVec = SGet(0, -20); this.AttackReactionCount = 3; this.AttackInvincibleCount = 20; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible && _parent.ReactionFlag == false)) { if (this.ActionCount != 0) { this.ActionCount = 0; this._visible = false; _parent.Vec.x = 0; _parent.Vec.y = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ActionCount = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; _parent.PhysFlag = true; _parent.Vec.x = 0; _parent.Vec.y = 0; _parent.HitDis = SGet(_parent.Radius * 0, _parent.Radius * -0.9); _parent.HitRadius = _parent.Radius * 0.25; if (this.left._visible != true) { if (this.right._visible == true) { this.right.gotoAndPlay('movieStart1'); } } else { this.left.gotoAndPlay('movieStart1'); } } if (this.ActionCount % 9 == 0) { var that2; that2 = WMyCharEval; var MaxNum = 1 + int(_parent.LvCount * 0.2); if (10 < MaxNum) { MaxNum = 10; } var m = 0; goto 1157; for (;;) { ++m; label 1157: if (m >= MaxNum) break; var that; var TempFlag = false; var n = 0; goto 1215; for (;;) { ++n; label 1215: if (n >= _parent.MagicNum) break; that = WMagicEval[_parent.MagicGuide + n]; if (that._visible == false && that.FormatFlag == false) { TempFlag = true; } else {} } if (TempFlag == false) { ++_parent.MagicCount; if (_parent.MagicCount >= _parent.MagicNum) { _parent.MagicCount = 0; } that = WMagicEval[_parent.MagicGuide + _parent.MagicCount]; } var CenPos = SGet(_parent.HitPos.x + random(100) - 50, _parent.HitPos.y + random(100) - 50); var TarPos = SGet(that2.Pos.x + random(320) * _parent.Direction, that2.Pos.y); that.Pos = SEqual(CenPos); that._x = that.Pos.x - WPos.x; that._y = that.Pos.y - WPos.y; this.Press = random(20) + random(30) + 10; if (m % 6 != 0) { this.ShotVec = ParabolaVec(true, this.Press, WGravity, CenPos, TarPos); } else { this.ShotVec = ParabolaVec(false, this.Press, WGravity, CenPos, TarPos); } if (this.ShotVec.x == 0 && this.ShotVec.y == 0) { this.ShotVec = SScale(SNorm(SSub(TarPos, CenPos)), this.Press); } that.Vec = SEqual(this.ShotVec); that.FormatFlag = true; } } if (_parent.StandFlag != true) { } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 6; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 6; if (this.ActionCount % 40 == 0) { if (random(100) >= 40) { if (random(100) >= 25) { if (random(100) < 60) { _parent.SetVisible('dash', _parent.Direction); } } else { _parent.SetVisible('ball', _parent.Direction); } } else { _parent.SetVisible('crash', _parent.Direction); } } } if (this.ActionCount % 5 == 1) { var that = WMyCharEval; if (10 >= random(100)) { if (_global.Dot_Circle_Hit(_parent.Pos, that.Pos, _parent.Radius + 500) != true || _parent.StandFlag == false) { _parent.SetVisible('dash', _parent.Direction); this.ActionCount = 0; this._visible = false; _parent.Vec.x = 0; _parent.Vec.y = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ActionCount = 0; } } } } } } instance dash of movieClip 1318 ダッシュ { onClipEvent (load) { this._visible = false; this.ActionCount = 0; this.ActionTime = 100; this.ShotVec = SGet(0, 0); this.NormVec = SGet(0, 0); this.Press = 30; this.AttackPower = 50; this.AttackReactionVec = SGet(0, -20); this.AttackReactionCount = 3; this.AttackInvincibleCount = 20; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible && _parent.ReactionFlag == false)) { if (this.ActionCount != 0) { this.ActionCount = 0; this._visible = false; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; _parent.StandFlag = false; if (this.left._visible != true) { if (this.right._visible == true) { this.right.gotoAndPlay('movieStart1'); } } else { this.left.gotoAndPlay('movieStart1'); } this._rotation = 0; _parent.Vec.x = 0; _parent.Vec.y = 0; _parent.HitDis = SGet(_parent.Radius * 0, _parent.Radius * 0); _parent.HitRadius = _parent.Radius * 0.25; this.ActionTime = random(100) + 10; } if (_parent.StandFlag != true) { if (this.ActionCount % 2 == 1) { var that = WMyCharEval; var TempVec = SSearchVec(_parent.Pos, that.Pos); var TempAtan = Math.atan2(TempVec.y, TempVec.x) * 57.29577951; var Si = _global.Sight_360(179.9, this._rotation - 90, TempAtan); var Roll = 16; if (0 != Si) { if (0 == _global.Sight_360(Roll, this._rotation - 90, TempAtan)) { this._rotation += Si * Roll; } else { this._rotation = TempAtan + 90; } } var TempRat = (this._rotation - 90) / 57.29577951; _parent.Vec = SGet(Math.cos(TempRat) * 24, Math.sin(TempRat) * 24); } if (this.ActionCount % 5 == 1) { var that = WMyCharEval; if (_global.Dot_Circle_Hit(_parent.HitPos, that.Pos, _parent.HitRadius)) { if (that.InvincibleFlag == false) { this.AttackReactionVec = SGet(0, -20); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; } } } } else { _parent.SetVisible('walk', _parent.Direction); _parent.Vec.x = 0; _parent.Vec.y = 0; } if (this.ActionCount % 3 == 0) { var that2; that2 = WMyCharEval; var MaxNum = 1 + int(_parent.LvCount * 0.3); if (10 < MaxNum) { MaxNum = 10; } var m = 0; goto 2240; for (;;) { ++m; label 2240: if (m >= MaxNum) break; var that; var TempFlag = false; var n = 0; goto 2298; for (;;) { ++n; label 2298: if (n >= _parent.MagicNum) break; that = WMagicEval[_parent.MagicGuide + n]; if (that._visible == false && that.FormatFlag == false) { TempFlag = true; } else {} } if (TempFlag == false) { ++_parent.MagicCount; if (_parent.MagicCount >= _parent.MagicNum) { _parent.MagicCount = 0; } that = WMagicEval[_parent.MagicGuide + _parent.MagicCount]; } var CenPos = SGet(_parent.HitPos.x + random(100) - 50, _parent.HitPos.y + random(100) - 50); var TarPos = SGet(that2.Pos.x + random(640) * _parent.Direction, that2.Pos.y); that.Pos = SEqual(CenPos); that._x = that.Pos.x - WPos.x; that._y = that.Pos.y - WPos.y; this.Press = random(20) + random(30) + _parent.LvCount; this.ShotVec = ParabolaVec(false, this.Press, WGravity, CenPos, TarPos); if (this.ShotVec.x == 0 && this.ShotVec.y == 0) { this.ShotVec = SScale(SNorm(SSub(TarPos, CenPos)), this.Press); } that.Vec = SEqual(this.ShotVec); that.FormatFlag = true; } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance sit of movieClip 1316 シット { onClipEvent (load) { this._visible = false; this.ActionCount = 0; this.ActionTime = 50; this.AttackPower = 50; this.AttackReactionVec = SGet(0, -20); this.AttackReactionCount = 3; this.AttackInvincibleCount = 20; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible && _parent.ReactionFlag == false)) { if (this.ActionCount != 0) { this.ActionCount = 0; this._visible = false; _parent.Vec.x = 0; _parent.Vec.y = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ActionCount = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; _parent.PhysFlag = true; _parent.Vec.x = 0; _parent.Vec.y = 0; _parent.HitDis = SGet(_parent.Radius * 0, _parent.Radius * -1); _parent.HitRadius = _parent.Radius * 0.25; if (this.left._visible != true) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } } if (this.ActionCount % 5 == 1) { var that = WMyCharEval; if (_global.Dot_Circle_Hit(_parent.HitPos, that.Pos, _parent.HitRadius)) { if (that.InvincibleFlag == false) { this.AttackReactionVec = SGet(0, -20); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; } } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance crash of movieClip 1520 クラッシュ { onClipEvent (load) { this._visible = false; this.ActionCount = 0; this.ActionTime = 30; this.ShotVec = SGet(0, 0); this.NormVec = SGet(0, 0); this.Press = 30; this.AttackPower = 50; this.AttackReactionVec = SGet(0, -20); this.AttackReactionCount = 50; this.AttackInvincibleCount = 20; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible && _parent.ReactionFlag == false)) { if (this.ActionCount != 0) { this.ActionCount = 0; this._visible = false; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; if (this.left._visible != true) { if (this.right._visible == true) { this.right.gotoAndPlay('movieStart1'); } } else { this.left.gotoAndPlay('movieStart1'); } _parent.Vec.x = 0; _parent.Vec.y = 0; _parent.HitDis = SGet(_parent.Radius * 0, _parent.Radius * -1); _parent.HitRadius = _parent.Radius * 0.25; } if (this.ActionCount % 3 == 1) { if (this.ActionCount == 1 || this.ActionCount == 28) { _parent.HitDis = SGet(_parent.Radius * _parent.Direction * 0.1, _parent.Radius * -0.8); } if (this.ActionCount == 4 || this.ActionCount == 25) { _parent.HitDis = SGet(_parent.Radius * _parent.Direction * 0.4, _parent.Radius * 0); } if (this.ActionCount == 7 || this.ActionCount == 22) { _parent.HitDis = SGet(_parent.Radius * _parent.Direction * 0.8, _parent.Radius * 1); } if (this.ActionCount == 10) { _parent.HitDis = SGet(_parent.Radius * _parent.Direction * 0.8, _parent.Radius * 1); } } if (_parent.StandFlag == true) { if (this.ActionCount >= 9 && 21 >= this.ActionCount) { if (this.ActionCount % 2 == 0) { var that2; that2 = WMyCharEval; var MaxNum = 1 + int(_parent.LvCount * 0.4); if (10 < MaxNum) { MaxNum = 10; } var m = 0; goto 1866; for (;;) { ++m; label 1866: if (m >= MaxNum) break; var that; var TempFlag = false; var n = 0; goto 1924; for (;;) { ++n; label 1924: if (n >= _parent.MagicNum) break; that = WMagicEval[_parent.MagicGuide + n]; if (that._visible == false && that.FormatFlag == false) { TempFlag = true; } else {} } if (TempFlag == false) { ++_parent.MagicCount; if (_parent.MagicCount >= _parent.MagicNum) { _parent.MagicCount = 0; } that = WMagicEval[_parent.MagicGuide + _parent.MagicCount]; } var CenPos = SGet(_parent.HitPos.x + random(100) - 50, _parent.HitPos.y + random(100) - 50); var TarPos = SGet(that2.Pos.x, that2.Pos.y); that.Pos = SEqual(CenPos); that._x = that.Pos.x - WPos.x; that._y = that.Pos.y - WPos.y; this.Press = random(20) + random(30) + 10; this.ShotVec = ParabolaVec(false, this.Press, WGravity, CenPos, TarPos); if (this.ShotVec.x == 0 && this.ShotVec.y == 0) { this.ShotVec = SScale(SNorm(SSub(TarPos, CenPos)), this.Press); } that.Vec = SEqual(this.ShotVec); that.FormatFlag = true; } } if (this.ActionCount == 10) { var CenPos = SGet(_parent.Pos.x + _parent.Radius * _parent.Direction, _parent.Pos.y + _parent.Radius); var Line1 = SAdd(CenPos, SScale(_parent.HorizonVec, 375)); var Line2 = SAdd(CenPos, SScale(_parent.HorizonVec, -375)); var that; that = WMyCharEval; if (that.ExistFlag == true && that._visible == true && that.InvincibleFlag == false) { if (_global.Lim_Circle_Hit(Line1, Line2, that.Pos, that.Radius + 50)) { this.AttackReactionVec = ParabolaVec(true, 40, _global.WGravity, that.Pos, CenPos); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); } } } } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance reaction of movieClip 1352 リアクション { onClipEvent (load) { this._visible = false; this.ActionCount = 0; this.ActionTime = 100; this.ShotVec = SGet(0, 0); this.NormVec = SGet(0, 0); this.Press = 30; this.AttackPower = 50; this.AttackReactionVec = SGet(0, -20); this.AttackReactionCount = 3; this.AttackInvincibleCount = 20; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this._visible = false; } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.HitDis = SGet(_parent.Radius * 0, _parent.Radius * -0.7); _parent.HitRadius = _parent.Radius * 0.25; } if (this.ActionCount % 6 == 1) { var that2; that2 = WMyCharEval; var MaxNum = 1 + int(_parent.LvCount * 0.2); if (10 < MaxNum) { MaxNum = 10; } var m = 0; goto 665; for (;;) { ++m; label 665: if (m >= MaxNum) break; var that; var TempFlag = false; var n = 0; goto 723; for (;;) { ++n; label 723: if (n >= _parent.MagicNum) break; that = WMagicEval[_parent.MagicGuide + n]; if (that._visible == false && that.FormatFlag == false) { TempFlag = true; } else {} } if (TempFlag == false) { ++_parent.MagicCount; if (_parent.MagicCount >= _parent.MagicNum) { _parent.MagicCount = 0; } that = WMagicEval[_parent.MagicGuide + _parent.MagicCount]; } var CenPos = SGet(_parent.HitPos.x + random(100) - 50, _parent.HitPos.y + random(100) - 50); var TarPos = SGet(that2.Pos.x, that2.Pos.y); that.Pos = SEqual(CenPos); that._x = that.Pos.x - WPos.x; that._y = that.Pos.y - WPos.y; this.Press = random(20) + random(30) + 10; this.ShotVec = ParabolaVec(false, this.Press, WGravity, CenPos, TarPos); if (this.ShotVec.x == 0 && this.ShotVec.y == 0) { this.ShotVec = SScale(SNorm(SSub(TarPos, CenPos)), this.Press); } that.Vec = SEqual(this.ShotVec); that.FormatFlag = true; } } } } } instance ball of movieClip 1550 ゲルトボール { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 10000; this._visible = false; this.ActionNum = 0; this.JumpVec = SGet(0, 0); this.LogHpCount = 0; this.GapHpCount = 0; this.LogCount = 0; this.GapCount = 0; this.TotCount = 0; this.TempParentRadius = 0; this.TempParentWeight = 0; this.Press = 15; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 20; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible && _parent.ReactionFlag == false)) { if (this.ActionCount != 0) { _parent.Weight = this.TempParentWeight; _parent.Radius = this.TempParentRadius; this.ActionCount = 0; this.ActionNum = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this._rotation = 0; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } if (!this.left._visible) { this.right.action1.arm.gotoAndPlay('movieStart1'); } else { this.left.action1.arm.gotoAndPlay('movieStart1'); } this.ActionNum = 1; this.LogHpCount = _parent.HpCount; _parent.HitDis = SGet(_parent.Radius * 0, _parent.Radius * -1); _parent.HitRadius = _parent.Radius * 0.25; this.TempParentRadius = _parent.Radius; this.TempParentWeight = _parent.Weight; } this.GapHpCount = _parent.HpCount - this.LogHpCount; this.TotCount = (this.GapHpCount / 5 + this.ActionCount) * 6; if (this.ActionNum == 0) { goto 7099; } else { if (this.ActionNum == 1) { if (this.ActionCount % 5 == 0) { if (this.TotCount >= 60) { if (this.TotCount >= 120) { if (this.TotCount >= 180) { if (!this.left._visible) { this.right.action1.arm.gotoAndPlay('movieStart1'); } else { this.left.action1.arm.gotoAndPlay('movieStart1'); } if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } _parent.Weight *= 3.5; this.ActionNum = 2; } else { if (!this.left._visible) { this.right.action1.arm.gotoAndPlay('movieStart3'); } else { this.left.action1.arm.gotoAndPlay('movieStart3'); } } } else { if (!this.left._visible) { this.right.action1.arm.gotoAndPlay('movieStart2'); } else { this.left.action1.arm.gotoAndPlay('movieStart2'); } } } else { if (!this.left._visible) { this.right.action1.arm.gotoAndPlay('movieStart1'); } else { this.left.action1.arm.gotoAndPlay('movieStart1'); } } } var TempPosY = (1 - this.TotCount / 180) * -1 * _parent.Radius * 0.5; var TempRadius = (1 + this.TotCount / 180) * 100; _parent.HitDis = SGet(0, TempPosY); _parent.HitRadius = _parent.Radius * TempRadius * 0.0025; if (!this.left._visible) { this.right.action1.arm._xscale = TempRadius; this.right.action1.arm._yscale = TempRadius; this.right.action1.arm._rotation = this.TotCount * 6; this.right.action1.arm._y = TempPosY; } else { this.left.action1.arm._xscale = TempRadius; this.left.action1.arm._yscale = TempRadius; this.left.action1.arm._rotation = this.TotCount * 6; this.left.action1.arm._y = TempPosY; } if (this.ActionCount % 4 == 1) { var that = WMyCharEval; if (_global.Dot_Circle_Hit(_parent.HitPos, that.Pos, _parent.HitRadius)) { if (that.InvincibleFlag == false) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, _parent.HitPos)), 30), SGet(0, 0)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; } } } goto 7099; } else { if (this.ActionNum == 2) { var TempRadius = (2 + (this.TotCount - 180) / 360) * 100; _parent.HitDis = SGet(0, 0); _parent.HitRadius = TempParentRadius * TempRadius * 0.0025; _parent.Radius = _parent.HitRadius; if (!this.left._visible) { this.right.action2.arm._xscale = TempRadius; this.right.action2.arm._yscale = TempRadius; this.right.action2.arm._rotation = this.TotCount * 6; } else { this.left.action2.arm._xscale = TempRadius; this.left.action2.arm._yscale = TempRadius; this.left.action2.arm._rotation = this.TotCount * 6; } if (this.ActionCount % 5 == 0) { if (1800 < this.TotCount) { _parent.Weight = this.TempParentWeight; _parent.Radius = this.TempParentRadius; this.LogCount = this.ActionCount; this.GapCount = 0; this.ActionNum = 3; if (!this.left._visible) { this.right.gotoAndPlay('movieStart3'); } else { this.left.gotoAndPlay('movieStart3'); } } } if (_parent.StandFlag == true) { var that = WMyCharEval; var CenPos = SGet(_parent.HitPos.x, _parent.HitPos.y); var TarPos = SGet(that.Pos.x, that.Pos.y); this.Press = random(10) + random(20) + 5; _parent.Vec = ParabolaVec(random(2), this.Press * _parent.Weight, WGravity * _parent.Weight, CenPos, TarPos); if (_parent.Vec.x == 0 && _parent.Vec.y == 0) { _parent.Vec = SScale(SNorm(SSub(TarPos, CenPos)), this.Press); } _parent.StandFlag = false; } if (this.ActionCount % 2 == 1) { var that = WMyCharEval; if (_global.Dot_Circle_Hit(_parent.HitPos, that.Pos, _parent.HitRadius)) { if (that.InvincibleFlag == false) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, _parent.HitPos)), 30), SGet(0, 0)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; } } } if (this.ActionCount % 10 == 1) { var that2; that2 = WMyCharEval; var MaxNum = 1 + int(_parent.LvCount * 0.2); if (10 < MaxNum) { MaxNum = 10; } var m = 0; goto 4688; for (;;) { ++m; label 4688: if (m >= MaxNum) break; var that; var TempFlag = false; var n = 0; goto 4746; for (;;) { ++n; label 4746: if (n >= _parent.MagicNum) break; that = WMagicEval[_parent.MagicGuide + n]; if (that._visible == false && that.FormatFlag == false) { TempFlag = true; } else {} } if (TempFlag == false) { ++_parent.MagicCount; if (_parent.MagicCount >= _parent.MagicNum) { _parent.MagicCount = 0; } that = WMagicEval[_parent.MagicGuide + _parent.MagicCount]; } var CenPos = SGet(_parent.HitPos.x + random(100) - 50, _parent.HitPos.y + random(100) - 50); var TarPos = SGet(that2.Pos.x, that2.Pos.y); that.Pos = SEqual(CenPos); that._x = that.Pos.x - WPos.x; that._y = that.Pos.y - WPos.y; this.Press = random(20) + random(30) + 10; this.ShotVec = ParabolaVec(false, this.Press, WGravity, CenPos, TarPos); if (this.ShotVec.x == 0 && this.ShotVec.y == 0) { this.ShotVec = SScale(SNorm(SSub(TarPos, CenPos)), this.Press); } that.Vec = SEqual(this.ShotVec); that.FormatFlag = true; } } goto 7099; } else { if (this.ActionNum == 3) { var TempRadius = (2 + (this.TotCount - 180) / 360) * 100; _parent.HitDis = SGet(0, _parent.Radius * -1); _parent.HitRadius = _parent.Radius * 0.25; if (!this.left._visible) { this.right.action3.arm._xscale = TempRadius; this.right.action3.arm._yscale = TempRadius; this.right.action3.arm._rotation = this.TotCount * 6; } else { this.left.action3.arm._xscale = TempRadius; this.left.action3.arm._yscale = TempRadius; this.left.action3.arm._rotation = this.TotCount * 6; } this.GapCount = this.ActionCount - this.LogCount; if (this.GapCount % 6 == 1) { var that2; that2 = WMyCharEval; var MaxNum = 5 + int(_parent.LvCount * 0.5); if (10 < MaxNum) { MaxNum = 20; } var m = 0; goto 6093; for (;;) { ++m; label 6093: if (m >= MaxNum) break; var that; var TempFlag = false; var n = 0; goto 6151; for (;;) { ++n; label 6151: if (n >= _parent.MagicNum) break; that = WMagicEval[_parent.MagicGuide + n]; if (that._visible == false && that.FormatFlag == false) { TempFlag = true; } else {} } if (TempFlag == false) { ++_parent.MagicCount; if (_parent.MagicCount >= _parent.MagicNum) { _parent.MagicCount = 0; } that = WMagicEval[_parent.MagicGuide + _parent.MagicCount]; } var CenPos = SGet(_parent.HitPos.x + random(100) - 50, _parent.HitPos.y + random(100) - 50); var TarPos = SGet(that2.Pos.x + random(720) - 360, that2.Pos.y); that.Pos = SEqual(CenPos); that._x = that.Pos.x - WPos.x; that._y = that.Pos.y - WPos.y; this.Press = random(20) + random(30) + 10; this.ShotVec = ParabolaVec(true, this.Press, WGravity, CenPos, TarPos); if (this.ShotVec.x == 0 && this.ShotVec.y == 0) { this.ShotVec = SScale(SNorm(SSub(TarPos, CenPos)), this.Press); } that.Vec = SEqual(this.ShotVec); that.FormatFlag = true; } } if (this.GapCount >= 30) { this.ActionNum = 0; this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else {} } } } label 7099: this.ActionNum; if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.ActionNum = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); _parent.Weight = this.TempParentWeight; _parent.Radius = this.TempParentRadius; } } } } frame 1 { function SetVisible(Name, Name2) { (eval(this.style))._visible = false; (eval('this.' + Name))._visible = true; if (Name2 != -1) { if (Name2 == 1) { (eval('this.' + Name)).left._visible = false; (eval('this.' + Name)).right._visible = true; } } else { (eval('this.' + Name)).left._visible = true; (eval('this.' + Name)).right._visible = false; } this.style = Name; } } instance walk of movieClip 1320 ウォーク { onClipEvent (load) { this._visible = false; this.ActionCount = 0; this.ActionTime = 300; this.ShotVec = SGet(0, 0); this.NormVec = SGet(0, 0); this.Press = 30; this.AttackPower = 50; this.AttackReactionVec = SGet(0, -20); this.AttackReactionCount = 3; this.AttackInvincibleCount = 20; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible && _parent.ReactionFlag == false)) { if (this.ActionCount != 0) { this.ActionCount = 0; this._visible = false; _parent.Vec.x = 0; _parent.Vec.y = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ActionCount = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; _parent.PhysFlag = true; _parent.Vec.x = 0; _parent.Vec.y = 0; _parent.HitDis = SGet(_parent.Radius * 0, _parent.Radius * -0.9); _parent.HitRadius = _parent.Radius * 0.25; if (this.left._visible != true) { if (this.right._visible == true) { this.right.gotoAndPlay('movieStart1'); } } else { this.left.gotoAndPlay('movieStart1'); } } if (this.ActionCount % 9 == 0) { var that2; that2 = WMyCharEval; var MaxNum = 1 + int(_parent.LvCount * 0.2); if (10 < MaxNum) { MaxNum = 10; } var m = 0; goto 1157; for (;;) { ++m; label 1157: if (m >= MaxNum) break; var that; var TempFlag = false; var n = 0; goto 1215; for (;;) { ++n; label 1215: if (n >= _parent.MagicNum) break; that = WMagicEval[_parent.MagicGuide + n]; if (that._visible == false && that.FormatFlag == false) { TempFlag = true; } else {} } if (TempFlag == false) { ++_parent.MagicCount; if (_parent.MagicCount >= _parent.MagicNum) { _parent.MagicCount = 0; } that = WMagicEval[_parent.MagicGuide + _parent.MagicCount]; } var CenPos = SGet(_parent.HitPos.x + random(100) - 50, _parent.HitPos.y + random(100) - 50); var TarPos = SGet(that2.Pos.x + random(320) * _parent.Direction, that2.Pos.y); that.Pos = SEqual(CenPos); that._x = that.Pos.x - WPos.x; that._y = that.Pos.y - WPos.y; this.Press = random(20) + random(30) + 10; if (m % 6 != 0) { this.ShotVec = ParabolaVec(true, this.Press, WGravity, CenPos, TarPos); } else { this.ShotVec = ParabolaVec(false, this.Press, WGravity, CenPos, TarPos); } if (this.ShotVec.x == 0 && this.ShotVec.y == 0) { this.ShotVec = SScale(SNorm(SSub(TarPos, CenPos)), this.Press); } that.Vec = SEqual(this.ShotVec); that.FormatFlag = true; } } if (_parent.StandFlag != true) { } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 6; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 6; if (this.ActionCount % 40 == 0) { if (random(100) >= 40) { if (random(100) >= 25) { if (random(100) < 60) { _parent.SetVisible('dash', _parent.Direction); } } else { _parent.SetVisible('ball', _parent.Direction); } } else { _parent.SetVisible('crash', _parent.Direction); } } } if (this.ActionCount % 5 == 1) { var that = WMyCharEval; if (10 >= random(100)) { if (_global.Dot_Circle_Hit(_parent.Pos, that.Pos, _parent.Radius + 500) != true || _parent.StandFlag == false) { _parent.SetVisible('dash', _parent.Direction); this.ActionCount = 0; this._visible = false; _parent.Vec.x = 0; _parent.Vec.y = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ActionCount = 0; } } } } } } instance dash of movieClip 1318 ダッシュ { onClipEvent (load) { this._visible = false; this.ActionCount = 0; this.ActionTime = 100; this.ShotVec = SGet(0, 0); this.NormVec = SGet(0, 0); this.Press = 30; this.AttackPower = 50; this.AttackReactionVec = SGet(0, -20); this.AttackReactionCount = 3; this.AttackInvincibleCount = 20; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible && _parent.ReactionFlag == false)) { if (this.ActionCount != 0) { this.ActionCount = 0; this._visible = false; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; _parent.StandFlag = false; if (this.left._visible != true) { if (this.right._visible == true) { this.right.gotoAndPlay('movieStart1'); } } else { this.left.gotoAndPlay('movieStart1'); } this._rotation = 0; _parent.Vec.x = 0; _parent.Vec.y = 0; _parent.HitDis = SGet(_parent.Radius * 0, _parent.Radius * 0); _parent.HitRadius = _parent.Radius * 0.25; this.ActionTime = random(100) + 10; } if (_parent.StandFlag != true) { if (this.ActionCount % 2 == 1) { var that = WMyCharEval; var TempVec = SSearchVec(_parent.Pos, that.Pos); var TempAtan = Math.atan2(TempVec.y, TempVec.x) * 57.29577951; var Si = _global.Sight_360(179.9, this._rotation - 90, TempAtan); var Roll = 16; if (0 != Si) { if (0 == _global.Sight_360(Roll, this._rotation - 90, TempAtan)) { this._rotation += Si * Roll; } else { this._rotation = TempAtan + 90; } } var TempRat = (this._rotation - 90) / 57.29577951; _parent.Vec = SGet(Math.cos(TempRat) * 24, Math.sin(TempRat) * 24); } if (this.ActionCount % 5 == 1) { var that = WMyCharEval; if (_global.Dot_Circle_Hit(_parent.HitPos, that.Pos, _parent.HitRadius)) { if (that.InvincibleFlag == false) { this.AttackReactionVec = SGet(0, -20); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; } } } } else { _parent.SetVisible('walk', _parent.Direction); _parent.Vec.x = 0; _parent.Vec.y = 0; } if (this.ActionCount % 3 == 0) { var that2; that2 = WMyCharEval; var MaxNum = 1 + int(_parent.LvCount * 0.3); if (10 < MaxNum) { MaxNum = 10; } var m = 0; goto 2240; for (;;) { ++m; label 2240: if (m >= MaxNum) break; var that; var TempFlag = false; var n = 0; goto 2298; for (;;) { ++n; label 2298: if (n >= _parent.MagicNum) break; that = WMagicEval[_parent.MagicGuide + n]; if (that._visible == false && that.FormatFlag == false) { TempFlag = true; } else {} } if (TempFlag == false) { ++_parent.MagicCount; if (_parent.MagicCount >= _parent.MagicNum) { _parent.MagicCount = 0; } that = WMagicEval[_parent.MagicGuide + _parent.MagicCount]; } var CenPos = SGet(_parent.HitPos.x + random(100) - 50, _parent.HitPos.y + random(100) - 50); var TarPos = SGet(that2.Pos.x + random(640) * _parent.Direction, that2.Pos.y); that.Pos = SEqual(CenPos); that._x = that.Pos.x - WPos.x; that._y = that.Pos.y - WPos.y; this.Press = random(20) + random(30) + _parent.LvCount; this.ShotVec = ParabolaVec(false, this.Press, WGravity, CenPos, TarPos); if (this.ShotVec.x == 0 && this.ShotVec.y == 0) { this.ShotVec = SScale(SNorm(SSub(TarPos, CenPos)), this.Press); } that.Vec = SEqual(this.ShotVec); that.FormatFlag = true; } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance sit of movieClip 1316 シット { onClipEvent (load) { this._visible = false; this.ActionCount = 0; this.ActionTime = 50; this.AttackPower = 50; this.AttackReactionVec = SGet(0, -20); this.AttackReactionCount = 3; this.AttackInvincibleCount = 20; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible && _parent.ReactionFlag == false)) { if (this.ActionCount != 0) { this.ActionCount = 0; this._visible = false; _parent.Vec.x = 0; _parent.Vec.y = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ActionCount = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; _parent.PhysFlag = true; _parent.Vec.x = 0; _parent.Vec.y = 0; _parent.HitDis = SGet(_parent.Radius * 0, _parent.Radius * -1); _parent.HitRadius = _parent.Radius * 0.25; if (this.left._visible != true) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } } if (this.ActionCount % 5 == 1) { var that = WMyCharEval; if (_global.Dot_Circle_Hit(_parent.HitPos, that.Pos, _parent.HitRadius)) { if (that.InvincibleFlag == false) { this.AttackReactionVec = SGet(0, -20); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; } } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance crash of movieClip 1520 クラッシュ { onClipEvent (load) { this._visible = false; this.ActionCount = 0; this.ActionTime = 30; this.ShotVec = SGet(0, 0); this.NormVec = SGet(0, 0); this.Press = 30; this.AttackPower = 50; this.AttackReactionVec = SGet(0, -20); this.AttackReactionCount = 50; this.AttackInvincibleCount = 20; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible && _parent.ReactionFlag == false)) { if (this.ActionCount != 0) { this.ActionCount = 0; this._visible = false; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; if (this.left._visible != true) { if (this.right._visible == true) { this.right.gotoAndPlay('movieStart1'); } } else { this.left.gotoAndPlay('movieStart1'); } _parent.Vec.x = 0; _parent.Vec.y = 0; _parent.HitDis = SGet(_parent.Radius * 0, _parent.Radius * -1); _parent.HitRadius = _parent.Radius * 0.25; } if (this.ActionCount % 3 == 1) { if (this.ActionCount == 1 || this.ActionCount == 28) { _parent.HitDis = SGet(_parent.Radius * _parent.Direction * 0.1, _parent.Radius * -0.8); } if (this.ActionCount == 4 || this.ActionCount == 25) { _parent.HitDis = SGet(_parent.Radius * _parent.Direction * 0.4, _parent.Radius * 0); } if (this.ActionCount == 7 || this.ActionCount == 22) { _parent.HitDis = SGet(_parent.Radius * _parent.Direction * 0.8, _parent.Radius * 1); } if (this.ActionCount == 10) { _parent.HitDis = SGet(_parent.Radius * _parent.Direction * 0.8, _parent.Radius * 1); } } if (_parent.StandFlag == true) { if (this.ActionCount >= 9 && 21 >= this.ActionCount) { if (this.ActionCount % 2 == 0) { var that2; that2 = WMyCharEval; var MaxNum = 1 + int(_parent.LvCount * 0.4); if (10 < MaxNum) { MaxNum = 10; } var m = 0; goto 1866; for (;;) { ++m; label 1866: if (m >= MaxNum) break; var that; var TempFlag = false; var n = 0; goto 1924; for (;;) { ++n; label 1924: if (n >= _parent.MagicNum) break; that = WMagicEval[_parent.MagicGuide + n]; if (that._visible == false && that.FormatFlag == false) { TempFlag = true; } else {} } if (TempFlag == false) { ++_parent.MagicCount; if (_parent.MagicCount >= _parent.MagicNum) { _parent.MagicCount = 0; } that = WMagicEval[_parent.MagicGuide + _parent.MagicCount]; } var CenPos = SGet(_parent.HitPos.x + random(100) - 50, _parent.HitPos.y + random(100) - 50); var TarPos = SGet(that2.Pos.x, that2.Pos.y); that.Pos = SEqual(CenPos); that._x = that.Pos.x - WPos.x; that._y = that.Pos.y - WPos.y; this.Press = random(20) + random(30) + 10; this.ShotVec = ParabolaVec(false, this.Press, WGravity, CenPos, TarPos); if (this.ShotVec.x == 0 && this.ShotVec.y == 0) { this.ShotVec = SScale(SNorm(SSub(TarPos, CenPos)), this.Press); } that.Vec = SEqual(this.ShotVec); that.FormatFlag = true; } } if (this.ActionCount == 10) { var CenPos = SGet(_parent.Pos.x + _parent.Radius * _parent.Direction, _parent.Pos.y + _parent.Radius); var Line1 = SAdd(CenPos, SScale(_parent.HorizonVec, 375)); var Line2 = SAdd(CenPos, SScale(_parent.HorizonVec, -375)); var that; that = WMyCharEval; if (that.ExistFlag == true && that._visible == true && that.InvincibleFlag == false) { if (_global.Lim_Circle_Hit(Line1, Line2, that.Pos, that.Radius + 50)) { this.AttackReactionVec = ParabolaVec(true, 40, _global.WGravity, that.Pos, CenPos); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); } } } } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance reaction of movieClip 1352 リアクション { onClipEvent (load) { this._visible = false; this.ActionCount = 0; this.ActionTime = 100; this.ShotVec = SGet(0, 0); this.NormVec = SGet(0, 0); this.Press = 30; this.AttackPower = 50; this.AttackReactionVec = SGet(0, -20); this.AttackReactionCount = 3; this.AttackInvincibleCount = 20; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this._visible = false; } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.HitDis = SGet(_parent.Radius * 0, _parent.Radius * -0.7); _parent.HitRadius = _parent.Radius * 0.25; } if (this.ActionCount % 6 == 1) { var that2; that2 = WMyCharEval; var MaxNum = 1 + int(_parent.LvCount * 0.2); if (10 < MaxNum) { MaxNum = 10; } var m = 0; goto 665; for (;;) { ++m; label 665: if (m >= MaxNum) break; var that; var TempFlag = false; var n = 0; goto 723; for (;;) { ++n; label 723: if (n >= _parent.MagicNum) break; that = WMagicEval[_parent.MagicGuide + n]; if (that._visible == false && that.FormatFlag == false) { TempFlag = true; } else {} } if (TempFlag == false) { ++_parent.MagicCount; if (_parent.MagicCount >= _parent.MagicNum) { _parent.MagicCount = 0; } that = WMagicEval[_parent.MagicGuide + _parent.MagicCount]; } var CenPos = SGet(_parent.HitPos.x + random(100) - 50, _parent.HitPos.y + random(100) - 50); var TarPos = SGet(that2.Pos.x, that2.Pos.y); that.Pos = SEqual(CenPos); that._x = that.Pos.x - WPos.x; that._y = that.Pos.y - WPos.y; this.Press = random(20) + random(30) + 10; this.ShotVec = ParabolaVec(false, this.Press, WGravity, CenPos, TarPos); if (this.ShotVec.x == 0 && this.ShotVec.y == 0) { this.ShotVec = SScale(SNorm(SSub(TarPos, CenPos)), this.Press); } that.Vec = SEqual(this.ShotVec); that.FormatFlag = true; } } } } } instance ball of movieClip 1550 ゲルトボール { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 10000; this._visible = false; this.ActionNum = 0; this.JumpVec = SGet(0, 0); this.LogHpCount = 0; this.GapHpCount = 0; this.LogCount = 0; this.GapCount = 0; this.TotCount = 0; this.TempParentRadius = 0; this.TempParentWeight = 0; this.Press = 15; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 20; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible && _parent.ReactionFlag == false)) { if (this.ActionCount != 0) { _parent.Weight = this.TempParentWeight; _parent.Radius = this.TempParentRadius; this.ActionCount = 0; this.ActionNum = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this._rotation = 0; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } if (!this.left._visible) { this.right.action1.arm.gotoAndPlay('movieStart1'); } else { this.left.action1.arm.gotoAndPlay('movieStart1'); } this.ActionNum = 1; this.LogHpCount = _parent.HpCount; _parent.HitDis = SGet(_parent.Radius * 0, _parent.Radius * -1); _parent.HitRadius = _parent.Radius * 0.25; this.TempParentRadius = _parent.Radius; this.TempParentWeight = _parent.Weight; } this.GapHpCount = _parent.HpCount - this.LogHpCount; this.TotCount = (this.GapHpCount / 5 + this.ActionCount) * 6; if (this.ActionNum == 0) { goto 7099; } else { if (this.ActionNum == 1) { if (this.ActionCount % 5 == 0) { if (this.TotCount >= 60) { if (this.TotCount >= 120) { if (this.TotCount >= 180) { if (!this.left._visible) { this.right.action1.arm.gotoAndPlay('movieStart1'); } else { this.left.action1.arm.gotoAndPlay('movieStart1'); } if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } _parent.Weight *= 3.5; this.ActionNum = 2; } else { if (!this.left._visible) { this.right.action1.arm.gotoAndPlay('movieStart3'); } else { this.left.action1.arm.gotoAndPlay('movieStart3'); } } } else { if (!this.left._visible) { this.right.action1.arm.gotoAndPlay('movieStart2'); } else { this.left.action1.arm.gotoAndPlay('movieStart2'); } } } else { if (!this.left._visible) { this.right.action1.arm.gotoAndPlay('movieStart1'); } else { this.left.action1.arm.gotoAndPlay('movieStart1'); } } } var TempPosY = (1 - this.TotCount / 180) * -1 * _parent.Radius * 0.5; var TempRadius = (1 + this.TotCount / 180) * 100; _parent.HitDis = SGet(0, TempPosY); _parent.HitRadius = _parent.Radius * TempRadius * 0.0025; if (!this.left._visible) { this.right.action1.arm._xscale = TempRadius; this.right.action1.arm._yscale = TempRadius; this.right.action1.arm._rotation = this.TotCount * 6; this.right.action1.arm._y = TempPosY; } else { this.left.action1.arm._xscale = TempRadius; this.left.action1.arm._yscale = TempRadius; this.left.action1.arm._rotation = this.TotCount * 6; this.left.action1.arm._y = TempPosY; } if (this.ActionCount % 4 == 1) { var that = WMyCharEval; if (_global.Dot_Circle_Hit(_parent.HitPos, that.Pos, _parent.HitRadius)) { if (that.InvincibleFlag == false) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, _parent.HitPos)), 30), SGet(0, 0)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; } } } goto 7099; } else { if (this.ActionNum == 2) { var TempRadius = (2 + (this.TotCount - 180) / 360) * 100; _parent.HitDis = SGet(0, 0); _parent.HitRadius = TempParentRadius * TempRadius * 0.0025; _parent.Radius = _parent.HitRadius; if (!this.left._visible) { this.right.action2.arm._xscale = TempRadius; this.right.action2.arm._yscale = TempRadius; this.right.action2.arm._rotation = this.TotCount * 6; } else { this.left.action2.arm._xscale = TempRadius; this.left.action2.arm._yscale = TempRadius; this.left.action2.arm._rotation = this.TotCount * 6; } if (this.ActionCount % 5 == 0) { if (1800 < this.TotCount) { _parent.Weight = this.TempParentWeight; _parent.Radius = this.TempParentRadius; this.LogCount = this.ActionCount; this.GapCount = 0; this.ActionNum = 3; if (!this.left._visible) { this.right.gotoAndPlay('movieStart3'); } else { this.left.gotoAndPlay('movieStart3'); } } } if (_parent.StandFlag == true) { var that = WMyCharEval; var CenPos = SGet(_parent.HitPos.x, _parent.HitPos.y); var TarPos = SGet(that.Pos.x, that.Pos.y); this.Press = random(10) + random(20) + 5; _parent.Vec = ParabolaVec(random(2), this.Press * _parent.Weight, WGravity * _parent.Weight, CenPos, TarPos); if (_parent.Vec.x == 0 && _parent.Vec.y == 0) { _parent.Vec = SScale(SNorm(SSub(TarPos, CenPos)), this.Press); } _parent.StandFlag = false; } if (this.ActionCount % 2 == 1) { var that = WMyCharEval; if (_global.Dot_Circle_Hit(_parent.HitPos, that.Pos, _parent.HitRadius)) { if (that.InvincibleFlag == false) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, _parent.HitPos)), 30), SGet(0, 0)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; } } } if (this.ActionCount % 10 == 1) { var that2; that2 = WMyCharEval; var MaxNum = 1 + int(_parent.LvCount * 0.2); if (10 < MaxNum) { MaxNum = 10; } var m = 0; goto 4688; for (;;) { ++m; label 4688: if (m >= MaxNum) break; var that; var TempFlag = false; var n = 0; goto 4746; for (;;) { ++n; label 4746: if (n >= _parent.MagicNum) break; that = WMagicEval[_parent.MagicGuide + n]; if (that._visible == false && that.FormatFlag == false) { TempFlag = true; } else {} } if (TempFlag == false) { ++_parent.MagicCount; if (_parent.MagicCount >= _parent.MagicNum) { _parent.MagicCount = 0; } that = WMagicEval[_parent.MagicGuide + _parent.MagicCount]; } var CenPos = SGet(_parent.HitPos.x + random(100) - 50, _parent.HitPos.y + random(100) - 50); var TarPos = SGet(that2.Pos.x, that2.Pos.y); that.Pos = SEqual(CenPos); that._x = that.Pos.x - WPos.x; that._y = that.Pos.y - WPos.y; this.Press = random(20) + random(30) + 10; this.ShotVec = ParabolaVec(false, this.Press, WGravity, CenPos, TarPos); if (this.ShotVec.x == 0 && this.ShotVec.y == 0) { this.ShotVec = SScale(SNorm(SSub(TarPos, CenPos)), this.Press); } that.Vec = SEqual(this.ShotVec); that.FormatFlag = true; } } goto 7099; } else { if (this.ActionNum == 3) { var TempRadius = (2 + (this.TotCount - 180) / 360) * 100; _parent.HitDis = SGet(0, _parent.Radius * -1); _parent.HitRadius = _parent.Radius * 0.25; if (!this.left._visible) { this.right.action3.arm._xscale = TempRadius; this.right.action3.arm._yscale = TempRadius; this.right.action3.arm._rotation = this.TotCount * 6; } else { this.left.action3.arm._xscale = TempRadius; this.left.action3.arm._yscale = TempRadius; this.left.action3.arm._rotation = this.TotCount * 6; } this.GapCount = this.ActionCount - this.LogCount; if (this.GapCount % 6 == 1) { var that2; that2 = WMyCharEval; var MaxNum = 5 + int(_parent.LvCount * 0.5); if (10 < MaxNum) { MaxNum = 20; } var m = 0; goto 6093; for (;;) { ++m; label 6093: if (m >= MaxNum) break; var that; var TempFlag = false; var n = 0; goto 6151; for (;;) { ++n; label 6151: if (n >= _parent.MagicNum) break; that = WMagicEval[_parent.MagicGuide + n]; if (that._visible == false && that.FormatFlag == false) { TempFlag = true; } else {} } if (TempFlag == false) { ++_parent.MagicCount; if (_parent.MagicCount >= _parent.MagicNum) { _parent.MagicCount = 0; } that = WMagicEval[_parent.MagicGuide + _parent.MagicCount]; } var CenPos = SGet(_parent.HitPos.x + random(100) - 50, _parent.HitPos.y + random(100) - 50); var TarPos = SGet(that2.Pos.x + random(720) - 360, that2.Pos.y); that.Pos = SEqual(CenPos); that._x = that.Pos.x - WPos.x; that._y = that.Pos.y - WPos.y; this.Press = random(20) + random(30) + 10; this.ShotVec = ParabolaVec(true, this.Press, WGravity, CenPos, TarPos); if (this.ShotVec.x == 0 && this.ShotVec.y == 0) { this.ShotVec = SScale(SNorm(SSub(TarPos, CenPos)), this.Press); } that.Vec = SEqual(this.ShotVec); that.FormatFlag = true; } } if (this.GapCount >= 30) { this.ActionNum = 0; this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else {} } } } label 7099: this.ActionNum; if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.ActionNum = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); _parent.Weight = this.TempParentWeight; _parent.Radius = this.TempParentRadius; } } } } frame 2 { function SetVisible(Name, Name2) { (eval(this.style))._visible = false; (eval('this.' + Name))._visible = true; if (Name2 != -1) { if (Name2 == 1) { (eval('this.' + Name)).left._visible = false; (eval('this.' + Name)).right._visible = true; } } else { (eval('this.' + Name)).left._visible = true; (eval('this.' + Name)).right._visible = false; } this.style = Name; } } } movieClip 604 バインド { } movieClip 1310 バンド { } movieClip 1312 バンドルート { } movieClip 1314 バンドネック { } movieClip 608 バインドライト { } movieClip 606 バインドレフト { } movieClip 170 shoot { frame 2 { stop(); } frame 15 { stop(); } } movieClip 118 ミドル { frame 2 { stop(); } frame 13 { gotoAndPlay('Loop'); } frame 14 { stop(); } frame 115 { gotoAndPlay('Loop2'); } frame 116 { stop(); } frame 118 { stop(); } } movieClip 120 SE { frame 2 { stop(); } frame 4 { stop(); } frame 6 { stop(); } frame 8 { stop(); } } movieClip 150 エネルギー弾 { } movieClip 80 bullet { } movieClip 534 発射エフェクト { } movieClip 10 コウカオン { frame 2 { stop(); } frame 4 { stop(); } frame 6 { stop(); } frame 8 { stop(); } frame 10 { stop(); } frame 11 { stop(); } } movieClip 152 銃弾発射 { } movieClip 2242 SE { frame 2 { stop(); } frame 4 { stop(); } frame 6 { stop(); } frame 8 { stop(); } } movieClip 2240 バラミドル { frame 2 { stop(); } frame 23 { gotoAndPlay('Loop'); } frame 24 { stop(); } frame 30 { stop(); } } movieClip 1124 バラ { } movieClip 2246 SE { frame 2 { stop(); } frame 4 { stop(); } frame 6 { stop(); } frame 8 { stop(); } } movieClip 2244 コットンミドル { frame 2 { stop(); } frame 13 { gotoAndPlay('Loop'); } frame 14 { stop(); } frame 20 { stop(); } } movieClip 1120 コットンアイ { } movieClip 50 SE { frame 2 { stop(); } frame 4 { stop(); } frame 6 { stop(); } frame 8 { stop(); } } movieClip 1660 消失 { } movieClip 1672 発射後ライト { } movieClip 1666 発射前ライト { } movieClip 1670 発射後銃身 { } movieClip 1664 発射前銃身 { } movieClip 1668 発射後 { } movieClip 1662 発射前 { } movieClip 1658 出現 { } movieClip 1642 ウエポンレフト { frame 2 { stop(); } frame 12 { stop(); } frame 14 { stop(); } frame 16 { stop(); } frame 25 { gotoAndPlay('movieStart2'); } frame 26 { stop(); } } movieClip 1640 ウエポンライト { frame 2 { stop(); } frame 12 { stop(); } frame 14 { stop(); } frame 16 { stop(); } frame 25 { gotoAndPlay('movieStart2'); } frame 26 { stop(); } } movieClip 20 ウエポン { } movieClip 1160 効果音 { frame 2 { stop(); } frame 4 { stop(); } frame 6 { stop(); } frame 8 { stop(); } } movieClip 1158 ミドル { frame 2 { stop(); } frame 23 { gotoAndPlay('Loop'); } frame 24 { stop(); } frame 45 { gotoAndPlay('Loop2'); } frame 46 { stop(); } frame 48 { stop(); } } movieClip 1156 キエル { } movieClip 1154 スタンド { } movieClip 1128 グリーフシード { } movieClip 2478 image { } movieClip 2544 文字 { } movieClip 2484 イメージ { frame 2 { stop(); } frame 13 { stop(); } frame 15 { stop(); } frame 26 { stop(); } frame 28 { stop(); } frame 39 { stop(); } frame 41 { stop(); } frame 52 { stop(); } } movieClip 2480 se { frame 2 { stop(); } frame 4 { stop(); } frame 6 { stop(); } } movieClip 2476 マップ { } movieClip 2490 バック2 { } movieClip 2494 バックイメージ2 { } movieClip 2492 バックイメージ1 { } movieClip 2488 フロント2 { } movieClip 2496 フロントイメージ1 { } movieClip 2486 マミ部屋 { } movieClip 2530 バック10 { } movieClip 2536 フロントイメージ1 { } movieClip 2534 バックイメージ1 { } movieClip 2532 フロント10 { } movieClip 134 使い魔結界 { } movieClip 84 ライン一方通行 { } movieClip 126 ライン通行禁止 { } movieClip 128 ライン半分足場 { } movieClip 24 バック { instance back0 of movieClip 138 バック1 { onClipEvent (load) { this.Pos = SGet(0, 0); this.Vec = SGet(0, 0); this._visible = false; } onClipEvent (enterFrame) { if (this._visible) { this._x = WPos.x * -1 * 1; this._y = WPos.y * -1 * 1; } } } instance back3 of movieClip 1494 ばっく3 { onClipEvent (load) { this.Pos = SGet(0, 0); this.Vec = SGet(0, 0); this._visible = false; this.Count = 0; this.FormatFlag = true; } onClipEvent (enterFrame) { if (this.FormatFlag) { this.FormatFlag = false; var TempPos = SGet(0, 0); var that; var n = 0; goto 245; for (;;) { ++n; label 245: if (n >= 96) break; TempPos = SSpread(n, 12, 0); TempPos = SScale(TempPos, 100); that = eval('this.image1.i' + n); that._x = TempPos.x; that._y = TempPos.y; } } if (this._visible) { ++this.Count; if (this.Count % 10 == 0) { this.image2._x = WPos.x * (WCornerPos.x - this.image2._width) / (WLimPos2.x - WLimPos1.x); this.image2._y = WPos.y * (WCornerPos.y - this.image2._height) / (WLimPos2.y - WLimPos1.y); } this.image1._x = WPos.x * -1 * 1; this.image1._y = WPos.y * -1 * 1; } } } instance back5 of movieClip 1572 バック5 { onClipEvent (load) { this.Pos = SGet(0, 0); this.Vec = SGet(0, 0); this._visible = false; this.Count = 0; } onClipEvent (enterFrame) { if (this._visible) { ++this.Count; if (this.Count % 2 == 0) { this.image1._x = WPos.x * (WCornerPos.x - this.image1._width) / (WLimPos2.x - WLimPos1.x - WCornerPos.x); this.image1._y = WPos.y * (WCornerPos.y - this.image1._height) / (WLimPos2.y - WLimPos1.y - WCornerPos.y); } this.image2._x = WPos.x * -1 * 1; this.image2._y = WPos.y * -1 * 1; } } } instance back7 of movieClip 2368 バック7 { onClipEvent (load) { this.Pos = SGet(0, 0); this.Vec = SGet(0, 0); this._visible = false; } onClipEvent (enterFrame) { if (this._visible) { this._x = WPos.x * -1 * 1; this._y = WPos.y * -1 * 1; } } } instance back1 of movieClip 2470 バック1 { onClipEvent (load) { this._visible = false; this.Count = 0; } onClipEvent (enterFrame) { if (this._visible) { ++this.Count; } } } instance back2 of movieClip 2490 バック2 { onClipEvent (load) { this.Pos = SGet(0, 0); this.Vec = SGet(0, 0); this._visible = false; this.Count = 0; } onClipEvent (enterFrame) { if (this._visible) { ++this.Count; this.image2._x = WPos.x * (WCornerPos.x - this.image2._width) / (WLimPos2.x - WLimPos1.x - WCornerPos.x); this.image2._y = WPos.y * (WCornerPos.y - this.image2._height) / (WLimPos2.y - WLimPos1.y - WCornerPos.y); this.image1._x = WPos.x * -1 * 1; this.image1._y = WPos.y * -1 * 1; } } } instance back10 of movieClip 2530 バック10 { onClipEvent (load) { this.Pos = SGet(0, 0); this.Vec = SGet(0, 0); this._visible = false; this.Count = 0; } onClipEvent (enterFrame) { if (this._visible) { this.image1._x = WPos.x * -1; this.image1._y = WPos.y * -1; } } } } movieClip 138 バック1 { } movieClip 530 バック1背景2 { } movieClip 642 イメージ2 { } movieClip 1574 イメージ1 { } movieClip 1572 バック5 { } movieClip 2474 イメージ1 { } movieClip 2470 バック1 { } movieClip 1494 ばっく3 { } movieClip 1500 いめ1(2) { } movieClip 1498 いめ1 { } movieClip 1496 イメージ1 { } movieClip 528 バック1背景1 { } movieClip 2368 バック7 { } movieClip 2366 イメージ2 { } movieClip 2364 イメージ1 { } movieClip 140 バック2 { } movieClip 878 イメージ2 { } movieClip 804 イメージ1 { } movieClip 350 イメージ1 { } movieClip 48 フロント0 { } movieClip 638 フロント5 { } movieClip 640 イメージ1 { } movieClip 1182 フロント3 { } movieClip 2058 i95 { } movieClip 2060 i94 { } movieClip 2062 i93 { } movieClip 2064 i92 { } movieClip 2066 i91 { } movieClip 2068 i90 { } movieClip 2070 i89 { } movieClip 2072 i88 { } movieClip 1994 i87 { } movieClip 1996 i86 { } movieClip 1998 i85 { } movieClip 2000 i84 { } movieClip 2002 i83 { } movieClip 2004 i82 { } movieClip 2006 i81 { } movieClip 2008 i80 { } movieClip 2010 i79 { } movieClip 2012 i78 { } movieClip 2014 i77 { } movieClip 2016 i76 { } movieClip 2018 i75 { } movieClip 2020 i74 { } movieClip 2022 i73 { } movieClip 2024 i72 { } movieClip 2026 i71 { } movieClip 2028 i70 { } movieClip 2030 i69 { } movieClip 2032 i68 { } movieClip 2034 i67 { } movieClip 2036 i66 { } movieClip 2038 i65 { } movieClip 2040 i64 { } movieClip 2042 i63 { } movieClip 2044 i62 { } movieClip 2046 i61 { } movieClip 2048 i60 { } movieClip 2050 i59 { } movieClip 2052 i58 { } movieClip 2054 i57 { } movieClip 2056 i56 { } movieClip 1962 i55 { } movieClip 1964 i54 { } movieClip 1966 i53 { } movieClip 1968 i52 { } movieClip 1970 i51 { } movieClip 1972 i50 { } movieClip 1974 i49 { } movieClip 1976 i48 { } movieClip 1978 i47 { } movieClip 1980 i46 { } movieClip 1982 i45 { } movieClip 1984 i44 { } movieClip 1986 i43 { } movieClip 1988 i42 { } movieClip 1990 i41 { } movieClip 1992 i40 { } movieClip 1576 i39 { } movieClip 1578 i38 { } movieClip 1950 i37 { } movieClip 1952 i36 { } movieClip 1954 i35 { } movieClip 1956 i34 { } movieClip 1958 i33 { } movieClip 1960 i32 { } movieClip 880 i31 { } movieClip 876 i30 { } movieClip 872 i29 { } movieClip 812 i28 { } movieClip 808 i27 { } movieClip 650 i26 { } movieClip 648 i25 { } movieClip 646 i24 { } movieClip 1232 イメージ1 { } movieClip 1278 i23 { } movieClip 1280 i22 { } movieClip 1282 i21 { } movieClip 1276 i20 { } movieClip 1262 i19 { } movieClip 1264 i18 { } movieClip 1266 i17 { } movieClip 1268 i16 { } movieClip 1270 i15 { } movieClip 1272 i14 { } movieClip 1274 i13 { } movieClip 1260 i12 { } movieClip 1246 i11 { } movieClip 1248 i10 { } movieClip 1250 i9 { } movieClip 1252 i8 { } movieClip 1254 i7 { } movieClip 1244 i6 { } movieClip 1242 i5 { } movieClip 1240 i4 { } movieClip 1238 i3 { } movieClip 1236 i2 { } movieClip 1256 i1 { } movieClip 1258 i0 { } movieClip 810 フロント2 { } movieClip 874 イメージ2 { } movieClip 882 イメージ3 { } movieClip 806 イメージ1 { } movieClip 706 フロント { instance front5 of movieClip 638 フロント5 { onClipEvent (load) { this._visible = false; this.Count = 0; } onClipEvent (enterFrame) { if (this._visible) { ++this.Count; this.image1._x = WPos.x * -1 * 1; this.image1._y = WPos.y * -1 * 1; } } } instance front3 of movieClip 1182 フロント3 { onClipEvent (load) { this.Pos = SGet(0, 0); this.Vec = SGet(0, 0); this._visible = false; this.Count = 0; this.FormatFlag = true; } } instance front0 of movieClip 48 フロント0 { onClipEvent (load) { this._visible = false; this.Count = 0; } onClipEvent (enterFrame) { if (this._visible) { ++this.Count; } } } instance front2 of movieClip 2488 フロント2 { onClipEvent (load) { this._visible = false; this.Count = 0; } onClipEvent (enterFrame) { if (this._visible) { ++this.Count; this.image1._x = WPos.x * -1 * 1; this.image1._y = WPos.y * -1 * 1; } } } instance front10 of movieClip 2532 フロント10 { onClipEvent (load) { this._visible = false; this.Count = 0; } onClipEvent (enterFrame) { if (this._visible) { this.image1._x = WPos.x * -1; this.image1._y = WPos.y * -1; } } } } movieClip 1092 カーテンアクション { } movieClip 1690 カーテンキープ { } movieClip 1090 カーテン(2) { frame 2 { stop(); } frame 103 { stop(); } frame 128 { stop(); } } movieClip 144 カーテン { } movieClip 132 ゲート { } movieClip 2508 イメージ { frame 2 { stop(); } frame 4 { stop(); } frame 6 { stop(); } frame 8 { stop(); } frame 10 { stop(); } } movieClip 2522 ゲートq { } movieClip 2330 ダッシュボス { frame 2 { stop(); } frame 15 { stop(); } } movieClip 2332 ジャンプボス { frame 2 { stop(); } frame 4 { stop(); } frame 6 { stop(); } frame 8 { stop(); } } movieClip 2334 スタンドボス { frame 2 { stop(); } frame 11 { stop(); } } movieClip 2336 肩ノリボス { frame 2 { stop(); } frame 4 { stop(); } frame 12 { stop(); } } movieClip 2338 滑空ボス { } movieClip 2340 トランポリンボス { } movieClip 2342 ローリングボス { frame 2 { stop(); } frame 33 { stop(); } frame 44 { stop(); } frame 85 { stop(); } } movieClip 2344 シングルショットボス { } movieClip 2354 ガードボス { } movieClip 2356 ダメージボス { } movieClip 2352 ガード { } movieClip 2362 フライボス { frame 2 { stop(); } frame 3 { stop(); } } movieClip 2360 フライ { } movieClip 2350 ダメージ { } movieClip 2318 ダッシュ { } movieClip 2312 ジャンプ { } movieClip 2310 スタンド { } movieClip 2320 肩ノリ { } movieClip 2322 滑空 { } movieClip 2324 トランポリン { } movieClip 2326 ローリング { } movieClip 2328 シングルショット { frame 2 { stop(); } frame 7 { stop(); } } movieClip 2346 アクション { } movieClip 2348 アクション { } movieClip 2382 アクション { } movieClip 2374 ショット { } movieClip 2380 ボディ { } movieClip 2378 アーム2 { frame 5 { stop(); } frame 7 { stop(); } } movieClip 2376 アーム1 { frame 5 { stop(); } frame 7 { stop(); } } movieClip 2436 ボディ { } movieClip 2438 アーム { } movieClip 2448 かけあがえれ { } movieClip 2358 SE { frame 2 { stop(); } frame 4 { stop(); } frame 6 { stop(); } frame 8 { stop(); } frame 10 { stop(); } frame 12 { stop(); } frame 14 { stop(); } frame 16 { stop(); } frame 18 { stop(); } frame 20 { stop(); } frame 21 { stop(); } } movieClip 2308 パートナー { instance dash of movieClip 2318 ダッシュ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 8; this._visible = false; this.JumpVec = SGet(0, 0); this.Press = 15; this.Forward = 1; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.OldTarDirection = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.both.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.PhysFlag = true; _parent.ActionFlag = false; ++_global.WCharActionCount; this.both.gotoAndPlay('movieStart1'); this.OldTarDirection = 0; } if (!(_parent.AimNearFlag && _parent.AimEvalFlag)) { if (_parent.AimPointFlag && _parent.AimEvalFlag) { if (100 < Math.abs(_parent.TarVec.x) && _parent.AimGetFlag == false) { if (_parent.TarDirection != this.OldTarDirection) { _parent.Direction = _parent.TarDirection; _parent.SetVisible('dash', _parent.Direction); this.OldTarDirection = _parent.TarDirection; } } if (!_parent.AimEval.StandFlag) { var HorizonSize = 0; if (_parent.HorizonVec.x != 0) { HorizonSize = _parent.TarVec.x / _parent.HorizonVec.x; } if (20 < HorizonSize) { HorizonSize = 20; } if (HorizonSize < -20) { HorizonSize = -20; } _parent.Vec.x = _parent.HorizonVec.x * HorizonSize; _parent.Vec.y = _parent.HorizonVec.y * HorizonSize; } else { var HorizonSize = 20 * _parent.Direction; _parent.Vec.x = _parent.HorizonVec.x * HorizonSize; _parent.Vec.y = _parent.HorizonVec.y * HorizonSize; } } } else { if (!(60 < Math.abs(_parent.TarVec.x) || _parent.AimEval.StandFlag == false)) { _parent.Vec.x = 0; _parent.Vec.y = 0; _parent.Direction = _parent.TarDirection; _parent.SetVisible('stand', _parent.TarDirection); } else { if (100 < Math.abs(_parent.TarVec.x) && _parent.AimGetFlag == false) { if (_parent.TarDirection != this.OldTarDirection) { _parent.Direction = _parent.TarDirection; _parent.SetVisible('dash', _parent.Direction); this.OldTarDirection = _parent.TarDirection; } } var TempTarPos; if (0 >= _parent.TarVec.x) { TempTarPos = SGet(_parent.TarVec.x + 50, _parent.TarVec.y); } else { TempTarPos = SGet(_parent.TarVec.x - 50, _parent.TarVec.y); } var HorizonSize = 0; if (_parent.HorizonVec.x != 0) { HorizonSize = TempTarPos.x / _parent.HorizonVec.x; } if (20 < HorizonSize) { HorizonSize = 20; } if (HorizonSize < -20) { HorizonSize = -20; } _parent.Vec.x = _parent.HorizonVec.x * HorizonSize; _parent.Vec.y = _parent.HorizonVec.y * HorizonSize; } } if (this.ChangeFlag == true && this.ChangeType == 2) { if (this.ChangeType == 1) { _parent.Direction = _parent.TarDirection; _parent.SetVisible('rolling', _parent.Direction); } this._visible = false; this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } } } } instance jump of movieClip 2312 ジャンプ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 8; this._visible = false; this.JumpVec = SGet(0, 0); this.Press = 15; this.Forward = 1; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; fscommand('ParaFlaTrace', 'ジャンプってーってー'); this.MovieNum = 0; this.OldMovieNum = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.MovieNum = 0; this.OldMovieNum = 0; this.both.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.PhysFlag = true; _parent.ActionFlag = false; ++_global.WCharActionCount; this.both.gotoAndPlay('movieStart1'); this.MovieNum = 1; this.OldMovieNum = this.MovieNum; _parent.StandFlag = false; } if (_parent.Vec.y * _parent.Vec.y >= _parent.Vec.x * _parent.Vec.x) { if (_parent.Vec.y >= 0) { this.MovieNum = 3; if (this.OldMovieNum != this.MovieNum) { this.both.gotoAndPlay('movieStart3'); this.OldMovieNum = this.MovieNum; } } else { this.MovieNum = 1; if (this.OldMovieNum != this.MovieNum) { this.both.gotoAndPlay('movieStart1'); this.OldMovieNum = this.MovieNum; } } } else { this.MovieNum = 2; if (this.OldMovieNum != this.MovieNum) { this.both.gotoAndPlay('movieStart2'); this.OldMovieNum = this.MovieNum; } } if (!_parent.StandFlag) { } else { _parent.Direction = _parent.TarDirection; _parent.SetVisible('stand', _parent.Direction); } if (this.ChangeFlag == true && this.ChangeType == 2) { if (this.ChangeType == 1) { _parent.Direction = _parent.TarDirection; _parent.SetVisible('rolling', _parent.Direction); } this._visible = false; this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.MovieNum = 0; this.OldMovieNum = 0; } } } } instance stand of movieClip 2310 スタンド { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 8; this._visible = false; this.JumpVec = SGet(0, 0); this.Press = 15; this.Forward = 1; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.both.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.PhysFlag = true; _parent.ActionFlag = false; ++_global.WCharActionCount; this.both.gotoAndPlay('movieStart1'); } if (_parent.TarDirection != _parent.OldTarDirection) { _parent.Direction = _parent.TarDirection; _parent.SetVisible('stand', _parent.TarDirection); } if (!_parent.AimNearFlag) { if (_parent.AimPointFlag) { _parent.Direction = _parent.TarDirection; _parent.SetVisible('dash', _parent.TarDirection); } } else { if (100 < _parent.TarSize) { _parent.Direction = _parent.TarDirection; _parent.SetVisible('dash', _parent.TarDirection); } } if (!_parent.StandFlag) { } else {} if (this.ChangeFlag == true && this.ChangeType == 2) { if (this.ChangeType == 1) { _parent.Direction = this.ChangeDirection; _parent.SetVisible('rolling', _parent.Direction); } this._visible = false; this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } } } } instance fly of movieClip 2360 フライ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 8; this._visible = false; this.JumpVec = SGet(0, 0); this.Press = 15; this.Forward = 1; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 4; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.HangFlag = false; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.both.gotoAndPlay('movieStart0'); that.ManipulatedFlag = false; } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = false; ++_global.WCharActionCount; this.both.gotoAndPlay('movieStart1'); _parent.PhysFlag = false; this.HangFlag = false; } if (!this.HangFlag) { if (!(_parent.AimNearFlag && _parent.AimEvalFlag)) { if (_parent.AimPointFlag && _parent.AimEvalFlag) { if (this.ActionCount % 6 == 1) { _parent.Vec = SScale(SNorm(_parent.TarVec), 15); _parent.StandFlag = false; } if (_parent.TarSize < 60 && _parent.AimEval.StandFlag) { _parent.Vec.x = 0; _parent.Vec.y = 0; _parent.Direction = _parent.TarDirection; _parent.SetVisible('jump', _parent.TarDirection); _parent.AimReturnFlag = false; } } } else { var TempTarPos = SGet(_parent.TarPos.x, _parent.TarPos.y - 150); var TempTarVec = SSub(TempTarPos, _parent.Pos); var TempTarSize = SSize(TempTarVec); if (this.ActionCount % 6 == 1) { _parent.Vec = SScale(SNorm(TempTarVec), 15); _parent.StandFlag = false; } if (TempTarSize < 60 && _parent.AimEval.StandFlag == true) { _parent.Vec = ParabolaVec(true, 10, _global.WGravity, SGet(_parent.Pos.x, _parent.Pos.y + _parent.Radius), SGet(_parent.TarPos.x, _parent.TarPos.y + _parent.AimEval.Radius)); _parent.Direction = _parent.TarDirection; _parent.SetVisible('jump', _parent.TarDirection); _parent.AimReturnFlag = false; } } } else { if (this.ActionCount % 6 == 1) { _parent.Vec = SScale(SNorm(SSub(WMPos, _parent.Pos)), 15); _parent.StandFlag = false; } } if (this.HangFlag == false) { var that = WMyCharEval; if (_global.Dot_Circle_Hit(SGet(_parent.Pos.x, _parent.Pos.y + _parent.Radius), SGet(that.Pos.x, that.Pos.y - that.Radius), that.Radius + _parent.Radius)) { this.HangFlag = true; that.ManipulatedFlag = true; } } if (this.HangFlag) { var that = WMyCharEval; if (!that.ReactionFlag) { if (!that.StandFlag) { if (!MLeftUp) { that.Pos = SAdd(SGet(_parent.Pos.x, _parent.Pos.y + _parent.Radius + that.Radius - WGravity * that.Weight), _parent.Vec); _global.WPos.x = that.Pos.x - _global.WCenPos.x; _global.WPos.y = that.Pos.y - _global.WCenPos.y; if (_global.WPos.x < WLimPos1.x) { _global.WPos.x = WLimPos1.x; } if (WLimPos2.x - WCornerPos.x < _global.WPos.x) { _global.WPos.x = WLimPos2.x - WCornerPos.x; } if (_global.WPos.y < WLimPos1.y) { _global.WPos.y = WLimPos1.y; } if (WLimPos2.y - WCornerPos.y < _global.WPos.y) { _global.WPos.y = WLimPos2.y - WCornerPos.y; } that._x = that.Pos.x - WPos.x; that._y = that.Pos.y - WPos.y; that.Vec = SEqual(_parent.Vec); if (that.jump._visible == false) { that.SetVisible('jump', that.Direction); } } else { _parent.Vec = ParabolaVec(false, 30, _global.WGravity, _parent.Pos, WTPos); _parent.SetVisible('rolling', _parent.Direction); that.ManipulatedFlag = false; if (that.jump._visible == false) { that.SetVisible('jump', that.Direction); } _parent.AimReturnFlag = false; } } else { _parent.Direction = _parent.TarDirection; _parent.SetVisible('jump', _parent.TarDirection); if (that.stand._visible == false) { that.SetVisible('stand', that.Direction); } that.ManipulatedFlag = false; _parent.AimReturnFlag = false; } } else { _parent.Vec = ParabolaVec(false, 30, _global.WGravity, _parent.Pos, WTPos); _parent.SetVisible('rolling', _parent.Direction); that.ManipulatedFlag = false; _parent.AimReturnFlag = false; } } if (1) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); var Line1 = SAdd(CenPos, SGet(-50, 0)); var Line2 = SAdd(CenPos, SGet(50, 0)); i = 0; goto 3774; for (;;) { ++i; label 3774: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(_parent.Pos, that.HitPos, that.HitRadius + 100)) { if (_global.Lim_Circle_Hit(Line1, Line2, that.HitPos, that.HitRadius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, _parent.Pos)), 5), SGet(0, -5)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } i = 0; goto 4284; for (;;) { ++i; label 4284: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 100)) { if (_global.Lim_Circle_Hit(Line1, Line2, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, _parent.Pos)), 5), SGet(0, -5)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } } } } } instance shoulder of movieClip 2320 肩ノリ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 8; this._visible = false; this.JumpVec = SGet(0, 0); this.Press = 15; this.Forward = 1; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; fscommand('ParaFlaTrace', 'ジャンプってーってー'); } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { _parent.ShoulderFlag = false; this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.both.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.PhysFlag = false; _parent.ActionFlag = true; ++_global.WCharActionCount; _parent.StandFlag = false; _parent.AimPointFlag = true; _parent.AimReturnFlag = false; if (!_parent.ShoulderFlag) { this.both.gotoAndPlay('movieStart2'); } else { this.both.gotoAndPlay('movieStart1'); } _parent.ShoulderFlag = true; } if (_parent.Direction != WMyCharEval.Direction) { _parent.Direction = WMyCharEval.Direction; _parent.SetVisible('shoulder', _parent.Direction); } if (MLeftUp) { if (0 < _parent.RapidShotNum) { if (!_global.TAimFlag) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 2; } else { this.ActionCount = 0; this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 3; } } else { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 2; } } if (_global.TAimFlag && 0 < _parent.RapidShotNum) { this.ActionCount = 0; this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 3; } if (this.ChangeFlag == true && 1 < this.ChangeType) { if (this.ChangeType != 2) { if (this.ChangeType == 3) { _parent.Direction = _parent.TarDirection; _parent.SetVisible('doubleShot', _parent.Direction); _parent.ShoulderFlag = true; } } else { _parent.Direction = _parent.TarDirection; _parent.Vec = ParabolaVec(false, 30, _global.WGravity, _parent.Pos, WTPos); _parent.SetVisible('rolling', _parent.Direction); _parent.ShoulderFlag = false; } this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } } } } instance rolling of movieClip 2326 ローリング { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 40; this._visible = false; this.Action2Flag = false; this.JumpVec = SGet(0, 0); this.Press = 15; this.GapActionCount = 0; this.OldActionNum = 0; this.ActionNum = 0; this.AttackPower = 25; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.TempDirection = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.ActionNum = 0; this.both.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { this.AttackPower = 25; _parent.ActionFlag = true; this._rotation = 0; this.both.gotoAndPlay('movieStart1'); _parent.PhysFlag = true; this.ActionNum = 1; this.GapActionCount = 0; this.OldActionNum = 0; } if (this.OldActionNum != this.ActionNum) { this.GapActionCount = 0; this.OldActionNum = this.ActionNum; } ++this.GapActionCount; if (this.ActionNum == 0) { goto 6886; } else { if (this.ActionNum == 1) { if (1 < this.GapActionCount && 30 >= this.GapActionCount) { this._rotation = 40 * _parent.Direction * this.GapActionCount; } if (6 < this.GapActionCount && 24 >= this.GapActionCount) { var TempHitFlag = false; var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); i = 0; goto 1538; for (;;) { ++i; label 1538: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(_parent.Pos, that.HitPos, that.HitRadius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 8), SGet(0, -5)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; TempHitFlag = true; } } i = 0; goto 1982; for (;;) { ++i; label 1982: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 8), SGet(0, -5)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; TempHitFlag = true; } } if (TempHitFlag) { this.both.gotoAndPlay('movieStart4'); this.ActionNum = 4; if (!_global.TAimFlag) { TempJumpVec = ParabolaVec(false, 30, _global.WGravity, SGet(_parent.Pos.x, _parent.Pos.y + _parent.Radius), SGet(WMyCharEval.Pos.x, WMyCharEval.Pos.y + WMyCharEval.Radius)); } else { _parent.Vec = ParabolaVec(true, 20, _global.WGravity, _parent.Pos, WTPos); } if (_parent.Vec.x == 0 && _parent.Vec.y == 0) { _parent.Vec = SGet(0, -20); } this.GapActionCount = 0; this.ActionCount = 0; } } if (_parent.StandFlag == true && this.GapActionCount < 24) { this.both.gotoAndPlay('movieStart2'); this._rotation = 0; this.ActionNum = 2; _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 20; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 20; } if (30 < this.GapActionCount) { this.ActionCount = this.ActionTime + 1; } goto 6886; } else { if (this.ActionNum == 2) { if (4 >= this.GapActionCount) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); i = 0; goto 3217; for (;;) { ++i; label 3217: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(_parent.Pos, that.HitPos, that.HitRadius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 5), SGet(0, -15)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 3653; for (;;) { ++i; label 3653: if (i >= WMagicEvalHitNum) break; var that; that = WMagicEvalEvalHit[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 5), SGet(0, -15)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (10 < this.GapActionCount) { this.ActionCount = this.ActionTime + 1; } if (this.GapActionCount == 1) { this.TempDirection = 0; } if (!_parent.StandFlag) { if (1 < this.GapActionCount && 10 >= this.GapActionCount) { this._rotation = 40 * _parent.Direction * this.GapActionCount; } } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 15; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 15; this.TempDirection = _parent.TarDirection; if (!(0 < this.TempDirection && 0 < _parent.Direction || this.TempDirection < 0 && _parent.Direction < 0)) { if (!(0 < this.TempDirection && _parent.Direction < 0 || this.TempDirection < 0 && 0 < _parent.Direction)) { if (1 < this.GapActionCount && 10 >= this.GapActionCount) { this._rotation = 40 * _parent.Direction * this.GapActionCount; } } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * -20; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * -20; if (1 < this.GapActionCount && 10 >= this.GapActionCount) { this._rotation = -40 * _parent.Direction * this.GapActionCount; } } } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 20; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 20; if (1 < this.GapActionCount && 10 >= this.GapActionCount) { this._rotation = 40 * _parent.Direction * this.GapActionCount; } } } goto 6886; } else { if (this.ActionNum == 4) { if (1 < this.GapActionCount && 40 >= this.GapActionCount) { this._rotation = 40 * _parent.Direction * this.GapActionCount; } if (34 >= this.GapActionCount) { var TempHitFlag = false; var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); i = 0; goto 5340; for (;;) { ++i; label 5340: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(_parent.Pos, that.HitPos, that.HitRadius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 8), SGet(0, -5)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; TempHitFlag = true; } } i = 0; goto 5784; for (;;) { ++i; label 5784: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 8), SGet(0, -5)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; TempHitFlag = true; } } if (TempHitFlag) { this.both.gotoAndPlay('movieStart4'); if (!_global.TAimFlag) { TempJumpVec = ParabolaVec(false, 30, _global.WGravity, SGet(_parent.Pos.x, _parent.Pos.y + _parent.Radius), SGet(WMyCharEval.Pos.x, WMyCharEval.Pos.y + WMyCharEval.Radius)); } else { _parent.Vec = ParabolaVec(true, 20, _global.WGravity, _parent.Pos, WTPos); } if (_parent.Vec.x == 0 && _parent.Vec.y == 0) { _parent.Vec = SGet(0, -20); } this.GapActionCount = 0; this.ActionCount = 0; } } if (_parent.StandFlag == true && this.GapActionCount < 34) { this.both.gotoAndPlay('movieStart2'); this._rotation = 0; this.ActionNum = 2; _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 20; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 20; } if (40 < this.GapActionCount) { this.ActionCount = this.ActionTime + 1; } } else {} } } } label 6886: this.ActionNum; if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; if (!_parent.StandFlag) { _parent.SetVisible('jump', _parent.Direction); } else { _parent.SetVisible('stand', _parent.Direction); _parent.Vec.x = 0; _parent.Vec.y = 0; } this.ActionNum = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.both.gotoAndPlay('movieStart0'); } } } } instance doubleShot of movieClip 2328 シングルショット { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 4; this._visible = false; this.ShotVec1 = SGet(0, 0); this.ShotVec2 = SGet(0, 0); this.Press = 60; this.ArmRot1 = 0; this.ArmRot2 = 0; this.ShotFlag1 = false; this.ShotFlag2 = false; this.ArmGapVec1 = SGet(20, 0); this.ArmGapVec2 = SGet(-20, 0); } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this.Press = 30 + 5 * _parent.LvCount; this.gotoAndPlay('movieStart1'); ++_global.WCharActionCount; this.ShotFlag1 = false; this.ShotFlag2 = false; var TempA = 0; var TempB1 = 1000000; var TempB2 = 1000000; var TempC1 = SGet(0, 0); var TempC2 = SGet(0, 0); var TempD1 = false; var TempD2 = false; var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); i = 0; goto 1107; for (;;) { ++i; label 1107: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + 900)) { var a = that.Pos.x - CenPos.x; var b = that.Pos.y - CenPos.y; TempA = a * a + b * b; if (0 >= a) { if (TempA < TempB2) { TempB2 = TempA; TempC2 = SEqual(that.HitPos); TempD2 = true; } } else { if (TempA < TempB1) { TempB1 = TempA; TempC1 = SEqual(that.HitPos); TempD1 = true; } } } } i = 0; goto 1484; for (;;) { ++i; label 1484: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 900)) { var a = that.Pos.x - CenPos.x; var b = that.Pos.y - CenPos.y; TempA = a * a + b * b; if (0 >= a) { if (TempA < TempB2) { TempB2 = TempA; TempC2 = SEqual(that.Pos); TempD2 = true; } } else { if (TempA < TempB1) { TempB1 = TempA; TempC1 = SEqual(that.Pos); TempD1 = true; } } } } if (1 < _parent.RapidShotNum) { if (TempD1 == true && TempD2 == true) { this.ShotVec1 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, this.ArmGapVec1), TempC1); this.ShotVec2 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, this.ArmGapVec2), TempC2); if (this.ShotVec1.x == 0 && this.ShotVec1.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC1, SAdd(_parent.Pos, this.ArmGapVec1))), this.Press); } if (this.ShotVec2.x == 0 && this.ShotVec2.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC2, SAdd(_parent.Pos, this.ArmGapVec2))), this.Press); } this.ShotFlag1 = true; this.ShotFlag2 = true; } if (TempD1 == true && TempD2 == false) { this.ShotVec1 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, this.ArmGapVec1), TempC1); if (this.ShotVec1.x == 0 && this.ShotVec1.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC1, SAdd(_parent.Pos, this.ArmGapVec1))), this.Press); } this.ShotFlag1 = true; this.ShotFlag2 = false; } if (TempD2 == true && TempD1 == false) { this.ShotVec2 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, this.ArmGapVec2), TempC2); if (this.ShotVec2.x == 0 && this.ShotVec2.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC2, SAdd(_parent.Pos, this.ArmGapVec2))), this.Press); } this.ShotFlag1 = false; this.ShotFlag2 = true; } if (TempD2 == false && TempD1 == false) { this.ShotFlag1 = false; this.ShotFlag2 = false; } } if (0 < _parent.RapidShotNum) { if (TempD1 == true && TempD2 == true) { if (TempB1 >= TempB2) { this.ShotVec2 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, this.ArmGapVec2), TempC2); if (this.ShotVec2.x == 0 && this.ShotVec2.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC2, SAdd(_parent.Pos, this.ArmGapVec2))), this.Press); } this.ShotFlag1 = false; this.ShotFlag2 = true; } else { this.ShotVec1 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, this.ArmGapVec1), TempC1); if (this.ShotVec1.x == 0 && this.ShotVec1.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC1, SAdd(_parent.Pos, this.ArmGapVec1))), this.Press); } this.ShotFlag1 = true; this.ShotFlag2 = false; } } if (TempD1 == true && TempD2 == false) { this.ShotVec1 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, this.ArmGapVec1), TempC1); if (this.ShotVec1.x == 0 && this.ShotVec1.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC1, SAdd(_parent.Pos, this.ArmGapVec1))), this.Press); } this.ShotFlag1 = true; this.ShotFlag2 = false; } if (TempD2 == true && TempD1 == false) { this.ShotVec2 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, this.ArmGapVec2), TempC2); if (this.ShotVec2.x == 0 && this.ShotVec2.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC2, SAdd(_parent.Pos, this.ArmGapVec2))), this.Press); } this.ShotFlag1 = false; this.ShotFlag2 = true; } if (TempD2 == false && TempD1 == false) { this.ShotFlag1 = false; this.ShotFlag2 = false; } } if (0 >= _parent.RapidShotNum) { if (TempD2 == false && TempD1 == false) { this.ShotFlag1 = false; this.ShotFlag2 = false; } } if (!this.ShotFlag1) { this.ArmRot1 = 0; } else { this.ArmRot1 = Math.atan2(this.ShotVec1.y, this.ShotVec1.x) * 57.29577951; } if (!this.ShotFlag2) { this.ArmRot2 = 180; } else { this.ArmRot2 = Math.atan2(this.ShotVec2.y, this.ShotVec2.x) * 57.29577951; } if (!this.ShotFlag1) { this.action1.shot.arm1.gotoAndPlay('movieStart1'); } else { this.action1.shot.arm1.gotoAndPlay('movieStart0'); } if (!this.ShotFlag2) { this.action1.shot.arm2.gotoAndPlay('movieStart1'); } else { this.action1.shot.arm2.gotoAndPlay('movieStart0'); } if (!this.ShotFlag1) { this.action1.shot.arm1._rotation = 0; } else { this.action1.shot.arm1._rotation = Math.atan2(this.ShotVec1.y, this.ShotVec1.x) * 57.29577951; } if (!this.ShotFlag2) { this.action1.shot.arm2._rotation = 180; } else { this.action1.shot.arm2._rotation = Math.atan2(this.ShotVec2.y, this.ShotVec2.x) * 57.29577951; } } if (this.ActionCount == 5) { var MaxNum = 2; var m = 0; goto 5341; for (;;) { ++m; label 5341: if (m >= MaxNum) break; if (m == 0 && this.ShotFlag1 || m == 1 && this.ShotFlag2) { _parent.RapidShotNum -= 1; var that = WGetBulletEval(); that.FormatFlag = true; if (m != 0) { that.Pos = SAdd(SAdd(_parent.Pos, this.ArmGapVec2), SScale(SNorm(this.ShotVec2), 100)); that.Vec = SEqual(this.ShotVec2); } else { that.Pos = SAdd(SAdd(_parent.Pos, this.ArmGapVec1), SScale(SNorm(this.ShotVec1), 100)); that.Vec = SEqual(this.ShotVec1); } } } } if (this.ActionCount == 5 && 0 < _parent.RapidShotNum) { var MaxNum = 2; var m = 0; goto 5871; for (;;) { ++m; label 5871: if (m >= MaxNum) break; if (m == 0 && this.ShotFlag1 || m == 1 && this.ShotFlag2) { var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 2; that.Direction = _parent.Direction; that.ActionCountLimFlag = true; that.ActionCountLim = 20; that._rotation = 90; if (m != 0) { that.Direction = -1; that.Pos = SAdd(_parent.Pos, SGet(-50, 0)); that.Vec = SGet(-5, -15); that.Omega = -57; } else { that.Direction = 1; that.Pos = SAdd(_parent.Pos, SGet(50, 0)); that.Vec = SGet(5, -15); that.Omega = 57; } that.SpinFlag = true; } } this.ActionCount = 0; this._visible = false; this.gotoAndPlay('movieStart0'); _parent.SetVisible('shoulder', _parent.Direction); } if (this.ActionCount == 5 && _parent.RapidShotNum == 0) { var MaxNum = 2; var m = 0; goto 6540; for (;;) { ++m; label 6540: if (m >= MaxNum) break; if (m == 0 && this.ShotFlag1 || m == 1 && this.ShotFlag2) { var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 2; that.Direction = _parent.Direction; that.ActionCountLimFlag = true; that.ActionCountLim = 20; that._rotation = 90; if (m != 0) { that.Direction = -1; that.Pos = SAdd(_parent.Pos, SGet(-50, 0)); that.Vec = SGet(-15, -5); that.Omega = -30; } else { that.Direction = 1; that.Pos = SAdd(_parent.Pos, SGet(50, 0)); that.Vec = SGet(15, -5); that.Omega = 30; } that.SpinFlag = true; } } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.SetVisible('shoulder', _parent.Direction); this.gotoAndPlay('movieStart0'); } } } } instance guard of movieClip 2352 ガード { onClipEvent (load) { this._visible = false; this.Forward = 1; } } instance damage of movieClip 2350 ダメージ { onClipEvent (load) { this._visible = false; this.Forward = 1; } } frame 1 { function SetVisible(Name, Name2) { this.style._visible = false; var that = eval('this.' + Name); that._visible = true; if (0 >= Name2) { if (0 >= that.Forward) { that.both._xscale = -100; } else { that.both._xscale = 100; } } else { if (0 >= that.Forward) { that.both._xscale = 100; } else { that.both._xscale = -100; } } this.style = eval('this.' + Name); } } instance dash of movieClip 2318 ダッシュ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 8; this._visible = false; this.JumpVec = SGet(0, 0); this.Press = 15; this.Forward = 1; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.OldTarDirection = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.both.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.PhysFlag = true; _parent.ActionFlag = false; ++_global.WCharActionCount; this.both.gotoAndPlay('movieStart1'); this.OldTarDirection = 0; } if (!(_parent.AimNearFlag && _parent.AimEvalFlag)) { if (_parent.AimPointFlag && _parent.AimEvalFlag) { if (100 < Math.abs(_parent.TarVec.x) && _parent.AimGetFlag == false) { if (_parent.TarDirection != this.OldTarDirection) { _parent.Direction = _parent.TarDirection; _parent.SetVisible('dash', _parent.Direction); this.OldTarDirection = _parent.TarDirection; } } if (!_parent.AimEval.StandFlag) { var HorizonSize = 0; if (_parent.HorizonVec.x != 0) { HorizonSize = _parent.TarVec.x / _parent.HorizonVec.x; } if (20 < HorizonSize) { HorizonSize = 20; } if (HorizonSize < -20) { HorizonSize = -20; } _parent.Vec.x = _parent.HorizonVec.x * HorizonSize; _parent.Vec.y = _parent.HorizonVec.y * HorizonSize; } else { var HorizonSize = 20 * _parent.Direction; _parent.Vec.x = _parent.HorizonVec.x * HorizonSize; _parent.Vec.y = _parent.HorizonVec.y * HorizonSize; } } } else { if (!(60 < Math.abs(_parent.TarVec.x) || _parent.AimEval.StandFlag == false)) { _parent.Vec.x = 0; _parent.Vec.y = 0; _parent.Direction = _parent.TarDirection; _parent.SetVisible('stand', _parent.TarDirection); } else { if (100 < Math.abs(_parent.TarVec.x) && _parent.AimGetFlag == false) { if (_parent.TarDirection != this.OldTarDirection) { _parent.Direction = _parent.TarDirection; _parent.SetVisible('dash', _parent.Direction); this.OldTarDirection = _parent.TarDirection; } } var TempTarPos; if (0 >= _parent.TarVec.x) { TempTarPos = SGet(_parent.TarVec.x + 50, _parent.TarVec.y); } else { TempTarPos = SGet(_parent.TarVec.x - 50, _parent.TarVec.y); } var HorizonSize = 0; if (_parent.HorizonVec.x != 0) { HorizonSize = TempTarPos.x / _parent.HorizonVec.x; } if (20 < HorizonSize) { HorizonSize = 20; } if (HorizonSize < -20) { HorizonSize = -20; } _parent.Vec.x = _parent.HorizonVec.x * HorizonSize; _parent.Vec.y = _parent.HorizonVec.y * HorizonSize; } } if (this.ChangeFlag == true && this.ChangeType == 2) { if (this.ChangeType == 1) { _parent.Direction = _parent.TarDirection; _parent.SetVisible('rolling', _parent.Direction); } this._visible = false; this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } } } } instance jump of movieClip 2312 ジャンプ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 8; this._visible = false; this.JumpVec = SGet(0, 0); this.Press = 15; this.Forward = 1; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; fscommand('ParaFlaTrace', 'ジャンプってーってー'); this.MovieNum = 0; this.OldMovieNum = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.MovieNum = 0; this.OldMovieNum = 0; this.both.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.PhysFlag = true; _parent.ActionFlag = false; ++_global.WCharActionCount; this.both.gotoAndPlay('movieStart1'); this.MovieNum = 1; this.OldMovieNum = this.MovieNum; _parent.StandFlag = false; } if (_parent.Vec.y * _parent.Vec.y >= _parent.Vec.x * _parent.Vec.x) { if (_parent.Vec.y >= 0) { this.MovieNum = 3; if (this.OldMovieNum != this.MovieNum) { this.both.gotoAndPlay('movieStart3'); this.OldMovieNum = this.MovieNum; } } else { this.MovieNum = 1; if (this.OldMovieNum != this.MovieNum) { this.both.gotoAndPlay('movieStart1'); this.OldMovieNum = this.MovieNum; } } } else { this.MovieNum = 2; if (this.OldMovieNum != this.MovieNum) { this.both.gotoAndPlay('movieStart2'); this.OldMovieNum = this.MovieNum; } } if (!_parent.StandFlag) { } else { _parent.Direction = _parent.TarDirection; _parent.SetVisible('stand', _parent.Direction); } if (this.ChangeFlag == true && this.ChangeType == 2) { if (this.ChangeType == 1) { _parent.Direction = _parent.TarDirection; _parent.SetVisible('rolling', _parent.Direction); } this._visible = false; this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.MovieNum = 0; this.OldMovieNum = 0; } } } } instance stand of movieClip 2310 スタンド { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 8; this._visible = false; this.JumpVec = SGet(0, 0); this.Press = 15; this.Forward = 1; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.both.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.PhysFlag = true; _parent.ActionFlag = false; ++_global.WCharActionCount; this.both.gotoAndPlay('movieStart1'); } if (_parent.TarDirection != _parent.OldTarDirection) { _parent.Direction = _parent.TarDirection; _parent.SetVisible('stand', _parent.TarDirection); } if (!_parent.AimNearFlag) { if (_parent.AimPointFlag) { _parent.Direction = _parent.TarDirection; _parent.SetVisible('dash', _parent.TarDirection); } } else { if (100 < _parent.TarSize) { _parent.Direction = _parent.TarDirection; _parent.SetVisible('dash', _parent.TarDirection); } } if (!_parent.StandFlag) { } else {} if (this.ChangeFlag == true && this.ChangeType == 2) { if (this.ChangeType == 1) { _parent.Direction = this.ChangeDirection; _parent.SetVisible('rolling', _parent.Direction); } this._visible = false; this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } } } } instance fly of movieClip 2360 フライ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 8; this._visible = false; this.JumpVec = SGet(0, 0); this.Press = 15; this.Forward = 1; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 4; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.HangFlag = false; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.both.gotoAndPlay('movieStart0'); that.ManipulatedFlag = false; } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = false; ++_global.WCharActionCount; this.both.gotoAndPlay('movieStart1'); _parent.PhysFlag = false; this.HangFlag = false; } if (!this.HangFlag) { if (!(_parent.AimNearFlag && _parent.AimEvalFlag)) { if (_parent.AimPointFlag && _parent.AimEvalFlag) { if (this.ActionCount % 6 == 1) { _parent.Vec = SScale(SNorm(_parent.TarVec), 15); _parent.StandFlag = false; } if (_parent.TarSize < 60 && _parent.AimEval.StandFlag) { _parent.Vec.x = 0; _parent.Vec.y = 0; _parent.Direction = _parent.TarDirection; _parent.SetVisible('jump', _parent.TarDirection); _parent.AimReturnFlag = false; } } } else { var TempTarPos = SGet(_parent.TarPos.x, _parent.TarPos.y - 150); var TempTarVec = SSub(TempTarPos, _parent.Pos); var TempTarSize = SSize(TempTarVec); if (this.ActionCount % 6 == 1) { _parent.Vec = SScale(SNorm(TempTarVec), 15); _parent.StandFlag = false; } if (TempTarSize < 60 && _parent.AimEval.StandFlag == true) { _parent.Vec = ParabolaVec(true, 10, _global.WGravity, SGet(_parent.Pos.x, _parent.Pos.y + _parent.Radius), SGet(_parent.TarPos.x, _parent.TarPos.y + _parent.AimEval.Radius)); _parent.Direction = _parent.TarDirection; _parent.SetVisible('jump', _parent.TarDirection); _parent.AimReturnFlag = false; } } } else { if (this.ActionCount % 6 == 1) { _parent.Vec = SScale(SNorm(SSub(WMPos, _parent.Pos)), 15); _parent.StandFlag = false; } } if (this.HangFlag == false) { var that = WMyCharEval; if (_global.Dot_Circle_Hit(SGet(_parent.Pos.x, _parent.Pos.y + _parent.Radius), SGet(that.Pos.x, that.Pos.y - that.Radius), that.Radius + _parent.Radius)) { this.HangFlag = true; that.ManipulatedFlag = true; } } if (this.HangFlag) { var that = WMyCharEval; if (!that.ReactionFlag) { if (!that.StandFlag) { if (!MLeftUp) { that.Pos = SAdd(SGet(_parent.Pos.x, _parent.Pos.y + _parent.Radius + that.Radius - WGravity * that.Weight), _parent.Vec); _global.WPos.x = that.Pos.x - _global.WCenPos.x; _global.WPos.y = that.Pos.y - _global.WCenPos.y; if (_global.WPos.x < WLimPos1.x) { _global.WPos.x = WLimPos1.x; } if (WLimPos2.x - WCornerPos.x < _global.WPos.x) { _global.WPos.x = WLimPos2.x - WCornerPos.x; } if (_global.WPos.y < WLimPos1.y) { _global.WPos.y = WLimPos1.y; } if (WLimPos2.y - WCornerPos.y < _global.WPos.y) { _global.WPos.y = WLimPos2.y - WCornerPos.y; } that._x = that.Pos.x - WPos.x; that._y = that.Pos.y - WPos.y; that.Vec = SEqual(_parent.Vec); if (that.jump._visible == false) { that.SetVisible('jump', that.Direction); } } else { _parent.Vec = ParabolaVec(false, 30, _global.WGravity, _parent.Pos, WTPos); _parent.SetVisible('rolling', _parent.Direction); that.ManipulatedFlag = false; if (that.jump._visible == false) { that.SetVisible('jump', that.Direction); } _parent.AimReturnFlag = false; } } else { _parent.Direction = _parent.TarDirection; _parent.SetVisible('jump', _parent.TarDirection); if (that.stand._visible == false) { that.SetVisible('stand', that.Direction); } that.ManipulatedFlag = false; _parent.AimReturnFlag = false; } } else { _parent.Vec = ParabolaVec(false, 30, _global.WGravity, _parent.Pos, WTPos); _parent.SetVisible('rolling', _parent.Direction); that.ManipulatedFlag = false; _parent.AimReturnFlag = false; } } if (1) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); var Line1 = SAdd(CenPos, SGet(-50, 0)); var Line2 = SAdd(CenPos, SGet(50, 0)); i = 0; goto 3774; for (;;) { ++i; label 3774: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(_parent.Pos, that.HitPos, that.HitRadius + 100)) { if (_global.Lim_Circle_Hit(Line1, Line2, that.HitPos, that.HitRadius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, _parent.Pos)), 5), SGet(0, -5)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } i = 0; goto 4284; for (;;) { ++i; label 4284: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 100)) { if (_global.Lim_Circle_Hit(Line1, Line2, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, _parent.Pos)), 5), SGet(0, -5)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } } } } } instance shoulder of movieClip 2320 肩ノリ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 8; this._visible = false; this.JumpVec = SGet(0, 0); this.Press = 15; this.Forward = 1; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; fscommand('ParaFlaTrace', 'ジャンプってーってー'); } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { _parent.ShoulderFlag = false; this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.both.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.PhysFlag = false; _parent.ActionFlag = true; ++_global.WCharActionCount; _parent.StandFlag = false; _parent.AimPointFlag = true; _parent.AimReturnFlag = false; if (!_parent.ShoulderFlag) { this.both.gotoAndPlay('movieStart2'); } else { this.both.gotoAndPlay('movieStart1'); } _parent.ShoulderFlag = true; } if (_parent.Direction != WMyCharEval.Direction) { _parent.Direction = WMyCharEval.Direction; _parent.SetVisible('shoulder', _parent.Direction); } if (MLeftUp) { if (0 < _parent.RapidShotNum) { if (!_global.TAimFlag) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 2; } else { this.ActionCount = 0; this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 3; } } else { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 2; } } if (_global.TAimFlag && 0 < _parent.RapidShotNum) { this.ActionCount = 0; this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 3; } if (this.ChangeFlag == true && 1 < this.ChangeType) { if (this.ChangeType != 2) { if (this.ChangeType == 3) { _parent.Direction = _parent.TarDirection; _parent.SetVisible('doubleShot', _parent.Direction); _parent.ShoulderFlag = true; } } else { _parent.Direction = _parent.TarDirection; _parent.Vec = ParabolaVec(false, 30, _global.WGravity, _parent.Pos, WTPos); _parent.SetVisible('rolling', _parent.Direction); _parent.ShoulderFlag = false; } this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } } } } instance rolling of movieClip 2326 ローリング { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 40; this._visible = false; this.Action2Flag = false; this.JumpVec = SGet(0, 0); this.Press = 15; this.GapActionCount = 0; this.OldActionNum = 0; this.ActionNum = 0; this.AttackPower = 25; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.TempDirection = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.ActionNum = 0; this.both.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { this.AttackPower = 25; _parent.ActionFlag = true; this._rotation = 0; this.both.gotoAndPlay('movieStart1'); _parent.PhysFlag = true; this.ActionNum = 1; this.GapActionCount = 0; this.OldActionNum = 0; } if (this.OldActionNum != this.ActionNum) { this.GapActionCount = 0; this.OldActionNum = this.ActionNum; } ++this.GapActionCount; if (this.ActionNum == 0) { goto 6886; } else { if (this.ActionNum == 1) { if (1 < this.GapActionCount && 30 >= this.GapActionCount) { this._rotation = 40 * _parent.Direction * this.GapActionCount; } if (6 < this.GapActionCount && 24 >= this.GapActionCount) { var TempHitFlag = false; var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); i = 0; goto 1538; for (;;) { ++i; label 1538: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(_parent.Pos, that.HitPos, that.HitRadius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 8), SGet(0, -5)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; TempHitFlag = true; } } i = 0; goto 1982; for (;;) { ++i; label 1982: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 8), SGet(0, -5)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; TempHitFlag = true; } } if (TempHitFlag) { this.both.gotoAndPlay('movieStart4'); this.ActionNum = 4; if (!_global.TAimFlag) { TempJumpVec = ParabolaVec(false, 30, _global.WGravity, SGet(_parent.Pos.x, _parent.Pos.y + _parent.Radius), SGet(WMyCharEval.Pos.x, WMyCharEval.Pos.y + WMyCharEval.Radius)); } else { _parent.Vec = ParabolaVec(true, 20, _global.WGravity, _parent.Pos, WTPos); } if (_parent.Vec.x == 0 && _parent.Vec.y == 0) { _parent.Vec = SGet(0, -20); } this.GapActionCount = 0; this.ActionCount = 0; } } if (_parent.StandFlag == true && this.GapActionCount < 24) { this.both.gotoAndPlay('movieStart2'); this._rotation = 0; this.ActionNum = 2; _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 20; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 20; } if (30 < this.GapActionCount) { this.ActionCount = this.ActionTime + 1; } goto 6886; } else { if (this.ActionNum == 2) { if (4 >= this.GapActionCount) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); i = 0; goto 3217; for (;;) { ++i; label 3217: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(_parent.Pos, that.HitPos, that.HitRadius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 5), SGet(0, -15)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 3653; for (;;) { ++i; label 3653: if (i >= WMagicEvalHitNum) break; var that; that = WMagicEvalEvalHit[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 5), SGet(0, -15)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (10 < this.GapActionCount) { this.ActionCount = this.ActionTime + 1; } if (this.GapActionCount == 1) { this.TempDirection = 0; } if (!_parent.StandFlag) { if (1 < this.GapActionCount && 10 >= this.GapActionCount) { this._rotation = 40 * _parent.Direction * this.GapActionCount; } } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 15; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 15; this.TempDirection = _parent.TarDirection; if (!(0 < this.TempDirection && 0 < _parent.Direction || this.TempDirection < 0 && _parent.Direction < 0)) { if (!(0 < this.TempDirection && _parent.Direction < 0 || this.TempDirection < 0 && 0 < _parent.Direction)) { if (1 < this.GapActionCount && 10 >= this.GapActionCount) { this._rotation = 40 * _parent.Direction * this.GapActionCount; } } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * -20; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * -20; if (1 < this.GapActionCount && 10 >= this.GapActionCount) { this._rotation = -40 * _parent.Direction * this.GapActionCount; } } } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 20; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 20; if (1 < this.GapActionCount && 10 >= this.GapActionCount) { this._rotation = 40 * _parent.Direction * this.GapActionCount; } } } goto 6886; } else { if (this.ActionNum == 4) { if (1 < this.GapActionCount && 40 >= this.GapActionCount) { this._rotation = 40 * _parent.Direction * this.GapActionCount; } if (34 >= this.GapActionCount) { var TempHitFlag = false; var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); i = 0; goto 5340; for (;;) { ++i; label 5340: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(_parent.Pos, that.HitPos, that.HitRadius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 8), SGet(0, -5)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; TempHitFlag = true; } } i = 0; goto 5784; for (;;) { ++i; label 5784: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 8), SGet(0, -5)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; TempHitFlag = true; } } if (TempHitFlag) { this.both.gotoAndPlay('movieStart4'); if (!_global.TAimFlag) { TempJumpVec = ParabolaVec(false, 30, _global.WGravity, SGet(_parent.Pos.x, _parent.Pos.y + _parent.Radius), SGet(WMyCharEval.Pos.x, WMyCharEval.Pos.y + WMyCharEval.Radius)); } else { _parent.Vec = ParabolaVec(true, 20, _global.WGravity, _parent.Pos, WTPos); } if (_parent.Vec.x == 0 && _parent.Vec.y == 0) { _parent.Vec = SGet(0, -20); } this.GapActionCount = 0; this.ActionCount = 0; } } if (_parent.StandFlag == true && this.GapActionCount < 34) { this.both.gotoAndPlay('movieStart2'); this._rotation = 0; this.ActionNum = 2; _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 20; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 20; } if (40 < this.GapActionCount) { this.ActionCount = this.ActionTime + 1; } } else {} } } } label 6886: this.ActionNum; if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; if (!_parent.StandFlag) { _parent.SetVisible('jump', _parent.Direction); } else { _parent.SetVisible('stand', _parent.Direction); _parent.Vec.x = 0; _parent.Vec.y = 0; } this.ActionNum = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.both.gotoAndPlay('movieStart0'); } } } } instance doubleShot of movieClip 2328 シングルショット { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 4; this._visible = false; this.ShotVec1 = SGet(0, 0); this.ShotVec2 = SGet(0, 0); this.Press = 60; this.ArmRot1 = 0; this.ArmRot2 = 0; this.ShotFlag1 = false; this.ShotFlag2 = false; this.ArmGapVec1 = SGet(20, 0); this.ArmGapVec2 = SGet(-20, 0); } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this.Press = 30 + 5 * _parent.LvCount; this.gotoAndPlay('movieStart1'); ++_global.WCharActionCount; this.ShotFlag1 = false; this.ShotFlag2 = false; var TempA = 0; var TempB1 = 1000000; var TempB2 = 1000000; var TempC1 = SGet(0, 0); var TempC2 = SGet(0, 0); var TempD1 = false; var TempD2 = false; var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); i = 0; goto 1107; for (;;) { ++i; label 1107: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + 900)) { var a = that.Pos.x - CenPos.x; var b = that.Pos.y - CenPos.y; TempA = a * a + b * b; if (0 >= a) { if (TempA < TempB2) { TempB2 = TempA; TempC2 = SEqual(that.HitPos); TempD2 = true; } } else { if (TempA < TempB1) { TempB1 = TempA; TempC1 = SEqual(that.HitPos); TempD1 = true; } } } } i = 0; goto 1484; for (;;) { ++i; label 1484: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 900)) { var a = that.Pos.x - CenPos.x; var b = that.Pos.y - CenPos.y; TempA = a * a + b * b; if (0 >= a) { if (TempA < TempB2) { TempB2 = TempA; TempC2 = SEqual(that.Pos); TempD2 = true; } } else { if (TempA < TempB1) { TempB1 = TempA; TempC1 = SEqual(that.Pos); TempD1 = true; } } } } if (1 < _parent.RapidShotNum) { if (TempD1 == true && TempD2 == true) { this.ShotVec1 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, this.ArmGapVec1), TempC1); this.ShotVec2 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, this.ArmGapVec2), TempC2); if (this.ShotVec1.x == 0 && this.ShotVec1.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC1, SAdd(_parent.Pos, this.ArmGapVec1))), this.Press); } if (this.ShotVec2.x == 0 && this.ShotVec2.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC2, SAdd(_parent.Pos, this.ArmGapVec2))), this.Press); } this.ShotFlag1 = true; this.ShotFlag2 = true; } if (TempD1 == true && TempD2 == false) { this.ShotVec1 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, this.ArmGapVec1), TempC1); if (this.ShotVec1.x == 0 && this.ShotVec1.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC1, SAdd(_parent.Pos, this.ArmGapVec1))), this.Press); } this.ShotFlag1 = true; this.ShotFlag2 = false; } if (TempD2 == true && TempD1 == false) { this.ShotVec2 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, this.ArmGapVec2), TempC2); if (this.ShotVec2.x == 0 && this.ShotVec2.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC2, SAdd(_parent.Pos, this.ArmGapVec2))), this.Press); } this.ShotFlag1 = false; this.ShotFlag2 = true; } if (TempD2 == false && TempD1 == false) { this.ShotFlag1 = false; this.ShotFlag2 = false; } } if (0 < _parent.RapidShotNum) { if (TempD1 == true && TempD2 == true) { if (TempB1 >= TempB2) { this.ShotVec2 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, this.ArmGapVec2), TempC2); if (this.ShotVec2.x == 0 && this.ShotVec2.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC2, SAdd(_parent.Pos, this.ArmGapVec2))), this.Press); } this.ShotFlag1 = false; this.ShotFlag2 = true; } else { this.ShotVec1 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, this.ArmGapVec1), TempC1); if (this.ShotVec1.x == 0 && this.ShotVec1.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC1, SAdd(_parent.Pos, this.ArmGapVec1))), this.Press); } this.ShotFlag1 = true; this.ShotFlag2 = false; } } if (TempD1 == true && TempD2 == false) { this.ShotVec1 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, this.ArmGapVec1), TempC1); if (this.ShotVec1.x == 0 && this.ShotVec1.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC1, SAdd(_parent.Pos, this.ArmGapVec1))), this.Press); } this.ShotFlag1 = true; this.ShotFlag2 = false; } if (TempD2 == true && TempD1 == false) { this.ShotVec2 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, this.ArmGapVec2), TempC2); if (this.ShotVec2.x == 0 && this.ShotVec2.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC2, SAdd(_parent.Pos, this.ArmGapVec2))), this.Press); } this.ShotFlag1 = false; this.ShotFlag2 = true; } if (TempD2 == false && TempD1 == false) { this.ShotFlag1 = false; this.ShotFlag2 = false; } } if (0 >= _parent.RapidShotNum) { if (TempD2 == false && TempD1 == false) { this.ShotFlag1 = false; this.ShotFlag2 = false; } } if (!this.ShotFlag1) { this.ArmRot1 = 0; } else { this.ArmRot1 = Math.atan2(this.ShotVec1.y, this.ShotVec1.x) * 57.29577951; } if (!this.ShotFlag2) { this.ArmRot2 = 180; } else { this.ArmRot2 = Math.atan2(this.ShotVec2.y, this.ShotVec2.x) * 57.29577951; } if (!this.ShotFlag1) { this.action1.shot.arm1.gotoAndPlay('movieStart1'); } else { this.action1.shot.arm1.gotoAndPlay('movieStart0'); } if (!this.ShotFlag2) { this.action1.shot.arm2.gotoAndPlay('movieStart1'); } else { this.action1.shot.arm2.gotoAndPlay('movieStart0'); } if (!this.ShotFlag1) { this.action1.shot.arm1._rotation = 0; } else { this.action1.shot.arm1._rotation = Math.atan2(this.ShotVec1.y, this.ShotVec1.x) * 57.29577951; } if (!this.ShotFlag2) { this.action1.shot.arm2._rotation = 180; } else { this.action1.shot.arm2._rotation = Math.atan2(this.ShotVec2.y, this.ShotVec2.x) * 57.29577951; } } if (this.ActionCount == 5) { var MaxNum = 2; var m = 0; goto 5341; for (;;) { ++m; label 5341: if (m >= MaxNum) break; if (m == 0 && this.ShotFlag1 || m == 1 && this.ShotFlag2) { _parent.RapidShotNum -= 1; var that = WGetBulletEval(); that.FormatFlag = true; if (m != 0) { that.Pos = SAdd(SAdd(_parent.Pos, this.ArmGapVec2), SScale(SNorm(this.ShotVec2), 100)); that.Vec = SEqual(this.ShotVec2); } else { that.Pos = SAdd(SAdd(_parent.Pos, this.ArmGapVec1), SScale(SNorm(this.ShotVec1), 100)); that.Vec = SEqual(this.ShotVec1); } } } } if (this.ActionCount == 5 && 0 < _parent.RapidShotNum) { var MaxNum = 2; var m = 0; goto 5871; for (;;) { ++m; label 5871: if (m >= MaxNum) break; if (m == 0 && this.ShotFlag1 || m == 1 && this.ShotFlag2) { var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 2; that.Direction = _parent.Direction; that.ActionCountLimFlag = true; that.ActionCountLim = 20; that._rotation = 90; if (m != 0) { that.Direction = -1; that.Pos = SAdd(_parent.Pos, SGet(-50, 0)); that.Vec = SGet(-5, -15); that.Omega = -57; } else { that.Direction = 1; that.Pos = SAdd(_parent.Pos, SGet(50, 0)); that.Vec = SGet(5, -15); that.Omega = 57; } that.SpinFlag = true; } } this.ActionCount = 0; this._visible = false; this.gotoAndPlay('movieStart0'); _parent.SetVisible('shoulder', _parent.Direction); } if (this.ActionCount == 5 && _parent.RapidShotNum == 0) { var MaxNum = 2; var m = 0; goto 6540; for (;;) { ++m; label 6540: if (m >= MaxNum) break; if (m == 0 && this.ShotFlag1 || m == 1 && this.ShotFlag2) { var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 2; that.Direction = _parent.Direction; that.ActionCountLimFlag = true; that.ActionCountLim = 20; that._rotation = 90; if (m != 0) { that.Direction = -1; that.Pos = SAdd(_parent.Pos, SGet(-50, 0)); that.Vec = SGet(-15, -5); that.Omega = -30; } else { that.Direction = 1; that.Pos = SAdd(_parent.Pos, SGet(50, 0)); that.Vec = SGet(15, -5); that.Omega = 30; } that.SpinFlag = true; } } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.SetVisible('shoulder', _parent.Direction); this.gotoAndPlay('movieStart0'); } } } } instance guard of movieClip 2352 ガード { onClipEvent (load) { this._visible = false; this.Forward = 1; } } instance damage of movieClip 2350 ダメージ { onClipEvent (load) { this._visible = false; this.Forward = 1; } } frame 2 { function SetVisible(Name, Name2) { this.style._visible = false; var that = eval('this.' + Name); that._visible = true; if (0 >= Name2) { if (0 >= that.Forward) { that.both._xscale = -100; } else { that.both._xscale = 100; } } else { if (0 >= that.Forward) { that.both._xscale = 100; } else { that.both._xscale = -100; } } this.style = eval('this.' + Name); } } } movieClip 12 myChar { instance stand of movieClip 186 マミスタンド { onClipEvent (load) { this.ActionCount = 0; this._visible = false; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = false; this.left.gotoAndPlay('movieStart1'); this.right.gotoAndPlay('movieStart1'); } if (!(MMiddlePress && this.ActionCount == 1)) { if (MMiddleDown) { this.left.gotoAndPlay('movieStart2'); this.right.gotoAndPlay('movieStart2'); } } else { this.left.gotoAndPlay('movieStart2'); this.right.gotoAndPlay('movieStart2'); } if (MMiddlePress && 1 < this.ActionCount && 8 < MMiddlePressCount) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); var that; var TempHitFlag = false; i = 0; goto 948; for (;;) { ++i; label 948: if (i >= WWeaponHitIndexNum) break; that = WWeaponEvalHitIndex[i]; if (that.ActionNum == 1) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { TempHitFlag = true; } else {} } } if (TempHitFlag == false) { i = 0; goto 1137; for (;;) { ++i; label 1137: if (i >= WMagicHitIndexNum) break; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { TempHitFlag = true; } else {} } if (TempHitFlag == false) { i = 0; goto 1299; for (;;) { ++i; label 1299: if (i >= WWitchHitIndexNum) break; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + _parent.Radius)) { TempHitFlag = true; } else {} } } } if (TempHitFlag) { this.ActionCount = 0; _parent.SetVisible('kick', _parent.Direction); this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } } instance guard of movieClip 130 ガード { onClipEvent (load) { this._visible = false; } } instance dash of movieClip 188 マミダッシュ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 18; this._visible = false; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeCount = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.wav.gotoAndPlay('movieStart2'); this.ActionCount = 0; this.ChangeCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { if (this.left._visible != true) { if (this.right._visible == true) { this.right.gotoAndPlay('movieStart'); } } else { this.left.gotoAndPlay('movieStart'); } this.wav.gotoAndPlay('movieStart1'); } if (MMiddlePress) { _parent.SetVisible('stand', _parent.Direction); this.wav.gotoAndPlay('movieStart2'); this.ActionCount = 0; _parent.ActionFlag = false; this.ChangeCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; _parent.DashStopFlag = false; _parent.DashGauge = 0; _parent.Vec.x = 0; _parent.Vec.y = 0; _parent.Wheel = 0; } } } } instance rolling of movieClip 190 マミローリング { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 60; this._visible = false; this.Action2Flag = false; this.JumpVec = SGet(0, 0); this.Press = 15; this.GapActionCount = 0; this.OldActionNum = 0; this.ActionNum = 0; this.AttackPower = 25; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.TempDirection = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.ActionNum = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { this.AttackPower = 25 + _parent.LvCount * 15; _parent.ActionFlag = true; this._rotation = 0; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } var TempVec = SScale(SNorm(SSub(WMPos, _parent.Pos)), 10); if (_parent.StandFlag == false) { this.JumpVec = SGet(_parent.Direction * 10, TempVec.y); _parent.Vec = SEqual(this.JumpVec); } this.ActionNum = 1; this.GapActionCount = 0; this.OldActionNum = 0; } if (this.OldActionNum != this.ActionNum) { this.GapActionCount = 0; this.OldActionNum = this.ActionNum; } ++this.GapActionCount; if (this.ActionNum == 0) { goto 6967; } else { if (this.ActionNum == 1) { if (1 < this.GapActionCount && 30 >= this.GapActionCount) { this._rotation = 40 * _parent.Direction * this.GapActionCount; } if (6 < this.GapActionCount && 24 >= this.GapActionCount) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); i = 0; goto 1847; for (;;) { ++i; label 1847: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(_parent.Pos, that.HitPos, that.HitRadius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 8), SGet(0, -5)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 2283; for (;;) { ++i; label 2283: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 8), SGet(0, -5)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (_parent.StandFlag == true && this.GapActionCount < 24) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } this._rotation = 0; this.ActionNum = 2; _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 20; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 20; } if (30 < this.GapActionCount) { this.ActionCount = this.ActionTime + 1; } if (MLeftUp && 6 < this.GapActionCount && 24 >= this.GapActionCount) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart3'); } else { this.left.gotoAndPlay('movieStart3'); } this.ActionNum = 3; _parent.Vec = SScale(SNorm(SSub(WMPos, _parent.Pos)), 18); this._rotation = Math.atan2(_parent.Vec.y, _parent.Vec.x) * 57.29577951 - 90; _parent.StandFlag = false; } goto 6967; } else { if (this.ActionNum == 2) { if (4 >= this.GapActionCount) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); i = 0; goto 3470; for (;;) { ++i; label 3470: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(_parent.Pos, that.HitPos, that.HitRadius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 5), SGet(0, -15)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 3906; for (;;) { ++i; label 3906: if (i >= WMagicEvalHitNum) break; var that; that = WMagicEvalEvalHit[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 5), SGet(0, -15)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (10 < this.GapActionCount) { this.ActionCount = this.ActionTime + 1; } if (this.GapActionCount == 1) { this.TempDirection = 0; } if (!_parent.StandFlag) { if (1 < this.GapActionCount && 10 >= this.GapActionCount) { this._rotation = 40 * _parent.Direction * this.GapActionCount; } } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 15; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 15; if (0 < MWheel) { this.TempDirection = 1; } if (MWheel < 0) { this.TempDirection = -1; } if (!(0 < this.TempDirection && 0 < _parent.Direction || this.TempDirection < 0 && _parent.Direction < 0)) { if (!(0 < this.TempDirection && _parent.Direction < 0 || this.TempDirection < 0 && 0 < _parent.Direction)) { if (1 < this.GapActionCount && 10 >= this.GapActionCount) { this._rotation = 40 * _parent.Direction * this.GapActionCount; } } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * -20; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * -20; if (1 < this.GapActionCount && 10 >= this.GapActionCount) { this._rotation = -40 * _parent.Direction * this.GapActionCount; } } } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 20; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 20; if (1 < this.GapActionCount && 10 >= this.GapActionCount) { this._rotation = 40 * _parent.Direction * this.GapActionCount; } } } if (MLeftUp && 4 >= this.GapActionCount) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart3'); } else { this.left.gotoAndPlay('movieStart3'); } this._rotation = 0; this.ActionNum = 3; _parent.Vec.x = 0; _parent.Vec.y = -18; _parent.StandFlag = false; } goto 6967; } else { if (this.ActionNum == 3) { if (1 < this.GapActionCount) { this._rotation += 20 * _parent.Direction; } if (this.GapActionCount == 7) { var TempRad = Math.atan2(_parent.Vec.y, _parent.Vec.x); var CenPos = SAdd(SGet(_parent.Pos.x, _parent.Pos.y), SGet(Math.cos(TempRad) * _parent.Radius, Math.sin(TempRad) * _parent.Radius)); i = 0; goto 5974; for (;;) { ++i; label 5974: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(_parent.Pos, that.HitPos, that.HitRadius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 25), SGet(0, 0)); that.HpCount += this.AttackPower * 2; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 6419; for (;;) { ++i; label 6419: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 25), SGet(0, 0)); that.HpCount += this.AttackPower * 2; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (12 < this.GapActionCount) { if (_parent.StandFlag == false) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.ActionCount = this.ActionTime + 1; } } else {} } } } label 6967: this.ActionNum; if (0 < MWheel) { this.ChangeDirection = 1; this.ChangeType = 1; } if (MWheel < 0) { this.ChangeDirection = -1; this.ChangeType = 1; } if (0 < this.ChangeDirection && MMiddleUp && 0 < _parent.Direction && this.ChangeType == 1) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 2; } if (this.ChangeDirection < 0 && MMiddleUp && _parent.Direction < 0 && this.ChangeType == 1) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 2; } if (0 >= this.ChangeDirection && MMiddleUp && 0 < _parent.Direction) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 3; } if (this.ChangeDirection >= 0 && MMiddleUp && _parent.Direction < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 3; } if (this.ChangeDirection < 0 && 0 < _parent.Direction && this.ChangeType == 1) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 3; } if (0 < this.ChangeDirection && _parent.Direction < 0 && this.ChangeType == 1) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 3; } if (1 < this.ActionCount && MLeftUp) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 4; } if (6 < this.ActionCount && this.ChangeFlag == true && this.ChangeType >= 2 && this.ActionNum == 1) { if (this.ChangeType != 2) { if (this.ChangeType != 3) { if (this.ChangeType == 4) { _parent.SetVisible('stepTurn', _parent.Direction); } } else { _parent.SetVisible('turnJump', _parent.Direction); } } else { _parent.SetVisible('sliding', _parent.Direction); } this._visible = false; this.ActionCount = 0; if (_parent.StandFlag) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.ActionNum = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; if (_parent.StandFlag) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.ActionNum = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance jump of movieClip 192 マミジャンプ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 10; this._visible = false; this.JumpVec = SGet(0, 0); this.Press = 60; this.TakeOffFlag = false; this.TakeOffCount = 0; this.PutOnFlag = false; this.PutOnCount = 0; this.SquatDownFlag = false; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.SquatDownFlag = false; this.PutOnFlag = false; this.PutOnCount = 0; this.TakeOffFlag = false; this.TakeOffCount = 0; } } else { ++this.ActionCount; if (this.TakeOffFlag && _parent.StandFlag) { this.ActionCount = 1; } if (this.ActionCount == 1) { _parent.ActionFlag = false; if (_parent.StandFlag) { _parent.StandFlag = false; this.wav.gotoAndPlay('movieStart'); } this.PutOnFlag = false; this.PutOnCount = 0; this.TakeOffCount = 0; this.SquatDownFlag = false; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } if (_parent.StandFlag && this.SquatDownFlag == false) { if (this.PutOnFlag == false) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart5'); } else { this.left.gotoAndPlay('movieStart5'); } this.wav.gotoAndPlay('movieStart2'); this.PutOnFlag = true; this.PutOnCount = 0; } } if (this.PutOnFlag) { ++this.PutOnCount; if (0 < MWheel) { this.ChangeDirection = 1; this.ChangeType = 1; this.ChangeFlag = true; } if (MWheel < 0) { this.ChangeDirection = -1; this.ChangeType = 1; this.ChangeFlag = true; } if (this.ChangeFlag == true) { if (this.ChangeType == 1) { _parent.Direction = this.ChangeDirection; _parent.SetVisible('rolling', _parent.Direction); } this._visible = false; this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.PutOnFlag = false; this.PutOnCount = 0; this.TakeOffFlag = false; this.TakeOffCount = 0; this.SquatDownFlag = false; this.ActionCount = 0; } } if (!(MMiddlePress && this.ActionCount == 1)) { if (MMiddleDown) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart6'); } else { this.left.gotoAndPlay('movieStart6'); } this.SquatDownFlag = true; } } else { if (!this.left._visible) { this.right.gotoAndPlay('movieStart6'); } else { this.left.gotoAndPlay('movieStart6'); } this.SquatDownFlag = true; } if (this.PutOnFlag == false && this.TakeOffFlag && this.SquatDownFlag == false) { ++this.TakeOffCount; if (this.TakeOffCount == 1) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart4'); } else { this.left.gotoAndPlay('movieStart4'); } } if (3 < this.TakeOffCount) { this.TakeOffFlag = false; this.TakeOffCount = 0; } } if (this.PutOnFlag == false && this.SquatDownFlag == false) { if (_parent.Vec.y * _parent.Vec.y >= _parent.Vec.x * _parent.Vec.x) { if (_parent.Vec.y >= 0) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart3'); } else { this.left.gotoAndPlay('movieStart3'); } } else { if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } } } else { if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } } } if (3 < this.PutOnCount) { this.PutOnFlag = false; this.PutOnCount = 0; this.TakeOffFlag = false; this.TakeOffCount = 0; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.SquatDownFlag = false; this.ActionCount = 0; } if (MMiddlePress && 1 < this.ActionCount && _parent.StandFlag && 8 < MMiddlePressCount) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); var that; var TempHitFlag = false; i = 0; goto 2909; for (;;) { ++i; label 2909: if (i >= WWeaponHitIndexNum) break; that = WWeaponEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { TempHitFlag = true; } else {} } if (TempHitFlag == false) { i = 0; goto 3071; for (;;) { ++i; label 3071: if (i >= WMagicHitIndexNum) break; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { TempHitFlag = true; } else {} } if (TempHitFlag == false) { i = 0; goto 3233; for (;;) { ++i; label 3233: if (i >= WWitchHitIndexNum) break; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + _parent.Radius)) { TempHitFlag = true; } else {} } } } if (TempHitFlag) { this.ActionCount = 0; _parent.SetVisible('kick', _parent.Direction); this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.SquatDownFlag = false; this.PutOnFlag = false; this.PutOnCount = 0; this.TakeOffFlag = false; this.TakeOffCount = 0; } } } } } instance dashJump of movieClip 1932 ダッシュジャンプ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 12; this._visible = false; this.JumpVec = SGet(0, 0); this.Press = 60; this.ChangeType = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.AttackPower = 25; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.se.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = ture; if (!_parent.StandFlag) { this.se.gotoAndPlay('movieStart2'); } else { _parent.StandFlag = false; this.se.gotoAndPlay('movieStart1'); } this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } if (1) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); i = 0; goto 966; for (;;) { ++i; label 966: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(_parent.Pos, that.HitPos, that.HitRadius + 50)) { this.AttackReactionVec = SGet(0, 15); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); this.se.gotoAndPlay('movieStart2'); var TempVec = SScale(SNorm(_parent.Vec), 20); _parent.Vec = SGet(TempVec.x, Math.abs(TempVec.y) * -1); _parent.StandFlag = false; ++_global.WCharActionHitCount; } } i = 0; goto 1487; for (;;) { ++i; label 1487: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SGet(0, 15); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); this.se.gotoAndPlay('movieStart2'); var TempVec = SScale(SNorm(_parent.Vec), 20); _parent.Vec = SGet(TempVec.x, Math.abs(TempVec.y) * -1); _parent.StandFlag = false; ++_global.WCharActionHitCount; } } } if (0 < MWheel) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 1; } if (MWheel < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 1; } if (this.ChangeFlag == true && 6 < this.ActionCount) { if (this.ChangeType == 1) { _parent.Direction = this.ChangeDirection; _parent.SetVisible('rolling', _parent.Direction); } _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } if (_parent.StandFlag == true) { this.se.gotoAndPlay('movieStart3'); _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.ActionCount = 0; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; } if (this.ActionTime < this.ActionCount) { _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.ActionCount = 0; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; } } } } instance damage of movieClip 194 マミダメージ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 18; this._visible = false; this.ChangeFlag = false; this.ChangeDirection = 0; } } instance chestDraw of movieClip 196 マミチェストドロー { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 15; this._visible = false; this.AttackPower = 25; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 3; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.Rot = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.wav.gotoAndPlay('movieStart'); this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { this.AttackPower = 15 + _parent.LvCount * 10; _parent.ActionFlag = true; ++_global.WCharActionCount; ++_parent.RapidShotNum; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (!MMiddlePress) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } } else { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 10; if (!this.left._visible) { this.right.gotoAndPlay('movieStart3'); } else { this.left.gotoAndPlay('movieStart3'); } } if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.Rot = 0; } if (3 < this.ActionCount && 15 >= this.ActionCount) { if (!this.left._visible) { this.Rot += 20; this.right.action.twist.arm._rotation = this.Rot; } else { this.Rot += 20; this.left.action.twist.arm._rotation = this.Rot; } } if (_parent.StandFlag == false && this.ActionCount % 3 == 1 && this.ActionCount < 15) { _parent.Vec = SScale(SNorm(SSub(WMPos, _parent.Pos)), 10); } if (this.ActionCount >= 3 && this.ActionCount % 2 == 0 && this.ActionCount < 15) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); i = 0; goto 2111; for (;;) { ++i; label 2111: if (i >= WWeaponHitIndexNum) break; var that; that = WWeaponEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 100)) { var JumpVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 5), SGet(0, -10)); that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('tap'); } } i = 0; goto 2477; for (;;) { ++i; label 2477: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 100)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 10), SGet(0, 0)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 2907; for (;;) { ++i; label 2907: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + 100)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 10), SGet(0, -10)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (this.ActionCount == 15) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 3396; for (;;) { ++m; label 3396: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 1; that.FormatAppFlag = false; that.Direction = _parent.Direction; that._rotation = 90; that.Omega = 37 * _parent.Direction; that.SpinFlag = true; that.Pos = SAdd(_parent.Pos, SGet(0, -80)); that.Vec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (that.Vec.y == 0 && that.Vec.x == 0) { that.Vec = SScale(SNorm(SSub(WMPos, that.Pos)), 15); } } } if (this.ChangeFlag && this.ActionCount == 5 && this.ChangeType == 10) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 3934; for (;;) { ++m; label 3934: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 1; that.FormatAppFlag = false; that.Direction = _parent.Direction; that._rotation = 90; that.Omega = 37 * _parent.Direction; that.SpinFlag = true; that.Pos = SAdd(_parent.Pos, SGet(0, -80)); that.Vec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (that.Vec.y == 0 && that.Vec.x == 0) { that.Vec = SScale(SNorm(SSub(WMPos, that.Pos)), 15); } } this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.wav.gotoAndPlay('movieStart'); this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (!(0 < MWheel && this.ChangeFlag == false)) { if (MWheel < 0 && this.ChangeFlag == false) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 1; } } else { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 1; } if (MLeftUp && this.ChangeFlag == false) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 2; } if (MLeftPress && this.ActionCount == 14 && this.ChangeFlag == false) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 3; } if (MMiddleUp && this.ChangeFlag == false) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 5; } if (3 < this.ActionCount && this.ChangeFlag == true && this.ActionCount < 15 && this.ChangeType != 10) { if (this.ChangeType != 1) { if (this.ChangeType != 2) { if (this.ChangeType != 3) { if (this.ChangeType == 5) { _parent.SetVisible('swing', _parent.Direction); } } else { _parent.SetVisible('waistDraw', _parent.Direction); } } else { _parent.SetVisible('jumpShot', _parent.Direction); } } else { _parent.Direction = this.ChangeDirection; _parent.SetVisible('singleTwist', _parent.Direction); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.wav.gotoAndPlay('movieStart'); this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.wav.gotoAndPlay('movieStart'); this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ChangeFlag = false; this.ChangeDirection = 0; } } } } instance waistDraw of movieClip 202 マミウエストドロー { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 105; this._visible = false; this.Action2Flag = false; this.Press = 30 + 5 * _parent.LvCount; this.WheelCount = 0; this.WheelCountLim = 0; this.WheelDirection = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { if (this.ActionCount < 100) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); i = 0; goto 833; for (;;) { ++i; label 833: if (i >= WWeaponNum) break; var that; that = WWeaponEval[i]; if (that.ExistFlag && that.AutoFlag && that.ShotFlag == false) { that.FormatFlag = true; that.FormatType = 4; that.FormatAppFlag = false; that.RoundRadius = SSize(SSub(that.Pos, CenPos)); } } } this.ActionCount = 0; _parent.LeftUpActionCount = 1; this.Action2Flag = false; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this._rotation = 0; this.Press = 30 + 5 * _parent.LvCount; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } if (_parent.StandFlag) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.WheelCount = 0; this.WheelCountLim = 50; this.WheelDirection = 0; } if (_parent.StandFlag == false) { _parent.Vec = SScale(SNorm(_parent.Vec), 4); if (0 < this.WheelCount) { --this.WheelCount; } if (0 < MWheel) { if (0 >= this.WheelDirection) { this.WheelCount = 0; this.WheelDirection = 1; } else { this.WheelCount += 5; this.WheelDirection = 1; } } if (MWheel < 0) { if (this.WheelDirection >= 0) { this.WheelCount = 0; this.WheelDirection = -1; } else { this.WheelCount += 5; this.WheelDirection = -1; } } if (this.WheelCountLim < this.WheelCount) { this.WheelCount = this.WheelCountLim; } if (0 < this.WheelCount) { _parent.Vec.x += 8 * this.WheelDirection; } } if (MLeftUp && this.ActionCount < 100 && this.Action2Flag == false) { this.ActionCount = 100; this.Action2Flag = true; } if (this.ActionCount == 90) { this.ActionCount = 89; } if (this.ActionCount == 100) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } var m = 0; i = 0; goto 2251; for (;;) { ++i; label 2251: if (i >= WWeaponNum) break; var that; that = WWeaponEval[i]; if (that.ExistFlag == true && that.AutoFlag == true && that.ShotFlag == false) { ++m; that.AutoCountLim = 8 + m * 2; that.AutoCount = 0; that.Vec = SGet(0, 0); } } } if (61 >= this.ActionCount) { if (0 < _parent.RapidShotNum) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 2565; for (;;) { ++m; label 2565: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 3; that.FormatAppFlag = true; that.Direction = _parent.Direction; that.ActionCountLimFlag = false; var TempAtan = Math.atan2(MPos.y - _parent._y, MPos.x - _parent._x) + (random(2000) / 1000 - 1); var TempNormVec = SGet(Math.cos(TempAtan), Math.sin(TempAtan)); that.Pos = SAdd(_parent.Pos, SScale(TempNormVec, _parent.Radius + this.ActionCount * 2)); that.Vec = SGet(0, 0); var ShotVec = ParabolaVec(false, 60, _global.WGravity, SGet(that.Pos.x - WPos.x, that.Pos.y - WPos.y), MPos); that._rotation = Math.atan2(ShotVec.y, ShotVec.x) * 57.29577951; that.AutoFlag = true; that.AutoCountLim = 100; that.AutoRotationFlag = false; that.Omega = 0; that.SpinFlag = true; } } } if (this.ActionCount % 4 == 1 && 61 >= this.ActionCount) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } var MaxNum = 1; var m = 0; goto 3384; for (;;) { ++m; label 3384: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 3; that.FormatAppFlag = true; that.Direction = _parent.Direction; that.ActionCountLimFlag = false; var TempAtan = Math.atan2(MPos.y - _parent._y, MPos.x - _parent._x) + (random(2000) / 1000 - 1); var TempNormVec = SGet(Math.cos(TempAtan), Math.sin(TempAtan)); that.Pos = SAdd(_parent.Pos, SScale(TempNormVec, _parent.Radius + this.ActionCount * 2)); that.Vec = SGet(0, 0); var ShotVec = ParabolaVec(false, 60, _global.WGravity, SGet(that.Pos.x - WPos.x, that.Pos.y - WPos.y), MPos); that._rotation = Math.atan2(ShotVec.y, ShotVec.x) * 57.29577951; that.AutoFlag = true; that.AutoCountLim = 100; that.AutoRotationFlag = false; that.Omega = 0; that.SpinFlag = true; } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; _parent.LeftUpActionCount = 1; if (this.Action2Flag == true) { } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.Action2Flag = false; } } } } instance hipDraw of movieClip 204 マミヒップドロー { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 15; this._visible = false; this.AttackPower = 25; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 20; this.AttackInvincibleCount = 5; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.RapidShotNum += 2; this.AttackPower = 40 + _parent.LvCount * 20; _parent.ActionFlag = true; ++_global.WCharActionCount; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (!MMiddlePress) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } if (!_parent.StandFlag) { if (!this.left._visible) { this.right.action1.arm._rotation = 0; } else { this.left.action1.arm._rotation = 0; } } else { _parent.Vec = SGet(0, 0); if (!this.left._visible) { this.right.action1.arm._rotation = Math.atan2(_parent.HorizonVec.y, _parent.HorizonVec.x) * -1 * 57.29577951 + 180; } else { this.left.action1.arm._rotation = Math.atan2(_parent.HorizonVec.y, _parent.HorizonVec.x) * 57.29577951; } } } else { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 10; if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } } } if (this.ChangeType != 10) { if (this.ActionCount == 6) { var TempVec = SNorm(SSub(WMPos, _parent.Pos)); if (_parent.StandFlag == false) { _parent.Vec = SScale(TempVec, 20); } } if (this.ActionCount == 9) { if (_parent.StandFlag != true) { if (!this.left._visible) { this.right.action1.arm._rotation = 0; } else { this.left.action1.arm._rotation = 0; } } else { if (!this.left._visible) { this.right.action1.arm._rotation = Math.atan2(_parent.HorizonVec.y, _parent.HorizonVec.x) * -1 * 57.29577951 + 180; } else { this.left.action1.arm._rotation = Math.atan2(_parent.HorizonVec.y, _parent.HorizonVec.x) * 57.29577951; } } var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); var Line1 = SAdd(SGet(_parent.Pos.x, _parent.Pos.y), SScale(_parent.HorizonVec, 375)); var Line2 = SAdd(SGet(_parent.Pos.x, _parent.Pos.y), SScale(_parent.HorizonVec, -375)); i = 0; goto 2649; for (;;) { ++i; label 2649: if (i >= WWeaponHitIndexNum) break; var that; that = WWeaponEvalHitIndex[i]; if (_global.Lim_Circle_Hit(Line1, Line2, that.Pos, that.Radius + 100)) { this.AttackReactionVec = ParabolaVec(true, 20, _global.WGravity, that.Pos, CenPos); if (this.AttackReactionVec.y == 0 && this.AttackReactionVec.x == 0) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), -10), SGet(0, -10)); } that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37; that.Vec.x = this.AttackReactionVec.x; that.Vec.y = this.AttackReactionVec.y; _parent.se.gotoAndPlay('tap'); } } i = 0; goto 3164; for (;;) { ++i; label 3164: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Lim_Circle_Hit(Line1, Line2, that.Pos, that.Radius + 100)) { this.AttackReactionVec = ParabolaVec(true, 20, _global.WGravity, that.Pos, CenPos); if (this.AttackReactionVec.y == 0 && this.AttackReactionVec.x == 0) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), -10), SGet(0, -10)); } that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 3725; for (;;) { ++i; label 3725: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Lim_Circle_Hit(Line1, Line2, that.HitPos, that.HitRadius + 100)) { this.AttackReactionVec = ParabolaVec(true, 20, _global.WGravity, that.Pos, CenPos); if (this.AttackReactionVec.y == 0 && this.AttackReactionVec.x == 0) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), -10), SGet(0, -10)); } that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (this.ActionCount == 15 && this.ChangeFlag == false) { _parent.RapidShotNum -= 2; var MaxNum = 2; var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); var m = 0; goto 4429; for (;;) { ++m; label 4429: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 1; that.FormatAppFlag = false; that._rotation = 90; if (m != 0) { that.Direction = 1; that.Pos = SAdd(_parent.Pos, SGet(100, 0)); that.Vec = ParabolaVec(true, 20, _global.WGravity, that.Pos, CenPos); that.Omega = 30; } else { that.Direction = -1; that.Pos = SAdd(_parent.Pos, SGet(-100, 0)); that.Vec = ParabolaVec(true, 20, _global.WGravity, that.Pos, CenPos); that.Omega = -30; } that.SpinFlag = true; } } if (0 >= MWheel) { if (MWheel < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 1; } } else { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 1; } if (MLeftUp) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 2; } if (MLeftPress && this.ActionCount == 14) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 3; } if (MMiddleUp) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 5; } if ((this.ActionCount == 6 || this.ActionCount == 14) && this.ChangeFlag == true) { if (this.ChangeType != 1) { if (this.ChangeType != 2) { if (this.ChangeType != 3) { if (this.ChangeType == 5) { _parent.SetVisible('swing', _parent.Direction); } } else { _parent.SetVisible('backDraw', _parent.Direction); } } else { _parent.SetVisible('doubleShot', _parent.Direction); } } else { _parent.Direction = this.ChangeDirection; _parent.SetVisible('doubleTwist', _parent.Direction); _parent.doubleTwist.ActionRepeat = 3; _parent.doubleTwist.ReleaseFlag = true; _parent.doubleTwist.ActionAimFlag = true; } this._visible = false; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; } } else { if (this.ActionCount == 8) { _parent.RapidShotNum -= 2; var MaxNum = 2; var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); var m = 0; goto 5878; for (;;) { ++m; label 5878: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 1; that.FormatAppFlag = false; that._rotation = 90; if (m != 0) { that.Direction = 1; that.Pos = SAdd(_parent.Pos, SGet(30, 40)); that.Vec.x = 0; that.Vec.y = 0; that.Omega = 0; } else { that.Direction = -1; that.Pos = SAdd(_parent.Pos, SGet(-30, 40)); that.Vec.x = 0; that.Vec.y = 0; that.Omega = 0; } that.SpinFlag = true; } } if (8 < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ChangeFlag = false; this.ChangeDirection = 0; } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ChangeFlag = false; this.ChangeDirection = 0; } } } } instance quickDraw of movieClip 198 マミクイックドロー { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 600; this._visible = false; this.JumpVec = SGet(0, 0); this.ShotVec = SGet(0, 0); this.Press = 40; this.GapActionCount = 0; this.OldActionNum = 0; this.ActionNum = 0; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.ActionNum = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this.Press = 30 + 5 * _parent.LvCount; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } this.ActionNum = 1; this.GapActionCount = 0; this.OldActionNum = 0; } if (this.OldActionNum != this.ActionNum) { this.GapActionCount = 0; this.OldActionNum = this.ActionNum; } ++this.GapActionCount; if (3 < this.GapActionCount && 6 >= this.GapActionCount) { this.ShotVec = ParabolaVec(false, this.Press, _global.WGravity, _parent.Pos, WTPos); if (this.ShotVec.x == 0 && this.ShotVec.y == 0) { this.ShotVec = SScale(SNorm(SSub(WTPos._parent.Pos)), this.Press); } var TempAtan; if (!this.left._visible) { TempAtan = Math.atan2(this.ShotVec.y, this.ShotVec.x) * -1 * 57.29577951 + 180; this.right.action1.shot.arm._rotation = TempAtan; this.right.action2.shot.arm._rotation = TempAtan; this.right.action3.shot.arm._rotation = TempAtan; this.right.action4.shot.arm._rotation = TempAtan; this.right.action5.shot.arm._rotation = TempAtan; } else { TempAtan = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951; this.left.action1.shot.arm._rotation = TempAtan; this.left.action2.shot.arm._rotation = TempAtan; this.left.action3.shot.arm._rotation = TempAtan; this.left.action4.shot.arm._rotation = TempAtan; this.left.action5.shot.arm._rotation = TempAtan; } } if (_parent.StandFlag) { _parent.Vec.x = _parent.HorizonVec.x * (_parent.Direction * -1) * 1; _parent.Vec.y = _parent.HorizonVec.y * (_parent.Direction * -1) * 1; } if (this.ActionNum == 0) { goto 4819; } else { if (this.ActionNum == 1) { if (this.GapActionCount == 13) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart3'); } else { this.left.gotoAndPlay('movieStart3'); } this.ActionNum = 3; } goto 4819; } else { if (this.ActionNum == 2) { if (this.GapActionCount == 5) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 2468; for (;;) { ++m; label 2468: if (m >= MaxNum) break; var that = WGetBulletEval(); that.FormatFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 100)); that.Vec = SEqual(this.ShotVec); } } if (this.GapActionCount == 10) { var MaxNum = 1; var m = 0; goto 2686; for (;;) { ++m; label 2686: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 2; that.Direction = _parent.Direction; that.ActionCountLimFlag = true; that.ActionCountLim = 20; that.Omega = 0; that.SpinFlag = true; that._rotation = _parent.Direction * 90; that.Pos = SAdd(_parent.Pos, SGet(_parent.Direction * -10, -10)); that.Vec = SGet(_parent.Direction * -10, -5); } } if (this.GapActionCount == 13) { if (1 >= _parent.RapidShotNum) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart5'); } else { this.left.gotoAndPlay('movieStar5'); } this.ActionNum = 5; } else { if (!this.left._visible) { this.right.gotoAndPlay('movieStart3'); } else { this.left.gotoAndPlay('movieStart3'); } this.ActionNum = 3; } } goto 4819; } else { if (this.ActionNum == 3) { if (this.GapActionCount == 5) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 3342; for (;;) { ++m; label 3342: if (m >= MaxNum) break; var that = WGetBulletEval(); that.FormatFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 100)); that.Vec = SEqual(this.ShotVec); } } if (this.GapActionCount == 10) { var MaxNum = 1; var m = 0; goto 3560; for (;;) { ++m; label 3560: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 2; that.Direction = _parent.Direction; that.ActionCountLimFlag = true; that.ActionCountLim = 20; that.Omega = 0; that.SpinFlag = true; that._rotation = _parent.Direction * 90; that.Pos = SAdd(_parent.Pos, SGet(_parent.Direction * -10, -10)); that.Vec = SGet(_parent.Direction * -10, -5); } } if (this.GapActionCount == 13) { if (1 >= _parent.RapidShotNum) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart4'); } else { this.left.gotoAndPlay('movieStart4'); } this.ActionNum = 4; } else { if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } this.ActionNum = 2; } } goto 4819; } else { if (this.ActionNum == 4) { } else { if (this.ActionNum == 5) { if (this.GapActionCount == 5) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 4237; for (;;) { ++m; label 4237: if (m >= MaxNum) break; var that = WGetBulletEval(); that.FormatFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 100)); that.Vec = SEqual(this.ShotVec); } } if (this.GapActionCount == 10) { var MaxNum = 1; var m = 0; goto 4455; for (;;) { ++m; label 4455: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 2; that.Direction = _parent.Direction; that.ActionCountLimFlag = true; that.ActionCountLim = 20; that.Omega = 0; that.SpinFlag = true; that._rotation = _parent.Direction * 90; that.Pos = SAdd(_parent.Pos, SGet(_parent.Direction * -10, -10)); that.Vec = SGet(_parent.Direction * -10, -5); } } if (this.GapActionCount == 13) { this.ActionCount = this.ActionTime + 1; } } else {} } } } } } label 4819: this.ActionNum; if (1 < this.ActionCount && MLeftUp) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 4; } if (this.ChangeFlag == true && this.ChangeType >= 2) { if (this.ChangeType != 2) { if (this.ChangeType != 3) { if (this.ChangeType == 4) { _parent.throwing.WeaponNum = _parent.RapidShotNum; _parent.RapidShotNum = 0; _parent.SetVisible('throwing', _parent.Direction); } } else {} } else {} this._visible = false; this.ActionCount = 0; this.ActionNum = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.ActionNum = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance singleShot of movieClip 206 マミシングルショット { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 10; this._visible = false; this.ShotVec = SGet(0, 0); this.Press = 40; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { this.ActionCount = 0; } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this.Press = 30 + 5 * _parent.LvCount; ++_global.WCharActionCount; ++_parent.RapidShotNum; if (!this.left._visible) { this.right.gotoAndPlay('movieStart'); } else { this.left.gotoAndPlay('movieStart'); } this.ShotVec = ParabolaVec(false, this.Press, _global.WGravity, _parent.Pos, WTPos); } if (4 < this.ActionCount && 9 >= this.ActionCount) { if (!this.left._visible) { this.right.shot.fire.arm._rotation = Math.atan2(this.ShotVec.y, this.ShotVec.x) * -1 * 57.29577951 + 180; } else { this.left.shot.fire.arm._rotation = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951; } } if (this.ActionCount == 5) { this.ShotVec = ParabolaVec(false, this.Press, _global.WGravity, _parent.Pos, WTPos); --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 1184; for (;;) { ++m; label 1184: if (m >= MaxNum) break; var that = WGetBulletEval(); that.FormatFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 100)); that.Vec = SEqual(this.ShotVec); } } if (this.ActionCount == 9) { var MaxNum = 1; var m = 0; goto 1402; for (;;) { ++m; label 1402: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 2; that.Direction = _parent.Direction; that.ActionCountLimFlag = true; that.ActionCountLim = 20; that._rotation = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951; that.Omega = 0; that.SpinFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 70)); that.Vec = SGet(0, -5); } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; } } } } instance singleTwist of movieClip 208 マミシングルツイスト { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 75; this._visible = false; this.Press = 15; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 3; this.MoveVecScale = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { if (_parent.StandFlag == true) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.MoveVecScale = 0; this.ActionCount = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { this.AttackPower = 15 + _parent.LvCount * 10; _parent.ActionFlag = true; this._rotation = 0; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); this.right.action2.arm._rotation = 0; } else { this.left.gotoAndPlay('movieStart1'); this.left.action2.arm._rotation = 0; } this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.MoveVecScale = 10; } if (14 >= this.ActionCount) { this.MoveVecScale *= 0.95; if (!_parent.StandFlag) { var TempVec = SNorm(SSub(WMPos, _parent.Pos)); _parent.Vec.x = _parent.Direction * (this.MoveVecScale * -1); _parent.Vec.y = TempVec.y * 5; } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * (this.MoveVecScale * -1); _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * (this.MoveVecScale * -1); } } if (14 < this.ActionCount && 61 >= this.ActionCount) { if (!this.left._visible) { this.right.action2.arm._rotation += 20 * _parent.Direction; } else { this.left.action2.arm._rotation += 20 * _parent.Direction; } this.MoveVecScale *= 0.95; if (!_parent.StandFlag) { var TempVec = SNorm(SSub(WMPos, _parent.Pos)); _parent.Vec.x = _parent.Direction * this.MoveVecScale; _parent.Vec.y = TempVec.y * 5; } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * this.MoveVecScale; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * this.MoveVecScale; } if (this.ActionCount % 4 == 0) { var CenPos = SGet(_parent.Pos.x + _parent.Radius * 1.5 * _parent.Direction, _parent.Pos.y); i = 0; goto 2450; for (;;) { ++i; label 2450: if (i >= WWeaponHitIndexNum) break; var that; that = WWeaponEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 100)) { var JumpVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 5), SGet(10 * _parent.Direction, -10)); that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('tap'); } } i = 0; goto 2829; for (;;) { ++i; label 2829: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 120)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 5), SGet((this.ActionCount / 2 + 5) * _parent.Direction, -5)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 3297; for (;;) { ++i; label 3297: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + 100)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 5), SGet((this.ActionCount / 2 + 5) * _parent.Direction, -5)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } } if (this.ActionCount == 14) { this.MoveVecScale = 20; if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } } if (this.ActionCount == 61) { this.MoveVecScale = 0; if (!this.left._visible) { this.right.gotoAndPlay('movieStart3'); } else { this.left.gotoAndPlay('movieStart3'); } if (_parent.StandFlag) { _parent.Vec.x = 0; _parent.Vec.y = 0; } } if (0 < MWheel) { this.ChangeDirection = 1; this.ChangeType = 1; } if (MWheel < 0) { this.ChangeDirection = -1; this.ChangeType = 1; } if (this.ChangeDirection < 0 && 0 < _parent.Direction && this.ChangeType == 1) { if (this.ActionCount < 60) { this.ActionCount = 60; } } if (0 < this.ChangeDirection && _parent.Direction < 0 && this.ChangeType == 1) { if (this.ActionCount < 60) { this.ActionCount = 60; } } if (MLeftUp) { this.ChangeFlag = true; this.ChangeType = 2; } if (MMiddleUp) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 5; } if (14 < this.ActionCount && this.ChangeFlag && this.ChangeType >= 2) { if (this.ChangeType != 2) { if (this.ChangeType == 5) { _parent.SetVisible('swing', _parent.Direction); } } else { _parent.SetVisible('jumpShot', _parent.Direction); } this._visible = false; this.ActionCount = 0; if (_parent.StandFlag == true) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.MoveVecScale = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ChangeType = 0; this.ChangeFlag = false; this.ChangeDirection = 0; } if (this.ActionCount == 75 && this.ChangeFlag == false) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 5038; for (;;) { ++m; label 5038: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 1; that.FormatAppFlag = false; that.Direction = _parent.Direction; that._rotation = 90; that.Omega = 37 * _parent.Direction; that.SpinFlag = true; that.Pos = SAdd(_parent.Pos, SGet(0, -80)); that.Vec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (that.Vec.y == 0 && that.Vec.x == 0) { that.Vec = SScale(SNorm(SSub(WMPos, that.Pos)), 15); } } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.MoveVecScale = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance doubleShot of movieClip 210 マミダブルショット { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 22; this._visible = false; this.ShotVec1 = SGet(0, 0); this.ShotVec2 = SGet(0, 0); this.Press = 60; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this.Press = 30 + 5 * _parent.LvCount; this.gotoAndPlay('movieStart1'); ++_global.WCharActionCount; var TempA = 0; var TempB1 = 1000000; var TempB2 = 1000000; var TempC1 = SGet(0, 0); var TempC2 = SGet(0, 0); var TempD1 = false; var TempD2 = false; var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); i = 0; goto 1062; for (;;) { ++i; label 1062: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + 900)) { var a = that.Pos.x - CenPos.x; var b = that.Pos.y - CenPos.y; TempA = a * a + b * b; if (0 >= a) { if (TempA < TempB2) { TempB2 = TempA; TempC2 = SEqual(that.HitPos); TempD2 = true; } } else { if (TempA < TempB1) { TempB1 = TempA; TempC1 = SEqual(that.HitPos); TempD1 = true; } } } } i = 0; goto 1439; for (;;) { ++i; label 1439: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 900)) { var a = that.Pos.x - CenPos.x; var b = that.Pos.y - CenPos.y; TempA = a * a + b * b; if (0 >= a) { if (TempA < TempB2) { TempB2 = TempA; TempC2 = SEqual(that.Pos); TempD2 = true; } } else { if (TempA < TempB1) { TempB1 = TempA; TempC1 = SEqual(that.Pos); TempD1 = true; } } } } if (TempD1 == true && TempD2 == true) { this.ShotVec1 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, SGet(20, 0)), TempC1); this.ShotVec2 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, SGet(-20, 0)), TempC2); if (this.ShotVec1.x == 0 && this.ShotVec1.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC1, SAdd(_parent.Pos, SGet(20, 0)))), this.Press); } if (this.ShotVec2.x == 0 && this.ShotVec2.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC2, SAdd(_parent.Pos, SGet(-20, 0)))), this.Press); } } if (TempD1 == true && TempD2 == false) { this.ShotVec1 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, SGet(20, 0)), TempC1); this.ShotVec2 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, SGet(-20, 0)), TempC1); if (this.ShotVec1.x == 0 && this.ShotVec1.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC1, SAdd(_parent.Pos, SGet(20, 0)))), this.Press); } if (this.ShotVec2.x == 0 && this.ShotVec2.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC1, SAdd(_parent.Pos, SGet(-20, 0)))), this.Press); } } if (TempD2 == true && TempD1 == false) { this.ShotVec1 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, SGet(20, 0)), TempC2); this.ShotVec2 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, SGet(-20, 0)), TempC2); if (this.ShotVec1.x == 0 && this.ShotVec1.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC2, SAdd(_parent.Pos, SGet(20, 0)))), this.Press); } if (this.ShotVec2.x == 0 && this.ShotVec2.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC2, SAdd(_parent.Pos, SGet(-20, 0)))), this.Press); } } if (TempD2 == false && TempD1 == false) { this.ShotVec1 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, SGet(20, 0)), WTPos); this.ShotVec2 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, SGet(-20, 0)), WTPos); if (this.ShotVec1.x == 0 && this.ShotVec1.y == 0) { this.ShotVec = SScale(SNorm(SSub(WTPos, SAdd(_parent.Pos, SGet(20, 0)))), this.Press); } if (this.ShotVec2.x == 0 && this.ShotVec2.y == 0) { this.ShotVec = SScale(SNorm(SSub(WTPos, SAdd(_parent.Pos, SGet(-20, 0)))), this.Press); } } } if (3 < this.ActionCount && 9 >= this.ActionCount) { var Si1 = _global.Sight_360(180, this.action1.shot.arm1._rotation, 0); if (Si1 != 0) { if (_global.Sight_360(15, this.action1.shot.arm1._rotation, 0) == 0) { this.action1.shot.arm1._rotation += Si1 * 15; } else { this.action1.shot.arm1._rotation = 0; } } var Si2 = _global.Sight_360(180, this.action1.shot.arm2._rotation, 180); if (Si2 != 0) { if (_global.Sight_360(15, this.action1.shot.arm2._rotation, 180) == 0) { this.action1.shot.arm2._rotation += Si2 * 15; } else { this.action1.shot.arm2._rotation = 180; } } } if (this.ActionCount == 4) { _parent.RapidShotNum -= 2; this.action1.shot.arm1._rotation = Math.atan2(this.ShotVec1.y, this.ShotVec1.x) * 57.29577951; this.action1.shot.arm2._rotation = Math.atan2(this.ShotVec2.y, this.ShotVec2.x) * 57.29577951; var MaxNum = 2; var m = 0; goto 4912; for (;;) { ++m; label 4912: if (m >= MaxNum) break; var that = WGetBulletEval(); that.FormatFlag = true; if (m != 0) { that.Pos = SAdd(SAdd(_parent.Pos, SGet(-20, 0)), SScale(SNorm(this.ShotVec2), 100)); that.Vec = SEqual(this.ShotVec2); } else { that.Pos = SAdd(SAdd(_parent.Pos, SGet(20, 0)), SScale(SNorm(this.ShotVec1), 100)); that.Vec = SEqual(this.ShotVec1); } } } if (this.ActionCount == 8 && 0 < _parent.RapidShotNum) { var MaxNum = 2; var m = 0; goto 5348; for (;;) { ++m; label 5348: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 2; that.Direction = _parent.Direction; that.ActionCountLimFlag = true; that.ActionCountLim = 20; that._rotation = 90; if (m != 0) { that.Direction = 1; that.Pos = SAdd(_parent.Pos, SGet(50, 0)); that.Vec = SGet(5, -15); that.Omega = 57; } else { that.Direction = -1; that.Pos = SAdd(_parent.Pos, SGet(-50, 0)); that.Vec = SGet(-5, -15); that.Omega = -57; } that.SpinFlag = true; } this.ActionCount = 0; this._visible = false; this.gotoAndPlay('movieStart0'); _parent.SetVisible('turnShot', _parent.Direction); } if (this.ActionCount == 21) { var MaxNum = 2; var m = 0; goto 5905; for (;;) { ++m; label 5905: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 2; that.Direction = _parent.Direction; that.ActionCountLimFlag = true; that.ActionCountLim = 20; that._rotation = 90; if (m != 0) { that.Direction = 1; that.Pos = SAdd(_parent.Pos, SGet(50, 0)); that.Vec = SGet(15, -5); that.Omega = 30; } else { that.Direction = -1; that.Pos = SAdd(_parent.Pos, SGet(-50, 0)); that.Vec = SGet(-15, -5); that.Omega = -30; } that.SpinFlag = true; } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.gotoAndPlay('movieStart0'); } } } } instance doubleTwist of movieClip 212 マミダブルツイスト { onClipEvent (load) { this.ActionCount = 0; this.ActionRepeat = 3; this.ActionTime = 8 * this.ActionRepeat; this.ReleaseFlag = true; this._visible = false; this.Press = 15; this.DotDirection = 0; this.AttackPower = 25; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 3; this.MoveVecScale = 0; this.ChangeType = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ActionAimFlag = false; this.LeftRotationLog = 0; this.RightRotationLog = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { if (_parent.StandFlag == true) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ChangeFlag = false; this.ChangeDirection = 0; this.MoveVecScale = 0; this.ActionCount = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { this.AttackPower = 40 + _parent.LvCount * 20; _parent.ActionFlag = true; this.ActionTime = 8 * this.ActionRepeat; this._rotation = 0; ++_global.WCharActionCount; this.ChangeType = 0; this.ChangeFlag = false; this.ChangeDirection = 0; if (_parent.StandFlag == true) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.DotDirection = 0; this.MoveVecScale = 0; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } this.left.action1.arm._rotation = 0; this.right.action1.arm._rotation = 0; this.left.action1.body._rotation = 0; this.right.action1.body._rotation = 0; } if (!this.ActionAimFlag) { this.MoveVecScale *= 0.95; if (_parent.StandFlag == true) { _parent.Vec.x = _parent.HorizonVec.x * this.DotDirection * this.MoveVecScale; _parent.Vec.y = _parent.HorizonVec.y * this.DotDirection * this.MoveVecScale; } if (this.ActionCount % 8 == 1 && this.ActionCount != 8 * this.ActionRepeat + 1) { this.MoveVecScale = 10; this.DotDirection = 0; var TempVec = SNorm(SSub(MPos, SGet(_parent._x, _parent._y))); if (_parent.StandFlag != false) { this.DotDirection = SDot(_parent.HorizonVec, TempVec); _parent.Vec.x = _parent.HorizonVec.x * this.DotDirection * 10; _parent.Vec.y = _parent.HorizonVec.y * this.DotDirection * 10; } else { _parent.Vec = SScale(TempVec, 10); } if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } if (_parent.StandFlag != true) { if (!this.left._visible) { this.right.action1.arm._rotation = 0; } else { this.left.action1.arm._rotation = 0; } } else { if (!this.left._visible) { this.right.action1.arm._rotation = Math.atan2(_parent.HorizonVec.y, _parent.HorizonVec.x) * -1 * 57.29577951 + 180; } else { this.left.action1.arm._rotation = Math.atan2(_parent.HorizonVec.y, _parent.HorizonVec.x) * 57.29577951; } } } } else { if (this.ActionCount % 8 == 1 && this.ActionCount != 8 * this.ActionRepeat + 1 && this.ActionCount != 1) { this.LeftRotationLog = this.left.action1.arm._rotation; this.RightRotationLog = this.right.action1.arm._rotation; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } this.left.action1.arm._rotation = this.LeftRotationLog; this.right.action1.arm._rotation = this.RightRotationLog; } this.left.action1.body._rotation = (this.ActionCount - 1) * 45; this.right.action1.body._rotation = (this.ActionCount - 1) * 45; var Si1 = 0; var Si2 = 0; var TempVec = SNorm(SSub(WMPos, _parent.Pos)); var TempAtan = Math.atan2(TempVec.y, TempVec.x); var Atan = int(TempAtan * 57.29577951); if (this.ActionCount % 8 == 1 && this.ActionCount != 8 * this.ActionRepeat + 1) { _parent.StandFlag = false; _parent.Vec = ParabolaVec(true, 20, _global.WGravity, _parent.Pos, WMPos); if (_parent.Vec.y == 0 && _parent.Vec.x == 0) { _parent.Vec = SScale(TempVec, 20); } } var Roll = 30; if (!this.left._visible) { var Si1 = _global.Sight_360(180, this.right.action1.arm._rotation * -1 - 90, Atan); if (Si1 != -1) { if (Si1 == 1) { var Si2 = _global.Sight_360(180, this.right.action1.arm._rotation * -1, Atan); if (Si2 != 0) { if (_global.Sight_360(Roll, this.right.action1.arm._rotation * -1, Atan) == 0) { this.right.action1.arm._rotation -= Si2 * Roll; } else { this.right.action1.arm._rotation = Atan * -1; } } } } else { var Si2 = _global.Sight_360(180, this.right.action1.arm._rotation * -1 + 180, Atan); if (Si2 != 0) { if (_global.Sight_360(Roll, this.right.action1.arm._rotation * -1 + 180, Atan) == 0) { this.right.action1.arm._rotation -= Si2 * Roll; } else { this.right.action1.arm._rotation = Atan * -1 + 180; } } } } else { Si1 = _global.Sight_360(180, this.left.action1.arm._rotation - 90, Atan); if (Si1 != -1) { if (Si1 == 1) { var Si2 = _global.Sight_360(180, this.left.action1.arm._rotation, Atan); if (Si2 != 0) { if (_global.Sight_360(Roll, this.left.action1.arm._rotation, Atan) == 0) { this.left.action1.arm._rotation += Si2 * Roll; } else { this.left.action1.arm._rotation = Atan; } } } } else { var Si2 = _global.Sight_360(180, this.left.action1.arm._rotation + 180, Atan); if (Si2 != 0) { if (_global.Sight_360(Roll, this.left.action1.arm._rotation + 180, Atan) == 0) { this.left.action1.arm._rotation += Si2 * Roll; } else { this.left.action1.arm._rotation = Atan + 180; } } } } } if (this.ActionCount % 8 == 1) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); var TempHorizonVec; if (!this.left._visible) { TempHorizonVec = SGet(Math.cos(this.right.action1.arm._rotation * -1 * 0.0174532925), Math.sin(this.right.action1.arm._rotation * -1 * 0.0174532925)); } else { TempHorizonVec = SGet(Math.cos(this.left.action1.arm._rotation * 0.0174532925), Math.sin(this.left.action1.arm._rotation * 0.0174532925)); } var Line1 = SAdd(SGet(_parent.Pos.x, _parent.Pos.y), SScale(TempHorizonVec, 375)); var Line2 = SAdd(SGet(_parent.Pos.x, _parent.Pos.y), SScale(TempHorizonVec, -375)); i = 0; goto 5644; for (;;) { ++i; label 5644: if (i >= WWeaponHitIndexNum) break; var that; that = WWeaponEvalHitIndex[i]; if (_global.Lim_Circle_Hit(Line1, Line2, that.HitPos, that.HitRadius + 100)) { var JumpVec = ParabolaVec(true, 20, _global.WGravity, that.Pos, CenPos); if (JumpVec.y == 0 && JumpVec.x == 0) { JumpVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), -10), SGet(0, -10)); } that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('tap'); } } i = 0; goto 6123; for (;;) { ++i; label 6123: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Lim_Circle_Hit(Line1, Line2, that.Pos, that.Radius + 100)) { this.AttackReactionVec = ParabolaVec(true, 20, _global.WGravity, that.Pos, CenPos); if (this.AttackReactionVec.y == 0 && this.AttackReactionVec.x == 0) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), -10), SGet(0, -10)); } that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 6684; for (;;) { ++i; label 6684: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Lim_Circle_Hit(Line1, Line2, that.Pos, that.Radius + 100)) { this.AttackReactionVec = ParabolaVec(true, 20, _global.WGravity, that.Pos, CenPos); if (this.AttackReactionVec.y == 0 && this.AttackReactionVec.x == 0) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), -10), SGet(0, -10)); } that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (this.ActionCount == 1) { this.MoveVecScale = 20; } if (this.ActionCount == 8 * this.ActionRepeat + 1) { this.MoveVecScale = 0; if (_parent.StandFlag == true) { _parent.Vec.x = 0; _parent.Vec.y = 0; } } if (MLeftUp) { this.ChangeFlag = true; this.ChangeType = 2; } if (MMiddleUp) { this.ChangeFlag = true; this.ChangeType = 5; } if (this.ActionCount % 8 == 1 && this.ChangeFlag == true && this.ChangeType >= 2) { if (this.ChangeType != 2) { if (this.ChangeType == 5) { _parent.SetVisible('swing', _parent.Direction); } } else { _parent.SetVisible('doubleShot', _parent.Direction); } this._visible = false; this.ActionCount = 0; this.MoveVecScale = 0; if (_parent.StandFlag == true) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ChangeType = 0; this.ChangeFlag = false; this.ChangeDirection = 0; } if (this.ActionCount == 8 * this.ActionRepeat + 1 && this.ChangeFlag == false && this.ReleaseFlag) { _parent.RapidShotNum -= 2; var MaxNum = 2; var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); var m = 0; goto 8122; for (;;) { ++m; label 8122: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 1; that.FormatAppFlag = false; that._rotation = 90; if (m != 0) { that.Direction = 1; that.Pos = SAdd(_parent.Pos, SGet(100, 0)); that.Vec = ParabolaVec(true, 20, _global.WGravity, that.Pos, CenPos); that.Omega = 30; } else { that.Direction = -1; that.Pos = SAdd(_parent.Pos, SGet(-100, 0)); that.Vec = ParabolaVec(true, 20, _global.WGravity, that.Pos, CenPos); that.Omega = -30; } that.SpinFlag = true; } } if (this.ActionTime < this.ActionCount && this.ChangeFlag == false) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.MoveVecScale = 0; this.ChangeFlag = false; this.ChangeDirection = 0; if (_parent.StandFlag == true) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance kick of movieClip 200 マミキック { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 8; this._visible = false; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 3; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } this.AttackPower = 35 + _parent.LvCount * 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 3; _parent.Vec = SGet(0, 0); this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } if (this.ActionCount == 1) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); var that; i = 0; goto 1459; for (;;) { ++i; label 1459: if (i >= WWeaponHitIndexNum) break; that = WWeaponEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { if (!_global.TAimFlag) { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } else { var JumpVec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (!(JumpVec.y == 0 && JumpVec.x == 0)) { if (SDot(JumpVec, SSub(that.Pos, _parent.Pos)) < 0) { JumpVec = ParabolaVec(true, 30, _global.WGravity, that.Pos, WTPos); } if (!(JumpVec.y == 0 && JumpVec.x == 0)) { if (that.StandFlag) { if (0 < SCross(that.HorizonVec, JumpVec)) { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } } } else { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } } else { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } } that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37 * _parent.Direction; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('hit'); } } if (1) { var that; that = WPartnerEval; if (that.ShoulderFlag == false) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; that.Vec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (that.Vec.x == 0 && that.Vec.y == 0) { that.Vec = SScale(SNorm(SSub(WTPos, that.Pos)), 20); } that.SetVisible('rolling', that.Direction); _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } i = 0; goto 2735; for (;;) { ++i; label 2735: if (i >= WMagicHitIndexNum) break; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 15), SGet(0, -10)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('hit'); ++_global.WCharActionHitCount; } } i = 0; goto 3163; for (;;) { ++i; label 3163: if (i >= WWitchHitIndexNum) break; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + _parent.Radius)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 15), SGet(0, -10)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('hit'); ++_global.WCharActionHitCount; } } } if (MMiddlePress && this.ActionCount == 8 && _parent.StandFlag && 8 < MMiddlePressCount) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); var that; var TempHitFlag = false; i = 0; goto 3736; for (;;) { ++i; label 3736: if (i >= WWeaponHitIndexNum) break; that = WWeaponEvalHitIndex[i]; if (that.ActionNum == 1) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { TempHitFlag = true; } else {} } } if (TempHitFlag == false) { i = 0; goto 3925; for (;;) { ++i; label 3925: if (i >= WMagicHitIndexNum) break; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { TempHitFlag = true; } else {} } if (TempHitFlag == false) { i = 0; goto 4087; for (;;) { ++i; label 4087: if (i >= WWitchHitIndexNum) break; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + _parent.Radius)) { TempHitFlag = true; } else {} } } } if (TempHitFlag) { this.ActionCount = 0; _parent.SetVisible('tripKick', _parent.Direction); this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } } if (this.ActionCount == 1 && MMiddlePress) { this.ChangeType = 66; } if (this.ChangeType != 66) { if (0 < MWheel) { this.ChangeDirection = 1; this.ChangeType = 1; } if (MWheel < 0) { this.ChangeDirection = -1; this.ChangeType = 1; } if (0 >= this.ChangeDirection && MMiddleUp && 0 < _parent.Direction) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 2; } if (this.ChangeDirection >= 0 && MMiddleUp && _parent.Direction < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 2; } if (0 < this.ChangeDirection && 0 < _parent.Direction) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 3; } if (this.ChangeDirection < 0 && _parent.Direction < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 3; } if (1 < this.ActionCount && MLeftUp && _parent.StandFlag == false) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 4; } } if (this.ChangeFlag == true && this.ChangeType >= 2 && this.ActionCount == this.ActionTime) { if (this.ChangeType != 2) { if (this.ChangeType != 3) { if (this.ChangeType == 4) { _parent.SetVisible('tripSlap', _parent.Direction); } } else { _parent.SetVisible('tripKick', _parent.Direction); } } else { _parent.SetVisible('sliding', _parent.Direction); } this._visible = false; this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance tripKick of movieClip 2282 トリップキック { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 8; this._visible = false; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 3; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } this.AttackPower = 35 + _parent.LvCount * 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 3; _parent.Vec = SGet(0, 0); this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } if (this.ActionCount == 1) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); var that; i = 0; goto 1451; for (;;) { ++i; label 1451: if (i >= WWeaponHitIndexNum) break; that = WWeaponEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { if (!_global.TAimFlag) { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } else { var JumpVec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (!(JumpVec.y == 0 && JumpVec.x == 0)) { if (SDot(JumpVec, SSub(that.Pos, _parent.Pos)) < 0) { JumpVec = ParabolaVec(true, 30, _global.WGravity, that.Pos, WTPos); } if (!(JumpVec.y == 0 && JumpVec.x == 0)) { if (that.StandFlag) { if (0 < SCross(that.HorizonVec, JumpVec)) { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } } } else { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } } else { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } } that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37 * _parent.Direction; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('hit'); } } if (1) { var that; that = WPartnerEval; if (that.ShoulderFlag == false) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; that.Vec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (that.Vec.x == 0 && that.Vec.y == 0) { that.Vec = SScale(SNorm(SSub(WTPos, that.Pos)), 20); } that.SetVisible('rolling', that.Direction); _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } i = 0; goto 2727; for (;;) { ++i; label 2727: if (i >= WMagicHitIndexNum) break; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 15), SGet(0, -10)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('hit'); ++_global.WCharActionHitCount; } } i = 0; goto 3155; for (;;) { ++i; label 3155: if (i >= WWitchHitIndexNum) break; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + _parent.Radius)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 15), SGet(0, -10)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('hit'); ++_global.WCharActionHitCount; } } } if (MMiddlePress && this.ActionCount == 8 && _parent.StandFlag && 8 < MMiddlePressCount) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); var that; var TempHitFlag = false; i = 0; goto 3728; for (;;) { ++i; label 3728: if (i >= WWeaponHitIndexNum) break; that = WWeaponEvalHitIndex[i]; if (that.ActionNum == 1) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { TempHitFlag = true; } else {} } } if (TempHitFlag == false) { i = 0; goto 3917; for (;;) { ++i; label 3917: if (i >= WMagicHitIndexNum) break; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { TempHitFlag = true; } else {} } if (TempHitFlag == false) { i = 0; goto 4079; for (;;) { ++i; label 4079: if (i >= WWitchHitIndexNum) break; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + _parent.Radius)) { TempHitFlag = true; } else {} } } } if (TempHitFlag) { this.ActionCount = 0; _parent.SetVisible('kick', _parent.Direction); this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } } if (this.ActionCount == 1 && MMiddlePress) { this.ChangeType = 66; } if (this.ChangeType != 66) { if (0 < MWheel) { this.ChangeDirection = 1; this.ChangeType = 1; } if (MWheel < 0) { this.ChangeDirection = -1; this.ChangeType = 1; } if (0 >= this.ChangeDirection && 0 < _parent.Direction) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 2; } if (this.ChangeDirection >= 0 && _parent.Direction < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 2; } if (1 < this.ActionCount && MLeftUp && _parent.StandFlag == false) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 4; } } if (this.ChangeFlag == true && this.ChangeType >= 2 && this.ActionCount == this.ActionTime) { if (this.ChangeType != 2) { if (this.ChangeType != 3) { if (this.ChangeType == 4) { _parent.SetVisible('roundTripSlap', _parent.Direction); } } else { _parent.SetVisible('turnJump', _parent.Direction); } } else { _parent.SetVisible('kick', _parent.Direction); } this._visible = false; this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance jumpShot of movieClip 344 マミジャンプショット { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 40; this._visible = false; this.ShotVec = SGet(0, 0); this.Press = 60; this.JumpPower = 0; this.GapActionCount = 0; this.OldActionNum = 0; this.ActionNum = 0; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ChangeFlag = false; this.ChangeDirection = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ChangeFlag = false; this.ChangeDirection = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { this.Press = 30 + 5 * _parent.LvCount; ++_global.WCharActionCount; _parent.ActionFlag = true; this._rotation = 0; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } this.ActionNum = 1; this.GapActionCount = 0; this.OldActionNum = 0; } if (this.OldActionNum != this.ActionNum) { this.GapActionCount = 0; this.OldActionNum = this.ActionNum; } ++this.GapActionCount; if (this.ActionNum == 0) { goto 4849; } else { if (this.ActionNum == 1) { if (this.GapActionCount == 1) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } var TempA = 0; var TempB = 1000000; var TempC = SGet(0, 0); var TempD = false; var CenPos = SGet(_parent.Pos.x, _parent.Pos.y + _parent.Radius); i = 0; goto 1715; for (;;) { ++i; label 1715: if (i >= WWeaponNum) break; var that; that = WWeaponEval[i]; if (that.ExistFlag && that.ActionNum == 1) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 800)) { var a = that.Pos.x - CenPos.x; var b = that.Pos.y - CenPos.y; TempA = a * a + b * b; if (TempA < TempB) { TempB = TempA; TempC = SEqual(that.Pos); TempD = true; this.JumpPower = TempA * 0.05 + 15; } } } } this.JumpPower = Math.sqrt(TempB) * 0.05 + 15; if (TempD != true) { _parent.Vec = SGet(_parent.Direction * -1 * 10, -10); } else { if (20 < JumpPower) { JumpPower = 20; } if (300 * 300 >= TempB) { var TempJumpVec = ParabolaVec(false, this.JumpPower, _global.WGravity, CenPos, TempC); if (!(TempJumpVec.x == 0 && TempJumpVec.y == 0)) { _parent.Vec = SEqual(TempJumpVec); } else { _parent.Vec = SGet(_parent.Direction * -1 * 15, -10); } } else { _parent.Vec = SGet(_parent.Direction * -1 * 15, -10); } } _parent.StandFlag = false; } if (0 < this.GapActionCount && 4 >= this.GapActionCount) { this.ShotVec = ParabolaVec(false, this.Press, _global.WGravity, _parent.Pos, WTPos); if (this.ShotVec.x == 0 && this.ShotVec.y == 0) { this.ShotVec = SScale(SNorm(SSub(WTPos, _parent.Pos)), this.Press); } if (!this.left._visible) { this.right.shot.fire.arm._rotation = Math.atan2(this.ShotVec.y, this.ShotVec.x) * -1 * 57.29577951 + 180; } else { this.left.shot.fire.arm._rotation = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951; } } if (2 < this.GapActionCount && 40 >= Gapthis.ActionCount) { this._rotation += 20; } if (this.GapActionCount == 3) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 3183; for (;;) { ++m; label 3183: if (m >= MaxNum) break; var that = WGetBulletEval(); that.FormatFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 100)); that.Vec = SEqual(this.ShotVec); } var MaxNum = 1; var m = 0; goto 3374; for (;;) { ++m; label 3374: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 2; that.Direction = _parent.Direction; that.ActionCountLimFlag = true; that.ActionCountLim = 20; that._rotation = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951; that.Omega = 0; that.SpinFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 70)); that.Vec = SGet(0, -5); } } if (6 < this.GapActionCount && this.GapActionCount < 24) { i = 0; goto 3780; for (;;) { ++i; label 3780: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(_parent.Pos, that.HitPos, that.HitRadius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 20), SGet(0, -15)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; ++_global.WCharActionHitCount; _parent.se.gotoAndPlay('tap'); } } i = 0; goto 4216; for (;;) { ++i; label 4216: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 20), SGet(0, -15)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (40 < this.GapActionCount) { if (0 >= _parent.RapidShotNum) { this.ActionCount = this.ActionTime + 1; } else { this.GapActionCount = 0; } } if (_parent.StandFlag && 8 < this.GapActionCount) { if (0 >= _parent.RapidShotNum) { this.ActionCount = this.ActionTime + 1; } else { this.GapActionCount = 0; } } } else {} } label 4849: this.ActionNum; if (0 >= MWheel) { if (MWheel < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; } } else { this.ChangeFlag = true; this.ChangeDirection = 1; } if (6 < this.GapActionCount && this.ChangeFlag == true) { _parent.Direction = this.ChangeDirection; _parent.SetVisible('rolling', _parent.Direction); this._visible = false; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; } if (this.ActionTime < this.GapActionCount || _parent.StandFlag == true && 8 < this.GapActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ChangeFlag = false; this.ChangeDirection = 0; } } } } instance dashShot of movieClip 448 ダッシュショット { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 9; this._visible = false; this.ShotVec = SGet(0, 0); this.AttackPower = 25; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 3; this.Press = 60; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { this.AttackPower = 25 + _parent.LvCount * 15; _parent.ActionFlag = true; this._rotation = 0; this.Press = 30 + 5 * _parent.LvCount; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.ShotVec = ParabolaVec(false, this.Press, _global.WGravity, _parent.Pos, WTPos); if (this.ShotVec.x == 0 && this.ShotVec.y == 0) { this.ShotVec = SScale(SNorm(SSub(WTPos, _parent.Pos)), this.Press); } } if (0 < this.ActionCount && 4 >= this.ActionCount) { } if (!(this.ActionCount == 7 || this.ActionCount == 9 || this.ActionCount == 5)) { _parent.Vec.x = 0; _parent.Vec.y = 0; } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 10; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 10; } if (this.ActionCount == 1 || this.ActionCount == 5) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); i = 0; goto 1945; for (;;) { ++i; label 1945: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 120)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 15), SGet(0, -10)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 2375; for (;;) { ++i; label 2375: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + _parent.Radius)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 15), SGet(0, -10)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (this.ActionCount == 8) { --_parent.RapidShotNum; this.ShotVec = ParabolaVec(false, this.Press, _global.WGravity, _parent.Pos, WTPos); var MaxNum = 1; var m = 0; goto 2932; for (;;) { ++m; label 2932: if (m >= MaxNum) break; var that = WGetBulletEval(); that.FormatFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 100)); that.Vec = SEqual(this.ShotVec); } } if (this.ActionCount == 10) { this.ShotVec = ParabolaVec(false, this.Press, _global.WGravity, _parent.Pos, WTPos); var MaxNum = 1; var m = 0; goto 3214; for (;;) { ++m; label 3214: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 2; that.Direction = _parent.Direction; that.ActionCountLimFlag = true; that.ActionCountLim = 20; that._rotation = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951; that.Omega = 0; that.SpinFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 70)); that.Vec = SGet(_parent.Direction * 5, -5); } } if (0 < MWheel) { this.ChangeDirection = 1; this.ChangeType = 1; } if (MWheel < 0) { this.ChangeDirection = -1; this.ChangeType = 1; } if (1 < this.ActionCount && MLeftUp && 0 < _parent.RapidShotNum) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 4; } if (1 < this.ActionCount && MMiddleUp && 0 < _parent.RapidShotNum) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 5; } if (1 < this.ActionCount && this.ChangeFlag == true && this.ChangeType >= 2) { if (this.ChangeType != 2) { if (this.ChangeType != 3) { if (this.ChangeType != 4) { if (this.ChangeType == 5) { _parent.SetVisible('swing', _parent.Direction); } } else { if (_parent.RapidShotNum < 2) { if (_parent.RapidShotNum < 1) { _parent.SetVisible('slap', _parent.Direction); } else { _parent.SetVisible('jumpShot', _parent.Direction); } } else { _parent.SetVisible('doubleShot', _parent.Direction); } } } else { _parent.SetVisible('turnJump', _parent.Direction); } } else { if (_parent.RapidShotNum < 2) { _parent.SetVisible('kick', _parent.Direction); } else { _parent.SetVisible('doubleTwist', _parent.Direction); _parent.doubleTwist.ActionRepeat = 1; _parent.doubleTwist.ReleaseFlag = false; } } this._visible = false; this.ActionCount = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); if (this.ChangeType == 1) { if (0 < _parent.Direction && this.ChangeDirection < 0) { _parent.Direction = this.ChangeDirection; _parent.DashGauge *= -1; } if (_parent.Direction < 0 && 0 < this.ChangeDirection) { _parent.Direction = this.ChangeDirection; _parent.DashGauge *= -1; } } if (_parent.DashGauge == 0) { _parent.ActionFinishFlag = true; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } } else { _parent.DashStopFlag = false; _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 20; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 20; _parent.SetVisible('dash', _parent.Direction); } } } } } instance backDraw of movieClip 542 バックドロー { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 105; this._visible = false; this.WeaponCount = 0; this.Press = 60; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.WeaponCount = 0; this.ActionCount = 0; _parent.LeftUpActionCount = 1; } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this._rotation = 0; this.Press = 30 + 5 * _parent.LvCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } this.WeaponCount = 0; } if (MLeftUp && this.ActionCount < 50) { this.ActionCount = 100; } if (this.ActionCount < 50) { if (0 < _parent.RapidShotNum) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 933; for (;;) { ++m; label 933: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 1; that.Direction = _parent.Direction * -1; that.FormatAppFlag = true; if (!_parent.StandFlag) { var TempNormVec = SGet(_parent.Direction * -1, 0); that.Pos = SAdd(_parent.Pos, SScale(TempNormVec, 12 * (2 + this.WeaponCount))); that.Vec = SGet(0, 0); that._rotation = 90; } else { var TempNormVec = SScale(_parent.HorizonVec, _parent.Direction * -1); that.Pos = SAdd(_parent.Pos, SScale(TempNormVec, 12 * (2 + this.WeaponCount))); that.Vec = SGet(0, 0); that._rotation = 90; } ++this.WeaponCount; that.Omega = 0; that.SpinFlag = true; } } } if (this.ActionCount == 49) { this.ActionCount = 48; } if (this.ActionCount == 100) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } if (!_parent.StandFlag) { _parent.Vec.x = _parent.Direction * -2; _parent.Vec.y = 0; } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * -2; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * -2; } } if (this.ActionCount == 105) { this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); _parent.SetVisible('quickDraw', _parent.Direction); this.ActionCount = 0; _parent.ActionFlag = false; this.WeaponCount = 0; } if (this.ActionCount % 4 == 3 && this.ActionCount < 40) { var MaxNum = 1; var m = 0; goto 2049; for (;;) { ++m; label 2049: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 1; that.Direction = _parent.Direction * -1; that.FormatAppFlag = true; if (!_parent.StandFlag) { var TempNormVec = SGet(_parent.Direction * -1, 0); that.Pos = SAdd(_parent.Pos, SScale(TempNormVec, 12 * (2 + this.WeaponCount))); that.Vec = SGet(0, 0); that._rotation = 90; } else { var TempNormVec = SScale(_parent.HorizonVec, _parent.Direction * -1); that.Pos = SAdd(_parent.Pos, SScale(TempNormVec, 12 * (2 + this.WeaponCount))); that.Vec = SGet(0, 0); that._rotation = 90; } ++this.WeaponCount; that.Omega = 0; that.SpinFlag = true; } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; _parent.LeftUpActionCount = 1; this.WeaponCount = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance multiDraw of movieClip 282 マルチドロー { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 24; this._visible = false; this.WeaponNum = 0; this.Press = 60; this.Radius = 0; this.Rot = 0; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.TempTarPos = new Array(WWeaponNum + 1); this.TempTarDis = new Array(WWeaponNum + 1); this.TempTarNum = 0; } onClipEvent (unload) { delete this.TempTarPos; delete this.TempTarDis; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { if (20 >= this.ActionCount) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); i = 0; goto 1260; for (;;) { ++i; label 1260: if (i >= WWeaponNum) break; var that; that = WWeaponEval[i]; if (that.ExistFlag && that.AutoFlag && that.ShotFlag == false) { that.FormatFlag = true; that.FormatType = 4; that.FormatAppFlag = false; that.RoundRadius = SSize(SSub(that.Pos, CenPos)); } } } this.ActionCount = 0; _parent.LeftUpActionCount = 1; this.left.action1.arm._visible = false; this.right.action1.arm._visible = false; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this._rotation = 0; ++_global.WCharActionCount; this.Radius = 15; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } this.Rot = 0; this.left.action1.arm._visible = false; this.right.action1.arm._visible = false; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } } if (_parent.StandFlag == false && 20 >= this.ActionCount) { _parent.Vec = SScale(SNorm(_parent.Vec), 4); _parent.Vec = SAdd(SScale(SNorm(SSub(WMPos, _parent.Pos)), 12), _parent.Vec); } if (this.ChangeType != 6) { if (10 >= this.ActionCount) { this.Radius += this.WeaponNum * 3; } if (10 < this.ActionCount && 20 >= this.ActionCount) { this.Radius -= this.WeaponNum * 3; } } else { this.Radius -= this.WeaponNum * 6; if (0 >= this.Radius) { this.Radius = 0; this.ChangeFlag = true; } } if (this.ActionCount == 1) { this.left.action1.arm._visible = true; this.right.action1.arm._visible = true; } if (1 < this.ActionCount && this.ActionCount < 20) { if (!this.left._visible) { this.right.action1.arm._xscale = (this.Radius + 100) / 1.28; this.right.action1.arm._yscale = (this.Radius + 100) / 1.28; this.Rot += 20; this.right.action1.arm._rotation = this.Rot; } else { this.left.action1.arm._xscale = (this.Radius + 100) / 1.28; this.left.action1.arm._yscale = (this.Radius + 100) / 1.28; this.Rot += 20; this.left.action1.arm._rotation = this.Rot; } } if (this.ActionCount == 20) { this.left.action1.arm._visible = false; this.right.action1.arm._visible = false; } if (this.ActionCount == 1) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); var MaxNum = this.WeaponNum; var m = 0; goto 3242; for (;;) { ++m; label 3242: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 3; that.Direction = _parent.Direction; that.ActionCountLimFlag = false; that.FormatAppFlag = true; var TempAtan = (3.141592 * 2 / this.WeaponNum) * m; var TempNormVec = SGet(Math.cos(TempAtan), Math.sin(TempAtan)); that.Pos = SAdd(CenPos, SScale(TempNormVec, this.Radius)); that.Vec = SGet(0, 0); that._rotation = Math.atan2(that.Pos.y - CenPos.y, that.Pos.x - CenPos.x) * 57.29577951; that.AutoFlag = true; that.AutoCountLim = 1000; that.AutoRotationFlag = false; that.Omega = 0; that.SpinFlag = false; } } if (20 >= this.ActionCount) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); i = 0; goto 3836; for (;;) { ++i; label 3836: if (i >= WWeaponNum) break; var that; that = WWeaponEval[i]; if (that.ExistFlag == true && that.ShotFlag == false) { if (Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 30 + this.Radius)) { if (that.ActionNum != 3) { that.FormatFlag = true; that.FormatType = 3; } that.ActionCountLimFlag = false; that.AutoCountLim = 100; that.AutoCount = 0; that.AutoFlag = true; that.Pos = SAdd(that.Pos, SSub(_parent.Pos, _parent.OldPos)); var TempVec = SSub(that.Pos, CenPos); if (_parent.Direction != 1) { TempVec = SSpinSub90(TempVec); } else { TempVec = SSpinAdd90(TempVec); } TempVec = SScale(SNorm(TempVec), 20); that.Pos = SAdd(SScale(SNorm(SSub(SAdd(TempVec, that.Pos), CenPos)), this.Radius), CenPos); that._rotation = Math.atan2(that.Pos.y - CenPos.y, that.Pos.x - CenPos.x) * 57.29577951; } } } } if (this.ActionCount == 21) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } var MaxNum = 0; var that; var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); i = 0; goto 4747; for (;;) { ++i; label 4747: if (i >= WWeaponNum) break; that = WWeaponEval[i]; if (that.ExistFlag && that.ShotFlag == false) { if (Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 30 + this.Radius)) { ++MaxNum; } } } var TempA = 0; this.TempTarNum = 0; var n = 0; goto 4962; for (;;) { ++n; label 4962: if (n >= MaxNum) break; this.TempTarDis[n] = 1000000; this.TempTarPos[n] = SGet(0, 0); } i = 0; goto 5078; for (;;) { ++i; label 5078: if (i >= WWitchHitIndexNum) break; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.Radius + 800)) { var a = that.HitPos.x - WMPos.x; var b = that.HitPos.y - WMPos.y; TempA = a * a + b * b; var n = 0; goto 5298; for (;;) { ++n; label 5298: if (n >= MaxNum) break; if (TempA < TempTarDis[n]) { var m = MaxNum; goto 5366; for (;;) { --m; label 5366: if (n >= m) break; TempTarDis[m + 1] = TempTarDis[m]; TempTarPos[m + 1] = TempTarPos[m]; } TempTarDis[n] = TempA; TempTarPos[n] = SEqual(that.HitPos); ++TempTarNum; } else {} } } } i = 0; goto 5564; for (;;) { ++i; label 5564: if (i >= WMagicHitIndexNum) break; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 800)) { var a = that.Pos.x - WMPos.x; var b = that.Pos.y - WMPos.y; TempA = a * a + b * b; var n = 0; goto 5784; for (;;) { ++n; label 5784: if (n >= MaxNum) break; if (TempA < TempTarDis[n]) { var m = MaxNum; goto 5852; for (;;) { --m; label 5852: if (n >= m) break; TempTarDis[m + 1] = TempTarDis[m]; TempTarPos[m + 1] = TempTarPos[m]; } TempTarDis[n] = TempA; TempTarPos[n] = SEqual(that.Pos); ++TempTarNum; } else {} } } } var m = 0; i = 0; goto 6061; for (;;) { ++i; label 6061: if (i >= WWeaponNum) break; that = WWeaponEval[i]; if (that.ExistFlag && that.ShotFlag == false) { if (Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 30 + this.Radius)) { that.SpinFlag = true; var TempVec = SNorm(SSub(WMPos, CenPos)); that.Pos = SEqual(CenPos); if (m >= TempTarNum) { that.Vec = SEqual(SScale(TempVec, (MaxNum - m) * 4 + 16)); } else { that.Vec = ParabolaVec(false, (MaxNum - m) * 4 + 16, _global.WGravity, CenPos, this.TempTarPos[m]); if (that.Vec.x == 0 && that.Vec.y == 0) { that.Vec = SEqual(SScale(TempVec, (MaxNum - m) * 4 + 16)); } } ++m; that.FormatFlag = true; that.FormatType = 1; that.FormatAppFlag = true; that.Direction = _parent.Direction; that._rotation = 90; that.Omega = _parent.Direction * 37; } } } } if (20 >= this.ActionCount && this.ActionCount % 2 == 0) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); i = 0; goto 6881; for (;;) { ++i; label 6881: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + this.Radius)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 10), SGet(0, -10)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; ++_global.WCharActionHitCount; _parent.se.gotoAndPlay('tap'); } } i = 0; goto 7315; for (;;) { ++i; label 7315: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + this.Radius)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 10), SGet(0, -10)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; ++_global.WCharActionHitCount; _parent.se.gotoAndPlay('tap'); } } } if (this.ChangeType == 6) { if (this.ChangeFlag == true) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); i = 0; goto 7863; for (;;) { ++i; label 7863: if (i >= WWeaponNum) break; var that; that = WWeaponEval[i]; if (that.ExistFlag == true && that.ShotFlag == false) { if (Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 30 + this.Radius)) { that.left.gotoAndPlay('movieStart0'); that.right.gotoAndPlay('movieStart0'); that._visible = false; that.ExistFlag = false; ++_parent.RapidShotNum; } } } this.ActionCount = 0; this._visible = false; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); _parent.SetVisible('turnShot', _parent.Direction); } } else { if (0 >= MWheel) { if (MWheel < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 1; } } else { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 1; } if (MLeftUp) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 2; } if (MMiddleUp) { this.ChangeFlag = 0; this.ChangeDirection = 0; this.ChangeType = 6; } if (MLeftPress && this.ActionCount == this.ActionTime) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 3; _parent.SetVisible('multiCommand', _parent.Direction); this._visible = false; this.ActionCount = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } if (1 < this.ActionCount && this.ActionCount < 20 && this.ChangeFlag == true && this.ChangeType != 6) { if (this.ChangeType != 1) { if (this.ChangeType != 2) { if (this.ChangeType == 3) { _parent.SetVisible('multiCommand', _parent.Direction); } } else { _parent.SetVisible('multiShot', _parent.Direction); _parent.multiShot.Radius = this.Radius; } } else { _parent.Direction = this.ChangeDirection; _parent.multiSatellite.Radius = this.Radius; _parent.SetVisible('multiSatellite', _parent.Direction); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this._visible = false; this.ActionCount = 0; } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance wireJump of movieClip 304 ワイヤージャンプ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 3000; this._visible = false; this.Action2Flag = false; this.Action2Count = 0; this.GapActionCount = 0; this.OldActionNum = 0; this.ActionNum = 0; this.ActionDirection = 0; this.ActionConection = 0; this.BackCount = 0; this.BackCountLim = 20; this.JumpVec = SGet(0, 0); this.HandOffFlag = false; this.HandOffCount = 0; this.Press = 30; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ShotVec = SGet(0, 0); this.WirePos = SGet(0, 0); this.left._rotation = 0; this.right._rotation = 0; this.ReversDirection = 0; this.WireReversFlag = false; this.WireReversSubFlag = false; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ribbon.gotoAndPlay('movieStart2'); this.left._rotation = 0; this.right._rotation = 0; this.HandOffFlag = false; this.HandOffCount = 0; this.GapActionCount = 0; this.OldActionNum = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this._rotation = 0; this.Press = 30 + 5 * _parent.LvCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } this.left._rotation = 0; this.right._rotation = 0; if (_parent.StandFlag) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.ActionNum = 1; this.GapActionCount = 0; this.OldActionNum = 0; this.HandOffFlag = false; this.HandOffCount = 0; this.WireReversSubFlag = false; } if (this.OldActionNum != this.ActionNum) { this.GapActionCount = 0; this.OldActionNum = this.ActionNum; } ++this.GapActionCount; if (this.ActionNum == 0) { goto 7751; } else { if (this.ActionNum == 1) { if (4 >= this.ActionCount) { } if (this.ActionCount == 5) { _parent.StandFlag = false; if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } this.ribbon.gotoAndPlay('movieStart1'); this.ActionNum = 2; } if (MLeftUp) { if (_parent.ChargePoint >= WCpIntervalFirst) { _parent.RapidShotNum += int((_parent.ChargePoint + 1 - WCpIntervalFirst) / WCpIntervalDiffer); } } goto 7751; } else { if (this.ActionNum == 2) { if (0 < _parent.RapidShotNum) { --_parent.RapidShotNum; if (!this.left._visible) { this.right.gotoAndPlay('movieStart3'); } else { this.left.gotoAndPlay('movieStart3'); } this.ActionNum = 3; } if (MWheel != 0) { this.ActionNum = 4; if (!this.left._visible) { this.right.gotoAndPlay('movieStart4'); } else { this.left.gotoAndPlay('movieStart4'); } this.BackCount = 0; this.BackCountLim = 20; this.ActionConection = 10; if (0 >= MWheel) { if (MWheel < 0) { this.ActionDirection = -1; } } else { this.ActionDirection = 1; } } if (MLeftUp) { if (_parent.ChargePoint < WCpIntervalFirst) { ++_parent.RapidShotNum; } else { _parent.RapidShotNum += int((_parent.ChargePoint + 1 - WCpIntervalFirst) / WCpIntervalDiffer); } } if (_parent.StandFlag) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; _parent.Vec.x = 0; _parent.Vec.y = 0; this.left._rotation = 0; this.right._rotation = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ribbon.gotoAndPlay('movieStart2'); } goto 7751; } else { if (this.ActionNum == 3) { if (this.GapActionCount == 1) { ++_parent.RapidShotNum; } if (3 < this.GapActionCount) { this.ShotVec = ParabolaVec(false, this.Press, _global.WGravity, _parent.Pos, WTPos); if (this.ShotVec.x == 0 && this.ShotVec.y == 0) { this.ShotVec = SScale(SNorm(SSub(WTPos, _parent.Pos)), this.Press); } if (!this.left._visible) { this.right.action3.shot.arm._rotation = Math.atan2(this.ShotVec.y, this.ShotVec.x) * -1 * 57.29577951 - this.right._rotation; } else { this.left.action3.shot.arm._rotation = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951 - this.left._rotation; } } if (this.GapActionCount == 5) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 3718; for (;;) { ++m; label 3718: if (m >= MaxNum) break; var that = WGetBulletEval(); that.FormatFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 100)); that.Vec = SEqual(this.ShotVec); } var MaxNum = 1; var m = 0; goto 3909; for (;;) { ++m; label 3909: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 2; that.Direction = _parent.Direction; that.ActionCountLimFlag = true; that.ActionCountLim = 20; that._rotation = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951; that.Omega = 0; that.SpinFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 70)); that.Vec = SGet(0, -5); } } if (this.GapActionCount == 7) { this.ActionNum = 2; if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } } if (MLeftUp) { if (_parent.ChargePoint < WCpIntervalFirst) { } else { _parent.RapidShotNum += int((_parent.ChargePoint + 1 - WCpIntervalFirst) / WCpIntervalDiffer); } } if (_parent.StandFlag) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; _parent.Vec.x = 0; _parent.Vec.y = 0; this.left._rotation = 0; this.right._rotation = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ribbon.gotoAndPlay('movieStart2'); } goto 7751; } else { if (this.ActionNum == 4) { if (this.GapActionCount == 1) { this.WireReversSubFlag = false; } if (!this.WireReversFlag) { if (!this.WireReversSubFlag) { this.ReversDirection = 1; } else { this.ReversDirection = -1; } } else { this.ReversDirection = -1; } if (1 < this.GapActionCount) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); i = 0; goto 4968; for (;;) { ++i; label 4968: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(_parent.Pos, that.HitPos, that.HitRadius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 20), SGet(0, -15)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 5404; for (;;) { ++i; label 5404: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 20), SGet(0, -15)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (0 < this.BackCount) { --this.BackCount; } if (MWheel != 0) { this.ActionConection += 5; if (50 < this.ActionConection) { this.ActionConection = 50; } if (0 >= MWheel) { if (MWheel < 0) { if (0 < this.ActionDirection) { if (!(MControlKeyboard && MControlMouse == false)) { this.BackCount += 5; } else { this.BackCount += 1; } } this.ActionDirection = -1; } } else { if (this.ActionDirection < 0) { if (!(MControlKeyboard && MControlMouse == false)) { this.BackCount += 5; } else { this.BackCount += 1; } } this.ActionDirection = 1; } } if (this.BackCountLim < this.BackCount) { this.BackCount = this.BackCountLim; } --this.ActionConection; if (0 >= this.ActionConection) { this.ActionNum = 2; this.WireReversSubFlag = false; if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } } if (this.ActionDirection != 0) { var TempVec = SSub(_parent.Pos, this.WirePos); var TempSize = SSize(TempVec); if (0 >= this.ActionDirection) { if (this.ActionDirection < 0) { TempVec = SSpinSub90(TempVec); } } else { TempVec = SSpinAdd90(TempVec); } TempVec = SScale(SNorm(TempVec), this.ReversDirection * 40); var TempPos = SAdd(SScale(SNorm(SSub(SAdd(TempVec, _parent.Pos), this.WirePos)), TempSize), this.WirePos); _parent.Vec = SSub(TempPos, _parent.Pos); if (0 < this.BackCount) { _parent.Vec = SAdd(_parent.Vec, SScale(SNorm(SSub(_parent.Pos, this.WirePos)), 10)); } } if (_parent.StandFlag) { this.ActionCount = 0; this._visible = false; _parent.SetVisible('rolling', _parent.Direction); _parent.Vec.x = 0; _parent.Vec.y = 0; this.left._rotation = 0; this.right._rotation = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ribbon.gotoAndPlay('movieStart2'); } if (MLeftUp) { if (_parent.ChargePoint < WCpIntervalFirst) { if (this.WireReversFlag) { this.WireReversFlag = false; this.WireReversSubFlag = true; } if (SSquareSize(SSub(_parent.Pos, this.WirePos)) < SSquareSize(SSub(WMPos, this.WirePos))) { if (!this.WireReversSubFlag) { this.WireReversSubFlag = true; } else { this.WireReversSubFlag = false; } } this.WirePos = SEqual(WMPos); } else { _parent.SetVisible('rolling', _parent.Direction); this.ActionCount = 0; this._visible = false; _parent.Vec.x = 0; _parent.Vec.y = 0; this.GapActionCount = 0; this.OldActionNum = 0; this.left._rotation = 0; this.right._rotation = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ribbon.gotoAndPlay('movieStart2'); } } } else {} } } } } label 7751: this.ActionNum; if (4 < this.ActionCount) { var TempSubVec = SSub(this.WirePos, _parent.Pos); if (!this.left._visible) { this.right._rotation = Math.atan2(TempSubVec.y, TempSubVec.x) * 57.29577951 - 90; } else { this.left._rotation = Math.atan2(TempSubVec.y, TempSubVec.x) * 57.29577951 + 90; } TempVec = SNorm(TempSubVec); this.ribbon.action1._x = TempVec.x * 64; this.ribbon.action1._y = TempVec.y * 64; TempDis = SSize(TempSubVec); this.ribbon.action1._rotation = 0; this.ribbon.action1._width = (TempDis - 64) * 0.78125; this.ribbon.action1._rotation = Math.atan2(TempSubVec.y, TempSubVec.x) * 57.29577951; this.ribbon.action2._x = TempSubVec.x; this.ribbon.action2._y = TempSubVec.y; if (this.ActionNum != 4) { _parent.Vec = SScale(SAdd(SScale(TempVec, TempDis * 0.02), _parent.Vec), 0.96); } } if (MLeftUp) { _parent.ChargePoint = 0; } if ((MMiddlePress || MLeftPress) && _parent.StandFlag == false) { var TempVec = SNorm(SSub(WMPos, _parent.Pos)); _parent.Vec = SAdd(SScale(TempVec, 6), _parent.Vec); } if (MMiddleUp && this.HandOffFlag == false) { TempVec = SNorm(SSub(this.WirePos, _parent.Pos)); TempSize = SSize(SSub(this.WirePos, _parent.Pos)); _parent.Vec.x = TempVec.x * TempSize * 0.05; _parent.Vec.y = TempVec.y * TempSize * 0.05; this.HandOffFlag = true; this.HandOffCount = int(TempSize * 0.025); } if (this.HandOffFlag) { --this.HandOffCount; if (this.HandOffCount < 0) { this.HandOffFlag = false; this.HandOffCount = 0; _parent.SetVisible('jump', _parent.Direction); this.ActionCount = 0; this._visible = false; this.GapActionCount = 0; this.OldActionNum = 0; this.left._rotation = 0; this.right._rotation = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ribbon.gotoAndPlay('movieStart2'); } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; _parent.Vec.x = 0; _parent.Vec.y = 0; this.GapActionCount = 0; this.OldActionNum = 0; this.HandOffFlag = false; this.HandOffCount = 0; this.left._rotation = 0; this.right._rotation = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ribbon.gotoAndPlay('movieStart2'); } } } } instance sliding of movieClip 520 スライディング { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 60; this._visible = false; this.Action2Flag = false; this.JumpVec = SGet(0, 0); this.Press = 15; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this._rotation = 0; this.Action2Flag = false; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { ++_global.WCharActionCount; _parent.ActionFlag = true; this._rotation = 0; this.AttackPower = 40 + _parent.LvCount * 20; if (!_parent.StandFlag) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } this.JumpVec = SGet(_parent.Direction * 5, -10); _parent.Vec = this.JumpVec; this.Action2Flag = false; } else { this.se.gotoAndPlay('movieStart1'); if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } this.ActionCount = 31; this.Action2Flag = true; this.JumpVec = SScale(_parent.HorizonVec, _parent.Direction * 20); _parent.Vec = this.JumpVec; this.MoveVecScale = 30; } } if (this.Action2Flag == false) { if (this.ActionCount >= 1 && 3 >= this.ActionCount) { this._rotation += 24 * _parent.Direction; } if (this.ActionCount >= 58 && 60 >= this.ActionCount) { this._rotation -= 24 * _parent.Direction; } } if (this.Action2Flag == true && 54 >= this.ActionCount) { this.MoveVecScale *= 0.9300000000000001; if (_parent.StandFlag == true) { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * this.MoveVecScale; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * this.MoveVecScale; } this._rotation = Math.atan2(_parent.HorizonVec.y, _parent.HorizonVec.x) * 57.29577951; var CenPos = SGet(_parent.Pos.x + _parent.Radius * 0.5 * _parent.Direction, _parent.Pos.y + _parent.Radius * 0.5); i = 0; goto 2280; for (;;) { ++i; label 2280: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(_parent.Pos, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SGet(0, -18); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 2649; for (;;) { ++i; label 2649: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(_parent.Pos, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SGet(0, -18); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 3018; for (;;) { ++i; label 3018: if (i >= WWeaponHitIndexNum) break; var that; that = WWeaponEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { var JumpVec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (!(JumpVec.y == 0 && JumpVec.x == 0)) { if (SDot(JumpVec, SSub(that.Pos, _parent.Pos)) < 0) { JumpVec = ParabolaVec(true, 30, _global.WGravity, that.Pos, WTPos); } if (!(JumpVec.y == 0 && JumpVec.x == 0)) { if (that.StandFlag) { if (0 < SCross(that.HorizonVec, JumpVec)) { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } } } else { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } } else { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37 * _parent.Direction; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('tap'); } } } if (57 >= this.ActionCount && this.Action2Flag == false) { if (this.ActionCount % 2 == 0) { var TempFlag = false; var CenPos = SGet(_parent.Pos.x, _parent.Pos.y + _parent.Radius); i = 0; goto 3966; for (;;) { ++i; label 3966: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + 35)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 20), SGet(10 * _parent.Direction, 10)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); TempFlag = true; ++_global.WCharActionHitCount; } } if (1) { var that; that = WPartnerEval; if (that.ShoulderFlag == false) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; that.Vec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (that.Vec.x == 0 && that.Vec.y == 0) { that.Vec = SScale(SNorm(SSub(WTPos, that.Pos)), 20); } that.SetVisible('rolling', that.Direction); _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } i = 0; goto 4836; for (;;) { ++i; label 4836: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 120)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 20), SGet(10 * _parent.Direction, 10)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('hit'); TempFlag = true; ++_global.WCharActionHitCount; } } i = 0; goto 5287; for (;;) { ++i; label 5287: if (i >= WWeaponHitIndexNum) break; var that; that = WWeaponEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { if (!_global.TAimFlag) { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, _parent.Pos); } else { var JumpVec = ParabolaVec(false, 25, _global.WGravity, that.Pos, WTPos); if (JumpVec.y == 0 && JumpVec.x == 0) { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, _parent.Pos); } } that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37 * _parent.Direction; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('hit'); } } if (TempFlag == true) { var TempVec = SNorm(SSub(MPos, SGet(_parent._x, _parent._y))); _parent.Vec = SGet(TempVec.x * 10, -15); _parent.StandFlag = false; } } } if (_parent.StandFlag == true && 57 >= this.ActionCount && this.Action2Flag == false) { var TempVec = SNorm(SSub(MPos, SGet(_parent._x, _parent._y))); _parent.Vec = SGet(TempVec.x * 15, -10); _parent.StandFlag = false; } if (0 < MWheel) { this.ChangeDirection = 1; this.ChangeType = 1; } if (MWheel < 0) { this.ChangeDirection = -1; this.ChangeType = 1; } if (this.ChangeDirection < 0 && 0 < _parent.Direction) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 2; } if (0 < this.ChangeDirection && _parent.Direction < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 2; } if (1 < this.ActionCount && MLeftUp && _parent.StandFlag) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 3; } if (1 < this.ActionCount && MLeftUp && _parent.StandFlag == false) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 4; } if (MMiddleUp && 1 < this.ActionCount && _parent.StandFlag == false) { this.ChangeFlag = true; this.ChangeType = 2; } if (6 < this.ActionCount && this.ChangeFlag == true && this.ChangeType >= 2) { if (this.ChangeType != 2) { if (this.ChangeType != 3) { if (this.ChangeType == 4) { _parent.SetVisible('stepTurn', _parent.Direction); } } else { _parent.SetVisible('roundTripSlap', _parent.Direction); } } else { _parent.SetVisible('turnJump', _parent.Direction); } this._visible = false; this.ActionCount = 0; if (this.Action2Flag == true) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.Action2Flag = false; this._rotation = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this._rotation = 0; if (this.Action2Flag == true) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.Action2Flag = false; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance multiSatellite of movieClip 1166 マルチサテライト { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 5; this._visible = false; this.WeaponNum = 0; this.Press = 60; this.Radius = 15; this.Rot = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; _parent.LeftUpActionCount = 1; this.left.action1.arm._visible = false; this.right.action1.arm._visible = false; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this.Press = 30 + 5 * _parent.LvCount; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } } if (ActionCount == 1) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); i = 0; goto 858; for (;;) { ++i; label 858: if (i >= WWeaponNum) break; var that; that = WWeaponEval[i]; if (that.ExistFlag == true && that.ShotFlag == false) { if (Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 30 + this.Radius)) { that.FormatFlag = true; that.FormatType = 4; that.FormatAppFlag = false; that.RoundRadius = this.Radius; } } } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; _parent.LeftUpActionCount = 1; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance multiShot of movieClip 1168 マルチショット { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 10; this._visible = false; this.WeaponNum = 0; this.Press = 60; this.Radius = 15; this.Rot = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; _parent.LeftUpActionCount = 1; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this.Press = 30 + 5 * _parent.LvCount; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); i = 0; goto 940; for (;;) { ++i; label 940: if (i >= WWeaponNum) break; var that; that = WWeaponEval[i]; if (that.StandFlag == false && that.ExistFlag == true && that.ShotFlag == false) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 15 + this.Radius)) { if (that.ActionNum != 3) { that.FormatFlag = true; that.FormatType = 3; that.ActionCountLimFlag = false; } that.AutoFlag = true; that.AutoCountLim = 7; that.AutoRotationFlag = false; that.AutoInputVec = SGet(0, 0); that.Vec = SGet(0, 0); } } } } if (6 >= this.ActionCount) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); var TarPos = SAdd(CenPos, SSub(CenPos, WMPos)); i = 0; goto 1471; for (;;) { ++i; label 1471: if (i >= WWeaponNum) break; var that; that = WWeaponEval[i]; if (that.ExistFlag == true && that.ShotFlag == false && that.AutoFlag) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 15 + this.Radius)) { var TempVec = SSearchVec(that.Pos, TarPos); var TempAtan = Math.atan2(TempVec.y, TempVec.x) * 57.29577951; var Si = _global.Sight_360(179.9, that._rotation - 180, TempAtan); var Roll = 30; if (0 != Si) { if (0 == _global.Sight_360(Roll, that._rotation - 180, TempAtan)) { that._rotation += Si * Roll; } else { that._rotation = TempAtan + 180; } } } } } } if (MLeftUp) { } if (this.ActionCount == 7) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; _parent.LeftUpActionCount = 1; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance multiCommand of movieClip 1164 マルチコマンド { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 15; this._visible = false; this.WeaponNum = 0; this.Press = 60; this.Radius = 15; this.Rot = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; _parent.LeftUpActionCount = 1; this.left.action1.arm._visible = false; this.right.action1.arm._visible = false; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this.Press = 30 + 5 * _parent.LvCount; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } } if (this.ActionTime == 5) { this.ActionTime = 4; } if (MLeftUp) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); i = 0; goto 954; for (;;) { ++i; label 954: if (i >= WWeaponNum) break; var that; that = WWeaponEval[i]; if (that.StandFlag == false && that.ExistFlag == true && that.ShotFlag == false) { if (that.ActionNum != 3) { that.FormatFlag = true; that.FormatType = 3; that.ActionCountLimFlag = false; } that.AutoFlag = true; that.AutoCountLim = 40; that.AutoRotationFlag = true; that.Vec = SGet(0, 0); } } this.ActionTime = 10; if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; _parent.LeftUpActionCount = 1; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance swing of movieClip 1876 スイング { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 600; this._visible = false; this.JumpVec = SGet(0, 0); this.ShotVec = SGet(0, 0); this.Press = 25; this.GapActionCount = 0; this.OldActionNum = 0; this.ActionNum = 0; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.AimPos = SGet(0, 0); this.GoalPos = SGet(0, 0); this.LogWeight = 1; this.NowWeight = 3; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; _parent.Weight = this.LogWeight; this.ActionNum = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this.Press = 45; ++_global.WCharActionCount; this.LogWeight = _parent.Weight; this.left.gotoAndPlay('movieStart1'); this.right.gotoAndPlay('movieStart1'); this.AttackPower = 25 + _parent.LvCount * 25; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ActionNum = 1; this.GapActionCount = 0; this.OldActionNum = 0; } if (this.OldActionNum != this.ActionNum) { this.GapActionCount = 0; this.OldActionNum = this.ActionNum; } ++this.GapActionCount; if (_parent.StandFlag) { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 10; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 10; } if (this.ActionNum == 0) { goto 7861; } else { if (this.ActionNum == 1) { if (this.GapActionCount == 1) { if (!_parent.StandFlag) { this.se.gotoAndPlay('movieStart2'); } else { this.se.gotoAndPlay('movieStart1'); } _parent.Weight = this.NowWeight; this.AimPos = SEqual(WTPos); if (_parent.Pos.x >= this.AimPos.x) { _parent.Direction = -1; } else { _parent.Direction = 1; } _parent.SetVisible('swing', _parent.Direction); this.GoalPos = SGet(this.AimPos.x - _parent.Radius * _parent.Direction, this.AimPos.y); _parent.Vec = ParabolaVec(true, this.Press, _global.WGravity * _parent.Weight, _parent.Pos, this.GoalPos); if (_parent.Vec.x == 0 && _parent.Vec.y == 0) { _parent.Vec = SScale(SNorm(SSub(this.GoalPos, _parent.Pos)), this.Press); } _parent.StandFlag = false; this.CountLim = int((this.GoalPos.x - _parent.Pos.x) / _parent.Vec.x); this.Count = 0; } ++this.Count; if (this.CountLim < this.Count) { this.left.gotoAndPlay('movieStart2'); this.right.gotoAndPlay('movieStart2'); this.ActionNum = 2; } if (MMiddleUp && this.GapActionCount < 40) { this.left.gotoAndPlay('movieStart3'); this.right.gotoAndPlay('movieStart3'); this.ActionNum = 3; } if (this.GapActionCount == 40) { this.ActionCount = this.ActionTime + 1; } goto 7861; } else { if (this.ActionNum == 2) { if (this.GapActionCount == 1) { _parent.Weight = this.LogWeight; var TempHitFlag = false; var CenPos = SGet(_parent.Pos.x + _parent.Direction * _parent.Radius, _parent.Pos.y); i = 0; goto 2923; for (;;) { ++i; label 2923: if (i >= WWeaponHitIndexNum) break; var that; that = WWeaponEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { var JumpVec = SGet(_parent.Direction * 10, 5); that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37 * _parent.Direction; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('swordHit'); TempHitFlag = true; } } i = 0; goto 3260; for (;;) { ++i; label 3260: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 120)) { this.AttackReactionVec = SGet(_parent.Direction * 10, 5); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('swordHit'); ++_global.WCharActionHitCount; TempHitFlag = true; } } i = 0; goto 3647; for (;;) { ++i; label 3647: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + _parent.Radius)) { this.AttackReactionVec = SGet(_parent.Direction * 10, 5); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('swordHit'); ++_global.WCharActionHitCount; TempHitFlag = true; } } if (!TempHitFlag) { _parent.Vec = SGet(_parent.Direction * 10, -15); _parent.StandFlag = false; } else { _parent.Vec = SGet(_parent.Direction * -1 * 10, -15); _parent.StandFlag = false; } } if (this.GapActionCount == 4) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 4242; for (;;) { ++m; label 4242: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 1; that.FormatAppFlag = false; that.Direction = _parent.Direction; that._rotation = 0; that.Omega = 37 * _parent.Direction; that.SpinFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SGet(0, 1), 70)); that.Vec = SGet(-10 * _parent.Direction, -5); } } if (MMiddleUp && this.GapActionCount < 20 && 5 < this.GapActionCount && 0 < _parent.RapidShotNum) { this.left.gotoAndPlay('movieStart3'); this.right.gotoAndPlay('movieStart3'); this.ActionNum = 3; } if (MMiddleUp && 0 >= _parent.RapidShotNum) { this.ActionCount = this.ActionTime + 1; } if (this.GapActionCount == 20) { this.ActionCount = this.ActionTime + 1; } goto 7861; } else { if (this.ActionNum == 3) { if (this.GapActionCount == 1) { if (!_parent.StandFlag) { this.se.gotoAndPlay('movieStart2'); } else { this.se.gotoAndPlay('movieStart1'); } _parent.Weight = this.NowWeight; this.AimPos = SEqual(WTPos); if (_parent.Pos.x >= this.AimPos.x) { _parent.Direction = -1; } else { _parent.Direction = 1; } _parent.SetVisible('swing', _parent.Direction); this.GoalPos = SGet(this.AimPos.x - _parent.Radius * _parent.Direction, this.AimPos.y); _parent.Vec = ParabolaVec(false, this.Press, _global.WGravity * _parent.Weight, _parent.Pos, this.GoalPos); if (_parent.Vec.x == 0 && _parent.Vec.y == 0) { _parent.Vec = SScale(SNorm(SSub(this.GoalPos, _parent.Pos)), this.Press); } _parent.StandFlag = false; this.CountLim = int((this.GoalPos.x - _parent.Pos.x) / _parent.Vec.x); this.Count = 0; } ++this.Count; if (this.CountLim < this.Count) { this.left.gotoAndPlay('movieStart4'); this.right.gotoAndPlay('movieStart4'); this.ActionNum = 4; } if (MMiddleUp && this.GapActionCount < 40) { this.left.gotoAndPlay('movieStart3'); this.right.gotoAndPlay('movieStart3'); this.ActionNum = 3; } if (this.GapActionCount == 40) { this.ActionCount = this.ActionTime + 1; } goto 7861; } else { if (this.ActionNum == 4) { if (this.GapActionCount == 1) { _parent.Weight = this.LogWeight; var TempHitFlag = false; var CenPos = SGet(_parent.Pos.x + _parent.Direction * _parent.Radius, _parent.Pos.y); i = 0; goto 5970; for (;;) { ++i; label 5970: if (i >= WWeaponHitIndexNum) break; var that; that = WWeaponEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { var JumpVec = SGet(_parent.Direction * 10, 5); that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37 * _parent.Direction; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('swordHit'); TempHitFlag = true; } } i = 0; goto 6307; for (;;) { ++i; label 6307: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 120)) { this.AttackReactionVec = SGet(_parent.Direction * 10, 5); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('swordHit'); ++_global.WCharActionHitCount; TempHitFlag = true; } } i = 0; goto 6694; for (;;) { ++i; label 6694: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + _parent.Radius)) { this.AttackReactionVec = SGet(_parent.Direction * 10, 5); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('swordHit'); ++_global.WCharActionHitCount; TempHitFlag = true; } } if (!TempHitFlag) { _parent.Vec = SGet(_parent.Direction * 10, -15); _parent.StandFlag = false; } else { _parent.Vec = SGet(_parent.Direction * -1 * 10, -15); _parent.StandFlag = false; } } if (this.GapActionCount == 4) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 7289; for (;;) { ++m; label 7289: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 1; that.FormatAppFlag = false; that.Direction = _parent.Direction; that._rotation = 0; that.SpinFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SGet(0, -1), 70)); that.Omega = -37 * _parent.Direction; that.Vec = SGet(-5 * _parent.Direction, 10); } } if (MMiddleUp && this.GapActionCount < 20 && 5 < this.GapActionCount && 0 < _parent.RapidShotNum) { this.left.gotoAndPlay('movieStart1'); this.right.gotoAndPlay('movieStart1'); this.ActionNum = 1; } if (MMiddleUp && 0 >= _parent.RapidShotNum) { this.ActionCount = this.ActionTime + 1; } if (this.GapActionCount == 20) { this.ActionCount = this.ActionTime + 1; } } else {} } } } } label 7861: this.ActionNum; if (0 < MWheel) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 1; } if (MWheel < 0) { this.ChangeDirection = -1; this.ChangeType = 1; this.ChangeFlag = true; } if (1 < this.ActionCount && MLeftUp && 0 < _parent.RapidShotNum) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 4; } if (1 < this.ActionCount && this.ChangeFlag == true && this.ChangeType >= 1) { if (this.ChangeType != 1) { if (this.ChangeType == 4) { if (_parent.RapidShotNum < 2) { if (_parent.RapidShotNum < 1) { _parent.SetVisible('slap', _parent.Direction); } else { _parent.SetVisible('jumpShot', _parent.Direction); } } else { _parent.SetVisible('doubleShot', _parent.Direction); } } } else { _parent.Direction = this.ChangeDirection; _parent.SetVisible('rolling', _parent.Direction); } this._visible = false; this.ActionCount = 0; this.ActionNum = 0; _parent.Weight = this.LogWeight; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; _parent.Weight = this.LogWeight; this.ActionNum = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance turnJump of movieClip 1234 ターンジャンプ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 8; this._visible = false; this.JumpVec = SGet(0, 0); this.Press = 15; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } var TempVec = SScale(SNorm(SSub(WMPos, _parent.Pos)), 10); this.JumpVec = SGet(TempVec.x, -10); _parent.Vec = this.JumpVec; _parent.StandFlag = false; } if (2 < this.ActionCount && 6 >= this.ActionCount) { var TempScr = (this.ActionCount - 2 - 2) / 2; var TempAddPos = SGet(_parent.Radius * -1 * _parent.Direction * TempScr, _parent.Radius * -1 * TempScr); var CenPos = SAdd(SGet(_parent.Pos.x, _parent.Pos.y), TempAddPos); i = 0; goto 1404; for (;;) { ++i; label 1404: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(_parent.Pos, that.HitPos, that.HitRadius + 50)) { this.AttackReactionVec = SGet(0, -15); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('hit'); ++_global.WCharActionHitCount; } } if (1) { var that; that = WPartnerEval; if (that.ShoulderFlag == false) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; that.Vec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (that.Vec.x == 0 && that.Vec.y == 0) { that.Vec = SScale(SNorm(SSub(WTPos, that.Pos)), 20); } that.SetVisible('rolling', that.Direction); _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } i = 0; goto 2192; for (;;) { ++i; label 2192: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SGet(0, -15); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('hit'); ++_global.WCharActionHitCount; } } } if (0 < MWheel) { this.ChangeDirection = 1; this.ChangeType = 1; } if (MWheel < 0) { this.ChangeDirection = -1; this.ChangeType = 1; } if (this.ChangeFlag == true && this.ChangeType == 2) { if (this.ChangeType == 1) { _parent.Direction = this.ChangeDirection; _parent.SetVisible('rolling', _parent.Direction); } this._visible = false; this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } } } } instance stepTurn of movieClip 1744 ターン { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 8; this._visible = false; this.AttackPower = 30 + _parent.LvCount * 10; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 5; this.AttackInvincibleCount = 3; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; ++_global.WCharActionCount; this.AttackPower = 30 + _parent.LvCount * 10; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 5; this.AttackInvincibleCount = 3; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } } if (!_parent.StandFlag) { } else { var TempDot = SDot(_parent.HorizonVec, SNorm(SSub(WMPos, _parent.Pos))); _parent.Vec.x = _parent.HorizonVec.x * TempDot * 20; _parent.Vec.y = _parent.HorizonVec.y * TempDot * 20; } if (this.ActionCount % 2 == 1) { var CenPos = SGet(_parent.Pos.x + _parent.Direction * _parent.Radius, _parent.Pos.y); if (_global.TAimFlag) { i = 0; goto 1663; for (;;) { ++i; label 1663: if (i >= WWeaponHitIndexNum) break; var that; that = WWeaponEvalHitIndex[i]; if (!_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, _parent.Pos); } else { var JumpVec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (!(JumpVec.y == 0 && JumpVec.x == 0)) { if (SDot(JumpVec, SSub(that.Pos, _parent.Pos)) < 0) { JumpVec = ParabolaVec(true, 30, _global.WGravity, that.Pos, WTPos); } if (!(JumpVec.y == 0 && JumpVec.x == 0)) { if (that.StandFlag) { if (0 < SCross(that.HorizonVec, JumpVec)) { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } } } else { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } } else { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } } that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37 * _parent.Direction; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('tap'); } } if (1) { var that; that = WPartnerEval; if (that.ShoulderFlag == false) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius * 0.75)) { that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; that.Vec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (that.Vec.x == 0 && that.Vec.y == 0) { that.Vec = SScale(SNorm(SSub(WTPos, that.Pos)), 20); } that.SetVisible('rolling', that.Direction); _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } i = 0; goto 2950; for (;;) { ++i; label 2950: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius * 0.75)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 10), SGet(0, -5)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 3397; for (;;) { ++i; label 3397: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + _parent.Radius * 0.75)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 10), SGet(0, -5)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (0 < MWheel) { this.ChangeDirection = 1; this.ChangeType = 1; } if (MWheel < 0) { this.ChangeDirection = -1; this.ChangeType = 1; } if (this.ChangeDirection < 0 && _parent.Direction < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 2; } if (0 < this.ChangeDirection && 0 < _parent.Direction) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 2; } if (0 < this.ChangeDirection && _parent.Direction < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 3; } if (this.ChangeDirection < 0 && 0 < _parent.Direction) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 3; } if (0 < _parent.RapidShotNum && this.ActionCount == 8) { if (this.ChangeType != 4) { _parent.SetVisible('turnShot', _parent.Direction); } else { _parent.SetVisible('stepTurn', _parent.Direction); } this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (this.ChangeFlag == true && this.ChangeType >= 2 && this.ActionCount == 8 && _parent.RapidShotNum == 0) { if (this.ChangeType != 2) { if (this.ChangeType != 3) { if (this.ChangeType == 4) { _parent.SetVisible('stepTurn', _parent.Direction); } } else { _parent.SetVisible('turnJump', _parent.Direction); } } else { _parent.SetVisible('rolling', _parent.Direction); } this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance turnShot of movieClip 1750 ターンショット { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 600; this._visible = false; this.JumpVec = SGet(0, 0); this.ShotVec = SGet(0, 0); this.Press = 40; this.GapActionCount = 0; this.OldActionNum = 0; this.ActionNum = 0; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.ActionNum = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this.Press = 30 + 5 * _parent.LvCount; ++_global.WCharActionCount; this.ShotVec = SGet(0, 0); this.AttackPower = 15 + _parent.LvCount * 5; this.ActionNum = 1; this.GapActionCount = 0; this.OldActionNum = 0; } if (this.OldActionNum != this.ActionNum) { this.GapActionCount = 0; this.OldActionNum = this.ActionNum; } ++this.GapActionCount; this.ShotVec = ParabolaVec(false, this.Press, _global.WGravity, _parent.Pos, WTPos); if (this.ShotVec.x == 0 && this.ShotVec.y == 0) { this.ShotVec = SScale(SNorm(SSub(WTPos, _parent.Pos)), this.Press); } if (this.ActionNum == 0) { goto 8311; } else { if (this.ActionNum == 1) { if (this.GapActionCount == 1) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } } if (!this.left._visible) { var TempAtan = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951; this.right.action1.armRightFront._rotation = TempAtan; this.right.action1.armRightBack._rotation = TempAtan; this.right.action1.armLeftFront._rotation = TempAtan; this.right.action1.armLeftBack._rotation = TempAtan; } else { var TempAtan = Math.atan2(this.ShotVec.y, this.ShotVec.x) * -1 * 57.29577951 + 180; this.left.action1.armRightFront._rotation = TempAtan; this.left.action1.armRightBack._rotation = TempAtan; this.left.action1.armLeftFront._rotation = TempAtan; this.left.action1.armLeftBack._rotation = TempAtan; } var TempRightX = 0; var TempLeftX = 0; if (this.GapActionCount == 1) { TempRightX = -4; TempLeftX = 4; goto 2389; } else { if (this.GapActionCount == 2) { TempRightX = 0; TempLeftX = 0; goto 2389; } else { if (this.GapActionCount == 3) { TempRightX = 4; TempLeftX = -4; goto 2389; } else { if (this.GapActionCount == 4) { TempRightX = -9; TempLeftX = 1; } else {} } } } label 2389: this.GapActionCount; if (!this.left._visible) { this.right.action1.armRightFront._x = TempRightX; this.right.action1.armRightBack._x = TempRightX; this.right.action1.armLeftFront._x = TempLeftX; this.right.action1.armLeftBack._x = TempLeftX; } else { this.left.action1.armRightFront._x = TempRightX; this.left.action1.armRightBack._x = TempRightX; this.left.action1.armLeftFront._x = TempLeftX; this.left.action1.armLeftBack._x = TempLeftX; } if (!_parent.StandFlag) { } else { var TempDot = SDot(_parent.HorizonVec, SNorm(SSub(WMPos, _parent.Pos))); _parent.Vec.x = _parent.HorizonVec.x * TempDot * 10; _parent.Vec.y = _parent.HorizonVec.y * TempDot * 10; } if (this.GapActionCount == 4) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 2952; for (;;) { ++m; label 2952: if (m >= MaxNum) break; var that = WGetBulletEval(); that.FormatFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 100)); that.Vec = SEqual(this.ShotVec); } var MaxNum = 1; var m = 0; goto 3143; for (;;) { ++m; label 3143: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 2; that.Direction = _parent.Direction; that.ActionCountLimFlag = true; that.ActionCountLim = 20; that._rotation = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951; that.Omega = 0; that.SpinFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 70)); that.Vec = SGet(0, -10); } } if (this.GapActionCount == 4) { if (0 >= _parent.RapidShotNum) { this.ActionNum = 2; } else { this.ActionNum = 3; } } goto 8311; } else { if (this.ActionNum == 4) { if (this.GapActionCount == 1) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart4'); } else { this.left.gotoAndPlay('movieStart4'); } } if (!this.left._visible) { var TempAtan = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951; this.right.action4.armRightFront._rotation = TempAtan; this.right.action4.armRightBack._rotation = TempAtan; this.right.action4.armLeftFront._rotation = TempAtan; this.right.action4.armLeftBack._rotation = TempAtan; } else { var TempAtan = Math.atan2(this.ShotVec.y, this.ShotVec.x) * -1 * 57.29577951 + 180; this.left.action4.armRightFront._rotation = TempAtan; this.left.action4.armRightBack._rotation = TempAtan; this.left.action4.armLeftFront._rotation = TempAtan; this.left.action4.armLeftBack._rotation = TempAtan; } var TempRightX = 0; var TempLeftX = 0; if (this.GapActionCount == 1) { TempRightX = -4; TempLeftX = 4; goto 4367; } else { if (this.GapActionCount == 2) { TempRightX = 0; TempLeftX = 0; goto 4367; } else { if (this.GapActionCount == 3) { TempRightX = 4; TempLeftX = -4; goto 4367; } else { if (this.GapActionCount == 4) { TempRightX = -9; TempLeftX = 1; } else {} } } } label 4367: this.GapActionCount; if (!this.left._visible) { this.right.action4.armRightFront._x = TempRightX; this.right.action4.armRightBack._x = TempRightX; this.right.action4.armLeftFront._x = TempLeftX; this.right.action4.armLeftBack._x = TempLeftX; } else { this.left.action4.armRightFront._x = TempRightX; this.left.action4.armRightBack._x = TempRightX; this.left.action4.armLeftFront._x = TempLeftX; this.left.action4.armLeftBack._x = TempLeftX; } if (!_parent.StandFlag) { } else { var TempDot = SDot(_parent.HorizonVec, SNorm(SSub(WMPos, _parent.Pos))); _parent.Vec.x = _parent.HorizonVec.x * TempDot * 10; _parent.Vec.y = _parent.HorizonVec.y * TempDot * 10; } if (this.GapActionCount == 4) { if (0 >= _parent.RapidShotNum) { this.ActionNum = 2; } else { this.ActionNum = 3; } } goto 8311; } else { if (this.ActionNum == 2) { if (this.GapActionCount == 1) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } } if (!this.left._visible) { var TempAtan = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951; this.right.action2.armRightFront._rotation = TempAtan; this.right.action2.armRightBack._rotation = TempAtan; this.right.action2.armLeftFront._rotation = TempAtan; this.right.action2.armLeftBack._rotation = TempAtan; } else { var TempAtan = Math.atan2(this.ShotVec.y, this.ShotVec.x) * -1 * 57.29577951 + 180; this.left.action2.armRightFront._rotation = TempAtan; this.left.action2.armRightBack._rotation = TempAtan; this.left.action2.armLeftFront._rotation = TempAtan; this.left.action2.armLeftBack._rotation = TempAtan; } var TempRightX = 0; var TempLeftX = 0; if (this.GapActionCount == 1) { TempRightX = -2; TempLeftX = 6; goto 5742; } else { if (this.GapActionCount == 2) { TempRightX = 0; TempLeftX = 0; goto 5742; } else { if (this.GapActionCount == 3) { TempRightX = 2; TempLeftX = -7; goto 5742; } else { if (this.GapActionCount == 4) { TempRightX = -5; TempLeftX = 4; } else {} } } } label 5742: this.GapActionCount; if (!this.left._visible) { this.right.action2.armRightFront._x = TempRightX; this.right.action2.armRightBack._x = TempRightX; this.right.action2.armLeftFront._x = TempLeftX; this.right.action2.armLeftBack._x = TempLeftX; } else { this.left.action2.armRightFront._x = TempRightX; this.left.action2.armRightBack._x = TempRightX; this.left.action2.armLeftFront._x = TempLeftX; this.left.action2.armLeftBack._x = TempLeftX; } if (!_parent.StandFlag) { } else { var TempDot = SDot(_parent.HorizonVec, SNorm(SSub(WMPos, _parent.Pos))); _parent.Vec.x = _parent.HorizonVec.x * TempDot * 10; _parent.Vec.y = _parent.HorizonVec.y * TempDot * 10; } if (this.GapActionCount == 4) { if (0 >= _parent.RapidShotNum) { this.ActionCount = this.ActionTime + 1; } else { this.ActionNum = 1; } } goto 8311; } else { if (this.ActionNum == 3) { if (this.GapActionCount == 1) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart3'); } else { this.left.gotoAndPlay('movieStart3'); } } if (!this.left._visible) { var TempAtan = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951; this.right.action3.armRightFront._rotation = TempAtan; this.right.action3.armRightBack._rotation = TempAtan; this.right.action3.armLeftFront._rotation = TempAtan; this.right.action3.armLeftBack._rotation = TempAtan; } else { var TempAtan = Math.atan2(this.ShotVec.y, this.ShotVec.x) * -1 * 57.29577951 + 180; this.left.action3.armRightFront._rotation = TempAtan; this.left.action3.armRightBack._rotation = TempAtan; this.left.action3.armLeftFront._rotation = TempAtan; this.left.action3.armLeftBack._rotation = TempAtan; } var TempRightX = 0; var TempLeftX = 0; if (this.GapActionCount == 1) { TempRightX = -2; TempLeftX = 6; goto 7130; } else { if (this.GapActionCount == 2) { TempRightX = 0; TempLeftX = 0; goto 7130; } else { if (this.GapActionCount == 3) { TempRightX = 2; TempLeftX = -7; goto 7130; } else { if (this.GapActionCount == 4) { TempRightX = -5; TempLeftX = 4; } else {} } } } label 7130: this.GapActionCount; if (!this.left._visible) { this.right.action3.armRightFront._x = TempRightX; this.right.action3.armRightBack._x = TempRightX; this.right.action3.armLeftFront._x = TempLeftX; this.right.action3.armLeftBack._x = TempLeftX; } else { this.left.action3.armRightFront._x = TempRightX; this.left.action3.armRightBack._x = TempRightX; this.left.action3.armLeftFront._x = TempLeftX; this.left.action3.armLeftBack._x = TempLeftX; } if (!_parent.StandFlag) { } else { var TempDot = SDot(_parent.HorizonVec, SNorm(SSub(WMPos, _parent.Pos))); _parent.Vec.x = _parent.HorizonVec.x * TempDot * 10; _parent.Vec.y = _parent.HorizonVec.y * TempDot * 10; } if (this.GapActionCount == 4) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 7693; for (;;) { ++m; label 7693: if (m >= MaxNum) break; var that = WGetBulletEval(); that.FormatFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 100)); that.Vec = SEqual(this.ShotVec); } var MaxNum = 1; var m = 0; goto 7884; for (;;) { ++m; label 7884: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 2; that.Direction = _parent.Direction; that.ActionCountLimFlag = true; that.ActionCountLim = 20; that._rotation = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951; that.Omega = 0; that.SpinFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 70)); that.Vec = SGet(0, -10); } } if (this.GapActionCount == 4) { if (0 >= _parent.RapidShotNum) { this.ActionNum = 4; } else { this.ActionNum = 1; } } } else {} } } } } label 8311: this.ActionNum; if (this.GapActionCount == 1) { var TempY = -16; if (!this.left._visible) { if (this.ActionNum == 0) { goto 9043; } else { if (this.ActionNum == 1) { this.right.action1.armRightFront._y = TempY; this.right.action1.armRightBack._y = TempY; this.right.action1.armLeftFront._y = TempY; this.right.action1.armLeftBack._y = TempY; goto 9043; } else { if (this.ActionNum == 2) { this.right.action2.armRightFront._y = TempY; this.right.action2.armRightBack._y = TempY; this.right.action2.armLeftFront._y = TempY; this.right.action2.armLeftBack._y = TempY; goto 9043; } else { if (this.ActionNum == 3) { this.right.action3.armRightFront._y = TempY; this.right.action3.armRightBack._y = TempY; this.right.action3.armLeftFront._y = TempY; this.right.action3.armLeftBack._y = TempY; goto 9043; } else { if (this.ActionNum == 4) { this.right.action4.armRightFront._y = TempY; this.right.action4.armRightBack._y = TempY; this.right.action4.armLeftFront._y = TempY; this.right.action4.armLeftBack._y = TempY; } else {} } } } } label 9043: this.ActionNum; } else { if (this.ActionNum == 0) { goto 9719; } else { if (this.ActionNum == 1) { this.left.action1.armRightFront._y = TempY; this.left.action1.armRightBack._y = TempY; this.left.action1.armLeftFront._y = TempY; this.left.action1.armLeftBack._y = TempY; goto 9719; } else { if (this.ActionNum == 2) { this.left.action2.armRightFront._y = TempY; this.left.action2.armRightBack._y = TempY; this.left.action2.armLeftFront._y = TempY; this.left.action2.armLeftBack._y = TempY; goto 9719; } else { if (this.ActionNum == 3) { this.left.action3.armRightFront._y = TempY; this.left.action3.armRightBack._y = TempY; this.left.action3.armLeftFront._y = TempY; this.left.action3.armLeftBack._y = TempY; goto 9719; } else { if (this.ActionNum == 4) { this.left.action4.armRightFront._y = TempY; this.left.action4.armRightBack._y = TempY; this.left.action4.armLeftFront._y = TempY; this.left.action4.armLeftBack._y = TempY; } else {} } } } } label 9719: this.ActionNum; } } if (1 < this.ActionCount && 0 < MWheel) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 1; } if (1 < this.ActionCount && MWheel < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 1; } if (1 < this.ActionCount && MLeftUp && 0 < _parent.RapidShotNum) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 4; } if (1 < this.ActionCount && MMiddleUp && 0 < _parent.RapidShotNum) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 5; } if (1 < this.ActionCount && this.ChangeFlag == true) { if (this.ChangeType != 1) { if (this.ChangeType != 4) { if (this.ChangeType == 5) { _parent.SetVisible('swing', _parent.Direction); } } else { if (_parent.RapidShotNum < 2) { if (_parent.RapidShotNum < 1) { _parent.SetVisible('slap', _parent.Direction); } else { _parent.SetVisible('jumpShot', _parent.Direction); } } else { _parent.SetVisible('doubleShot', _parent.Direction); } } } else { _parent.Direction = this.ChangeDirection; if (_parent.RapidShotNum < 2) { _parent.SetVisible('stepTurn', _parent.Direction); } else { _parent.SetVisible('doubleTwist', _parent.Direction); _parent.doubleTwist.ActionRepeat = 1; _parent.doubleTwist.ReleaseFlag = false; _parent.doubleTwist.ActionAimFlag = false; } } this.ActionCount = 0; this.ActionNum = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.ActionNum = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance throwing of movieClip 1502 スローイング { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 8; this._visible = false; this.WeaponNum = 0; this.Press = 60; this.Radius = 0; this.Rot = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.TempTarPos = new Array(WWeaponNum + 1); this.TempTarDis = new Array(WWeaponNum + 1); this.TempTarNum = 0; } onClipEvent (unload) { delete this.TempTarPos; delete this.TempTarDis; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; _parent.LeftUpActionCount = 1; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this._rotation = 0; this.Radius = 15; if (_parent.StandFlag == true) { _parent.Vec.x = 0; _parent.Vec.y = 0; } if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } if (this.ActionCount == 1) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); var TempA = 0; this.TempTarNum = 0; var n = 0; goto 1136; for (;;) { ++n; label 1136: if (n >= this.WeaponNum) break; this.TempTarDis[n] = 1000000; this.TempTarPos[n] = SGet(0, 0); } var that; i = 0; goto 1264; for (;;) { ++i; label 1264: if (i >= WWitchHitIndexNum) break; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.Radius + 800)) { var a = that.HitPos.x - WMPos.x; var b = that.HitPos.y - WMPos.y; TempA = a * a + b * b; var n = 0; goto 1484; for (;;) { ++n; label 1484: if (n >= this.WeaponNum) break; if (TempA < TempTarDis[n]) { var m = this.WeaponNum; goto 1564; for (;;) { --m; label 1564: if (n >= m) break; TempTarDis[m + 1] = TempTarDis[m]; TempTarPos[m + 1] = TempTarPos[m]; } TempTarDis[n] = TempA; TempTarPos[n] = SEqual(that.HitPos); ++TempTarNum; } else {} } } } i = 0; goto 1762; for (;;) { ++i; label 1762: if (i >= WMagicHitIndexNum) break; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 800)) { var a = that.Pos.x - WMPos.x; var b = that.Pos.y - WMPos.y; TempA = a * a + b * b; var n = 0; goto 1982; for (;;) { ++n; label 1982: if (n >= this.WeaponNum) break; if (TempA < TempTarDis[n]) { var m = this.WeaponNum; goto 2062; for (;;) { --m; label 2062: if (n >= m) break; TempTarDis[m + 1] = TempTarDis[m]; TempTarPos[m + 1] = TempTarPos[m]; } TempTarDis[n] = TempA; TempTarPos[n] = SEqual(that.Pos); ++TempTarNum; } else {} } } } var MaxNum = this.WeaponNum; var m = 0; goto 2275; for (;;) { ++m; label 2275: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 1; that.FormatAppFlag = true; that.Direction = _parent.Direction; that._rotation = 90; that.Omega = _parent.Direction * 37; var TempVec = SNorm(SSub(WMPos, CenPos)); that.Pos = SEqual(CenPos); if (m >= TempTarNum) { that.Vec = SEqual(SScale(TempVec, (MaxNum - m) * 4 + 16)); } else { that.Vec = ParabolaVec(false, (MaxNum - m) * 4 + 16, _global.WGravity, CenPos, TempTarPos[m]); if (that.Vec.x == 0 && that.Vec.y == 0) { that.Vec = SEqual(SScale(TempVec, (MaxNum - m) * 4 + 16)); } } that.SpinFlag = true; } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; _parent.LeftUpActionCount = 1; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance slap of movieClip 1616 スラップ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 8; this._visible = false; this.AttackPower = 30 + _parent.LvCount * 10; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 5; this.AttackInvincibleCount = 3; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } _parent.Vec = SGet(0, 0); } if (!_parent.StandFlag) { } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 2; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 2; } if (this.ActionCount == 3) { var CenPos = SGet(_parent.Pos.x + _parent.Direction * _parent.Radius, _parent.Pos.y); i = 0; goto 1415; for (;;) { ++i; label 1415: if (i >= WWeaponHitIndexNum) break; var that; that = WWeaponEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { var JumpVec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (!(JumpVec.y == 0 && JumpVec.x == 0)) { if (SDot(JumpVec, SSub(that.Pos, _parent.Pos)) < 0) { JumpVec = ParabolaVec(true, 30, _global.WGravity, that.Pos, WTPos); } if (!(JumpVec.y == 0 && JumpVec.x == 0)) { if (that.StandFlag) { if (0 < SCross(that.HorizonVec, JumpVec)) { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } } } else { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } } else { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37 * _parent.Direction; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('tap'); } } if (1) { var that; that = WPartnerEval; if (that.ShoulderFlag == false) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 120)) { that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; that.Vec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (that.Vec.x == 0 && that.Vec.y == 0) { that.Vec = SGet(_parent.Direction * 4, 2); } that.SetVisible('rolling', that.Direction); _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } i = 0; goto 2605; for (;;) { ++i; label 2605: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 120)) { this.AttackReactionVec = SGet(_parent.Direction * 4, 2); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 2984; for (;;) { ++i; label 2984: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + _parent.Radius)) { this.AttackReactionVec = SGet(_parent.Direction * 4, 2); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (0 < MWheel) { this.ChangeDirection = 1; this.ChangeType = 1; } if (MWheel < 0) { this.ChangeDirection = -1; this.ChangeType = 1; } if (0 >= this.ChangeDirection && MMiddleUp && _parent.Direction < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 2; } if (this.ChangeDirection >= 0 && MMiddleUp && 0 < _parent.Direction) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 2; } if (0 < this.ChangeDirection && _parent.Direction < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 3; } if (this.ChangeDirection < 0 && 0 < _parent.Direction) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 3; } if (1 < this.ActionCount && MLeftUp) { this.ChangeFlag = true; this.ChangeType = 4; } if (this.ChangeFlag == true && this.ChangeType >= 2 && 4 < this.ActionCount) { if (this.ChangeType != 2) { if (this.ChangeType != 3) { if (this.ChangeType == 4) { _parent.SetVisible('tripSlap', _parent.Direction); } } else { _parent.SetVisible('kick', _parent.Direction); } } else { _parent.SetVisible('sliding', _parent.Direction); } this._visible = false; this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance tripSlap of movieClip 1736 トリップスラップ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 8; this._visible = false; this.AttackPower = 40 + _parent.LvCount * 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 5; this.AttackInvincibleCount = 3; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } _parent.Vec = SGet(0, 0); } if (!_parent.StandFlag) { } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 3; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 3; } if (this.ActionCount == 2) { var CenPos = SGet(_parent.Pos.x + _parent.Direction * _parent.Radius, _parent.Pos.y); i = 0; goto 1403; for (;;) { ++i; label 1403: if (i >= WWeaponHitIndexNum) break; var that; that = WWeaponEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { var JumpVec = SGet(_parent.Direction * 8, -6); if (!(JumpVec.y == 0 && JumpVec.x == 0)) { that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37 * _parent.Direction; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('tap'); } else {} } } if (1) { var that; that = WPartnerEval; if (that.ShoulderFlag == false) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 120)) { that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; that.Vec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (that.Vec.x == 0 && that.Vec.y == 0) { that.Vec = SGet(_parent.Direction * 8, -6); } that.SetVisible('rolling', that.Direction); _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } i = 0; goto 2192; for (;;) { ++i; label 2192: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 120)) { this.AttackReactionVec = SGet(_parent.Direction * 8, -6); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 2571; for (;;) { ++i; label 2571: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + _parent.Radius)) { this.AttackReactionVec = SGet(_parent.Direction * 8, -6); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (0 < MWheel) { this.ChangeDirection = 1; this.ChangeType = 1; } if (MWheel < 0) { this.ChangeDirection = -1; this.ChangeType = 1; } if (0 >= this.ChangeDirection && MMiddleUp && _parent.Direction < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 2; } if (this.ChangeDirection >= 0 && MMiddleUp && 0 < _parent.Direction) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 2; } if (0 < this.ChangeDirection && _parent.Direction < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 3; } if (this.ChangeDirection < 0 && 0 < _parent.Direction) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 3; } if (1 < this.ActionCount && MLeftUp) { this.ChangeFlag = true; this.ChangeType = 4; } if (this.ChangeFlag == true && this.ChangeType >= 2 && 4 < this.ActionCount) { if (this.ChangeType != 2) { if (this.ChangeType != 3) { if (this.ChangeType == 4) { _parent.SetVisible('roundTripSlap', _parent.Direction); } } else { _parent.SetVisible('kick', _parent.Direction); } } else { _parent.SetVisible('sliding', _parent.Direction); } this._visible = false; this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance roundTripSlap of movieClip 1626 ラウンドトリップスラップ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 12; this._visible = false; this.AttackPower = 50 + _parent.LvCount * 20; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 5; this.AttackInvincibleCount = 3; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } _parent.Vec = SGet(0, 0); } if (!_parent.StandFlag) { } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 6; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 6; } if (this.ActionCount == 9) { var CenPos = SGet(_parent.Pos.x + _parent.Direction * _parent.Radius, _parent.Pos.y); i = 0; goto 1395; for (;;) { ++i; label 1395: if (i >= WWeaponHitIndexNum) break; var that; that = WWeaponEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { var JumpVec = SGet(_parent.Direction * 25, -8); if (!(JumpVec.y == 0 && JumpVec.x == 0)) { that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37 * _parent.Direction; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('tap'); } else {} } } if (1) { var that; that = WPartnerEval; if (that.ShoulderFlag == false) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 120)) { that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; that.Vec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (that.Vec.x == 0 && that.Vec.y == 0) { that.Vec = SGet(_parent.Direction * 25, -8); } that.SetVisible('rolling', that.Direction); _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } i = 0; goto 2184; for (;;) { ++i; label 2184: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 120)) { this.AttackReactionVec = SGet(_parent.Direction * 25, -8); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 2563; for (;;) { ++i; label 2563: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + _parent.Radius)) { this.AttackReactionVec = SGet(_parent.Direction * 25, -8); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (0 < MWheel) { this.ChangeDirection = 1; this.ChangeType = 1; } if (MWheel < 0) { this.ChangeDirection = -1; this.ChangeType = 1; } if (0 >= this.ChangeDirection && MMiddleUp && _parent.Direction < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 2; } if (this.ChangeDirection >= 0 && MMiddleUp && 0 < _parent.Direction) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 2; } if (0 < this.ChangeDirection && _parent.Direction < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 3; } if (this.ChangeDirection < 0 && 0 < _parent.Direction) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 3; } if (this.ChangeFlag == true && this.ChangeType >= 2 && 4 < this.ActionCount) { if (this.ChangeType != 2) { if (this.ChangeType != 3) { if (this.ChangeType == 4) { _parent.SetVisible('roundTripSlap', _parent.Direction); } } else { _parent.SetVisible('kick', _parent.Direction); } } else { _parent.SetVisible('sliding', _parent.Direction); } this._visible = false; this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance tiroFinale of movieClip 1832 ティロフィナーレ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 28; this._visible = false; this.WeaponCount = 0; this.AttackPower = 25; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 20; this.AttackInvincibleCount = 20; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.ShotVec = SGet(0, 0); } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.left.action1._rotation = 0; this.right.action1._rotation = 0; } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } if (!this.left._visible) { this.right.action1._rotation = 0; } else { this.left.action1._rotation = 0; } this.AttackPower = 500 + _parent.LvCount * 100; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 20; this.AttackInvincibleCount = 10; } if (this.ActionCount == 1) { var TempJumpVec; var Press = 20; if (_parent.StandFlag != false) { TempJumpVec = ParabolaVec(true, Press, _global.WGravity, SGet(_parent.Pos.x, _parent.Pos.y + _parent.Radius), WMPos); } else { TempJumpVec = ParabolaVec(false, Press, _global.WGravity, SGet(_parent.Pos.x, _parent.Pos.y + _parent.Radius), WMPos); } if (TempJumpVec.y == 0 && TempJumpVec.x == 0) { TempJumpVec = SScale(SNorm(SSub(WMPos, SGet(_parent.Pos.x, _parent.Pos.y + _parent.Radius))), Press); } _parent.Vec = SEqual(TempJumpVec); _parent.StandFlag = false; } if (12 < this.ActionCount && 22 >= this.ActionCount) { _parent.Vec = SGet(0, 0); } if (22 < this.ActionCount) { var TempVec = SNorm(SSub(WMPos, _parent.Pos)); var TempAtan = Math.atan2(TempVec.y, TempVec.x); var Roll = 30; if (!this.left._visible) { var Atan = 0; var Si1 = _global.Sight_360(180, this.right.action1._rotation * -1, Atan); if (Si1 != 0) { if (_global.Sight_360(Roll, this.right.action1._rotation * -1, Atan) == 0) { this.right.action1._rotation -= Si1 * Roll; } else { this.right.action1._rotation = Atan * -1; } } } else { var Atan = 180; var Si1 = _global.Sight_360(180, this.left.action1._rotation + 180, Atan); if (Si1 != 0) { if (_global.Sight_360(Roll, this.left.action1._rotation + 180, Atan) == 0) { this.left.action1._rotation += Si1 * Roll; } else { this.left.action1._rotation = Atan + 180; } } } } else { var TempVec = SNorm(SSub(WMPos, _parent.Pos)); var TempAtan = Math.atan2(TempVec.y, TempVec.x); var Atan = int(TempAtan * 57.29577951); var Roll = 30; if (!this.left._visible) { var Si1 = _global.Sight_360(180, this.right.action1._rotation * -1, Atan); if (Si1 != 0) { if (_global.Sight_360(Roll, this.right.action1._rotation * -1, Atan) == 0) { this.right.action1._rotation -= Si1 * Roll; } else { this.right.action1._rotation = Atan * -1; } } } else { var Si1 = _global.Sight_360(180, this.left.action1._rotation + 180, Atan); if (Si1 != 0) { if (_global.Sight_360(Roll, this.left.action1._rotation + 180, Atan) == 0) { this.left.action1._rotation += Si1 * Roll; } else { this.left.action1._rotation = Atan + 180; } } } } if (12 < this.ActionCount && 22 >= this.ActionCount) { var TempAtan; if (!this.left._visible) { TempAtan = this.right.action1._rotation * -1 * 0.0174532925; } else { TempAtan = (this.left.action1._rotation + 180) * 0.0174532925; } this.ShotVec = SGet(Math.cos(TempAtan), Math.sin(TempAtan)); var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); var Line1 = SAdd(_parent.Pos, SScale(this.ShotVec, 125)); var Line2 = SAdd(_parent.Pos, SScale(this.ShotVec, 2048)); i = 0; goto 3609; for (;;) { ++i; label 3609: if (i >= WWeaponHitIndexNum) break; var that; that = WWeaponEvalHitIndex[i]; if (_global.Lim_Circle_Hit(Line1, Line2, that.Pos, that.Radius + 150)) { var JumpVec = SScale(this.ShotVec, 40); ++this.WeaponCount; if (!(JumpVec.y == 0 && JumpVec.x == 0)) { that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('hit'); } else {} } } i = 0; goto 4002; for (;;) { ++i; label 4002: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Lim_Circle_Hit(Line1, Line2, that.Pos, that.Radius + 150)) { this.AttackReactionVec = SScale(this.ShotVec, 40); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('hit'); ++_global.WCharActionHitCount; } } i = 0; goto 4378; for (;;) { ++i; label 4378: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Lim_Circle_Hit(Line1, Line2, that.HitPos, that.HitRadius + 150)) { this.AttackReactionVec = SScale(this.ShotVec, 40); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('hit'); ++_global.WCharActionHitCount; } } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ChangeFlag = false; this.ChangeDirection = 0; this.left.action1._rotation = 0; this.right.action1._rotation = 0; } } } } frame 1 { function SetVisible(Name, Name2) { (eval(this.style))._visible = false; (eval('this.' + Name))._visible = true; if (Name2 != -1) { if (Name2 == 1) { (eval('this.' + Name)).left._visible = false; (eval('this.' + Name)).right._visible = true; } } else { (eval('this.' + Name)).left._visible = true; (eval('this.' + Name)).right._visible = false; } this.style = 'this.' + Name; } } instance stand of movieClip 186 マミスタンド { onClipEvent (load) { this.ActionCount = 0; this._visible = false; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = false; this.left.gotoAndPlay('movieStart1'); this.right.gotoAndPlay('movieStart1'); } if (!(MMiddlePress && this.ActionCount == 1)) { if (MMiddleDown) { this.left.gotoAndPlay('movieStart2'); this.right.gotoAndPlay('movieStart2'); } } else { this.left.gotoAndPlay('movieStart2'); this.right.gotoAndPlay('movieStart2'); } if (MMiddlePress && 1 < this.ActionCount && 8 < MMiddlePressCount) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); var that; var TempHitFlag = false; i = 0; goto 948; for (;;) { ++i; label 948: if (i >= WWeaponHitIndexNum) break; that = WWeaponEvalHitIndex[i]; if (that.ActionNum == 1) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { TempHitFlag = true; } else {} } } if (TempHitFlag == false) { i = 0; goto 1137; for (;;) { ++i; label 1137: if (i >= WMagicHitIndexNum) break; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { TempHitFlag = true; } else {} } if (TempHitFlag == false) { i = 0; goto 1299; for (;;) { ++i; label 1299: if (i >= WWitchHitIndexNum) break; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + _parent.Radius)) { TempHitFlag = true; } else {} } } } if (TempHitFlag) { this.ActionCount = 0; _parent.SetVisible('kick', _parent.Direction); this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } } instance guard of movieClip 130 ガード { onClipEvent (load) { this._visible = false; } } instance dash of movieClip 188 マミダッシュ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 18; this._visible = false; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeCount = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.wav.gotoAndPlay('movieStart2'); this.ActionCount = 0; this.ChangeCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { if (this.left._visible != true) { if (this.right._visible == true) { this.right.gotoAndPlay('movieStart'); } } else { this.left.gotoAndPlay('movieStart'); } this.wav.gotoAndPlay('movieStart1'); } if (MMiddlePress) { _parent.SetVisible('stand', _parent.Direction); this.wav.gotoAndPlay('movieStart2'); this.ActionCount = 0; _parent.ActionFlag = false; this.ChangeCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; _parent.DashStopFlag = false; _parent.DashGauge = 0; _parent.Vec.x = 0; _parent.Vec.y = 0; _parent.Wheel = 0; } } } } instance rolling of movieClip 190 マミローリング { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 60; this._visible = false; this.Action2Flag = false; this.JumpVec = SGet(0, 0); this.Press = 15; this.GapActionCount = 0; this.OldActionNum = 0; this.ActionNum = 0; this.AttackPower = 25; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.TempDirection = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.ActionNum = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { this.AttackPower = 25 + _parent.LvCount * 15; _parent.ActionFlag = true; this._rotation = 0; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } var TempVec = SScale(SNorm(SSub(WMPos, _parent.Pos)), 10); if (_parent.StandFlag == false) { this.JumpVec = SGet(_parent.Direction * 10, TempVec.y); _parent.Vec = SEqual(this.JumpVec); } this.ActionNum = 1; this.GapActionCount = 0; this.OldActionNum = 0; } if (this.OldActionNum != this.ActionNum) { this.GapActionCount = 0; this.OldActionNum = this.ActionNum; } ++this.GapActionCount; if (this.ActionNum == 0) { goto 6967; } else { if (this.ActionNum == 1) { if (1 < this.GapActionCount && 30 >= this.GapActionCount) { this._rotation = 40 * _parent.Direction * this.GapActionCount; } if (6 < this.GapActionCount && 24 >= this.GapActionCount) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); i = 0; goto 1847; for (;;) { ++i; label 1847: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(_parent.Pos, that.HitPos, that.HitRadius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 8), SGet(0, -5)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 2283; for (;;) { ++i; label 2283: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 8), SGet(0, -5)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (_parent.StandFlag == true && this.GapActionCount < 24) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } this._rotation = 0; this.ActionNum = 2; _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 20; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 20; } if (30 < this.GapActionCount) { this.ActionCount = this.ActionTime + 1; } if (MLeftUp && 6 < this.GapActionCount && 24 >= this.GapActionCount) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart3'); } else { this.left.gotoAndPlay('movieStart3'); } this.ActionNum = 3; _parent.Vec = SScale(SNorm(SSub(WMPos, _parent.Pos)), 18); this._rotation = Math.atan2(_parent.Vec.y, _parent.Vec.x) * 57.29577951 - 90; _parent.StandFlag = false; } goto 6967; } else { if (this.ActionNum == 2) { if (4 >= this.GapActionCount) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); i = 0; goto 3470; for (;;) { ++i; label 3470: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(_parent.Pos, that.HitPos, that.HitRadius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 5), SGet(0, -15)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 3906; for (;;) { ++i; label 3906: if (i >= WMagicEvalHitNum) break; var that; that = WMagicEvalEvalHit[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 5), SGet(0, -15)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (10 < this.GapActionCount) { this.ActionCount = this.ActionTime + 1; } if (this.GapActionCount == 1) { this.TempDirection = 0; } if (!_parent.StandFlag) { if (1 < this.GapActionCount && 10 >= this.GapActionCount) { this._rotation = 40 * _parent.Direction * this.GapActionCount; } } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 15; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 15; if (0 < MWheel) { this.TempDirection = 1; } if (MWheel < 0) { this.TempDirection = -1; } if (!(0 < this.TempDirection && 0 < _parent.Direction || this.TempDirection < 0 && _parent.Direction < 0)) { if (!(0 < this.TempDirection && _parent.Direction < 0 || this.TempDirection < 0 && 0 < _parent.Direction)) { if (1 < this.GapActionCount && 10 >= this.GapActionCount) { this._rotation = 40 * _parent.Direction * this.GapActionCount; } } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * -20; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * -20; if (1 < this.GapActionCount && 10 >= this.GapActionCount) { this._rotation = -40 * _parent.Direction * this.GapActionCount; } } } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 20; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 20; if (1 < this.GapActionCount && 10 >= this.GapActionCount) { this._rotation = 40 * _parent.Direction * this.GapActionCount; } } } if (MLeftUp && 4 >= this.GapActionCount) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart3'); } else { this.left.gotoAndPlay('movieStart3'); } this._rotation = 0; this.ActionNum = 3; _parent.Vec.x = 0; _parent.Vec.y = -18; _parent.StandFlag = false; } goto 6967; } else { if (this.ActionNum == 3) { if (1 < this.GapActionCount) { this._rotation += 20 * _parent.Direction; } if (this.GapActionCount == 7) { var TempRad = Math.atan2(_parent.Vec.y, _parent.Vec.x); var CenPos = SAdd(SGet(_parent.Pos.x, _parent.Pos.y), SGet(Math.cos(TempRad) * _parent.Radius, Math.sin(TempRad) * _parent.Radius)); i = 0; goto 5974; for (;;) { ++i; label 5974: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(_parent.Pos, that.HitPos, that.HitRadius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 25), SGet(0, 0)); that.HpCount += this.AttackPower * 2; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 6419; for (;;) { ++i; label 6419: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 25), SGet(0, 0)); that.HpCount += this.AttackPower * 2; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (12 < this.GapActionCount) { if (_parent.StandFlag == false) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.ActionCount = this.ActionTime + 1; } } else {} } } } label 6967: this.ActionNum; if (0 < MWheel) { this.ChangeDirection = 1; this.ChangeType = 1; } if (MWheel < 0) { this.ChangeDirection = -1; this.ChangeType = 1; } if (0 < this.ChangeDirection && MMiddleUp && 0 < _parent.Direction && this.ChangeType == 1) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 2; } if (this.ChangeDirection < 0 && MMiddleUp && _parent.Direction < 0 && this.ChangeType == 1) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 2; } if (0 >= this.ChangeDirection && MMiddleUp && 0 < _parent.Direction) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 3; } if (this.ChangeDirection >= 0 && MMiddleUp && _parent.Direction < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 3; } if (this.ChangeDirection < 0 && 0 < _parent.Direction && this.ChangeType == 1) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 3; } if (0 < this.ChangeDirection && _parent.Direction < 0 && this.ChangeType == 1) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 3; } if (1 < this.ActionCount && MLeftUp) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 4; } if (6 < this.ActionCount && this.ChangeFlag == true && this.ChangeType >= 2 && this.ActionNum == 1) { if (this.ChangeType != 2) { if (this.ChangeType != 3) { if (this.ChangeType == 4) { _parent.SetVisible('stepTurn', _parent.Direction); } } else { _parent.SetVisible('turnJump', _parent.Direction); } } else { _parent.SetVisible('sliding', _parent.Direction); } this._visible = false; this.ActionCount = 0; if (_parent.StandFlag) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.ActionNum = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; if (_parent.StandFlag) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.ActionNum = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance jump of movieClip 192 マミジャンプ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 10; this._visible = false; this.JumpVec = SGet(0, 0); this.Press = 60; this.TakeOffFlag = false; this.TakeOffCount = 0; this.PutOnFlag = false; this.PutOnCount = 0; this.SquatDownFlag = false; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.SquatDownFlag = false; this.PutOnFlag = false; this.PutOnCount = 0; this.TakeOffFlag = false; this.TakeOffCount = 0; } } else { ++this.ActionCount; if (this.TakeOffFlag && _parent.StandFlag) { this.ActionCount = 1; } if (this.ActionCount == 1) { _parent.ActionFlag = false; if (_parent.StandFlag) { _parent.StandFlag = false; this.wav.gotoAndPlay('movieStart'); } this.PutOnFlag = false; this.PutOnCount = 0; this.TakeOffCount = 0; this.SquatDownFlag = false; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } if (_parent.StandFlag && this.SquatDownFlag == false) { if (this.PutOnFlag == false) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart5'); } else { this.left.gotoAndPlay('movieStart5'); } this.wav.gotoAndPlay('movieStart2'); this.PutOnFlag = true; this.PutOnCount = 0; } } if (this.PutOnFlag) { ++this.PutOnCount; if (0 < MWheel) { this.ChangeDirection = 1; this.ChangeType = 1; this.ChangeFlag = true; } if (MWheel < 0) { this.ChangeDirection = -1; this.ChangeType = 1; this.ChangeFlag = true; } if (this.ChangeFlag == true) { if (this.ChangeType == 1) { _parent.Direction = this.ChangeDirection; _parent.SetVisible('rolling', _parent.Direction); } this._visible = false; this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.PutOnFlag = false; this.PutOnCount = 0; this.TakeOffFlag = false; this.TakeOffCount = 0; this.SquatDownFlag = false; this.ActionCount = 0; } } if (!(MMiddlePress && this.ActionCount == 1)) { if (MMiddleDown) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart6'); } else { this.left.gotoAndPlay('movieStart6'); } this.SquatDownFlag = true; } } else { if (!this.left._visible) { this.right.gotoAndPlay('movieStart6'); } else { this.left.gotoAndPlay('movieStart6'); } this.SquatDownFlag = true; } if (this.PutOnFlag == false && this.TakeOffFlag && this.SquatDownFlag == false) { ++this.TakeOffCount; if (this.TakeOffCount == 1) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart4'); } else { this.left.gotoAndPlay('movieStart4'); } } if (3 < this.TakeOffCount) { this.TakeOffFlag = false; this.TakeOffCount = 0; } } if (this.PutOnFlag == false && this.SquatDownFlag == false) { if (_parent.Vec.y * _parent.Vec.y >= _parent.Vec.x * _parent.Vec.x) { if (_parent.Vec.y >= 0) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart3'); } else { this.left.gotoAndPlay('movieStart3'); } } else { if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } } } else { if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } } } if (3 < this.PutOnCount) { this.PutOnFlag = false; this.PutOnCount = 0; this.TakeOffFlag = false; this.TakeOffCount = 0; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.SquatDownFlag = false; this.ActionCount = 0; } if (MMiddlePress && 1 < this.ActionCount && _parent.StandFlag && 8 < MMiddlePressCount) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); var that; var TempHitFlag = false; i = 0; goto 2909; for (;;) { ++i; label 2909: if (i >= WWeaponHitIndexNum) break; that = WWeaponEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { TempHitFlag = true; } else {} } if (TempHitFlag == false) { i = 0; goto 3071; for (;;) { ++i; label 3071: if (i >= WMagicHitIndexNum) break; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { TempHitFlag = true; } else {} } if (TempHitFlag == false) { i = 0; goto 3233; for (;;) { ++i; label 3233: if (i >= WWitchHitIndexNum) break; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + _parent.Radius)) { TempHitFlag = true; } else {} } } } if (TempHitFlag) { this.ActionCount = 0; _parent.SetVisible('kick', _parent.Direction); this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.SquatDownFlag = false; this.PutOnFlag = false; this.PutOnCount = 0; this.TakeOffFlag = false; this.TakeOffCount = 0; } } } } } instance dashJump of movieClip 1932 ダッシュジャンプ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 12; this._visible = false; this.JumpVec = SGet(0, 0); this.Press = 60; this.ChangeType = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.AttackPower = 25; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.se.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = ture; if (!_parent.StandFlag) { this.se.gotoAndPlay('movieStart2'); } else { _parent.StandFlag = false; this.se.gotoAndPlay('movieStart1'); } this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } if (1) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); i = 0; goto 966; for (;;) { ++i; label 966: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(_parent.Pos, that.HitPos, that.HitRadius + 50)) { this.AttackReactionVec = SGet(0, 15); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); this.se.gotoAndPlay('movieStart2'); var TempVec = SScale(SNorm(_parent.Vec), 20); _parent.Vec = SGet(TempVec.x, Math.abs(TempVec.y) * -1); _parent.StandFlag = false; ++_global.WCharActionHitCount; } } i = 0; goto 1487; for (;;) { ++i; label 1487: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SGet(0, 15); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); this.se.gotoAndPlay('movieStart2'); var TempVec = SScale(SNorm(_parent.Vec), 20); _parent.Vec = SGet(TempVec.x, Math.abs(TempVec.y) * -1); _parent.StandFlag = false; ++_global.WCharActionHitCount; } } } if (0 < MWheel) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 1; } if (MWheel < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 1; } if (this.ChangeFlag == true && 6 < this.ActionCount) { if (this.ChangeType == 1) { _parent.Direction = this.ChangeDirection; _parent.SetVisible('rolling', _parent.Direction); } _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } if (_parent.StandFlag == true) { this.se.gotoAndPlay('movieStart3'); _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.ActionCount = 0; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; } if (this.ActionTime < this.ActionCount) { _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.ActionCount = 0; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; } } } } instance damage of movieClip 194 マミダメージ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 18; this._visible = false; this.ChangeFlag = false; this.ChangeDirection = 0; } } instance chestDraw of movieClip 196 マミチェストドロー { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 15; this._visible = false; this.AttackPower = 25; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 3; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.Rot = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.wav.gotoAndPlay('movieStart'); this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { this.AttackPower = 15 + _parent.LvCount * 10; _parent.ActionFlag = true; ++_global.WCharActionCount; ++_parent.RapidShotNum; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (!MMiddlePress) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } } else { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 10; if (!this.left._visible) { this.right.gotoAndPlay('movieStart3'); } else { this.left.gotoAndPlay('movieStart3'); } } if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.Rot = 0; } if (3 < this.ActionCount && 15 >= this.ActionCount) { if (!this.left._visible) { this.Rot += 20; this.right.action.twist.arm._rotation = this.Rot; } else { this.Rot += 20; this.left.action.twist.arm._rotation = this.Rot; } } if (_parent.StandFlag == false && this.ActionCount % 3 == 1 && this.ActionCount < 15) { _parent.Vec = SScale(SNorm(SSub(WMPos, _parent.Pos)), 10); } if (this.ActionCount >= 3 && this.ActionCount % 2 == 0 && this.ActionCount < 15) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); i = 0; goto 2111; for (;;) { ++i; label 2111: if (i >= WWeaponHitIndexNum) break; var that; that = WWeaponEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 100)) { var JumpVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 5), SGet(0, -10)); that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('tap'); } } i = 0; goto 2477; for (;;) { ++i; label 2477: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 100)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 10), SGet(0, 0)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 2907; for (;;) { ++i; label 2907: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + 100)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 10), SGet(0, -10)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (this.ActionCount == 15) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 3396; for (;;) { ++m; label 3396: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 1; that.FormatAppFlag = false; that.Direction = _parent.Direction; that._rotation = 90; that.Omega = 37 * _parent.Direction; that.SpinFlag = true; that.Pos = SAdd(_parent.Pos, SGet(0, -80)); that.Vec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (that.Vec.y == 0 && that.Vec.x == 0) { that.Vec = SScale(SNorm(SSub(WMPos, that.Pos)), 15); } } } if (this.ChangeFlag && this.ActionCount == 5 && this.ChangeType == 10) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 3934; for (;;) { ++m; label 3934: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 1; that.FormatAppFlag = false; that.Direction = _parent.Direction; that._rotation = 90; that.Omega = 37 * _parent.Direction; that.SpinFlag = true; that.Pos = SAdd(_parent.Pos, SGet(0, -80)); that.Vec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (that.Vec.y == 0 && that.Vec.x == 0) { that.Vec = SScale(SNorm(SSub(WMPos, that.Pos)), 15); } } this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.wav.gotoAndPlay('movieStart'); this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (!(0 < MWheel && this.ChangeFlag == false)) { if (MWheel < 0 && this.ChangeFlag == false) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 1; } } else { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 1; } if (MLeftUp && this.ChangeFlag == false) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 2; } if (MLeftPress && this.ActionCount == 14 && this.ChangeFlag == false) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 3; } if (MMiddleUp && this.ChangeFlag == false) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 5; } if (3 < this.ActionCount && this.ChangeFlag == true && this.ActionCount < 15 && this.ChangeType != 10) { if (this.ChangeType != 1) { if (this.ChangeType != 2) { if (this.ChangeType != 3) { if (this.ChangeType == 5) { _parent.SetVisible('swing', _parent.Direction); } } else { _parent.SetVisible('waistDraw', _parent.Direction); } } else { _parent.SetVisible('jumpShot', _parent.Direction); } } else { _parent.Direction = this.ChangeDirection; _parent.SetVisible('singleTwist', _parent.Direction); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.wav.gotoAndPlay('movieStart'); this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.wav.gotoAndPlay('movieStart'); this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ChangeFlag = false; this.ChangeDirection = 0; } } } } instance waistDraw of movieClip 202 マミウエストドロー { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 105; this._visible = false; this.Action2Flag = false; this.Press = 30 + 5 * _parent.LvCount; this.WheelCount = 0; this.WheelCountLim = 0; this.WheelDirection = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { if (this.ActionCount < 100) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); i = 0; goto 833; for (;;) { ++i; label 833: if (i >= WWeaponNum) break; var that; that = WWeaponEval[i]; if (that.ExistFlag && that.AutoFlag && that.ShotFlag == false) { that.FormatFlag = true; that.FormatType = 4; that.FormatAppFlag = false; that.RoundRadius = SSize(SSub(that.Pos, CenPos)); } } } this.ActionCount = 0; _parent.LeftUpActionCount = 1; this.Action2Flag = false; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this._rotation = 0; this.Press = 30 + 5 * _parent.LvCount; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } if (_parent.StandFlag) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.WheelCount = 0; this.WheelCountLim = 50; this.WheelDirection = 0; } if (_parent.StandFlag == false) { _parent.Vec = SScale(SNorm(_parent.Vec), 4); if (0 < this.WheelCount) { --this.WheelCount; } if (0 < MWheel) { if (0 >= this.WheelDirection) { this.WheelCount = 0; this.WheelDirection = 1; } else { this.WheelCount += 5; this.WheelDirection = 1; } } if (MWheel < 0) { if (this.WheelDirection >= 0) { this.WheelCount = 0; this.WheelDirection = -1; } else { this.WheelCount += 5; this.WheelDirection = -1; } } if (this.WheelCountLim < this.WheelCount) { this.WheelCount = this.WheelCountLim; } if (0 < this.WheelCount) { _parent.Vec.x += 8 * this.WheelDirection; } } if (MLeftUp && this.ActionCount < 100 && this.Action2Flag == false) { this.ActionCount = 100; this.Action2Flag = true; } if (this.ActionCount == 90) { this.ActionCount = 89; } if (this.ActionCount == 100) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } var m = 0; i = 0; goto 2251; for (;;) { ++i; label 2251: if (i >= WWeaponNum) break; var that; that = WWeaponEval[i]; if (that.ExistFlag == true && that.AutoFlag == true && that.ShotFlag == false) { ++m; that.AutoCountLim = 8 + m * 2; that.AutoCount = 0; that.Vec = SGet(0, 0); } } } if (61 >= this.ActionCount) { if (0 < _parent.RapidShotNum) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 2565; for (;;) { ++m; label 2565: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 3; that.FormatAppFlag = true; that.Direction = _parent.Direction; that.ActionCountLimFlag = false; var TempAtan = Math.atan2(MPos.y - _parent._y, MPos.x - _parent._x) + (random(2000) / 1000 - 1); var TempNormVec = SGet(Math.cos(TempAtan), Math.sin(TempAtan)); that.Pos = SAdd(_parent.Pos, SScale(TempNormVec, _parent.Radius + this.ActionCount * 2)); that.Vec = SGet(0, 0); var ShotVec = ParabolaVec(false, 60, _global.WGravity, SGet(that.Pos.x - WPos.x, that.Pos.y - WPos.y), MPos); that._rotation = Math.atan2(ShotVec.y, ShotVec.x) * 57.29577951; that.AutoFlag = true; that.AutoCountLim = 100; that.AutoRotationFlag = false; that.Omega = 0; that.SpinFlag = true; } } } if (this.ActionCount % 4 == 1 && 61 >= this.ActionCount) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } var MaxNum = 1; var m = 0; goto 3384; for (;;) { ++m; label 3384: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 3; that.FormatAppFlag = true; that.Direction = _parent.Direction; that.ActionCountLimFlag = false; var TempAtan = Math.atan2(MPos.y - _parent._y, MPos.x - _parent._x) + (random(2000) / 1000 - 1); var TempNormVec = SGet(Math.cos(TempAtan), Math.sin(TempAtan)); that.Pos = SAdd(_parent.Pos, SScale(TempNormVec, _parent.Radius + this.ActionCount * 2)); that.Vec = SGet(0, 0); var ShotVec = ParabolaVec(false, 60, _global.WGravity, SGet(that.Pos.x - WPos.x, that.Pos.y - WPos.y), MPos); that._rotation = Math.atan2(ShotVec.y, ShotVec.x) * 57.29577951; that.AutoFlag = true; that.AutoCountLim = 100; that.AutoRotationFlag = false; that.Omega = 0; that.SpinFlag = true; } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; _parent.LeftUpActionCount = 1; if (this.Action2Flag == true) { } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.Action2Flag = false; } } } } instance hipDraw of movieClip 204 マミヒップドロー { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 15; this._visible = false; this.AttackPower = 25; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 20; this.AttackInvincibleCount = 5; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.RapidShotNum += 2; this.AttackPower = 40 + _parent.LvCount * 20; _parent.ActionFlag = true; ++_global.WCharActionCount; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (!MMiddlePress) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } if (!_parent.StandFlag) { if (!this.left._visible) { this.right.action1.arm._rotation = 0; } else { this.left.action1.arm._rotation = 0; } } else { _parent.Vec = SGet(0, 0); if (!this.left._visible) { this.right.action1.arm._rotation = Math.atan2(_parent.HorizonVec.y, _parent.HorizonVec.x) * -1 * 57.29577951 + 180; } else { this.left.action1.arm._rotation = Math.atan2(_parent.HorizonVec.y, _parent.HorizonVec.x) * 57.29577951; } } } else { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 10; if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } } } if (this.ChangeType != 10) { if (this.ActionCount == 6) { var TempVec = SNorm(SSub(WMPos, _parent.Pos)); if (_parent.StandFlag == false) { _parent.Vec = SScale(TempVec, 20); } } if (this.ActionCount == 9) { if (_parent.StandFlag != true) { if (!this.left._visible) { this.right.action1.arm._rotation = 0; } else { this.left.action1.arm._rotation = 0; } } else { if (!this.left._visible) { this.right.action1.arm._rotation = Math.atan2(_parent.HorizonVec.y, _parent.HorizonVec.x) * -1 * 57.29577951 + 180; } else { this.left.action1.arm._rotation = Math.atan2(_parent.HorizonVec.y, _parent.HorizonVec.x) * 57.29577951; } } var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); var Line1 = SAdd(SGet(_parent.Pos.x, _parent.Pos.y), SScale(_parent.HorizonVec, 375)); var Line2 = SAdd(SGet(_parent.Pos.x, _parent.Pos.y), SScale(_parent.HorizonVec, -375)); i = 0; goto 2649; for (;;) { ++i; label 2649: if (i >= WWeaponHitIndexNum) break; var that; that = WWeaponEvalHitIndex[i]; if (_global.Lim_Circle_Hit(Line1, Line2, that.Pos, that.Radius + 100)) { this.AttackReactionVec = ParabolaVec(true, 20, _global.WGravity, that.Pos, CenPos); if (this.AttackReactionVec.y == 0 && this.AttackReactionVec.x == 0) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), -10), SGet(0, -10)); } that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37; that.Vec.x = this.AttackReactionVec.x; that.Vec.y = this.AttackReactionVec.y; _parent.se.gotoAndPlay('tap'); } } i = 0; goto 3164; for (;;) { ++i; label 3164: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Lim_Circle_Hit(Line1, Line2, that.Pos, that.Radius + 100)) { this.AttackReactionVec = ParabolaVec(true, 20, _global.WGravity, that.Pos, CenPos); if (this.AttackReactionVec.y == 0 && this.AttackReactionVec.x == 0) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), -10), SGet(0, -10)); } that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 3725; for (;;) { ++i; label 3725: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Lim_Circle_Hit(Line1, Line2, that.HitPos, that.HitRadius + 100)) { this.AttackReactionVec = ParabolaVec(true, 20, _global.WGravity, that.Pos, CenPos); if (this.AttackReactionVec.y == 0 && this.AttackReactionVec.x == 0) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), -10), SGet(0, -10)); } that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (this.ActionCount == 15 && this.ChangeFlag == false) { _parent.RapidShotNum -= 2; var MaxNum = 2; var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); var m = 0; goto 4429; for (;;) { ++m; label 4429: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 1; that.FormatAppFlag = false; that._rotation = 90; if (m != 0) { that.Direction = 1; that.Pos = SAdd(_parent.Pos, SGet(100, 0)); that.Vec = ParabolaVec(true, 20, _global.WGravity, that.Pos, CenPos); that.Omega = 30; } else { that.Direction = -1; that.Pos = SAdd(_parent.Pos, SGet(-100, 0)); that.Vec = ParabolaVec(true, 20, _global.WGravity, that.Pos, CenPos); that.Omega = -30; } that.SpinFlag = true; } } if (0 >= MWheel) { if (MWheel < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 1; } } else { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 1; } if (MLeftUp) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 2; } if (MLeftPress && this.ActionCount == 14) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 3; } if (MMiddleUp) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 5; } if ((this.ActionCount == 6 || this.ActionCount == 14) && this.ChangeFlag == true) { if (this.ChangeType != 1) { if (this.ChangeType != 2) { if (this.ChangeType != 3) { if (this.ChangeType == 5) { _parent.SetVisible('swing', _parent.Direction); } } else { _parent.SetVisible('backDraw', _parent.Direction); } } else { _parent.SetVisible('doubleShot', _parent.Direction); } } else { _parent.Direction = this.ChangeDirection; _parent.SetVisible('doubleTwist', _parent.Direction); _parent.doubleTwist.ActionRepeat = 3; _parent.doubleTwist.ReleaseFlag = true; _parent.doubleTwist.ActionAimFlag = true; } this._visible = false; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; } } else { if (this.ActionCount == 8) { _parent.RapidShotNum -= 2; var MaxNum = 2; var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); var m = 0; goto 5878; for (;;) { ++m; label 5878: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 1; that.FormatAppFlag = false; that._rotation = 90; if (m != 0) { that.Direction = 1; that.Pos = SAdd(_parent.Pos, SGet(30, 40)); that.Vec.x = 0; that.Vec.y = 0; that.Omega = 0; } else { that.Direction = -1; that.Pos = SAdd(_parent.Pos, SGet(-30, 40)); that.Vec.x = 0; that.Vec.y = 0; that.Omega = 0; } that.SpinFlag = true; } } if (8 < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ChangeFlag = false; this.ChangeDirection = 0; } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ChangeFlag = false; this.ChangeDirection = 0; } } } } instance quickDraw of movieClip 198 マミクイックドロー { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 600; this._visible = false; this.JumpVec = SGet(0, 0); this.ShotVec = SGet(0, 0); this.Press = 40; this.GapActionCount = 0; this.OldActionNum = 0; this.ActionNum = 0; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.ActionNum = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this.Press = 30 + 5 * _parent.LvCount; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } this.ActionNum = 1; this.GapActionCount = 0; this.OldActionNum = 0; } if (this.OldActionNum != this.ActionNum) { this.GapActionCount = 0; this.OldActionNum = this.ActionNum; } ++this.GapActionCount; if (3 < this.GapActionCount && 6 >= this.GapActionCount) { this.ShotVec = ParabolaVec(false, this.Press, _global.WGravity, _parent.Pos, WTPos); if (this.ShotVec.x == 0 && this.ShotVec.y == 0) { this.ShotVec = SScale(SNorm(SSub(WTPos._parent.Pos)), this.Press); } var TempAtan; if (!this.left._visible) { TempAtan = Math.atan2(this.ShotVec.y, this.ShotVec.x) * -1 * 57.29577951 + 180; this.right.action1.shot.arm._rotation = TempAtan; this.right.action2.shot.arm._rotation = TempAtan; this.right.action3.shot.arm._rotation = TempAtan; this.right.action4.shot.arm._rotation = TempAtan; this.right.action5.shot.arm._rotation = TempAtan; } else { TempAtan = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951; this.left.action1.shot.arm._rotation = TempAtan; this.left.action2.shot.arm._rotation = TempAtan; this.left.action3.shot.arm._rotation = TempAtan; this.left.action4.shot.arm._rotation = TempAtan; this.left.action5.shot.arm._rotation = TempAtan; } } if (_parent.StandFlag) { _parent.Vec.x = _parent.HorizonVec.x * (_parent.Direction * -1) * 1; _parent.Vec.y = _parent.HorizonVec.y * (_parent.Direction * -1) * 1; } if (this.ActionNum == 0) { goto 4819; } else { if (this.ActionNum == 1) { if (this.GapActionCount == 13) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart3'); } else { this.left.gotoAndPlay('movieStart3'); } this.ActionNum = 3; } goto 4819; } else { if (this.ActionNum == 2) { if (this.GapActionCount == 5) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 2468; for (;;) { ++m; label 2468: if (m >= MaxNum) break; var that = WGetBulletEval(); that.FormatFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 100)); that.Vec = SEqual(this.ShotVec); } } if (this.GapActionCount == 10) { var MaxNum = 1; var m = 0; goto 2686; for (;;) { ++m; label 2686: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 2; that.Direction = _parent.Direction; that.ActionCountLimFlag = true; that.ActionCountLim = 20; that.Omega = 0; that.SpinFlag = true; that._rotation = _parent.Direction * 90; that.Pos = SAdd(_parent.Pos, SGet(_parent.Direction * -10, -10)); that.Vec = SGet(_parent.Direction * -10, -5); } } if (this.GapActionCount == 13) { if (1 >= _parent.RapidShotNum) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart5'); } else { this.left.gotoAndPlay('movieStar5'); } this.ActionNum = 5; } else { if (!this.left._visible) { this.right.gotoAndPlay('movieStart3'); } else { this.left.gotoAndPlay('movieStart3'); } this.ActionNum = 3; } } goto 4819; } else { if (this.ActionNum == 3) { if (this.GapActionCount == 5) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 3342; for (;;) { ++m; label 3342: if (m >= MaxNum) break; var that = WGetBulletEval(); that.FormatFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 100)); that.Vec = SEqual(this.ShotVec); } } if (this.GapActionCount == 10) { var MaxNum = 1; var m = 0; goto 3560; for (;;) { ++m; label 3560: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 2; that.Direction = _parent.Direction; that.ActionCountLimFlag = true; that.ActionCountLim = 20; that.Omega = 0; that.SpinFlag = true; that._rotation = _parent.Direction * 90; that.Pos = SAdd(_parent.Pos, SGet(_parent.Direction * -10, -10)); that.Vec = SGet(_parent.Direction * -10, -5); } } if (this.GapActionCount == 13) { if (1 >= _parent.RapidShotNum) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart4'); } else { this.left.gotoAndPlay('movieStart4'); } this.ActionNum = 4; } else { if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } this.ActionNum = 2; } } goto 4819; } else { if (this.ActionNum == 4) { } else { if (this.ActionNum == 5) { if (this.GapActionCount == 5) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 4237; for (;;) { ++m; label 4237: if (m >= MaxNum) break; var that = WGetBulletEval(); that.FormatFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 100)); that.Vec = SEqual(this.ShotVec); } } if (this.GapActionCount == 10) { var MaxNum = 1; var m = 0; goto 4455; for (;;) { ++m; label 4455: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 2; that.Direction = _parent.Direction; that.ActionCountLimFlag = true; that.ActionCountLim = 20; that.Omega = 0; that.SpinFlag = true; that._rotation = _parent.Direction * 90; that.Pos = SAdd(_parent.Pos, SGet(_parent.Direction * -10, -10)); that.Vec = SGet(_parent.Direction * -10, -5); } } if (this.GapActionCount == 13) { this.ActionCount = this.ActionTime + 1; } } else {} } } } } } label 4819: this.ActionNum; if (1 < this.ActionCount && MLeftUp) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 4; } if (this.ChangeFlag == true && this.ChangeType >= 2) { if (this.ChangeType != 2) { if (this.ChangeType != 3) { if (this.ChangeType == 4) { _parent.throwing.WeaponNum = _parent.RapidShotNum; _parent.RapidShotNum = 0; _parent.SetVisible('throwing', _parent.Direction); } } else {} } else {} this._visible = false; this.ActionCount = 0; this.ActionNum = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.ActionNum = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance singleShot of movieClip 206 マミシングルショット { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 10; this._visible = false; this.ShotVec = SGet(0, 0); this.Press = 40; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { this.ActionCount = 0; } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this.Press = 30 + 5 * _parent.LvCount; ++_global.WCharActionCount; ++_parent.RapidShotNum; if (!this.left._visible) { this.right.gotoAndPlay('movieStart'); } else { this.left.gotoAndPlay('movieStart'); } this.ShotVec = ParabolaVec(false, this.Press, _global.WGravity, _parent.Pos, WTPos); } if (4 < this.ActionCount && 9 >= this.ActionCount) { if (!this.left._visible) { this.right.shot.fire.arm._rotation = Math.atan2(this.ShotVec.y, this.ShotVec.x) * -1 * 57.29577951 + 180; } else { this.left.shot.fire.arm._rotation = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951; } } if (this.ActionCount == 5) { this.ShotVec = ParabolaVec(false, this.Press, _global.WGravity, _parent.Pos, WTPos); --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 1184; for (;;) { ++m; label 1184: if (m >= MaxNum) break; var that = WGetBulletEval(); that.FormatFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 100)); that.Vec = SEqual(this.ShotVec); } } if (this.ActionCount == 9) { var MaxNum = 1; var m = 0; goto 1402; for (;;) { ++m; label 1402: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 2; that.Direction = _parent.Direction; that.ActionCountLimFlag = true; that.ActionCountLim = 20; that._rotation = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951; that.Omega = 0; that.SpinFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 70)); that.Vec = SGet(0, -5); } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; } } } } instance singleTwist of movieClip 208 マミシングルツイスト { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 75; this._visible = false; this.Press = 15; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 3; this.MoveVecScale = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { if (_parent.StandFlag == true) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.MoveVecScale = 0; this.ActionCount = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { this.AttackPower = 15 + _parent.LvCount * 10; _parent.ActionFlag = true; this._rotation = 0; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); this.right.action2.arm._rotation = 0; } else { this.left.gotoAndPlay('movieStart1'); this.left.action2.arm._rotation = 0; } this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.MoveVecScale = 10; } if (14 >= this.ActionCount) { this.MoveVecScale *= 0.95; if (!_parent.StandFlag) { var TempVec = SNorm(SSub(WMPos, _parent.Pos)); _parent.Vec.x = _parent.Direction * (this.MoveVecScale * -1); _parent.Vec.y = TempVec.y * 5; } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * (this.MoveVecScale * -1); _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * (this.MoveVecScale * -1); } } if (14 < this.ActionCount && 61 >= this.ActionCount) { if (!this.left._visible) { this.right.action2.arm._rotation += 20 * _parent.Direction; } else { this.left.action2.arm._rotation += 20 * _parent.Direction; } this.MoveVecScale *= 0.95; if (!_parent.StandFlag) { var TempVec = SNorm(SSub(WMPos, _parent.Pos)); _parent.Vec.x = _parent.Direction * this.MoveVecScale; _parent.Vec.y = TempVec.y * 5; } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * this.MoveVecScale; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * this.MoveVecScale; } if (this.ActionCount % 4 == 0) { var CenPos = SGet(_parent.Pos.x + _parent.Radius * 1.5 * _parent.Direction, _parent.Pos.y); i = 0; goto 2450; for (;;) { ++i; label 2450: if (i >= WWeaponHitIndexNum) break; var that; that = WWeaponEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 100)) { var JumpVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 5), SGet(10 * _parent.Direction, -10)); that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('tap'); } } i = 0; goto 2829; for (;;) { ++i; label 2829: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 120)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 5), SGet((this.ActionCount / 2 + 5) * _parent.Direction, -5)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 3297; for (;;) { ++i; label 3297: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + 100)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 5), SGet((this.ActionCount / 2 + 5) * _parent.Direction, -5)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } } if (this.ActionCount == 14) { this.MoveVecScale = 20; if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } } if (this.ActionCount == 61) { this.MoveVecScale = 0; if (!this.left._visible) { this.right.gotoAndPlay('movieStart3'); } else { this.left.gotoAndPlay('movieStart3'); } if (_parent.StandFlag) { _parent.Vec.x = 0; _parent.Vec.y = 0; } } if (0 < MWheel) { this.ChangeDirection = 1; this.ChangeType = 1; } if (MWheel < 0) { this.ChangeDirection = -1; this.ChangeType = 1; } if (this.ChangeDirection < 0 && 0 < _parent.Direction && this.ChangeType == 1) { if (this.ActionCount < 60) { this.ActionCount = 60; } } if (0 < this.ChangeDirection && _parent.Direction < 0 && this.ChangeType == 1) { if (this.ActionCount < 60) { this.ActionCount = 60; } } if (MLeftUp) { this.ChangeFlag = true; this.ChangeType = 2; } if (MMiddleUp) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 5; } if (14 < this.ActionCount && this.ChangeFlag && this.ChangeType >= 2) { if (this.ChangeType != 2) { if (this.ChangeType == 5) { _parent.SetVisible('swing', _parent.Direction); } } else { _parent.SetVisible('jumpShot', _parent.Direction); } this._visible = false; this.ActionCount = 0; if (_parent.StandFlag == true) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.MoveVecScale = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ChangeType = 0; this.ChangeFlag = false; this.ChangeDirection = 0; } if (this.ActionCount == 75 && this.ChangeFlag == false) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 5038; for (;;) { ++m; label 5038: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 1; that.FormatAppFlag = false; that.Direction = _parent.Direction; that._rotation = 90; that.Omega = 37 * _parent.Direction; that.SpinFlag = true; that.Pos = SAdd(_parent.Pos, SGet(0, -80)); that.Vec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (that.Vec.y == 0 && that.Vec.x == 0) { that.Vec = SScale(SNorm(SSub(WMPos, that.Pos)), 15); } } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.MoveVecScale = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance doubleShot of movieClip 210 マミダブルショット { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 22; this._visible = false; this.ShotVec1 = SGet(0, 0); this.ShotVec2 = SGet(0, 0); this.Press = 60; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this.Press = 30 + 5 * _parent.LvCount; this.gotoAndPlay('movieStart1'); ++_global.WCharActionCount; var TempA = 0; var TempB1 = 1000000; var TempB2 = 1000000; var TempC1 = SGet(0, 0); var TempC2 = SGet(0, 0); var TempD1 = false; var TempD2 = false; var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); i = 0; goto 1062; for (;;) { ++i; label 1062: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + 900)) { var a = that.Pos.x - CenPos.x; var b = that.Pos.y - CenPos.y; TempA = a * a + b * b; if (0 >= a) { if (TempA < TempB2) { TempB2 = TempA; TempC2 = SEqual(that.HitPos); TempD2 = true; } } else { if (TempA < TempB1) { TempB1 = TempA; TempC1 = SEqual(that.HitPos); TempD1 = true; } } } } i = 0; goto 1439; for (;;) { ++i; label 1439: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 900)) { var a = that.Pos.x - CenPos.x; var b = that.Pos.y - CenPos.y; TempA = a * a + b * b; if (0 >= a) { if (TempA < TempB2) { TempB2 = TempA; TempC2 = SEqual(that.Pos); TempD2 = true; } } else { if (TempA < TempB1) { TempB1 = TempA; TempC1 = SEqual(that.Pos); TempD1 = true; } } } } if (TempD1 == true && TempD2 == true) { this.ShotVec1 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, SGet(20, 0)), TempC1); this.ShotVec2 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, SGet(-20, 0)), TempC2); if (this.ShotVec1.x == 0 && this.ShotVec1.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC1, SAdd(_parent.Pos, SGet(20, 0)))), this.Press); } if (this.ShotVec2.x == 0 && this.ShotVec2.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC2, SAdd(_parent.Pos, SGet(-20, 0)))), this.Press); } } if (TempD1 == true && TempD2 == false) { this.ShotVec1 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, SGet(20, 0)), TempC1); this.ShotVec2 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, SGet(-20, 0)), TempC1); if (this.ShotVec1.x == 0 && this.ShotVec1.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC1, SAdd(_parent.Pos, SGet(20, 0)))), this.Press); } if (this.ShotVec2.x == 0 && this.ShotVec2.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC1, SAdd(_parent.Pos, SGet(-20, 0)))), this.Press); } } if (TempD2 == true && TempD1 == false) { this.ShotVec1 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, SGet(20, 0)), TempC2); this.ShotVec2 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, SGet(-20, 0)), TempC2); if (this.ShotVec1.x == 0 && this.ShotVec1.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC2, SAdd(_parent.Pos, SGet(20, 0)))), this.Press); } if (this.ShotVec2.x == 0 && this.ShotVec2.y == 0) { this.ShotVec = SScale(SNorm(SSub(TempC2, SAdd(_parent.Pos, SGet(-20, 0)))), this.Press); } } if (TempD2 == false && TempD1 == false) { this.ShotVec1 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, SGet(20, 0)), WTPos); this.ShotVec2 = ParabolaVec(false, this.Press, _global.WGravity, SAdd(_parent.Pos, SGet(-20, 0)), WTPos); if (this.ShotVec1.x == 0 && this.ShotVec1.y == 0) { this.ShotVec = SScale(SNorm(SSub(WTPos, SAdd(_parent.Pos, SGet(20, 0)))), this.Press); } if (this.ShotVec2.x == 0 && this.ShotVec2.y == 0) { this.ShotVec = SScale(SNorm(SSub(WTPos, SAdd(_parent.Pos, SGet(-20, 0)))), this.Press); } } } if (3 < this.ActionCount && 9 >= this.ActionCount) { var Si1 = _global.Sight_360(180, this.action1.shot.arm1._rotation, 0); if (Si1 != 0) { if (_global.Sight_360(15, this.action1.shot.arm1._rotation, 0) == 0) { this.action1.shot.arm1._rotation += Si1 * 15; } else { this.action1.shot.arm1._rotation = 0; } } var Si2 = _global.Sight_360(180, this.action1.shot.arm2._rotation, 180); if (Si2 != 0) { if (_global.Sight_360(15, this.action1.shot.arm2._rotation, 180) == 0) { this.action1.shot.arm2._rotation += Si2 * 15; } else { this.action1.shot.arm2._rotation = 180; } } } if (this.ActionCount == 4) { _parent.RapidShotNum -= 2; this.action1.shot.arm1._rotation = Math.atan2(this.ShotVec1.y, this.ShotVec1.x) * 57.29577951; this.action1.shot.arm2._rotation = Math.atan2(this.ShotVec2.y, this.ShotVec2.x) * 57.29577951; var MaxNum = 2; var m = 0; goto 4912; for (;;) { ++m; label 4912: if (m >= MaxNum) break; var that = WGetBulletEval(); that.FormatFlag = true; if (m != 0) { that.Pos = SAdd(SAdd(_parent.Pos, SGet(-20, 0)), SScale(SNorm(this.ShotVec2), 100)); that.Vec = SEqual(this.ShotVec2); } else { that.Pos = SAdd(SAdd(_parent.Pos, SGet(20, 0)), SScale(SNorm(this.ShotVec1), 100)); that.Vec = SEqual(this.ShotVec1); } } } if (this.ActionCount == 8 && 0 < _parent.RapidShotNum) { var MaxNum = 2; var m = 0; goto 5348; for (;;) { ++m; label 5348: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 2; that.Direction = _parent.Direction; that.ActionCountLimFlag = true; that.ActionCountLim = 20; that._rotation = 90; if (m != 0) { that.Direction = 1; that.Pos = SAdd(_parent.Pos, SGet(50, 0)); that.Vec = SGet(5, -15); that.Omega = 57; } else { that.Direction = -1; that.Pos = SAdd(_parent.Pos, SGet(-50, 0)); that.Vec = SGet(-5, -15); that.Omega = -57; } that.SpinFlag = true; } this.ActionCount = 0; this._visible = false; this.gotoAndPlay('movieStart0'); _parent.SetVisible('turnShot', _parent.Direction); } if (this.ActionCount == 21) { var MaxNum = 2; var m = 0; goto 5905; for (;;) { ++m; label 5905: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 2; that.Direction = _parent.Direction; that.ActionCountLimFlag = true; that.ActionCountLim = 20; that._rotation = 90; if (m != 0) { that.Direction = 1; that.Pos = SAdd(_parent.Pos, SGet(50, 0)); that.Vec = SGet(15, -5); that.Omega = 30; } else { that.Direction = -1; that.Pos = SAdd(_parent.Pos, SGet(-50, 0)); that.Vec = SGet(-15, -5); that.Omega = -30; } that.SpinFlag = true; } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.gotoAndPlay('movieStart0'); } } } } instance doubleTwist of movieClip 212 マミダブルツイスト { onClipEvent (load) { this.ActionCount = 0; this.ActionRepeat = 3; this.ActionTime = 8 * this.ActionRepeat; this.ReleaseFlag = true; this._visible = false; this.Press = 15; this.DotDirection = 0; this.AttackPower = 25; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 3; this.MoveVecScale = 0; this.ChangeType = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ActionAimFlag = false; this.LeftRotationLog = 0; this.RightRotationLog = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { if (_parent.StandFlag == true) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ChangeFlag = false; this.ChangeDirection = 0; this.MoveVecScale = 0; this.ActionCount = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { this.AttackPower = 40 + _parent.LvCount * 20; _parent.ActionFlag = true; this.ActionTime = 8 * this.ActionRepeat; this._rotation = 0; ++_global.WCharActionCount; this.ChangeType = 0; this.ChangeFlag = false; this.ChangeDirection = 0; if (_parent.StandFlag == true) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.DotDirection = 0; this.MoveVecScale = 0; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } this.left.action1.arm._rotation = 0; this.right.action1.arm._rotation = 0; this.left.action1.body._rotation = 0; this.right.action1.body._rotation = 0; } if (!this.ActionAimFlag) { this.MoveVecScale *= 0.95; if (_parent.StandFlag == true) { _parent.Vec.x = _parent.HorizonVec.x * this.DotDirection * this.MoveVecScale; _parent.Vec.y = _parent.HorizonVec.y * this.DotDirection * this.MoveVecScale; } if (this.ActionCount % 8 == 1 && this.ActionCount != 8 * this.ActionRepeat + 1) { this.MoveVecScale = 10; this.DotDirection = 0; var TempVec = SNorm(SSub(MPos, SGet(_parent._x, _parent._y))); if (_parent.StandFlag != false) { this.DotDirection = SDot(_parent.HorizonVec, TempVec); _parent.Vec.x = _parent.HorizonVec.x * this.DotDirection * 10; _parent.Vec.y = _parent.HorizonVec.y * this.DotDirection * 10; } else { _parent.Vec = SScale(TempVec, 10); } if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } if (_parent.StandFlag != true) { if (!this.left._visible) { this.right.action1.arm._rotation = 0; } else { this.left.action1.arm._rotation = 0; } } else { if (!this.left._visible) { this.right.action1.arm._rotation = Math.atan2(_parent.HorizonVec.y, _parent.HorizonVec.x) * -1 * 57.29577951 + 180; } else { this.left.action1.arm._rotation = Math.atan2(_parent.HorizonVec.y, _parent.HorizonVec.x) * 57.29577951; } } } } else { if (this.ActionCount % 8 == 1 && this.ActionCount != 8 * this.ActionRepeat + 1 && this.ActionCount != 1) { this.LeftRotationLog = this.left.action1.arm._rotation; this.RightRotationLog = this.right.action1.arm._rotation; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } this.left.action1.arm._rotation = this.LeftRotationLog; this.right.action1.arm._rotation = this.RightRotationLog; } this.left.action1.body._rotation = (this.ActionCount - 1) * 45; this.right.action1.body._rotation = (this.ActionCount - 1) * 45; var Si1 = 0; var Si2 = 0; var TempVec = SNorm(SSub(WMPos, _parent.Pos)); var TempAtan = Math.atan2(TempVec.y, TempVec.x); var Atan = int(TempAtan * 57.29577951); if (this.ActionCount % 8 == 1 && this.ActionCount != 8 * this.ActionRepeat + 1) { _parent.StandFlag = false; _parent.Vec = ParabolaVec(true, 20, _global.WGravity, _parent.Pos, WMPos); if (_parent.Vec.y == 0 && _parent.Vec.x == 0) { _parent.Vec = SScale(TempVec, 20); } } var Roll = 30; if (!this.left._visible) { var Si1 = _global.Sight_360(180, this.right.action1.arm._rotation * -1 - 90, Atan); if (Si1 != -1) { if (Si1 == 1) { var Si2 = _global.Sight_360(180, this.right.action1.arm._rotation * -1, Atan); if (Si2 != 0) { if (_global.Sight_360(Roll, this.right.action1.arm._rotation * -1, Atan) == 0) { this.right.action1.arm._rotation -= Si2 * Roll; } else { this.right.action1.arm._rotation = Atan * -1; } } } } else { var Si2 = _global.Sight_360(180, this.right.action1.arm._rotation * -1 + 180, Atan); if (Si2 != 0) { if (_global.Sight_360(Roll, this.right.action1.arm._rotation * -1 + 180, Atan) == 0) { this.right.action1.arm._rotation -= Si2 * Roll; } else { this.right.action1.arm._rotation = Atan * -1 + 180; } } } } else { Si1 = _global.Sight_360(180, this.left.action1.arm._rotation - 90, Atan); if (Si1 != -1) { if (Si1 == 1) { var Si2 = _global.Sight_360(180, this.left.action1.arm._rotation, Atan); if (Si2 != 0) { if (_global.Sight_360(Roll, this.left.action1.arm._rotation, Atan) == 0) { this.left.action1.arm._rotation += Si2 * Roll; } else { this.left.action1.arm._rotation = Atan; } } } } else { var Si2 = _global.Sight_360(180, this.left.action1.arm._rotation + 180, Atan); if (Si2 != 0) { if (_global.Sight_360(Roll, this.left.action1.arm._rotation + 180, Atan) == 0) { this.left.action1.arm._rotation += Si2 * Roll; } else { this.left.action1.arm._rotation = Atan + 180; } } } } } if (this.ActionCount % 8 == 1) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); var TempHorizonVec; if (!this.left._visible) { TempHorizonVec = SGet(Math.cos(this.right.action1.arm._rotation * -1 * 0.0174532925), Math.sin(this.right.action1.arm._rotation * -1 * 0.0174532925)); } else { TempHorizonVec = SGet(Math.cos(this.left.action1.arm._rotation * 0.0174532925), Math.sin(this.left.action1.arm._rotation * 0.0174532925)); } var Line1 = SAdd(SGet(_parent.Pos.x, _parent.Pos.y), SScale(TempHorizonVec, 375)); var Line2 = SAdd(SGet(_parent.Pos.x, _parent.Pos.y), SScale(TempHorizonVec, -375)); i = 0; goto 5644; for (;;) { ++i; label 5644: if (i >= WWeaponHitIndexNum) break; var that; that = WWeaponEvalHitIndex[i]; if (_global.Lim_Circle_Hit(Line1, Line2, that.HitPos, that.HitRadius + 100)) { var JumpVec = ParabolaVec(true, 20, _global.WGravity, that.Pos, CenPos); if (JumpVec.y == 0 && JumpVec.x == 0) { JumpVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), -10), SGet(0, -10)); } that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('tap'); } } i = 0; goto 6123; for (;;) { ++i; label 6123: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Lim_Circle_Hit(Line1, Line2, that.Pos, that.Radius + 100)) { this.AttackReactionVec = ParabolaVec(true, 20, _global.WGravity, that.Pos, CenPos); if (this.AttackReactionVec.y == 0 && this.AttackReactionVec.x == 0) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), -10), SGet(0, -10)); } that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 6684; for (;;) { ++i; label 6684: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Lim_Circle_Hit(Line1, Line2, that.Pos, that.Radius + 100)) { this.AttackReactionVec = ParabolaVec(true, 20, _global.WGravity, that.Pos, CenPos); if (this.AttackReactionVec.y == 0 && this.AttackReactionVec.x == 0) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), -10), SGet(0, -10)); } that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (this.ActionCount == 1) { this.MoveVecScale = 20; } if (this.ActionCount == 8 * this.ActionRepeat + 1) { this.MoveVecScale = 0; if (_parent.StandFlag == true) { _parent.Vec.x = 0; _parent.Vec.y = 0; } } if (MLeftUp) { this.ChangeFlag = true; this.ChangeType = 2; } if (MMiddleUp) { this.ChangeFlag = true; this.ChangeType = 5; } if (this.ActionCount % 8 == 1 && this.ChangeFlag == true && this.ChangeType >= 2) { if (this.ChangeType != 2) { if (this.ChangeType == 5) { _parent.SetVisible('swing', _parent.Direction); } } else { _parent.SetVisible('doubleShot', _parent.Direction); } this._visible = false; this.ActionCount = 0; this.MoveVecScale = 0; if (_parent.StandFlag == true) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ChangeType = 0; this.ChangeFlag = false; this.ChangeDirection = 0; } if (this.ActionCount == 8 * this.ActionRepeat + 1 && this.ChangeFlag == false && this.ReleaseFlag) { _parent.RapidShotNum -= 2; var MaxNum = 2; var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); var m = 0; goto 8122; for (;;) { ++m; label 8122: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 1; that.FormatAppFlag = false; that._rotation = 90; if (m != 0) { that.Direction = 1; that.Pos = SAdd(_parent.Pos, SGet(100, 0)); that.Vec = ParabolaVec(true, 20, _global.WGravity, that.Pos, CenPos); that.Omega = 30; } else { that.Direction = -1; that.Pos = SAdd(_parent.Pos, SGet(-100, 0)); that.Vec = ParabolaVec(true, 20, _global.WGravity, that.Pos, CenPos); that.Omega = -30; } that.SpinFlag = true; } } if (this.ActionTime < this.ActionCount && this.ChangeFlag == false) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.MoveVecScale = 0; this.ChangeFlag = false; this.ChangeDirection = 0; if (_parent.StandFlag == true) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance kick of movieClip 200 マミキック { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 8; this._visible = false; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 3; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } this.AttackPower = 35 + _parent.LvCount * 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 3; _parent.Vec = SGet(0, 0); this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } if (this.ActionCount == 1) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); var that; i = 0; goto 1459; for (;;) { ++i; label 1459: if (i >= WWeaponHitIndexNum) break; that = WWeaponEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { if (!_global.TAimFlag) { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } else { var JumpVec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (!(JumpVec.y == 0 && JumpVec.x == 0)) { if (SDot(JumpVec, SSub(that.Pos, _parent.Pos)) < 0) { JumpVec = ParabolaVec(true, 30, _global.WGravity, that.Pos, WTPos); } if (!(JumpVec.y == 0 && JumpVec.x == 0)) { if (that.StandFlag) { if (0 < SCross(that.HorizonVec, JumpVec)) { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } } } else { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } } else { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } } that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37 * _parent.Direction; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('hit'); } } if (1) { var that; that = WPartnerEval; if (that.ShoulderFlag == false) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; that.Vec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (that.Vec.x == 0 && that.Vec.y == 0) { that.Vec = SScale(SNorm(SSub(WTPos, that.Pos)), 20); } that.SetVisible('rolling', that.Direction); _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } i = 0; goto 2735; for (;;) { ++i; label 2735: if (i >= WMagicHitIndexNum) break; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 15), SGet(0, -10)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('hit'); ++_global.WCharActionHitCount; } } i = 0; goto 3163; for (;;) { ++i; label 3163: if (i >= WWitchHitIndexNum) break; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + _parent.Radius)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 15), SGet(0, -10)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('hit'); ++_global.WCharActionHitCount; } } } if (MMiddlePress && this.ActionCount == 8 && _parent.StandFlag && 8 < MMiddlePressCount) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); var that; var TempHitFlag = false; i = 0; goto 3736; for (;;) { ++i; label 3736: if (i >= WWeaponHitIndexNum) break; that = WWeaponEvalHitIndex[i]; if (that.ActionNum == 1) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { TempHitFlag = true; } else {} } } if (TempHitFlag == false) { i = 0; goto 3925; for (;;) { ++i; label 3925: if (i >= WMagicHitIndexNum) break; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { TempHitFlag = true; } else {} } if (TempHitFlag == false) { i = 0; goto 4087; for (;;) { ++i; label 4087: if (i >= WWitchHitIndexNum) break; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + _parent.Radius)) { TempHitFlag = true; } else {} } } } if (TempHitFlag) { this.ActionCount = 0; _parent.SetVisible('tripKick', _parent.Direction); this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } } if (this.ActionCount == 1 && MMiddlePress) { this.ChangeType = 66; } if (this.ChangeType != 66) { if (0 < MWheel) { this.ChangeDirection = 1; this.ChangeType = 1; } if (MWheel < 0) { this.ChangeDirection = -1; this.ChangeType = 1; } if (0 >= this.ChangeDirection && MMiddleUp && 0 < _parent.Direction) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 2; } if (this.ChangeDirection >= 0 && MMiddleUp && _parent.Direction < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 2; } if (0 < this.ChangeDirection && 0 < _parent.Direction) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 3; } if (this.ChangeDirection < 0 && _parent.Direction < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 3; } if (1 < this.ActionCount && MLeftUp && _parent.StandFlag == false) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 4; } } if (this.ChangeFlag == true && this.ChangeType >= 2 && this.ActionCount == this.ActionTime) { if (this.ChangeType != 2) { if (this.ChangeType != 3) { if (this.ChangeType == 4) { _parent.SetVisible('tripSlap', _parent.Direction); } } else { _parent.SetVisible('tripKick', _parent.Direction); } } else { _parent.SetVisible('sliding', _parent.Direction); } this._visible = false; this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance tripKick of movieClip 2282 トリップキック { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 8; this._visible = false; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 3; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } this.AttackPower = 35 + _parent.LvCount * 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 3; _parent.Vec = SGet(0, 0); this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } if (this.ActionCount == 1) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); var that; i = 0; goto 1451; for (;;) { ++i; label 1451: if (i >= WWeaponHitIndexNum) break; that = WWeaponEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { if (!_global.TAimFlag) { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } else { var JumpVec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (!(JumpVec.y == 0 && JumpVec.x == 0)) { if (SDot(JumpVec, SSub(that.Pos, _parent.Pos)) < 0) { JumpVec = ParabolaVec(true, 30, _global.WGravity, that.Pos, WTPos); } if (!(JumpVec.y == 0 && JumpVec.x == 0)) { if (that.StandFlag) { if (0 < SCross(that.HorizonVec, JumpVec)) { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } } } else { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } } else { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } } that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37 * _parent.Direction; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('hit'); } } if (1) { var that; that = WPartnerEval; if (that.ShoulderFlag == false) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; that.Vec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (that.Vec.x == 0 && that.Vec.y == 0) { that.Vec = SScale(SNorm(SSub(WTPos, that.Pos)), 20); } that.SetVisible('rolling', that.Direction); _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } i = 0; goto 2727; for (;;) { ++i; label 2727: if (i >= WMagicHitIndexNum) break; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 15), SGet(0, -10)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('hit'); ++_global.WCharActionHitCount; } } i = 0; goto 3155; for (;;) { ++i; label 3155: if (i >= WWitchHitIndexNum) break; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + _parent.Radius)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 15), SGet(0, -10)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('hit'); ++_global.WCharActionHitCount; } } } if (MMiddlePress && this.ActionCount == 8 && _parent.StandFlag && 8 < MMiddlePressCount) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); var that; var TempHitFlag = false; i = 0; goto 3728; for (;;) { ++i; label 3728: if (i >= WWeaponHitIndexNum) break; that = WWeaponEvalHitIndex[i]; if (that.ActionNum == 1) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { TempHitFlag = true; } else {} } } if (TempHitFlag == false) { i = 0; goto 3917; for (;;) { ++i; label 3917: if (i >= WMagicHitIndexNum) break; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { TempHitFlag = true; } else {} } if (TempHitFlag == false) { i = 0; goto 4079; for (;;) { ++i; label 4079: if (i >= WWitchHitIndexNum) break; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + _parent.Radius)) { TempHitFlag = true; } else {} } } } if (TempHitFlag) { this.ActionCount = 0; _parent.SetVisible('kick', _parent.Direction); this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } } if (this.ActionCount == 1 && MMiddlePress) { this.ChangeType = 66; } if (this.ChangeType != 66) { if (0 < MWheel) { this.ChangeDirection = 1; this.ChangeType = 1; } if (MWheel < 0) { this.ChangeDirection = -1; this.ChangeType = 1; } if (0 >= this.ChangeDirection && 0 < _parent.Direction) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 2; } if (this.ChangeDirection >= 0 && _parent.Direction < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 2; } if (1 < this.ActionCount && MLeftUp && _parent.StandFlag == false) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 4; } } if (this.ChangeFlag == true && this.ChangeType >= 2 && this.ActionCount == this.ActionTime) { if (this.ChangeType != 2) { if (this.ChangeType != 3) { if (this.ChangeType == 4) { _parent.SetVisible('roundTripSlap', _parent.Direction); } } else { _parent.SetVisible('turnJump', _parent.Direction); } } else { _parent.SetVisible('kick', _parent.Direction); } this._visible = false; this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance jumpShot of movieClip 344 マミジャンプショット { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 40; this._visible = false; this.ShotVec = SGet(0, 0); this.Press = 60; this.JumpPower = 0; this.GapActionCount = 0; this.OldActionNum = 0; this.ActionNum = 0; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ChangeFlag = false; this.ChangeDirection = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ChangeFlag = false; this.ChangeDirection = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { this.Press = 30 + 5 * _parent.LvCount; ++_global.WCharActionCount; _parent.ActionFlag = true; this._rotation = 0; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } this.ActionNum = 1; this.GapActionCount = 0; this.OldActionNum = 0; } if (this.OldActionNum != this.ActionNum) { this.GapActionCount = 0; this.OldActionNum = this.ActionNum; } ++this.GapActionCount; if (this.ActionNum == 0) { goto 4849; } else { if (this.ActionNum == 1) { if (this.GapActionCount == 1) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } var TempA = 0; var TempB = 1000000; var TempC = SGet(0, 0); var TempD = false; var CenPos = SGet(_parent.Pos.x, _parent.Pos.y + _parent.Radius); i = 0; goto 1715; for (;;) { ++i; label 1715: if (i >= WWeaponNum) break; var that; that = WWeaponEval[i]; if (that.ExistFlag && that.ActionNum == 1) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 800)) { var a = that.Pos.x - CenPos.x; var b = that.Pos.y - CenPos.y; TempA = a * a + b * b; if (TempA < TempB) { TempB = TempA; TempC = SEqual(that.Pos); TempD = true; this.JumpPower = TempA * 0.05 + 15; } } } } this.JumpPower = Math.sqrt(TempB) * 0.05 + 15; if (TempD != true) { _parent.Vec = SGet(_parent.Direction * -1 * 10, -10); } else { if (20 < JumpPower) { JumpPower = 20; } if (300 * 300 >= TempB) { var TempJumpVec = ParabolaVec(false, this.JumpPower, _global.WGravity, CenPos, TempC); if (!(TempJumpVec.x == 0 && TempJumpVec.y == 0)) { _parent.Vec = SEqual(TempJumpVec); } else { _parent.Vec = SGet(_parent.Direction * -1 * 15, -10); } } else { _parent.Vec = SGet(_parent.Direction * -1 * 15, -10); } } _parent.StandFlag = false; } if (0 < this.GapActionCount && 4 >= this.GapActionCount) { this.ShotVec = ParabolaVec(false, this.Press, _global.WGravity, _parent.Pos, WTPos); if (this.ShotVec.x == 0 && this.ShotVec.y == 0) { this.ShotVec = SScale(SNorm(SSub(WTPos, _parent.Pos)), this.Press); } if (!this.left._visible) { this.right.shot.fire.arm._rotation = Math.atan2(this.ShotVec.y, this.ShotVec.x) * -1 * 57.29577951 + 180; } else { this.left.shot.fire.arm._rotation = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951; } } if (2 < this.GapActionCount && 40 >= Gapthis.ActionCount) { this._rotation += 20; } if (this.GapActionCount == 3) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 3183; for (;;) { ++m; label 3183: if (m >= MaxNum) break; var that = WGetBulletEval(); that.FormatFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 100)); that.Vec = SEqual(this.ShotVec); } var MaxNum = 1; var m = 0; goto 3374; for (;;) { ++m; label 3374: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 2; that.Direction = _parent.Direction; that.ActionCountLimFlag = true; that.ActionCountLim = 20; that._rotation = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951; that.Omega = 0; that.SpinFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 70)); that.Vec = SGet(0, -5); } } if (6 < this.GapActionCount && this.GapActionCount < 24) { i = 0; goto 3780; for (;;) { ++i; label 3780: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(_parent.Pos, that.HitPos, that.HitRadius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 20), SGet(0, -15)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; ++_global.WCharActionHitCount; _parent.se.gotoAndPlay('tap'); } } i = 0; goto 4216; for (;;) { ++i; label 4216: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 20), SGet(0, -15)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (40 < this.GapActionCount) { if (0 >= _parent.RapidShotNum) { this.ActionCount = this.ActionTime + 1; } else { this.GapActionCount = 0; } } if (_parent.StandFlag && 8 < this.GapActionCount) { if (0 >= _parent.RapidShotNum) { this.ActionCount = this.ActionTime + 1; } else { this.GapActionCount = 0; } } } else {} } label 4849: this.ActionNum; if (0 >= MWheel) { if (MWheel < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; } } else { this.ChangeFlag = true; this.ChangeDirection = 1; } if (6 < this.GapActionCount && this.ChangeFlag == true) { _parent.Direction = this.ChangeDirection; _parent.SetVisible('rolling', _parent.Direction); this._visible = false; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; } if (this.ActionTime < this.GapActionCount || _parent.StandFlag == true && 8 < this.GapActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ChangeFlag = false; this.ChangeDirection = 0; } } } } instance dashShot of movieClip 448 ダッシュショット { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 9; this._visible = false; this.ShotVec = SGet(0, 0); this.AttackPower = 25; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 3; this.Press = 60; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { this.AttackPower = 25 + _parent.LvCount * 15; _parent.ActionFlag = true; this._rotation = 0; this.Press = 30 + 5 * _parent.LvCount; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.ShotVec = ParabolaVec(false, this.Press, _global.WGravity, _parent.Pos, WTPos); if (this.ShotVec.x == 0 && this.ShotVec.y == 0) { this.ShotVec = SScale(SNorm(SSub(WTPos, _parent.Pos)), this.Press); } } if (0 < this.ActionCount && 4 >= this.ActionCount) { } if (!(this.ActionCount == 7 || this.ActionCount == 9 || this.ActionCount == 5)) { _parent.Vec.x = 0; _parent.Vec.y = 0; } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 10; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 10; } if (this.ActionCount == 1 || this.ActionCount == 5) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); i = 0; goto 1945; for (;;) { ++i; label 1945: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 120)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 15), SGet(0, -10)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 2375; for (;;) { ++i; label 2375: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + _parent.Radius)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 15), SGet(0, -10)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (this.ActionCount == 8) { --_parent.RapidShotNum; this.ShotVec = ParabolaVec(false, this.Press, _global.WGravity, _parent.Pos, WTPos); var MaxNum = 1; var m = 0; goto 2932; for (;;) { ++m; label 2932: if (m >= MaxNum) break; var that = WGetBulletEval(); that.FormatFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 100)); that.Vec = SEqual(this.ShotVec); } } if (this.ActionCount == 10) { this.ShotVec = ParabolaVec(false, this.Press, _global.WGravity, _parent.Pos, WTPos); var MaxNum = 1; var m = 0; goto 3214; for (;;) { ++m; label 3214: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 2; that.Direction = _parent.Direction; that.ActionCountLimFlag = true; that.ActionCountLim = 20; that._rotation = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951; that.Omega = 0; that.SpinFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 70)); that.Vec = SGet(_parent.Direction * 5, -5); } } if (0 < MWheel) { this.ChangeDirection = 1; this.ChangeType = 1; } if (MWheel < 0) { this.ChangeDirection = -1; this.ChangeType = 1; } if (1 < this.ActionCount && MLeftUp && 0 < _parent.RapidShotNum) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 4; } if (1 < this.ActionCount && MMiddleUp && 0 < _parent.RapidShotNum) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 5; } if (1 < this.ActionCount && this.ChangeFlag == true && this.ChangeType >= 2) { if (this.ChangeType != 2) { if (this.ChangeType != 3) { if (this.ChangeType != 4) { if (this.ChangeType == 5) { _parent.SetVisible('swing', _parent.Direction); } } else { if (_parent.RapidShotNum < 2) { if (_parent.RapidShotNum < 1) { _parent.SetVisible('slap', _parent.Direction); } else { _parent.SetVisible('jumpShot', _parent.Direction); } } else { _parent.SetVisible('doubleShot', _parent.Direction); } } } else { _parent.SetVisible('turnJump', _parent.Direction); } } else { if (_parent.RapidShotNum < 2) { _parent.SetVisible('kick', _parent.Direction); } else { _parent.SetVisible('doubleTwist', _parent.Direction); _parent.doubleTwist.ActionRepeat = 1; _parent.doubleTwist.ReleaseFlag = false; } } this._visible = false; this.ActionCount = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); if (this.ChangeType == 1) { if (0 < _parent.Direction && this.ChangeDirection < 0) { _parent.Direction = this.ChangeDirection; _parent.DashGauge *= -1; } if (_parent.Direction < 0 && 0 < this.ChangeDirection) { _parent.Direction = this.ChangeDirection; _parent.DashGauge *= -1; } } if (_parent.DashGauge == 0) { _parent.ActionFinishFlag = true; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } } else { _parent.DashStopFlag = false; _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 20; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 20; _parent.SetVisible('dash', _parent.Direction); } } } } } instance backDraw of movieClip 542 バックドロー { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 105; this._visible = false; this.WeaponCount = 0; this.Press = 60; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.WeaponCount = 0; this.ActionCount = 0; _parent.LeftUpActionCount = 1; } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this._rotation = 0; this.Press = 30 + 5 * _parent.LvCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } this.WeaponCount = 0; } if (MLeftUp && this.ActionCount < 50) { this.ActionCount = 100; } if (this.ActionCount < 50) { if (0 < _parent.RapidShotNum) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 933; for (;;) { ++m; label 933: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 1; that.Direction = _parent.Direction * -1; that.FormatAppFlag = true; if (!_parent.StandFlag) { var TempNormVec = SGet(_parent.Direction * -1, 0); that.Pos = SAdd(_parent.Pos, SScale(TempNormVec, 12 * (2 + this.WeaponCount))); that.Vec = SGet(0, 0); that._rotation = 90; } else { var TempNormVec = SScale(_parent.HorizonVec, _parent.Direction * -1); that.Pos = SAdd(_parent.Pos, SScale(TempNormVec, 12 * (2 + this.WeaponCount))); that.Vec = SGet(0, 0); that._rotation = 90; } ++this.WeaponCount; that.Omega = 0; that.SpinFlag = true; } } } if (this.ActionCount == 49) { this.ActionCount = 48; } if (this.ActionCount == 100) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } if (!_parent.StandFlag) { _parent.Vec.x = _parent.Direction * -2; _parent.Vec.y = 0; } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * -2; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * -2; } } if (this.ActionCount == 105) { this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); _parent.SetVisible('quickDraw', _parent.Direction); this.ActionCount = 0; _parent.ActionFlag = false; this.WeaponCount = 0; } if (this.ActionCount % 4 == 3 && this.ActionCount < 40) { var MaxNum = 1; var m = 0; goto 2049; for (;;) { ++m; label 2049: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 1; that.Direction = _parent.Direction * -1; that.FormatAppFlag = true; if (!_parent.StandFlag) { var TempNormVec = SGet(_parent.Direction * -1, 0); that.Pos = SAdd(_parent.Pos, SScale(TempNormVec, 12 * (2 + this.WeaponCount))); that.Vec = SGet(0, 0); that._rotation = 90; } else { var TempNormVec = SScale(_parent.HorizonVec, _parent.Direction * -1); that.Pos = SAdd(_parent.Pos, SScale(TempNormVec, 12 * (2 + this.WeaponCount))); that.Vec = SGet(0, 0); that._rotation = 90; } ++this.WeaponCount; that.Omega = 0; that.SpinFlag = true; } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; _parent.LeftUpActionCount = 1; this.WeaponCount = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance multiDraw of movieClip 282 マルチドロー { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 24; this._visible = false; this.WeaponNum = 0; this.Press = 60; this.Radius = 0; this.Rot = 0; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.TempTarPos = new Array(WWeaponNum + 1); this.TempTarDis = new Array(WWeaponNum + 1); this.TempTarNum = 0; } onClipEvent (unload) { delete this.TempTarPos; delete this.TempTarDis; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { if (20 >= this.ActionCount) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); i = 0; goto 1260; for (;;) { ++i; label 1260: if (i >= WWeaponNum) break; var that; that = WWeaponEval[i]; if (that.ExistFlag && that.AutoFlag && that.ShotFlag == false) { that.FormatFlag = true; that.FormatType = 4; that.FormatAppFlag = false; that.RoundRadius = SSize(SSub(that.Pos, CenPos)); } } } this.ActionCount = 0; _parent.LeftUpActionCount = 1; this.left.action1.arm._visible = false; this.right.action1.arm._visible = false; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this._rotation = 0; ++_global.WCharActionCount; this.Radius = 15; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } this.Rot = 0; this.left.action1.arm._visible = false; this.right.action1.arm._visible = false; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } } if (_parent.StandFlag == false && 20 >= this.ActionCount) { _parent.Vec = SScale(SNorm(_parent.Vec), 4); _parent.Vec = SAdd(SScale(SNorm(SSub(WMPos, _parent.Pos)), 12), _parent.Vec); } if (this.ChangeType != 6) { if (10 >= this.ActionCount) { this.Radius += this.WeaponNum * 3; } if (10 < this.ActionCount && 20 >= this.ActionCount) { this.Radius -= this.WeaponNum * 3; } } else { this.Radius -= this.WeaponNum * 6; if (0 >= this.Radius) { this.Radius = 0; this.ChangeFlag = true; } } if (this.ActionCount == 1) { this.left.action1.arm._visible = true; this.right.action1.arm._visible = true; } if (1 < this.ActionCount && this.ActionCount < 20) { if (!this.left._visible) { this.right.action1.arm._xscale = (this.Radius + 100) / 1.28; this.right.action1.arm._yscale = (this.Radius + 100) / 1.28; this.Rot += 20; this.right.action1.arm._rotation = this.Rot; } else { this.left.action1.arm._xscale = (this.Radius + 100) / 1.28; this.left.action1.arm._yscale = (this.Radius + 100) / 1.28; this.Rot += 20; this.left.action1.arm._rotation = this.Rot; } } if (this.ActionCount == 20) { this.left.action1.arm._visible = false; this.right.action1.arm._visible = false; } if (this.ActionCount == 1) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); var MaxNum = this.WeaponNum; var m = 0; goto 3242; for (;;) { ++m; label 3242: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 3; that.Direction = _parent.Direction; that.ActionCountLimFlag = false; that.FormatAppFlag = true; var TempAtan = (3.141592 * 2 / this.WeaponNum) * m; var TempNormVec = SGet(Math.cos(TempAtan), Math.sin(TempAtan)); that.Pos = SAdd(CenPos, SScale(TempNormVec, this.Radius)); that.Vec = SGet(0, 0); that._rotation = Math.atan2(that.Pos.y - CenPos.y, that.Pos.x - CenPos.x) * 57.29577951; that.AutoFlag = true; that.AutoCountLim = 1000; that.AutoRotationFlag = false; that.Omega = 0; that.SpinFlag = false; } } if (20 >= this.ActionCount) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); i = 0; goto 3836; for (;;) { ++i; label 3836: if (i >= WWeaponNum) break; var that; that = WWeaponEval[i]; if (that.ExistFlag == true && that.ShotFlag == false) { if (Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 30 + this.Radius)) { if (that.ActionNum != 3) { that.FormatFlag = true; that.FormatType = 3; } that.ActionCountLimFlag = false; that.AutoCountLim = 100; that.AutoCount = 0; that.AutoFlag = true; that.Pos = SAdd(that.Pos, SSub(_parent.Pos, _parent.OldPos)); var TempVec = SSub(that.Pos, CenPos); if (_parent.Direction != 1) { TempVec = SSpinSub90(TempVec); } else { TempVec = SSpinAdd90(TempVec); } TempVec = SScale(SNorm(TempVec), 20); that.Pos = SAdd(SScale(SNorm(SSub(SAdd(TempVec, that.Pos), CenPos)), this.Radius), CenPos); that._rotation = Math.atan2(that.Pos.y - CenPos.y, that.Pos.x - CenPos.x) * 57.29577951; } } } } if (this.ActionCount == 21) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } var MaxNum = 0; var that; var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); i = 0; goto 4747; for (;;) { ++i; label 4747: if (i >= WWeaponNum) break; that = WWeaponEval[i]; if (that.ExistFlag && that.ShotFlag == false) { if (Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 30 + this.Radius)) { ++MaxNum; } } } var TempA = 0; this.TempTarNum = 0; var n = 0; goto 4962; for (;;) { ++n; label 4962: if (n >= MaxNum) break; this.TempTarDis[n] = 1000000; this.TempTarPos[n] = SGet(0, 0); } i = 0; goto 5078; for (;;) { ++i; label 5078: if (i >= WWitchHitIndexNum) break; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.Radius + 800)) { var a = that.HitPos.x - WMPos.x; var b = that.HitPos.y - WMPos.y; TempA = a * a + b * b; var n = 0; goto 5298; for (;;) { ++n; label 5298: if (n >= MaxNum) break; if (TempA < TempTarDis[n]) { var m = MaxNum; goto 5366; for (;;) { --m; label 5366: if (n >= m) break; TempTarDis[m + 1] = TempTarDis[m]; TempTarPos[m + 1] = TempTarPos[m]; } TempTarDis[n] = TempA; TempTarPos[n] = SEqual(that.HitPos); ++TempTarNum; } else {} } } } i = 0; goto 5564; for (;;) { ++i; label 5564: if (i >= WMagicHitIndexNum) break; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 800)) { var a = that.Pos.x - WMPos.x; var b = that.Pos.y - WMPos.y; TempA = a * a + b * b; var n = 0; goto 5784; for (;;) { ++n; label 5784: if (n >= MaxNum) break; if (TempA < TempTarDis[n]) { var m = MaxNum; goto 5852; for (;;) { --m; label 5852: if (n >= m) break; TempTarDis[m + 1] = TempTarDis[m]; TempTarPos[m + 1] = TempTarPos[m]; } TempTarDis[n] = TempA; TempTarPos[n] = SEqual(that.Pos); ++TempTarNum; } else {} } } } var m = 0; i = 0; goto 6061; for (;;) { ++i; label 6061: if (i >= WWeaponNum) break; that = WWeaponEval[i]; if (that.ExistFlag && that.ShotFlag == false) { if (Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 30 + this.Radius)) { that.SpinFlag = true; var TempVec = SNorm(SSub(WMPos, CenPos)); that.Pos = SEqual(CenPos); if (m >= TempTarNum) { that.Vec = SEqual(SScale(TempVec, (MaxNum - m) * 4 + 16)); } else { that.Vec = ParabolaVec(false, (MaxNum - m) * 4 + 16, _global.WGravity, CenPos, this.TempTarPos[m]); if (that.Vec.x == 0 && that.Vec.y == 0) { that.Vec = SEqual(SScale(TempVec, (MaxNum - m) * 4 + 16)); } } ++m; that.FormatFlag = true; that.FormatType = 1; that.FormatAppFlag = true; that.Direction = _parent.Direction; that._rotation = 90; that.Omega = _parent.Direction * 37; } } } } if (20 >= this.ActionCount && this.ActionCount % 2 == 0) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); i = 0; goto 6881; for (;;) { ++i; label 6881: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + this.Radius)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 10), SGet(0, -10)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; ++_global.WCharActionHitCount; _parent.se.gotoAndPlay('tap'); } } i = 0; goto 7315; for (;;) { ++i; label 7315: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + this.Radius)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 10), SGet(0, -10)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; ++_global.WCharActionHitCount; _parent.se.gotoAndPlay('tap'); } } } if (this.ChangeType == 6) { if (this.ChangeFlag == true) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); i = 0; goto 7863; for (;;) { ++i; label 7863: if (i >= WWeaponNum) break; var that; that = WWeaponEval[i]; if (that.ExistFlag == true && that.ShotFlag == false) { if (Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 30 + this.Radius)) { that.left.gotoAndPlay('movieStart0'); that.right.gotoAndPlay('movieStart0'); that._visible = false; that.ExistFlag = false; ++_parent.RapidShotNum; } } } this.ActionCount = 0; this._visible = false; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); _parent.SetVisible('turnShot', _parent.Direction); } } else { if (0 >= MWheel) { if (MWheel < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 1; } } else { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 1; } if (MLeftUp) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 2; } if (MMiddleUp) { this.ChangeFlag = 0; this.ChangeDirection = 0; this.ChangeType = 6; } if (MLeftPress && this.ActionCount == this.ActionTime) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 3; _parent.SetVisible('multiCommand', _parent.Direction); this._visible = false; this.ActionCount = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } if (1 < this.ActionCount && this.ActionCount < 20 && this.ChangeFlag == true && this.ChangeType != 6) { if (this.ChangeType != 1) { if (this.ChangeType != 2) { if (this.ChangeType == 3) { _parent.SetVisible('multiCommand', _parent.Direction); } } else { _parent.SetVisible('multiShot', _parent.Direction); _parent.multiShot.Radius = this.Radius; } } else { _parent.Direction = this.ChangeDirection; _parent.multiSatellite.Radius = this.Radius; _parent.SetVisible('multiSatellite', _parent.Direction); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this._visible = false; this.ActionCount = 0; } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance wireJump of movieClip 304 ワイヤージャンプ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 3000; this._visible = false; this.Action2Flag = false; this.Action2Count = 0; this.GapActionCount = 0; this.OldActionNum = 0; this.ActionNum = 0; this.ActionDirection = 0; this.ActionConection = 0; this.BackCount = 0; this.BackCountLim = 20; this.JumpVec = SGet(0, 0); this.HandOffFlag = false; this.HandOffCount = 0; this.Press = 30; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ShotVec = SGet(0, 0); this.WirePos = SGet(0, 0); this.left._rotation = 0; this.right._rotation = 0; this.ReversDirection = 0; this.WireReversFlag = false; this.WireReversSubFlag = false; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ribbon.gotoAndPlay('movieStart2'); this.left._rotation = 0; this.right._rotation = 0; this.HandOffFlag = false; this.HandOffCount = 0; this.GapActionCount = 0; this.OldActionNum = 0; } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this._rotation = 0; this.Press = 30 + 5 * _parent.LvCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } this.left._rotation = 0; this.right._rotation = 0; if (_parent.StandFlag) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.ActionNum = 1; this.GapActionCount = 0; this.OldActionNum = 0; this.HandOffFlag = false; this.HandOffCount = 0; this.WireReversSubFlag = false; } if (this.OldActionNum != this.ActionNum) { this.GapActionCount = 0; this.OldActionNum = this.ActionNum; } ++this.GapActionCount; if (this.ActionNum == 0) { goto 7751; } else { if (this.ActionNum == 1) { if (4 >= this.ActionCount) { } if (this.ActionCount == 5) { _parent.StandFlag = false; if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } this.ribbon.gotoAndPlay('movieStart1'); this.ActionNum = 2; } if (MLeftUp) { if (_parent.ChargePoint >= WCpIntervalFirst) { _parent.RapidShotNum += int((_parent.ChargePoint + 1 - WCpIntervalFirst) / WCpIntervalDiffer); } } goto 7751; } else { if (this.ActionNum == 2) { if (0 < _parent.RapidShotNum) { --_parent.RapidShotNum; if (!this.left._visible) { this.right.gotoAndPlay('movieStart3'); } else { this.left.gotoAndPlay('movieStart3'); } this.ActionNum = 3; } if (MWheel != 0) { this.ActionNum = 4; if (!this.left._visible) { this.right.gotoAndPlay('movieStart4'); } else { this.left.gotoAndPlay('movieStart4'); } this.BackCount = 0; this.BackCountLim = 20; this.ActionConection = 10; if (0 >= MWheel) { if (MWheel < 0) { this.ActionDirection = -1; } } else { this.ActionDirection = 1; } } if (MLeftUp) { if (_parent.ChargePoint < WCpIntervalFirst) { ++_parent.RapidShotNum; } else { _parent.RapidShotNum += int((_parent.ChargePoint + 1 - WCpIntervalFirst) / WCpIntervalDiffer); } } if (_parent.StandFlag) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; _parent.Vec.x = 0; _parent.Vec.y = 0; this.left._rotation = 0; this.right._rotation = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ribbon.gotoAndPlay('movieStart2'); } goto 7751; } else { if (this.ActionNum == 3) { if (this.GapActionCount == 1) { ++_parent.RapidShotNum; } if (3 < this.GapActionCount) { this.ShotVec = ParabolaVec(false, this.Press, _global.WGravity, _parent.Pos, WTPos); if (this.ShotVec.x == 0 && this.ShotVec.y == 0) { this.ShotVec = SScale(SNorm(SSub(WTPos, _parent.Pos)), this.Press); } if (!this.left._visible) { this.right.action3.shot.arm._rotation = Math.atan2(this.ShotVec.y, this.ShotVec.x) * -1 * 57.29577951 - this.right._rotation; } else { this.left.action3.shot.arm._rotation = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951 - this.left._rotation; } } if (this.GapActionCount == 5) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 3718; for (;;) { ++m; label 3718: if (m >= MaxNum) break; var that = WGetBulletEval(); that.FormatFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 100)); that.Vec = SEqual(this.ShotVec); } var MaxNum = 1; var m = 0; goto 3909; for (;;) { ++m; label 3909: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 2; that.Direction = _parent.Direction; that.ActionCountLimFlag = true; that.ActionCountLim = 20; that._rotation = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951; that.Omega = 0; that.SpinFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 70)); that.Vec = SGet(0, -5); } } if (this.GapActionCount == 7) { this.ActionNum = 2; if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } } if (MLeftUp) { if (_parent.ChargePoint < WCpIntervalFirst) { } else { _parent.RapidShotNum += int((_parent.ChargePoint + 1 - WCpIntervalFirst) / WCpIntervalDiffer); } } if (_parent.StandFlag) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; _parent.Vec.x = 0; _parent.Vec.y = 0; this.left._rotation = 0; this.right._rotation = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ribbon.gotoAndPlay('movieStart2'); } goto 7751; } else { if (this.ActionNum == 4) { if (this.GapActionCount == 1) { this.WireReversSubFlag = false; } if (!this.WireReversFlag) { if (!this.WireReversSubFlag) { this.ReversDirection = 1; } else { this.ReversDirection = -1; } } else { this.ReversDirection = -1; } if (1 < this.GapActionCount) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); i = 0; goto 4968; for (;;) { ++i; label 4968: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(_parent.Pos, that.HitPos, that.HitRadius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 20), SGet(0, -15)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 5404; for (;;) { ++i; label 5404: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 20), SGet(0, -15)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (0 < this.BackCount) { --this.BackCount; } if (MWheel != 0) { this.ActionConection += 5; if (50 < this.ActionConection) { this.ActionConection = 50; } if (0 >= MWheel) { if (MWheel < 0) { if (0 < this.ActionDirection) { if (!(MControlKeyboard && MControlMouse == false)) { this.BackCount += 5; } else { this.BackCount += 1; } } this.ActionDirection = -1; } } else { if (this.ActionDirection < 0) { if (!(MControlKeyboard && MControlMouse == false)) { this.BackCount += 5; } else { this.BackCount += 1; } } this.ActionDirection = 1; } } if (this.BackCountLim < this.BackCount) { this.BackCount = this.BackCountLim; } --this.ActionConection; if (0 >= this.ActionConection) { this.ActionNum = 2; this.WireReversSubFlag = false; if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } } if (this.ActionDirection != 0) { var TempVec = SSub(_parent.Pos, this.WirePos); var TempSize = SSize(TempVec); if (0 >= this.ActionDirection) { if (this.ActionDirection < 0) { TempVec = SSpinSub90(TempVec); } } else { TempVec = SSpinAdd90(TempVec); } TempVec = SScale(SNorm(TempVec), this.ReversDirection * 40); var TempPos = SAdd(SScale(SNorm(SSub(SAdd(TempVec, _parent.Pos), this.WirePos)), TempSize), this.WirePos); _parent.Vec = SSub(TempPos, _parent.Pos); if (0 < this.BackCount) { _parent.Vec = SAdd(_parent.Vec, SScale(SNorm(SSub(_parent.Pos, this.WirePos)), 10)); } } if (_parent.StandFlag) { this.ActionCount = 0; this._visible = false; _parent.SetVisible('rolling', _parent.Direction); _parent.Vec.x = 0; _parent.Vec.y = 0; this.left._rotation = 0; this.right._rotation = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ribbon.gotoAndPlay('movieStart2'); } if (MLeftUp) { if (_parent.ChargePoint < WCpIntervalFirst) { if (this.WireReversFlag) { this.WireReversFlag = false; this.WireReversSubFlag = true; } if (SSquareSize(SSub(_parent.Pos, this.WirePos)) < SSquareSize(SSub(WMPos, this.WirePos))) { if (!this.WireReversSubFlag) { this.WireReversSubFlag = true; } else { this.WireReversSubFlag = false; } } this.WirePos = SEqual(WMPos); } else { _parent.SetVisible('rolling', _parent.Direction); this.ActionCount = 0; this._visible = false; _parent.Vec.x = 0; _parent.Vec.y = 0; this.GapActionCount = 0; this.OldActionNum = 0; this.left._rotation = 0; this.right._rotation = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ribbon.gotoAndPlay('movieStart2'); } } } else {} } } } } label 7751: this.ActionNum; if (4 < this.ActionCount) { var TempSubVec = SSub(this.WirePos, _parent.Pos); if (!this.left._visible) { this.right._rotation = Math.atan2(TempSubVec.y, TempSubVec.x) * 57.29577951 - 90; } else { this.left._rotation = Math.atan2(TempSubVec.y, TempSubVec.x) * 57.29577951 + 90; } TempVec = SNorm(TempSubVec); this.ribbon.action1._x = TempVec.x * 64; this.ribbon.action1._y = TempVec.y * 64; TempDis = SSize(TempSubVec); this.ribbon.action1._rotation = 0; this.ribbon.action1._width = (TempDis - 64) * 0.78125; this.ribbon.action1._rotation = Math.atan2(TempSubVec.y, TempSubVec.x) * 57.29577951; this.ribbon.action2._x = TempSubVec.x; this.ribbon.action2._y = TempSubVec.y; if (this.ActionNum != 4) { _parent.Vec = SScale(SAdd(SScale(TempVec, TempDis * 0.02), _parent.Vec), 0.96); } } if (MLeftUp) { _parent.ChargePoint = 0; } if ((MMiddlePress || MLeftPress) && _parent.StandFlag == false) { var TempVec = SNorm(SSub(WMPos, _parent.Pos)); _parent.Vec = SAdd(SScale(TempVec, 6), _parent.Vec); } if (MMiddleUp && this.HandOffFlag == false) { TempVec = SNorm(SSub(this.WirePos, _parent.Pos)); TempSize = SSize(SSub(this.WirePos, _parent.Pos)); _parent.Vec.x = TempVec.x * TempSize * 0.05; _parent.Vec.y = TempVec.y * TempSize * 0.05; this.HandOffFlag = true; this.HandOffCount = int(TempSize * 0.025); } if (this.HandOffFlag) { --this.HandOffCount; if (this.HandOffCount < 0) { this.HandOffFlag = false; this.HandOffCount = 0; _parent.SetVisible('jump', _parent.Direction); this.ActionCount = 0; this._visible = false; this.GapActionCount = 0; this.OldActionNum = 0; this.left._rotation = 0; this.right._rotation = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ribbon.gotoAndPlay('movieStart2'); } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; _parent.Vec.x = 0; _parent.Vec.y = 0; this.GapActionCount = 0; this.OldActionNum = 0; this.HandOffFlag = false; this.HandOffCount = 0; this.left._rotation = 0; this.right._rotation = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ribbon.gotoAndPlay('movieStart2'); } } } } instance sliding of movieClip 520 スライディング { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 60; this._visible = false; this.Action2Flag = false; this.JumpVec = SGet(0, 0); this.Press = 15; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this._rotation = 0; this.Action2Flag = false; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { ++_global.WCharActionCount; _parent.ActionFlag = true; this._rotation = 0; this.AttackPower = 40 + _parent.LvCount * 20; if (!_parent.StandFlag) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } this.JumpVec = SGet(_parent.Direction * 5, -10); _parent.Vec = this.JumpVec; this.Action2Flag = false; } else { this.se.gotoAndPlay('movieStart1'); if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } this.ActionCount = 31; this.Action2Flag = true; this.JumpVec = SScale(_parent.HorizonVec, _parent.Direction * 20); _parent.Vec = this.JumpVec; this.MoveVecScale = 30; } } if (this.Action2Flag == false) { if (this.ActionCount >= 1 && 3 >= this.ActionCount) { this._rotation += 24 * _parent.Direction; } if (this.ActionCount >= 58 && 60 >= this.ActionCount) { this._rotation -= 24 * _parent.Direction; } } if (this.Action2Flag == true && 54 >= this.ActionCount) { this.MoveVecScale *= 0.9300000000000001; if (_parent.StandFlag == true) { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * this.MoveVecScale; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * this.MoveVecScale; } this._rotation = Math.atan2(_parent.HorizonVec.y, _parent.HorizonVec.x) * 57.29577951; var CenPos = SGet(_parent.Pos.x + _parent.Radius * 0.5 * _parent.Direction, _parent.Pos.y + _parent.Radius * 0.5); i = 0; goto 2280; for (;;) { ++i; label 2280: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(_parent.Pos, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SGet(0, -18); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 2649; for (;;) { ++i; label 2649: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(_parent.Pos, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SGet(0, -18); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 3018; for (;;) { ++i; label 3018: if (i >= WWeaponHitIndexNum) break; var that; that = WWeaponEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { var JumpVec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (!(JumpVec.y == 0 && JumpVec.x == 0)) { if (SDot(JumpVec, SSub(that.Pos, _parent.Pos)) < 0) { JumpVec = ParabolaVec(true, 30, _global.WGravity, that.Pos, WTPos); } if (!(JumpVec.y == 0 && JumpVec.x == 0)) { if (that.StandFlag) { if (0 < SCross(that.HorizonVec, JumpVec)) { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } } } else { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } } else { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37 * _parent.Direction; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('tap'); } } } if (57 >= this.ActionCount && this.Action2Flag == false) { if (this.ActionCount % 2 == 0) { var TempFlag = false; var CenPos = SGet(_parent.Pos.x, _parent.Pos.y + _parent.Radius); i = 0; goto 3966; for (;;) { ++i; label 3966: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + 35)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 20), SGet(10 * _parent.Direction, 10)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); TempFlag = true; ++_global.WCharActionHitCount; } } if (1) { var that; that = WPartnerEval; if (that.ShoulderFlag == false) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; that.Vec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (that.Vec.x == 0 && that.Vec.y == 0) { that.Vec = SScale(SNorm(SSub(WTPos, that.Pos)), 20); } that.SetVisible('rolling', that.Direction); _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } i = 0; goto 4836; for (;;) { ++i; label 4836: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 120)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 20), SGet(10 * _parent.Direction, 10)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('hit'); TempFlag = true; ++_global.WCharActionHitCount; } } i = 0; goto 5287; for (;;) { ++i; label 5287: if (i >= WWeaponHitIndexNum) break; var that; that = WWeaponEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { if (!_global.TAimFlag) { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, _parent.Pos); } else { var JumpVec = ParabolaVec(false, 25, _global.WGravity, that.Pos, WTPos); if (JumpVec.y == 0 && JumpVec.x == 0) { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, _parent.Pos); } } that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37 * _parent.Direction; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('hit'); } } if (TempFlag == true) { var TempVec = SNorm(SSub(MPos, SGet(_parent._x, _parent._y))); _parent.Vec = SGet(TempVec.x * 10, -15); _parent.StandFlag = false; } } } if (_parent.StandFlag == true && 57 >= this.ActionCount && this.Action2Flag == false) { var TempVec = SNorm(SSub(MPos, SGet(_parent._x, _parent._y))); _parent.Vec = SGet(TempVec.x * 15, -10); _parent.StandFlag = false; } if (0 < MWheel) { this.ChangeDirection = 1; this.ChangeType = 1; } if (MWheel < 0) { this.ChangeDirection = -1; this.ChangeType = 1; } if (this.ChangeDirection < 0 && 0 < _parent.Direction) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 2; } if (0 < this.ChangeDirection && _parent.Direction < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 2; } if (1 < this.ActionCount && MLeftUp && _parent.StandFlag) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 3; } if (1 < this.ActionCount && MLeftUp && _parent.StandFlag == false) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 4; } if (MMiddleUp && 1 < this.ActionCount && _parent.StandFlag == false) { this.ChangeFlag = true; this.ChangeType = 2; } if (6 < this.ActionCount && this.ChangeFlag == true && this.ChangeType >= 2) { if (this.ChangeType != 2) { if (this.ChangeType != 3) { if (this.ChangeType == 4) { _parent.SetVisible('stepTurn', _parent.Direction); } } else { _parent.SetVisible('roundTripSlap', _parent.Direction); } } else { _parent.SetVisible('turnJump', _parent.Direction); } this._visible = false; this.ActionCount = 0; if (this.Action2Flag == true) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.Action2Flag = false; this._rotation = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this._rotation = 0; if (this.Action2Flag == true) { _parent.Vec.x = 0; _parent.Vec.y = 0; } this.Action2Flag = false; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance multiSatellite of movieClip 1166 マルチサテライト { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 5; this._visible = false; this.WeaponNum = 0; this.Press = 60; this.Radius = 15; this.Rot = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; _parent.LeftUpActionCount = 1; this.left.action1.arm._visible = false; this.right.action1.arm._visible = false; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this.Press = 30 + 5 * _parent.LvCount; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } } if (ActionCount == 1) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); i = 0; goto 858; for (;;) { ++i; label 858: if (i >= WWeaponNum) break; var that; that = WWeaponEval[i]; if (that.ExistFlag == true && that.ShotFlag == false) { if (Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 30 + this.Radius)) { that.FormatFlag = true; that.FormatType = 4; that.FormatAppFlag = false; that.RoundRadius = this.Radius; } } } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; _parent.LeftUpActionCount = 1; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance multiShot of movieClip 1168 マルチショット { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 10; this._visible = false; this.WeaponNum = 0; this.Press = 60; this.Radius = 15; this.Rot = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; _parent.LeftUpActionCount = 1; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this.Press = 30 + 5 * _parent.LvCount; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); i = 0; goto 940; for (;;) { ++i; label 940: if (i >= WWeaponNum) break; var that; that = WWeaponEval[i]; if (that.StandFlag == false && that.ExistFlag == true && that.ShotFlag == false) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 15 + this.Radius)) { if (that.ActionNum != 3) { that.FormatFlag = true; that.FormatType = 3; that.ActionCountLimFlag = false; } that.AutoFlag = true; that.AutoCountLim = 7; that.AutoRotationFlag = false; that.AutoInputVec = SGet(0, 0); that.Vec = SGet(0, 0); } } } } if (6 >= this.ActionCount) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); var TarPos = SAdd(CenPos, SSub(CenPos, WMPos)); i = 0; goto 1471; for (;;) { ++i; label 1471: if (i >= WWeaponNum) break; var that; that = WWeaponEval[i]; if (that.ExistFlag == true && that.ShotFlag == false && that.AutoFlag) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 15 + this.Radius)) { var TempVec = SSearchVec(that.Pos, TarPos); var TempAtan = Math.atan2(TempVec.y, TempVec.x) * 57.29577951; var Si = _global.Sight_360(179.9, that._rotation - 180, TempAtan); var Roll = 30; if (0 != Si) { if (0 == _global.Sight_360(Roll, that._rotation - 180, TempAtan)) { that._rotation += Si * Roll; } else { that._rotation = TempAtan + 180; } } } } } } if (MLeftUp) { } if (this.ActionCount == 7) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; _parent.LeftUpActionCount = 1; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance multiCommand of movieClip 1164 マルチコマンド { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 15; this._visible = false; this.WeaponNum = 0; this.Press = 60; this.Radius = 15; this.Rot = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; _parent.LeftUpActionCount = 1; this.left.action1.arm._visible = false; this.right.action1.arm._visible = false; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this.Press = 30 + 5 * _parent.LvCount; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } } if (this.ActionTime == 5) { this.ActionTime = 4; } if (MLeftUp) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); i = 0; goto 954; for (;;) { ++i; label 954: if (i >= WWeaponNum) break; var that; that = WWeaponEval[i]; if (that.StandFlag == false && that.ExistFlag == true && that.ShotFlag == false) { if (that.ActionNum != 3) { that.FormatFlag = true; that.FormatType = 3; that.ActionCountLimFlag = false; } that.AutoFlag = true; that.AutoCountLim = 40; that.AutoRotationFlag = true; that.Vec = SGet(0, 0); } } this.ActionTime = 10; if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; _parent.LeftUpActionCount = 1; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance swing of movieClip 1876 スイング { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 600; this._visible = false; this.JumpVec = SGet(0, 0); this.ShotVec = SGet(0, 0); this.Press = 25; this.GapActionCount = 0; this.OldActionNum = 0; this.ActionNum = 0; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.AimPos = SGet(0, 0); this.GoalPos = SGet(0, 0); this.LogWeight = 1; this.NowWeight = 3; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; _parent.Weight = this.LogWeight; this.ActionNum = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this.Press = 45; ++_global.WCharActionCount; this.LogWeight = _parent.Weight; this.left.gotoAndPlay('movieStart1'); this.right.gotoAndPlay('movieStart1'); this.AttackPower = 25 + _parent.LvCount * 25; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ActionNum = 1; this.GapActionCount = 0; this.OldActionNum = 0; } if (this.OldActionNum != this.ActionNum) { this.GapActionCount = 0; this.OldActionNum = this.ActionNum; } ++this.GapActionCount; if (_parent.StandFlag) { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 10; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 10; } if (this.ActionNum == 0) { goto 7861; } else { if (this.ActionNum == 1) { if (this.GapActionCount == 1) { if (!_parent.StandFlag) { this.se.gotoAndPlay('movieStart2'); } else { this.se.gotoAndPlay('movieStart1'); } _parent.Weight = this.NowWeight; this.AimPos = SEqual(WTPos); if (_parent.Pos.x >= this.AimPos.x) { _parent.Direction = -1; } else { _parent.Direction = 1; } _parent.SetVisible('swing', _parent.Direction); this.GoalPos = SGet(this.AimPos.x - _parent.Radius * _parent.Direction, this.AimPos.y); _parent.Vec = ParabolaVec(true, this.Press, _global.WGravity * _parent.Weight, _parent.Pos, this.GoalPos); if (_parent.Vec.x == 0 && _parent.Vec.y == 0) { _parent.Vec = SScale(SNorm(SSub(this.GoalPos, _parent.Pos)), this.Press); } _parent.StandFlag = false; this.CountLim = int((this.GoalPos.x - _parent.Pos.x) / _parent.Vec.x); this.Count = 0; } ++this.Count; if (this.CountLim < this.Count) { this.left.gotoAndPlay('movieStart2'); this.right.gotoAndPlay('movieStart2'); this.ActionNum = 2; } if (MMiddleUp && this.GapActionCount < 40) { this.left.gotoAndPlay('movieStart3'); this.right.gotoAndPlay('movieStart3'); this.ActionNum = 3; } if (this.GapActionCount == 40) { this.ActionCount = this.ActionTime + 1; } goto 7861; } else { if (this.ActionNum == 2) { if (this.GapActionCount == 1) { _parent.Weight = this.LogWeight; var TempHitFlag = false; var CenPos = SGet(_parent.Pos.x + _parent.Direction * _parent.Radius, _parent.Pos.y); i = 0; goto 2923; for (;;) { ++i; label 2923: if (i >= WWeaponHitIndexNum) break; var that; that = WWeaponEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { var JumpVec = SGet(_parent.Direction * 10, 5); that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37 * _parent.Direction; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('swordHit'); TempHitFlag = true; } } i = 0; goto 3260; for (;;) { ++i; label 3260: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 120)) { this.AttackReactionVec = SGet(_parent.Direction * 10, 5); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('swordHit'); ++_global.WCharActionHitCount; TempHitFlag = true; } } i = 0; goto 3647; for (;;) { ++i; label 3647: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + _parent.Radius)) { this.AttackReactionVec = SGet(_parent.Direction * 10, 5); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('swordHit'); ++_global.WCharActionHitCount; TempHitFlag = true; } } if (!TempHitFlag) { _parent.Vec = SGet(_parent.Direction * 10, -15); _parent.StandFlag = false; } else { _parent.Vec = SGet(_parent.Direction * -1 * 10, -15); _parent.StandFlag = false; } } if (this.GapActionCount == 4) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 4242; for (;;) { ++m; label 4242: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 1; that.FormatAppFlag = false; that.Direction = _parent.Direction; that._rotation = 0; that.Omega = 37 * _parent.Direction; that.SpinFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SGet(0, 1), 70)); that.Vec = SGet(-10 * _parent.Direction, -5); } } if (MMiddleUp && this.GapActionCount < 20 && 5 < this.GapActionCount && 0 < _parent.RapidShotNum) { this.left.gotoAndPlay('movieStart3'); this.right.gotoAndPlay('movieStart3'); this.ActionNum = 3; } if (MMiddleUp && 0 >= _parent.RapidShotNum) { this.ActionCount = this.ActionTime + 1; } if (this.GapActionCount == 20) { this.ActionCount = this.ActionTime + 1; } goto 7861; } else { if (this.ActionNum == 3) { if (this.GapActionCount == 1) { if (!_parent.StandFlag) { this.se.gotoAndPlay('movieStart2'); } else { this.se.gotoAndPlay('movieStart1'); } _parent.Weight = this.NowWeight; this.AimPos = SEqual(WTPos); if (_parent.Pos.x >= this.AimPos.x) { _parent.Direction = -1; } else { _parent.Direction = 1; } _parent.SetVisible('swing', _parent.Direction); this.GoalPos = SGet(this.AimPos.x - _parent.Radius * _parent.Direction, this.AimPos.y); _parent.Vec = ParabolaVec(false, this.Press, _global.WGravity * _parent.Weight, _parent.Pos, this.GoalPos); if (_parent.Vec.x == 0 && _parent.Vec.y == 0) { _parent.Vec = SScale(SNorm(SSub(this.GoalPos, _parent.Pos)), this.Press); } _parent.StandFlag = false; this.CountLim = int((this.GoalPos.x - _parent.Pos.x) / _parent.Vec.x); this.Count = 0; } ++this.Count; if (this.CountLim < this.Count) { this.left.gotoAndPlay('movieStart4'); this.right.gotoAndPlay('movieStart4'); this.ActionNum = 4; } if (MMiddleUp && this.GapActionCount < 40) { this.left.gotoAndPlay('movieStart3'); this.right.gotoAndPlay('movieStart3'); this.ActionNum = 3; } if (this.GapActionCount == 40) { this.ActionCount = this.ActionTime + 1; } goto 7861; } else { if (this.ActionNum == 4) { if (this.GapActionCount == 1) { _parent.Weight = this.LogWeight; var TempHitFlag = false; var CenPos = SGet(_parent.Pos.x + _parent.Direction * _parent.Radius, _parent.Pos.y); i = 0; goto 5970; for (;;) { ++i; label 5970: if (i >= WWeaponHitIndexNum) break; var that; that = WWeaponEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { var JumpVec = SGet(_parent.Direction * 10, 5); that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37 * _parent.Direction; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('swordHit'); TempHitFlag = true; } } i = 0; goto 6307; for (;;) { ++i; label 6307: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 120)) { this.AttackReactionVec = SGet(_parent.Direction * 10, 5); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('swordHit'); ++_global.WCharActionHitCount; TempHitFlag = true; } } i = 0; goto 6694; for (;;) { ++i; label 6694: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + _parent.Radius)) { this.AttackReactionVec = SGet(_parent.Direction * 10, 5); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('swordHit'); ++_global.WCharActionHitCount; TempHitFlag = true; } } if (!TempHitFlag) { _parent.Vec = SGet(_parent.Direction * 10, -15); _parent.StandFlag = false; } else { _parent.Vec = SGet(_parent.Direction * -1 * 10, -15); _parent.StandFlag = false; } } if (this.GapActionCount == 4) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 7289; for (;;) { ++m; label 7289: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 1; that.FormatAppFlag = false; that.Direction = _parent.Direction; that._rotation = 0; that.SpinFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SGet(0, -1), 70)); that.Omega = -37 * _parent.Direction; that.Vec = SGet(-5 * _parent.Direction, 10); } } if (MMiddleUp && this.GapActionCount < 20 && 5 < this.GapActionCount && 0 < _parent.RapidShotNum) { this.left.gotoAndPlay('movieStart1'); this.right.gotoAndPlay('movieStart1'); this.ActionNum = 1; } if (MMiddleUp && 0 >= _parent.RapidShotNum) { this.ActionCount = this.ActionTime + 1; } if (this.GapActionCount == 20) { this.ActionCount = this.ActionTime + 1; } } else {} } } } } label 7861: this.ActionNum; if (0 < MWheel) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 1; } if (MWheel < 0) { this.ChangeDirection = -1; this.ChangeType = 1; this.ChangeFlag = true; } if (1 < this.ActionCount && MLeftUp && 0 < _parent.RapidShotNum) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 4; } if (1 < this.ActionCount && this.ChangeFlag == true && this.ChangeType >= 1) { if (this.ChangeType != 1) { if (this.ChangeType == 4) { if (_parent.RapidShotNum < 2) { if (_parent.RapidShotNum < 1) { _parent.SetVisible('slap', _parent.Direction); } else { _parent.SetVisible('jumpShot', _parent.Direction); } } else { _parent.SetVisible('doubleShot', _parent.Direction); } } } else { _parent.Direction = this.ChangeDirection; _parent.SetVisible('rolling', _parent.Direction); } this._visible = false; this.ActionCount = 0; this.ActionNum = 0; _parent.Weight = this.LogWeight; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; _parent.Weight = this.LogWeight; this.ActionNum = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance turnJump of movieClip 1234 ターンジャンプ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 8; this._visible = false; this.JumpVec = SGet(0, 0); this.Press = 15; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } var TempVec = SScale(SNorm(SSub(WMPos, _parent.Pos)), 10); this.JumpVec = SGet(TempVec.x, -10); _parent.Vec = this.JumpVec; _parent.StandFlag = false; } if (2 < this.ActionCount && 6 >= this.ActionCount) { var TempScr = (this.ActionCount - 2 - 2) / 2; var TempAddPos = SGet(_parent.Radius * -1 * _parent.Direction * TempScr, _parent.Radius * -1 * TempScr); var CenPos = SAdd(SGet(_parent.Pos.x, _parent.Pos.y), TempAddPos); i = 0; goto 1404; for (;;) { ++i; label 1404: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(_parent.Pos, that.HitPos, that.HitRadius + 50)) { this.AttackReactionVec = SGet(0, -15); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('hit'); ++_global.WCharActionHitCount; } } if (1) { var that; that = WPartnerEval; if (that.ShoulderFlag == false) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; that.Vec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (that.Vec.x == 0 && that.Vec.y == 0) { that.Vec = SScale(SNorm(SSub(WTPos, that.Pos)), 20); } that.SetVisible('rolling', that.Direction); _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } i = 0; goto 2192; for (;;) { ++i; label 2192: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 50)) { this.AttackReactionVec = SGet(0, -15); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('hit'); ++_global.WCharActionHitCount; } } } if (0 < MWheel) { this.ChangeDirection = 1; this.ChangeType = 1; } if (MWheel < 0) { this.ChangeDirection = -1; this.ChangeType = 1; } if (this.ChangeFlag == true && this.ChangeType == 2) { if (this.ChangeType == 1) { _parent.Direction = this.ChangeDirection; _parent.SetVisible('rolling', _parent.Direction); } this._visible = false; this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } } } } instance stepTurn of movieClip 1744 ターン { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 8; this._visible = false; this.AttackPower = 30 + _parent.LvCount * 10; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 5; this.AttackInvincibleCount = 3; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; ++_global.WCharActionCount; this.AttackPower = 30 + _parent.LvCount * 10; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 5; this.AttackInvincibleCount = 3; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } } if (!_parent.StandFlag) { } else { var TempDot = SDot(_parent.HorizonVec, SNorm(SSub(WMPos, _parent.Pos))); _parent.Vec.x = _parent.HorizonVec.x * TempDot * 20; _parent.Vec.y = _parent.HorizonVec.y * TempDot * 20; } if (this.ActionCount % 2 == 1) { var CenPos = SGet(_parent.Pos.x + _parent.Direction * _parent.Radius, _parent.Pos.y); if (_global.TAimFlag) { i = 0; goto 1663; for (;;) { ++i; label 1663: if (i >= WWeaponHitIndexNum) break; var that; that = WWeaponEvalHitIndex[i]; if (!_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, _parent.Pos); } else { var JumpVec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (!(JumpVec.y == 0 && JumpVec.x == 0)) { if (SDot(JumpVec, SSub(that.Pos, _parent.Pos)) < 0) { JumpVec = ParabolaVec(true, 30, _global.WGravity, that.Pos, WTPos); } if (!(JumpVec.y == 0 && JumpVec.x == 0)) { if (that.StandFlag) { if (0 < SCross(that.HorizonVec, JumpVec)) { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } } } else { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } } else { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } } that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37 * _parent.Direction; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('tap'); } } if (1) { var that; that = WPartnerEval; if (that.ShoulderFlag == false) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius * 0.75)) { that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; that.Vec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (that.Vec.x == 0 && that.Vec.y == 0) { that.Vec = SScale(SNorm(SSub(WTPos, that.Pos)), 20); } that.SetVisible('rolling', that.Direction); _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } i = 0; goto 2950; for (;;) { ++i; label 2950: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius * 0.75)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 10), SGet(0, -5)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 3397; for (;;) { ++i; label 3397: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + _parent.Radius * 0.75)) { this.AttackReactionVec = SAdd(SScale(SNorm(SSub(that.Pos, CenPos)), 10), SGet(0, -5)); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (0 < MWheel) { this.ChangeDirection = 1; this.ChangeType = 1; } if (MWheel < 0) { this.ChangeDirection = -1; this.ChangeType = 1; } if (this.ChangeDirection < 0 && _parent.Direction < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 2; } if (0 < this.ChangeDirection && 0 < _parent.Direction) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 2; } if (0 < this.ChangeDirection && _parent.Direction < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 3; } if (this.ChangeDirection < 0 && 0 < _parent.Direction) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 3; } if (0 < _parent.RapidShotNum && this.ActionCount == 8) { if (this.ChangeType != 4) { _parent.SetVisible('turnShot', _parent.Direction); } else { _parent.SetVisible('stepTurn', _parent.Direction); } this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (this.ChangeFlag == true && this.ChangeType >= 2 && this.ActionCount == 8 && _parent.RapidShotNum == 0) { if (this.ChangeType != 2) { if (this.ChangeType != 3) { if (this.ChangeType == 4) { _parent.SetVisible('stepTurn', _parent.Direction); } } else { _parent.SetVisible('turnJump', _parent.Direction); } } else { _parent.SetVisible('rolling', _parent.Direction); } this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance turnShot of movieClip 1750 ターンショット { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 600; this._visible = false; this.JumpVec = SGet(0, 0); this.ShotVec = SGet(0, 0); this.Press = 40; this.GapActionCount = 0; this.OldActionNum = 0; this.ActionNum = 0; this.AttackPower = 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 15; this.AttackInvincibleCount = 2; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.ActionNum = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this.Press = 30 + 5 * _parent.LvCount; ++_global.WCharActionCount; this.ShotVec = SGet(0, 0); this.AttackPower = 15 + _parent.LvCount * 5; this.ActionNum = 1; this.GapActionCount = 0; this.OldActionNum = 0; } if (this.OldActionNum != this.ActionNum) { this.GapActionCount = 0; this.OldActionNum = this.ActionNum; } ++this.GapActionCount; this.ShotVec = ParabolaVec(false, this.Press, _global.WGravity, _parent.Pos, WTPos); if (this.ShotVec.x == 0 && this.ShotVec.y == 0) { this.ShotVec = SScale(SNorm(SSub(WTPos, _parent.Pos)), this.Press); } if (this.ActionNum == 0) { goto 8311; } else { if (this.ActionNum == 1) { if (this.GapActionCount == 1) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } } if (!this.left._visible) { var TempAtan = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951; this.right.action1.armRightFront._rotation = TempAtan; this.right.action1.armRightBack._rotation = TempAtan; this.right.action1.armLeftFront._rotation = TempAtan; this.right.action1.armLeftBack._rotation = TempAtan; } else { var TempAtan = Math.atan2(this.ShotVec.y, this.ShotVec.x) * -1 * 57.29577951 + 180; this.left.action1.armRightFront._rotation = TempAtan; this.left.action1.armRightBack._rotation = TempAtan; this.left.action1.armLeftFront._rotation = TempAtan; this.left.action1.armLeftBack._rotation = TempAtan; } var TempRightX = 0; var TempLeftX = 0; if (this.GapActionCount == 1) { TempRightX = -4; TempLeftX = 4; goto 2389; } else { if (this.GapActionCount == 2) { TempRightX = 0; TempLeftX = 0; goto 2389; } else { if (this.GapActionCount == 3) { TempRightX = 4; TempLeftX = -4; goto 2389; } else { if (this.GapActionCount == 4) { TempRightX = -9; TempLeftX = 1; } else {} } } } label 2389: this.GapActionCount; if (!this.left._visible) { this.right.action1.armRightFront._x = TempRightX; this.right.action1.armRightBack._x = TempRightX; this.right.action1.armLeftFront._x = TempLeftX; this.right.action1.armLeftBack._x = TempLeftX; } else { this.left.action1.armRightFront._x = TempRightX; this.left.action1.armRightBack._x = TempRightX; this.left.action1.armLeftFront._x = TempLeftX; this.left.action1.armLeftBack._x = TempLeftX; } if (!_parent.StandFlag) { } else { var TempDot = SDot(_parent.HorizonVec, SNorm(SSub(WMPos, _parent.Pos))); _parent.Vec.x = _parent.HorizonVec.x * TempDot * 10; _parent.Vec.y = _parent.HorizonVec.y * TempDot * 10; } if (this.GapActionCount == 4) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 2952; for (;;) { ++m; label 2952: if (m >= MaxNum) break; var that = WGetBulletEval(); that.FormatFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 100)); that.Vec = SEqual(this.ShotVec); } var MaxNum = 1; var m = 0; goto 3143; for (;;) { ++m; label 3143: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 2; that.Direction = _parent.Direction; that.ActionCountLimFlag = true; that.ActionCountLim = 20; that._rotation = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951; that.Omega = 0; that.SpinFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 70)); that.Vec = SGet(0, -10); } } if (this.GapActionCount == 4) { if (0 >= _parent.RapidShotNum) { this.ActionNum = 2; } else { this.ActionNum = 3; } } goto 8311; } else { if (this.ActionNum == 4) { if (this.GapActionCount == 1) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart4'); } else { this.left.gotoAndPlay('movieStart4'); } } if (!this.left._visible) { var TempAtan = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951; this.right.action4.armRightFront._rotation = TempAtan; this.right.action4.armRightBack._rotation = TempAtan; this.right.action4.armLeftFront._rotation = TempAtan; this.right.action4.armLeftBack._rotation = TempAtan; } else { var TempAtan = Math.atan2(this.ShotVec.y, this.ShotVec.x) * -1 * 57.29577951 + 180; this.left.action4.armRightFront._rotation = TempAtan; this.left.action4.armRightBack._rotation = TempAtan; this.left.action4.armLeftFront._rotation = TempAtan; this.left.action4.armLeftBack._rotation = TempAtan; } var TempRightX = 0; var TempLeftX = 0; if (this.GapActionCount == 1) { TempRightX = -4; TempLeftX = 4; goto 4367; } else { if (this.GapActionCount == 2) { TempRightX = 0; TempLeftX = 0; goto 4367; } else { if (this.GapActionCount == 3) { TempRightX = 4; TempLeftX = -4; goto 4367; } else { if (this.GapActionCount == 4) { TempRightX = -9; TempLeftX = 1; } else {} } } } label 4367: this.GapActionCount; if (!this.left._visible) { this.right.action4.armRightFront._x = TempRightX; this.right.action4.armRightBack._x = TempRightX; this.right.action4.armLeftFront._x = TempLeftX; this.right.action4.armLeftBack._x = TempLeftX; } else { this.left.action4.armRightFront._x = TempRightX; this.left.action4.armRightBack._x = TempRightX; this.left.action4.armLeftFront._x = TempLeftX; this.left.action4.armLeftBack._x = TempLeftX; } if (!_parent.StandFlag) { } else { var TempDot = SDot(_parent.HorizonVec, SNorm(SSub(WMPos, _parent.Pos))); _parent.Vec.x = _parent.HorizonVec.x * TempDot * 10; _parent.Vec.y = _parent.HorizonVec.y * TempDot * 10; } if (this.GapActionCount == 4) { if (0 >= _parent.RapidShotNum) { this.ActionNum = 2; } else { this.ActionNum = 3; } } goto 8311; } else { if (this.ActionNum == 2) { if (this.GapActionCount == 1) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart2'); } else { this.left.gotoAndPlay('movieStart2'); } } if (!this.left._visible) { var TempAtan = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951; this.right.action2.armRightFront._rotation = TempAtan; this.right.action2.armRightBack._rotation = TempAtan; this.right.action2.armLeftFront._rotation = TempAtan; this.right.action2.armLeftBack._rotation = TempAtan; } else { var TempAtan = Math.atan2(this.ShotVec.y, this.ShotVec.x) * -1 * 57.29577951 + 180; this.left.action2.armRightFront._rotation = TempAtan; this.left.action2.armRightBack._rotation = TempAtan; this.left.action2.armLeftFront._rotation = TempAtan; this.left.action2.armLeftBack._rotation = TempAtan; } var TempRightX = 0; var TempLeftX = 0; if (this.GapActionCount == 1) { TempRightX = -2; TempLeftX = 6; goto 5742; } else { if (this.GapActionCount == 2) { TempRightX = 0; TempLeftX = 0; goto 5742; } else { if (this.GapActionCount == 3) { TempRightX = 2; TempLeftX = -7; goto 5742; } else { if (this.GapActionCount == 4) { TempRightX = -5; TempLeftX = 4; } else {} } } } label 5742: this.GapActionCount; if (!this.left._visible) { this.right.action2.armRightFront._x = TempRightX; this.right.action2.armRightBack._x = TempRightX; this.right.action2.armLeftFront._x = TempLeftX; this.right.action2.armLeftBack._x = TempLeftX; } else { this.left.action2.armRightFront._x = TempRightX; this.left.action2.armRightBack._x = TempRightX; this.left.action2.armLeftFront._x = TempLeftX; this.left.action2.armLeftBack._x = TempLeftX; } if (!_parent.StandFlag) { } else { var TempDot = SDot(_parent.HorizonVec, SNorm(SSub(WMPos, _parent.Pos))); _parent.Vec.x = _parent.HorizonVec.x * TempDot * 10; _parent.Vec.y = _parent.HorizonVec.y * TempDot * 10; } if (this.GapActionCount == 4) { if (0 >= _parent.RapidShotNum) { this.ActionCount = this.ActionTime + 1; } else { this.ActionNum = 1; } } goto 8311; } else { if (this.ActionNum == 3) { if (this.GapActionCount == 1) { if (!this.left._visible) { this.right.gotoAndPlay('movieStart3'); } else { this.left.gotoAndPlay('movieStart3'); } } if (!this.left._visible) { var TempAtan = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951; this.right.action3.armRightFront._rotation = TempAtan; this.right.action3.armRightBack._rotation = TempAtan; this.right.action3.armLeftFront._rotation = TempAtan; this.right.action3.armLeftBack._rotation = TempAtan; } else { var TempAtan = Math.atan2(this.ShotVec.y, this.ShotVec.x) * -1 * 57.29577951 + 180; this.left.action3.armRightFront._rotation = TempAtan; this.left.action3.armRightBack._rotation = TempAtan; this.left.action3.armLeftFront._rotation = TempAtan; this.left.action3.armLeftBack._rotation = TempAtan; } var TempRightX = 0; var TempLeftX = 0; if (this.GapActionCount == 1) { TempRightX = -2; TempLeftX = 6; goto 7130; } else { if (this.GapActionCount == 2) { TempRightX = 0; TempLeftX = 0; goto 7130; } else { if (this.GapActionCount == 3) { TempRightX = 2; TempLeftX = -7; goto 7130; } else { if (this.GapActionCount == 4) { TempRightX = -5; TempLeftX = 4; } else {} } } } label 7130: this.GapActionCount; if (!this.left._visible) { this.right.action3.armRightFront._x = TempRightX; this.right.action3.armRightBack._x = TempRightX; this.right.action3.armLeftFront._x = TempLeftX; this.right.action3.armLeftBack._x = TempLeftX; } else { this.left.action3.armRightFront._x = TempRightX; this.left.action3.armRightBack._x = TempRightX; this.left.action3.armLeftFront._x = TempLeftX; this.left.action3.armLeftBack._x = TempLeftX; } if (!_parent.StandFlag) { } else { var TempDot = SDot(_parent.HorizonVec, SNorm(SSub(WMPos, _parent.Pos))); _parent.Vec.x = _parent.HorizonVec.x * TempDot * 10; _parent.Vec.y = _parent.HorizonVec.y * TempDot * 10; } if (this.GapActionCount == 4) { --_parent.RapidShotNum; var MaxNum = 1; var m = 0; goto 7693; for (;;) { ++m; label 7693: if (m >= MaxNum) break; var that = WGetBulletEval(); that.FormatFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 100)); that.Vec = SEqual(this.ShotVec); } var MaxNum = 1; var m = 0; goto 7884; for (;;) { ++m; label 7884: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 2; that.Direction = _parent.Direction; that.ActionCountLimFlag = true; that.ActionCountLim = 20; that._rotation = Math.atan2(this.ShotVec.y, this.ShotVec.x) * 57.29577951; that.Omega = 0; that.SpinFlag = true; that.Pos = SAdd(_parent.Pos, SScale(SNorm(this.ShotVec), 70)); that.Vec = SGet(0, -10); } } if (this.GapActionCount == 4) { if (0 >= _parent.RapidShotNum) { this.ActionNum = 4; } else { this.ActionNum = 1; } } } else {} } } } } label 8311: this.ActionNum; if (this.GapActionCount == 1) { var TempY = -16; if (!this.left._visible) { if (this.ActionNum == 0) { goto 9043; } else { if (this.ActionNum == 1) { this.right.action1.armRightFront._y = TempY; this.right.action1.armRightBack._y = TempY; this.right.action1.armLeftFront._y = TempY; this.right.action1.armLeftBack._y = TempY; goto 9043; } else { if (this.ActionNum == 2) { this.right.action2.armRightFront._y = TempY; this.right.action2.armRightBack._y = TempY; this.right.action2.armLeftFront._y = TempY; this.right.action2.armLeftBack._y = TempY; goto 9043; } else { if (this.ActionNum == 3) { this.right.action3.armRightFront._y = TempY; this.right.action3.armRightBack._y = TempY; this.right.action3.armLeftFront._y = TempY; this.right.action3.armLeftBack._y = TempY; goto 9043; } else { if (this.ActionNum == 4) { this.right.action4.armRightFront._y = TempY; this.right.action4.armRightBack._y = TempY; this.right.action4.armLeftFront._y = TempY; this.right.action4.armLeftBack._y = TempY; } else {} } } } } label 9043: this.ActionNum; } else { if (this.ActionNum == 0) { goto 9719; } else { if (this.ActionNum == 1) { this.left.action1.armRightFront._y = TempY; this.left.action1.armRightBack._y = TempY; this.left.action1.armLeftFront._y = TempY; this.left.action1.armLeftBack._y = TempY; goto 9719; } else { if (this.ActionNum == 2) { this.left.action2.armRightFront._y = TempY; this.left.action2.armRightBack._y = TempY; this.left.action2.armLeftFront._y = TempY; this.left.action2.armLeftBack._y = TempY; goto 9719; } else { if (this.ActionNum == 3) { this.left.action3.armRightFront._y = TempY; this.left.action3.armRightBack._y = TempY; this.left.action3.armLeftFront._y = TempY; this.left.action3.armLeftBack._y = TempY; goto 9719; } else { if (this.ActionNum == 4) { this.left.action4.armRightFront._y = TempY; this.left.action4.armRightBack._y = TempY; this.left.action4.armLeftFront._y = TempY; this.left.action4.armLeftBack._y = TempY; } else {} } } } } label 9719: this.ActionNum; } } if (1 < this.ActionCount && 0 < MWheel) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 1; } if (1 < this.ActionCount && MWheel < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 1; } if (1 < this.ActionCount && MLeftUp && 0 < _parent.RapidShotNum) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 4; } if (1 < this.ActionCount && MMiddleUp && 0 < _parent.RapidShotNum) { this.ChangeFlag = true; this.ChangeDirection = 0; this.ChangeType = 5; } if (1 < this.ActionCount && this.ChangeFlag == true) { if (this.ChangeType != 1) { if (this.ChangeType != 4) { if (this.ChangeType == 5) { _parent.SetVisible('swing', _parent.Direction); } } else { if (_parent.RapidShotNum < 2) { if (_parent.RapidShotNum < 1) { _parent.SetVisible('slap', _parent.Direction); } else { _parent.SetVisible('jumpShot', _parent.Direction); } } else { _parent.SetVisible('doubleShot', _parent.Direction); } } } else { _parent.Direction = this.ChangeDirection; if (_parent.RapidShotNum < 2) { _parent.SetVisible('stepTurn', _parent.Direction); } else { _parent.SetVisible('doubleTwist', _parent.Direction); _parent.doubleTwist.ActionRepeat = 1; _parent.doubleTwist.ReleaseFlag = false; _parent.doubleTwist.ActionAimFlag = false; } } this.ActionCount = 0; this.ActionNum = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.ActionNum = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance throwing of movieClip 1502 スローイング { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 8; this._visible = false; this.WeaponNum = 0; this.Press = 60; this.Radius = 0; this.Rot = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.TempTarPos = new Array(WWeaponNum + 1); this.TempTarDis = new Array(WWeaponNum + 1); this.TempTarNum = 0; } onClipEvent (unload) { delete this.TempTarPos; delete this.TempTarDis; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; _parent.LeftUpActionCount = 1; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; this._rotation = 0; this.Radius = 15; if (_parent.StandFlag == true) { _parent.Vec.x = 0; _parent.Vec.y = 0; } if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } if (this.ActionCount == 1) { var CenPos = SGet(_parent.Pos.x, _parent.Pos.y - _parent.Radius); var TempA = 0; this.TempTarNum = 0; var n = 0; goto 1136; for (;;) { ++n; label 1136: if (n >= this.WeaponNum) break; this.TempTarDis[n] = 1000000; this.TempTarPos[n] = SGet(0, 0); } var that; i = 0; goto 1264; for (;;) { ++i; label 1264: if (i >= WWitchHitIndexNum) break; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.Radius + 800)) { var a = that.HitPos.x - WMPos.x; var b = that.HitPos.y - WMPos.y; TempA = a * a + b * b; var n = 0; goto 1484; for (;;) { ++n; label 1484: if (n >= this.WeaponNum) break; if (TempA < TempTarDis[n]) { var m = this.WeaponNum; goto 1564; for (;;) { --m; label 1564: if (n >= m) break; TempTarDis[m + 1] = TempTarDis[m]; TempTarPos[m + 1] = TempTarPos[m]; } TempTarDis[n] = TempA; TempTarPos[n] = SEqual(that.HitPos); ++TempTarNum; } else {} } } } i = 0; goto 1762; for (;;) { ++i; label 1762: if (i >= WMagicHitIndexNum) break; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 800)) { var a = that.Pos.x - WMPos.x; var b = that.Pos.y - WMPos.y; TempA = a * a + b * b; var n = 0; goto 1982; for (;;) { ++n; label 1982: if (n >= this.WeaponNum) break; if (TempA < TempTarDis[n]) { var m = this.WeaponNum; goto 2062; for (;;) { --m; label 2062: if (n >= m) break; TempTarDis[m + 1] = TempTarDis[m]; TempTarPos[m + 1] = TempTarPos[m]; } TempTarDis[n] = TempA; TempTarPos[n] = SEqual(that.Pos); ++TempTarNum; } else {} } } } var MaxNum = this.WeaponNum; var m = 0; goto 2275; for (;;) { ++m; label 2275: if (m >= MaxNum) break; var that = WGetWeaponEval(); that.FormatFlag = true; that.FormatType = 1; that.FormatAppFlag = true; that.Direction = _parent.Direction; that._rotation = 90; that.Omega = _parent.Direction * 37; var TempVec = SNorm(SSub(WMPos, CenPos)); that.Pos = SEqual(CenPos); if (m >= TempTarNum) { that.Vec = SEqual(SScale(TempVec, (MaxNum - m) * 4 + 16)); } else { that.Vec = ParabolaVec(false, (MaxNum - m) * 4 + 16, _global.WGravity, CenPos, TempTarPos[m]); if (that.Vec.x == 0 && that.Vec.y == 0) { that.Vec = SEqual(SScale(TempVec, (MaxNum - m) * 4 + 16)); } } that.SpinFlag = true; } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; _parent.LeftUpActionCount = 1; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance slap of movieClip 1616 スラップ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 8; this._visible = false; this.AttackPower = 30 + _parent.LvCount * 10; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 5; this.AttackInvincibleCount = 3; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } _parent.Vec = SGet(0, 0); } if (!_parent.StandFlag) { } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 2; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 2; } if (this.ActionCount == 3) { var CenPos = SGet(_parent.Pos.x + _parent.Direction * _parent.Radius, _parent.Pos.y); i = 0; goto 1415; for (;;) { ++i; label 1415: if (i >= WWeaponHitIndexNum) break; var that; that = WWeaponEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { var JumpVec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (!(JumpVec.y == 0 && JumpVec.x == 0)) { if (SDot(JumpVec, SSub(that.Pos, _parent.Pos)) < 0) { JumpVec = ParabolaVec(true, 30, _global.WGravity, that.Pos, WTPos); } if (!(JumpVec.y == 0 && JumpVec.x == 0)) { if (that.StandFlag) { if (0 < SCross(that.HorizonVec, JumpVec)) { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } } } else { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } } else { JumpVec = ParabolaVec(true, 15, _global.WGravity, that.Pos, CenPos); } that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37 * _parent.Direction; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('tap'); } } if (1) { var that; that = WPartnerEval; if (that.ShoulderFlag == false) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 120)) { that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; that.Vec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (that.Vec.x == 0 && that.Vec.y == 0) { that.Vec = SGet(_parent.Direction * 4, 2); } that.SetVisible('rolling', that.Direction); _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } i = 0; goto 2605; for (;;) { ++i; label 2605: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 120)) { this.AttackReactionVec = SGet(_parent.Direction * 4, 2); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 2984; for (;;) { ++i; label 2984: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + _parent.Radius)) { this.AttackReactionVec = SGet(_parent.Direction * 4, 2); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (0 < MWheel) { this.ChangeDirection = 1; this.ChangeType = 1; } if (MWheel < 0) { this.ChangeDirection = -1; this.ChangeType = 1; } if (0 >= this.ChangeDirection && MMiddleUp && _parent.Direction < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 2; } if (this.ChangeDirection >= 0 && MMiddleUp && 0 < _parent.Direction) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 2; } if (0 < this.ChangeDirection && _parent.Direction < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 3; } if (this.ChangeDirection < 0 && 0 < _parent.Direction) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 3; } if (1 < this.ActionCount && MLeftUp) { this.ChangeFlag = true; this.ChangeType = 4; } if (this.ChangeFlag == true && this.ChangeType >= 2 && 4 < this.ActionCount) { if (this.ChangeType != 2) { if (this.ChangeType != 3) { if (this.ChangeType == 4) { _parent.SetVisible('tripSlap', _parent.Direction); } } else { _parent.SetVisible('kick', _parent.Direction); } } else { _parent.SetVisible('sliding', _parent.Direction); } this._visible = false; this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance tripSlap of movieClip 1736 トリップスラップ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 8; this._visible = false; this.AttackPower = 40 + _parent.LvCount * 15; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 5; this.AttackInvincibleCount = 3; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } _parent.Vec = SGet(0, 0); } if (!_parent.StandFlag) { } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 3; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 3; } if (this.ActionCount == 2) { var CenPos = SGet(_parent.Pos.x + _parent.Direction * _parent.Radius, _parent.Pos.y); i = 0; goto 1403; for (;;) { ++i; label 1403: if (i >= WWeaponHitIndexNum) break; var that; that = WWeaponEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { var JumpVec = SGet(_parent.Direction * 8, -6); if (!(JumpVec.y == 0 && JumpVec.x == 0)) { that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37 * _parent.Direction; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('tap'); } else {} } } if (1) { var that; that = WPartnerEval; if (that.ShoulderFlag == false) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 120)) { that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; that.Vec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (that.Vec.x == 0 && that.Vec.y == 0) { that.Vec = SGet(_parent.Direction * 8, -6); } that.SetVisible('rolling', that.Direction); _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } i = 0; goto 2192; for (;;) { ++i; label 2192: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 120)) { this.AttackReactionVec = SGet(_parent.Direction * 8, -6); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 2571; for (;;) { ++i; label 2571: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + _parent.Radius)) { this.AttackReactionVec = SGet(_parent.Direction * 8, -6); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (0 < MWheel) { this.ChangeDirection = 1; this.ChangeType = 1; } if (MWheel < 0) { this.ChangeDirection = -1; this.ChangeType = 1; } if (0 >= this.ChangeDirection && MMiddleUp && _parent.Direction < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 2; } if (this.ChangeDirection >= 0 && MMiddleUp && 0 < _parent.Direction) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 2; } if (0 < this.ChangeDirection && _parent.Direction < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 3; } if (this.ChangeDirection < 0 && 0 < _parent.Direction) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 3; } if (1 < this.ActionCount && MLeftUp) { this.ChangeFlag = true; this.ChangeType = 4; } if (this.ChangeFlag == true && this.ChangeType >= 2 && 4 < this.ActionCount) { if (this.ChangeType != 2) { if (this.ChangeType != 3) { if (this.ChangeType == 4) { _parent.SetVisible('roundTripSlap', _parent.Direction); } } else { _parent.SetVisible('kick', _parent.Direction); } } else { _parent.SetVisible('sliding', _parent.Direction); } this._visible = false; this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance roundTripSlap of movieClip 1626 ラウンドトリップスラップ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 12; this._visible = false; this.AttackPower = 50 + _parent.LvCount * 20; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 5; this.AttackInvincibleCount = 3; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { if (this.ActionCount != 0) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } _parent.Vec = SGet(0, 0); } if (!_parent.StandFlag) { } else { _parent.Vec.x = _parent.HorizonVec.x * _parent.Direction * 6; _parent.Vec.y = _parent.HorizonVec.y * _parent.Direction * 6; } if (this.ActionCount == 9) { var CenPos = SGet(_parent.Pos.x + _parent.Direction * _parent.Radius, _parent.Pos.y); i = 0; goto 1395; for (;;) { ++i; label 1395: if (i >= WWeaponHitIndexNum) break; var that; that = WWeaponEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + _parent.Radius)) { var JumpVec = SGet(_parent.Direction * 25, -8); if (!(JumpVec.y == 0 && JumpVec.x == 0)) { that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37 * _parent.Direction; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('tap'); } else {} } } if (1) { var that; that = WPartnerEval; if (that.ShoulderFlag == false) { if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 120)) { that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; that.Vec = ParabolaVec(false, 30, _global.WGravity, that.Pos, WTPos); if (that.Vec.x == 0 && that.Vec.y == 0) { that.Vec = SGet(_parent.Direction * 25, -8); } that.SetVisible('rolling', that.Direction); _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } i = 0; goto 2184; for (;;) { ++i; label 2184: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.Pos, that.Radius + 120)) { this.AttackReactionVec = SGet(_parent.Direction * 25, -8); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } i = 0; goto 2563; for (;;) { ++i; label 2563: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Dot_Circle_Hit(CenPos, that.HitPos, that.HitRadius + _parent.Radius)) { this.AttackReactionVec = SGet(_parent.Direction * 25, -8); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('tap'); ++_global.WCharActionHitCount; } } } if (0 < MWheel) { this.ChangeDirection = 1; this.ChangeType = 1; } if (MWheel < 0) { this.ChangeDirection = -1; this.ChangeType = 1; } if (0 >= this.ChangeDirection && MMiddleUp && _parent.Direction < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 2; } if (this.ChangeDirection >= 0 && MMiddleUp && 0 < _parent.Direction) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 2; } if (0 < this.ChangeDirection && _parent.Direction < 0) { this.ChangeFlag = true; this.ChangeDirection = -1; this.ChangeType = 3; } if (this.ChangeDirection < 0 && 0 < _parent.Direction) { this.ChangeFlag = true; this.ChangeDirection = 1; this.ChangeType = 3; } if (this.ChangeFlag == true && this.ChangeType >= 2 && 4 < this.ActionCount) { if (this.ChangeType != 2) { if (this.ChangeType != 3) { if (this.ChangeType == 4) { _parent.SetVisible('roundTripSlap', _parent.Direction); } } else { _parent.SetVisible('kick', _parent.Direction); } } else { _parent.SetVisible('sliding', _parent.Direction); } this._visible = false; this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; if (_parent.StandFlag) { _parent.Vec = SGet(0, 0); } this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); } } } } instance tiroFinale of movieClip 1832 ティロフィナーレ { onClipEvent (load) { this.ActionCount = 0; this.ActionTime = 28; this._visible = false; this.WeaponCount = 0; this.AttackPower = 25; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 20; this.AttackInvincibleCount = 20; this.ChangeFlag = false; this.ChangeDirection = 0; this.ChangeType = 0; this.ShotVec = SGet(0, 0); } onClipEvent (enterFrame) { if (!(this._visible && _parent._visible)) { this.ActionCount = 0; this.ChangeFlag = false; this.ChangeDirection = 0; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.left.action1._rotation = 0; this.right.action1._rotation = 0; } else { ++this.ActionCount; if (this.ActionCount == 1) { _parent.ActionFlag = true; ++_global.WCharActionCount; if (!this.left._visible) { this.right.gotoAndPlay('movieStart1'); } else { this.left.gotoAndPlay('movieStart1'); } if (!this.left._visible) { this.right.action1._rotation = 0; } else { this.left.action1._rotation = 0; } this.AttackPower = 500 + _parent.LvCount * 100; this.AttackReactionVec = SGet(0, 0); this.AttackReactionCount = 20; this.AttackInvincibleCount = 10; } if (this.ActionCount == 1) { var TempJumpVec; var Press = 20; if (_parent.StandFlag != false) { TempJumpVec = ParabolaVec(true, Press, _global.WGravity, SGet(_parent.Pos.x, _parent.Pos.y + _parent.Radius), WMPos); } else { TempJumpVec = ParabolaVec(false, Press, _global.WGravity, SGet(_parent.Pos.x, _parent.Pos.y + _parent.Radius), WMPos); } if (TempJumpVec.y == 0 && TempJumpVec.x == 0) { TempJumpVec = SScale(SNorm(SSub(WMPos, SGet(_parent.Pos.x, _parent.Pos.y + _parent.Radius))), Press); } _parent.Vec = SEqual(TempJumpVec); _parent.StandFlag = false; } if (12 < this.ActionCount && 22 >= this.ActionCount) { _parent.Vec = SGet(0, 0); } if (22 < this.ActionCount) { var TempVec = SNorm(SSub(WMPos, _parent.Pos)); var TempAtan = Math.atan2(TempVec.y, TempVec.x); var Roll = 30; if (!this.left._visible) { var Atan = 0; var Si1 = _global.Sight_360(180, this.right.action1._rotation * -1, Atan); if (Si1 != 0) { if (_global.Sight_360(Roll, this.right.action1._rotation * -1, Atan) == 0) { this.right.action1._rotation -= Si1 * Roll; } else { this.right.action1._rotation = Atan * -1; } } } else { var Atan = 180; var Si1 = _global.Sight_360(180, this.left.action1._rotation + 180, Atan); if (Si1 != 0) { if (_global.Sight_360(Roll, this.left.action1._rotation + 180, Atan) == 0) { this.left.action1._rotation += Si1 * Roll; } else { this.left.action1._rotation = Atan + 180; } } } } else { var TempVec = SNorm(SSub(WMPos, _parent.Pos)); var TempAtan = Math.atan2(TempVec.y, TempVec.x); var Atan = int(TempAtan * 57.29577951); var Roll = 30; if (!this.left._visible) { var Si1 = _global.Sight_360(180, this.right.action1._rotation * -1, Atan); if (Si1 != 0) { if (_global.Sight_360(Roll, this.right.action1._rotation * -1, Atan) == 0) { this.right.action1._rotation -= Si1 * Roll; } else { this.right.action1._rotation = Atan * -1; } } } else { var Si1 = _global.Sight_360(180, this.left.action1._rotation + 180, Atan); if (Si1 != 0) { if (_global.Sight_360(Roll, this.left.action1._rotation + 180, Atan) == 0) { this.left.action1._rotation += Si1 * Roll; } else { this.left.action1._rotation = Atan + 180; } } } } if (12 < this.ActionCount && 22 >= this.ActionCount) { var TempAtan; if (!this.left._visible) { TempAtan = this.right.action1._rotation * -1 * 0.0174532925; } else { TempAtan = (this.left.action1._rotation + 180) * 0.0174532925; } this.ShotVec = SGet(Math.cos(TempAtan), Math.sin(TempAtan)); var CenPos = SGet(_parent.Pos.x, _parent.Pos.y); var Line1 = SAdd(_parent.Pos, SScale(this.ShotVec, 125)); var Line2 = SAdd(_parent.Pos, SScale(this.ShotVec, 2048)); i = 0; goto 3609; for (;;) { ++i; label 3609: if (i >= WWeaponHitIndexNum) break; var that; that = WWeaponEvalHitIndex[i]; if (_global.Lim_Circle_Hit(Line1, Line2, that.Pos, that.Radius + 150)) { var JumpVec = SScale(this.ShotVec, 40); ++this.WeaponCount; if (!(JumpVec.y == 0 && JumpVec.x == 0)) { that.SpinCount = 0; that.StandFlag = false; that.SpinFlag = true; that.Omega = 37; that.Vec.x = JumpVec.x; that.Vec.y = JumpVec.y; _parent.se.gotoAndPlay('hit'); } else {} } } i = 0; goto 4002; for (;;) { ++i; label 4002: if (i >= WMagicHitIndexNum) break; var that; that = WMagicEvalHitIndex[i]; if (_global.Lim_Circle_Hit(Line1, Line2, that.Pos, that.Radius + 150)) { this.AttackReactionVec = SScale(this.ShotVec, 40); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('hit'); ++_global.WCharActionHitCount; } } i = 0; goto 4378; for (;;) { ++i; label 4378: if (i >= WWitchHitIndexNum) break; var that; that = WWitchEvalHitIndex[i]; if (_global.Lim_Circle_Hit(Line1, Line2, that.HitPos, that.HitRadius + 150)) { this.AttackReactionVec = SScale(this.ShotVec, 40); that.HpCount += this.AttackPower; that.ReactionCount = this.AttackReactionCount; that.ReactionVec = SEqual(this.AttackReactionVec); that.Vec = SEqual(that.ReactionVec); that.InvincibleCount = this.AttackInvincibleCount; that.StandFlag = false; _parent.se.gotoAndPlay('hit'); ++_global.WCharActionHitCount; } } } if (this.ActionTime < this.ActionCount) { this.ActionCount = 0; this._visible = false; _parent.ActionFlag = false; _parent.ActionFinishFlag = true; this.left.gotoAndPlay('movieStart0'); this.right.gotoAndPlay('movieStart0'); this.ChangeFlag = false; this.ChangeDirection = 0; this.left.action1._rotation = 0; this.right.action1._rotation = 0; } } } } frame 2 { function SetVisible(Name, Name2) { (eval(this.style))._visible = false; (eval('this.' + Name))._visible = true; if (Name2 != -1) { if (Name2 == 1) { (eval('this.' + Name)).left._visible = false; (eval('this.' + Name)).right._visible = true; } } else { (eval('this.' + Name)).left._visible = true; (eval('this.' + Name)).right._visible = false; } this.style = 'this.' + Name; } } } movieClip 446 効果音 { frame 2 { stop(); } frame 4 { stop(); } frame 6 { stop(); } frame 8 { stop(); } frame 10 { stop(); } frame 12 { stop(); } frame 14 { stop(); } frame 16 { stop(); } frame 18 { stop(); } frame 20 { stop(); } frame 21 { stop(); } } movieClip 1148 テキストインフォ { instance hpGauge of movieClip 1440 HpゲージDx { onClipEvent (load) { this.Num = 0; this.OldNum = -1; this.NumLim = 0; this.OldNumLim = -1; this.Size = 375; this.MaxSize = 400; } onClipEvent (enterFrame) { var that = WMyCharEval; this.Num = that.HpCount; this.NumLim = that.HpCountLim; if (this.OldNum != this.Num || this.OldNumLim != this.NumLim) { var Hp = ((this.NumLim - this.Num) / this.NumLim) * (this.MaxSize / this.Size) * 100; this.image._xscale = Hp; this.OldNum = this.Num; this.OldNumLim = this.NumLim; } } } instance expGauge of movieClip 1468 ExpゲージDx { onClipEvent (load) { this.Num = 0; this.OldNum = -1; this.NumLim = 100; this.OldNumLim = -1; this.Size = 375; this.MaxSize = 200; } onClipEvent (enterFrame) { var that = WMyCharEval; this.Num = that.ExpCount; this.NumLim = that.ExpCountLim; if (this.OldNum != this.Num || this.OldNumLim != this.NumLim) { var Hp = (this.Num / this.NumLim) * (this.MaxSize / this.Size) * 100; this.image._xscale = Hp; this.OldNum = this.Num; this.OldNumLim = this.NumLim; } } } instance cpGauge of movieClip 1448 CpゲージDx { onClipEvent (load) { this.Num = 0; this.OldNum = -1; this.NumLim = 100; this.OldNumLim = -1; this.Size = 375; this.MaxSize = 400; } onClipEvent (enterFrame) { var that = WMyCharEval; this.Num = that.ChargePoint; if (this.OldNum != this.Num || this.OldNumLim != this.NumLim) { var Hp = (this.Num / this.NumLim) * (this.MaxSize / this.Size) * 100; this.image._xscale = Hp; this.OldNum = this.Num; this.OldNumLim = this.NumLim; } } } } movieClip 628 ガードライト { } movieClip 624 ガードレフト { } movieClip 130 ガード { } movieClip 1936 ダッシュジャンプレフト { } movieClip 1934 ダッシュジャンプライト { } movieClip 1938 ダッシュジャンプ効果音 { frame 2 { stop(); } frame 4 { stop(); } frame 6 { stop(); } frame 8 { stop(); } } movieClip 1932 ダッシュジャンプ { } movieClip 186 マミスタンド { } movieClip 214 マミスタンドレフト { frame 2 { stop(); } frame 11 { stop(); } frame 17 { stop(); } } movieClip 216 マミスタンドライト { frame 2 { stop(); } frame 11 { stop(); } frame 17 { stop(); } } movieClip 218 マミダッシュレフト { } movieClip 220 マミダッシュライト { } movieClip 188 マミダッシュ { } movieClip 222 マミローリングレフト { frame 2 { stop(); } frame 33 { stop(); } frame 44 { stop(); } frame 57 { stop(); } } movieClip 224 マミローリングライト { frame 2 { stop(); } frame 33 { stop(); } frame 44 { stop(); } frame 57 { stop(); } } movieClip 190 マミローリング { } movieClip 226 マミジャンプライト { frame 2 { stop(); } frame 4 { stop(); } frame 6 { stop(); } frame 8 { stop(); } frame 12 { stop(); } frame 16 { stop(); } frame 20 { stop(); } } movieClip 228 マミジャンプレフト { frame 2 { stop(); } frame 4 { stop(); } frame 6 { stop(); } frame 8 { stop(); } frame 12 { stop(); } frame 16 { stop(); } frame 20 { stop(); } } movieClip 192 マミジャンプ { } movieClip 232 マミダメージレフト { } movieClip 230 マミダメージライト { } movieClip 194 マミダメージ { } movieClip 236 マミチェストドローライト { frame 2 { stop(); } frame 23 { stop(); } frame 28 { stop(); } } movieClip 234 マミチェストドローレフト { frame 2 { stop(); } frame 23 { stop(); } frame 28 { stop(); } } movieClip 196 マミチェストドロー { } movieClip 240 マミウエストドローライト { frame 3 { stop(); } frame 12 { stop(); } frame 18 { stop(); } } movieClip 238 マミウエストドローレフト { frame 3 { stop(); } frame 12 { stop(); } frame 18 { stop(); } } movieClip 202 マミウエストドロー { } movieClip 244 マミヒップドローレフト { frame 2 { stop(); } frame 18 { stop(); } } movieClip 242 マミヒップドローライト { frame 2 { stop(); } frame 18 { stop(); } } movieClip 204 マミヒップドロー { } movieClip 248 マミクイックドローレフト { frame 2 { stop(); } frame 15 { stop(); } frame 28 { stop(); } frame 41 { stop(); } frame 54 { stop(); } frame 67 { stop(); } } movieClip 246 マミクイックドローライト { frame 2 { stop(); } frame 15 { stop(); } frame 28 { stop(); } frame 41 { stop(); } frame 54 { stop(); } frame 67 { stop(); } } movieClip 198 マミクイックドロー { } movieClip 254 マミシングルショットレフト { frame 2 { stop(); } frame 18 { stop(); } } movieClip 256 マミシングルショットライト { frame 2 { stop(); } frame 18 { stop(); } } movieClip 206 マミシングルショット { } movieClip 258 マミシングルツイストレフト { frame 2 { stop(); } frame 17 { stop(); } frame 22 { gotoAndPlay('loop'); } frame 23 { stop(); } frame 38 { stop(); } frame 39 { stop(); } } movieClip 260 マミシングルツイストライト { frame 2 { stop(); } frame 17 { stop(); } frame 22 { gotoAndPlay('loop'); } frame 23 { stop(); } frame 38 { stop(); } frame 39 { stop(); } } movieClip 208 マミシングルツイスト { } movieClip 262 マミダブルショットレフト { } movieClip 264 マミダブルショットライト { } movieClip 210 マミダブルショット { frame 2 { stop(); } frame 25 { stop(); } } movieClip 266 マミダブルツイストレフト { frame 2 { stop(); } frame 11 { stop(); } frame 12 { stop(); } } movieClip 268 マミダブルツイストライト { frame 2 { stop(); } frame 11 { stop(); } frame 12 { stop(); } } movieClip 212 マミダブルツイスト { } movieClip 252 マミキックライト { frame 2 { stop(); } frame 11 { stop(); } } movieClip 250 マミキックレフト { frame 2 { stop(); } frame 11 { stop(); } } movieClip 346 マミジャンプショットレフト { frame 2 { stop(); } frame 53 { stop(); } } movieClip 348 マミジャンプショットライト { frame 2 { stop(); } frame 53 { stop(); } } movieClip 344 マミジャンプショット { } movieClip 452 ダッシュショットライト { frame 2 { stop(); } frame 12 { stop(); } } movieClip 450 ダッシュショットレフト { frame 2 { stop(); } frame 12 { stop(); } } movieClip 448 ダッシュショット { } movieClip 546 バックドローライト { frame 2 { stop(); } frame 43 { gotoAndPlay('ループ'); } frame 44 { stop(); } frame 50 { stop(); } } movieClip 544 バックドローレフト { frame 2 { stop(); } frame 43 { gotoAndPlay('ループ'); } frame 44 { stop(); } frame 50 { stop(); } } movieClip 542 バックドロー { } movieClip 290 マルチドローライト { frame 2 { stop(); } frame 23 { stop(); } frame 28 { stop(); } } movieClip 284 マルチドローレフト { frame 2 { stop(); } frame 23 { stop(); } frame 28 { stop(); } } movieClip 282 マルチドロー { } movieClip 306 ワイヤージャンプライト { frame 2 { stop(); } frame 7 { stop(); } frame 58 { gotoAndPlay('Loop'); } frame 59 { stop(); } frame 66 { stop(); } frame 85 { gotoAndPlay('Loop2'); } frame 86 { stop(); } } movieClip 308 ワイヤージャンプレフト { frame 2 { stop(); } frame 7 { stop(); } frame 58 { gotoAndPlay('Loop'); } frame 59 { stop(); } frame 66 { stop(); } frame 85 { gotoAndPlay('Loop2'); } frame 86 { stop(); } } movieClip 304 ワイヤージャンプ { } movieClip 540 スライディングレフト { frame 2 { stop(); } frame 63 { stop(); } frame 94 { stop(); } } movieClip 578 スライディングライト { frame 2 { stop(); } frame 63 { stop(); } frame 94 { stop(); } } movieClip 520 スライディング { } movieClip 1170 マルチコマンドレフト { frame 2 { stop(); } frame 43 { gotoAndPlay('ループ'); } frame 44 { stop(); } frame 50 { stop(); } } movieClip 1172 マルチコマンドライト { frame 2 { stop(); } frame 43 { gotoAndPlay('ループ'); } frame 44 { stop(); } frame 50 { stop(); } } movieClip 1164 マルチコマンド { } movieClip 1174 マルチショットレフト { frame 2 { stop(); } frame 43 { gotoAndPlay('ループ'); } frame 44 { stop(); } frame 50 { stop(); } } movieClip 1176 マルチショットライト { frame 2 { stop(); } frame 43 { gotoAndPlay('ループ'); } frame 44 { stop(); } frame 50 { stop(); } } movieClip 1168 マルチショット { } movieClip 1178 マルチサテライトレフト { frame 2 { stop(); } frame 8 { stop(); } frame 9 { stop(); } } movieClip 1180 マルチサテライトライト { frame 2 { stop(); } frame 8 { stop(); } frame 9 { stop(); } } movieClip 1166 マルチサテライト { } movieClip 1284 ターンジャンプライト { frame 2 { stop(); } frame 11 { stop(); } } movieClip 1286 ターンジャンプレフト { frame 2 { stop(); } frame 11 { stop(); } } movieClip 1506 スローイングライト { frame 3 { stop(); } frame 12 { stop(); } frame 13 { stop(); } } movieClip 1504 スローイングレフト { frame 2 { stop(); } frame 11 { stop(); } frame 12 { stop(); } } movieClip 1502 スローイング { } movieClip 1620 スラップライト { frame 2 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } } movieClip 1618 スラップレフト { frame 2 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } } movieClip 1616 スラップ { } movieClip 1732 トリップスラップライト { frame 2 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } } movieClip 1734 トリップスラップレフト { frame 2 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } } movieClip 1736 トリップスラップ { } movieClip 1622 ラウンドトリップスラップライト { frame 2 { stop(); } frame 15 { stop(); } frame 16 { stop(); } frame 17 { stop(); } } movieClip 1624 ラウンドトリップスラップレフト { frame 2 { stop(); } frame 15 { stop(); } frame 16 { stop(); } frame 17 { stop(); } } movieClip 1626 ラウンドトリップスラップ { } movieClip 1632 ダッシュステップライト { } movieClip 1630 ダッシュステップレフト { } movieClip 1628 ダッシュステップ { } movieClip 1234 ターンジャンプ { } movieClip 1748 ターンレフト { frame 2 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } } movieClip 1746 ターンライト { frame 2 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } } movieClip 1744 ターン { } movieClip 1752 ターンショットライト { frame 2 { stop(); } frame 7 { stop(); } frame 12 { stop(); } frame 17 { stop(); } frame 22 { stop(); } } movieClip 1754 ターンショットレフト { frame 2 { stop(); } frame 7 { stop(); } frame 12 { stop(); } frame 17 { stop(); } frame 22 { stop(); } } movieClip 1750 ターンショット { } movieClip 1834 ティロフィナーレライト { frame 2 { stop(); } frame 31 { stop(); } frame 32 { stop(); } frame 33 { stop(); } } movieClip 1836 ティロフィナーレレフト { frame 2 { stop(); } frame 31 { stop(); } frame 32 { stop(); } frame 33 { stop(); } } movieClip 1832 ティロフィナーレ { } movieClip 1880 スイングレフト { frame 2 { stop(); } frame 43 { stop(); } frame 64 { stop(); } frame 105 { stop(); } frame 126 { stop(); } } movieClip 1878 スイングライト { frame 2 { stop(); } frame 43 { stop(); } frame 64 { stop(); } frame 105 { stop(); } frame 126 { stop(); } } movieClip 1876 スイング { } movieClip 2286 トリップキックライト { frame 2 { stop(); } frame 11 { stop(); } } movieClip 2284 トリップキックレフト { frame 2 { stop(); } frame 11 { stop(); } } movieClip 2282 トリップキック { } movieClip 200 マミキック { } movieClip 1946 アクション { } movieClip 1740 ラウンドトリップスラップアクション { } movieClip 1738 トリップスラップアクション { } movieClip 1696 スラップアクション1 { } movieClip 1862 ボディ { } movieClip 1864 アクション { } movieClip 1866 エフェクト { } movieClip 1868 アーム { } movieClip 1898 アクション4 { } movieClip 1896 アクション3 { } movieClip 1894 アクション2 { } movieClip 1892 アクション1 { } movieClip 1710 アクション6 { } movieClip 1706 アクション5 { } movieClip 1810 アクション1 { } movieClip 1820 アクション2 { } movieClip 1824 アクション3 { } movieClip 1870 アクション4 { } movieClip 1822 ボディ2 { } movieClip 1800 ボディ { } movieClip 1812 アームレフトバック2 { } movieClip 1814 アームライトバック2 { } movieClip 1816 アームレフトフロント2 { } movieClip 1818 アームライトフロント2 { } movieClip 1804 アームレフトバック { } movieClip 1802 アームライトバック { } movieClip 1806 アームレフトフロント { } movieClip 1808 アームライトフロント { } movieClip 1288 ターンジャンプ { } movieClip 778 スクワットダウン { } movieClip 776 スタンド { } movieClip 276 ジャンプアップレフト { } movieClip 280 ジャンプダウンライト { } movieClip 286 ジャンプフリーライト { } movieClip 274 ジャンプアップライト { } movieClip 288 ジャンプフリーレフト { } movieClip 278 ジャンプダウンレフト { } movieClip 1930 ダッシュジャンプ { } movieClip 302 前方シングルショットアクション右 { } movieClip 320 前方発射体右 { } movieClip 322 前方発射右 { } movieClip 318 前方発射腕右 { } movieClip 860 ボディ { } movieClip 862 アームレフト { } movieClip 858 アームライト { } movieClip 864 ショット { } movieClip 866 アクションレフト { } movieClip 324 ウェストドローアクション右 { } movieClip 334 マミヒップドローアクション { } movieClip 1872 ヒップドローボディ(2) { } movieClip 1874 ヒップドローアーム(2) { } movieClip 1638 ヒップドローボディ { } movieClip 1636 ヒップドローアーム { } movieClip 358 ジャンプショットアクション右 { } movieClip 362 ジャンプショットボディ { } movieClip 364 ジャンプショットアーム右 { } movieClip 360 ジャンプショットファイア右 { } movieClip 380 マミローリングアクション右 { } movieClip 382 マミローリングアクション右2 { } movieClip 1634 ローリングアクション3 { } movieClip 374 ツイストアクション { } movieClip 378 ツイストアクションアーム { } movieClip 376 ツイストアクションボディ { } movieClip 660 アーム1 { } movieClip 662 アーム2 { } movieClip 694 アーム3 { } movieClip 666 ボディエンド2 { } movieClip 670 ボディキープ2 { } movieClip 672 ボディスタート1 { } movieClip 668 ボディキープ1 { } movieClip 664 ボディエンド1 { } movieClip 682 ショットスタート1 { } movieClip 680 ショットキープ2 { } movieClip 678 ショットキープ1 { } movieClip 676 ショットエンド2 { } movieClip 674 ショットエンド1 { } movieClip 692 アクションスタート1 { } movieClip 690 アクションキープ2 { } movieClip 688 アクションキープ1 { } movieClip 686 アクションエンド2 { } movieClip 684 アクションエンド1 { } movieClip 820 キック右 { } movieClip 884 キック左 { } movieClip 2288 キックトリップ { } movieClip 1742 ターンアクション { } movieClip 1756 ダッシュショット短縮 { } movieClip 484 ランニングショット右 { } movieClip 764 ダブルツイストスライド { } movieClip 768 ダブルツイストアーム { } movieClip 766 ダブルツイストボディ { } movieClip 456 リボン { frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 366 ジャンプ { } movieClip 460 リボンドロー { } movieClip 368 ショット { } movieClip 454 アーム { } movieClip 372 ボディ { } movieClip 370 ファイア { } movieClip 2384 action2 { } movieClip 458 action1 { } movieClip 1136 エフェクト { } movieClip 1138 からだ { } movieClip 1518 スロウイング { } movieClip 1126 スロー { } movieClip 1122 チャージ { } movieClip 1582 効果音 { frame 2 { stop(); } frame 4 { stop(); } } movieClip 586 空中 { } movieClip 588 地上 { } movieClip 748 アーム { } movieClip 746 ボディ { } movieClip 712 シングルツイストエンドレフト { } movieClip 714 シングルツイストスライドレフト { } movieClip 710 シングルツイストシフトレフト { } movieClip 1516 スロウ { } movieClip 538 ウエストドローアクション2レフト { } movieClip 536 ウエストドローアクション1レフト { } movieClip 396 ジャンプ音声 { frame 2 { stop(); } frame 4 { stop(); } frame 6 { stop(); } } movieClip 406 チェストドロー音声 { frame 2 { stop(); } frame 3 { stop(); } } movieClip 64 ダッシュ足音 { frame 2 { stop(); } frame 4 { stop(); } frame 6 { stop(); } } movieClip 412 バックグラウンドミュージック { frame 2 { stop(); } frame 4 { stop(); } frame 6 { stop(); } frame 8 { stop(); } frame 10 { stop(); } frame 12 { stop(); } frame 14 { stop(); } frame 16 { stop(); } frame 18 { stop(); } frame 20 { stop(); } frame 21 { stop(); } } instance BottonOp of movieClip 480 ボタン { onClipEvent (load) { this.OnFlag = false; this.OnCount = 0; this.DownFlag = false; } onClipEvent (enterFrame) { var X = _root._xmouse; var Y = _root._ymouse; if (!(120 < X && X < 520 && 330 < Y && Y < 400)) { this.OnFlag = false; } else { this.OnFlag = true; } if (!this.OnFlag) { if (this.OnCount != 0) { this.OnCount = 0; this.image1._visible = true; this.image2._visible = false; } } else { ++this.OnCount; if (this.OnCount == 1) { this.se.gotoAndPlay('over'); this.image1._visible = false; this.image2._visible = true; this.DownFlag = false; } if (Key.isDown(1)) { if (this.DownFlag == false) { this.DownFlag = true; this.se.gotoAndPlay('crick'); } _root.gotoAndPlay('ゲームスタート'); } } } } button 20000 { on (release) { _quality = 'low'; _root.ins_Low.textColor = 16777215; _root.ins_High.textColor = 0; _root.ins_Medium.textColor = 0; } on () { } } button 20001 { on (release) { _quality = 'medium'; _root.ins_Low.textColor = 0; _root.ins_High.textColor = 0; _root.ins_Medium.textColor = 16777215; } on () { } } button 20002 { on (release) { _quality = 'high'; _root.ins_Low.textColor = 0; _root.ins_High.textColor = 16777215; _root.ins_Medium.textColor = 0; } on () { } } frame 5 { if (_quality == 'high') { _root.ins_Low.textColor = 0; _root.ins_High.textColor = 16777215; _root.ins_Medium.textColor = 0; } if (_quality == 'low') { _root.ins_Low.textColor = 16777215; _root.ins_High.textColor = 0; _root.ins_Medium.textColor = 0; } if (_quality == 'medium') { _root.ins_Low.textColor = 0; _root.ins_High.textColor = 0; _root.ins_Medium.textColor = 16777215; } } frame 6 { s_mask = 1; s_lock = 0; if (s_mask == 1) { Stage.scaleMode = 'showAll'; createEmptyMovieClip('stage_mask', 12345); with (stage_mask) { lineStyle(); beginFill(0, 100); moveTo(0, 0); lineTo(Stage.width, 0); lineTo(Stage.width, Stage.height); lineTo(0, Stage.height); lineTo(0, 0); endFill(); } _root.setMask(stage_mask); } if (s_lock == 1) { Stage.scaleMode = 'noScale'; } Stage.showMenu = false; } frame 7 { stop(); } frame 32 { _global.SGet = function (X, Y) { x = X; y = Y; return {'x': x, 'y': y}; }; _global.SSpinAdd90 = function (s) { x = s.y; y = s.x * -1; return {'x': x, 'y': y}; }; _global.SSpinSub90 = function (s) { x = s.y * -1; y = s.x; return {'x': x, 'y': y}; }; _global.SEqual = function (s1) { x = s1.x; y = s1.y; return {'x': x, 'y': y}; }; _global.SAdd = function (s1, s2) { x = s1.x + s2.x; y = s1.y + s2.y; return {'x': x, 'y': y}; }; _global.SSub = function (s1, s2) { x = s1.x - s2.x; y = s1.y - s2.y; return {'x': x, 'y': y}; }; _global.SMul = function (s1, s2) { x = s1.x * s2.x; y = s1.y * s2.y; return {'x': x, 'y': y}; }; _global.SDiv = function (s1, s2) { if (s2.x == 0) { x = 0; } else { x = s1.x / s2.x; } if (s2.y == 0) { y = 0; return {'x': x, 'y': y}; } y = s1.y / s2.y; return {'x': x, 'y': y}; }; _global.SSize = function (s) { Re = s.x * s.x + s.y * s.y; if (Re < 0) { Re *= -1; } Re = Math.sqrt(Re); return Re; }; _global.SSquareSize = function (s) { Re = s.x * s.x + s.y * s.y; return Re; }; _global.SPow = function (s) { x = s.x * s.x; y = s.y * s.y; return {'x': x, 'y': y}; }; _global.SScale = function (s, scale) { x = s.x * scale; y = s.y * scale; return {'x': x, 'y': y}; }; _global.SCross = function (s1, s2) { Re = s1.x * s2.y - s1.y * s2.x; return Re; }; _global.SCloss = function (s1, s2) { Re = s1.x * s2.y - s1.y * s2.x; return Re; }; _global.SDot = function (s1, s2) { Re = s1.x * s2.x + s1.y * s2.y; return Re; }; _global.SNorm = function (s) { Size = Math.sqrt(s.x * s.x + s.y * s.y); if (Size == 0) { return {'x': 0, 'y': 0}; } x = s.x / Size; y = s.y / Size; return {'x': x, 'y': y}; }; _global.SSearchVec = function (s1, s2) { x = s2.x - s1.x; y = s2.y - s1.y; Size = Math.sqrt(x * x + y * y); if (Size == 0) { return {'x': 0, 'y': 0}; } x /= Size; y /= Size; return {'x': x, 'y': y}; }; _global.SSearchAngle = function (I, You) { var at = Math.atan2(You.y - I.y, You.x - I.x); return at; }; } frame 33 { _global.MDistance = 100; _global.MAngle = 90; _global.MControlKeyboard = false; _global.MControlMouse = true; _global.WMyCharLv = 0; _global.WMyCharHp = 1000; _global.WMyCharHpRate = 200; _global.WPartnerUseFlag = true; _global.WGroundJumpPress = 25; _global.WAirJumpPress = 20; _global.WGroundJumpPressCountRate = 1; _global.WAirJumpPressCountRate = 1; _global.WGroundJumpPressCountInterval = 4; _global.WAirJumpPressCountInterval = 4; _global.WGroundJumpPressLim = 35; _global.WAirJumpPressLim = 30; _global.WGravity = -2; _global.WCpIntervalFirst = 6; _global.WCpIntervalDiffer = 6; _global.WCpIntervalNumLim = 9; _global.WLightInterval = 2; _global.WWeaponNum = 20; _global.WStageNum = 10; _global.WLightNum = 20; _global.WBulletNum = 20; _global.WWitchNum = 60; _global.WLineNum = 100; _global.WMagicNumMax = 1000; _global.WGriefSeedNum = 50; _global.WGateNum = 40; _global.WMapPointNum = 40; _global.WGroundNum = 100; _global.WWallNum = 100; _global.WFootholdNum = 100; _global.WCornerPos = SGet(640, 480); _global.VisibleLange1 = 400; _global.VisibleLange2 = 450; _global.VisibleLange3 = 500; } frame 34 { _global.WitchMake0 = function () { return {'x': 0, 'y': 0, 'kind': 0, 'flag': 0, 'p1': 0, 'p2': 0, 'p3': 0, 'p4': 0}; }; _global.WitchSKPMake = function (s1, k, p1, p2, p3, p4) { return {'x': s1.x, 'y': s1.y, 'kind': k, 'flag': 1, 'p1': p1, 'p2': p2, 'p3': p3, 'p4': p4}; }; _global.WitchSKMake = function (s1, k) { return {'x': s1.x, 'y': s1.y, 'kind': k, 'flag': 1, 'p1': 0, 'p2': 0, 'p3': 0, 'p4': 0}; }; _global.LineSGet = function (s1, s2) { x1 = s1.x; x2 = s2.x; y1 = s1.y; y2 = s2.y; var f = 0; var k = 0; return {'x1': x1, 'y1': y1, 'x2': x2, 'y2': y2, 'flag': f, 'kind': k}; }; _global.LineMake = function (sx1, sy1, sx2, sy2) { x1 = sx1; x2 = sx2; y1 = sy1; y2 = sy2; var f = 1; var k = 0; return {'x1': x1, 'y1': y1, 'x2': x2, 'y2': y2, 'flag': f, 'kind': k}; }; _global.LineSMake = function (s1, s2) { x1 = s1.x; x2 = s2.x; y1 = s1.y; y2 = s2.y; var f = 1; var k = 0; return {'x1': x1, 'y1': y1, 'x2': x2, 'y2': y2, 'flag': f, 'kind': k}; }; _global.LineSKMake = function (s1, s2, k) { x1 = s1.x; x2 = s2.x; y1 = s1.y; y2 = s2.y; var f = 1; return {'x1': x1, 'y1': y1, 'x2': x2, 'y2': y2, 'flag': f, 'kind': k}; }; _global.LineMake0 = function () { s = 0; var f = 0; var k = 0; return {'x1': 0, 'y1': 0, 'x2': 0, 'y2': 0, 'flag': f, 'kind': k}; }; _global.GameOver = function () { gotoAndPlay('ゲームオーバー'); }; _global.TPos = SGet(0, 0); _global.TAimFlag = false; _global.WTPos = SGet(0, 0); _global.MPos = SGet(0, 0); _global.MVec = SGet(0, 0); _global.WMPos = SGet(0, 0); _global.WCPos = SGet(0, 0); _global.WCVec = SGet(0, 0); _global.MLeftUp = false; _global.MLeftDown = false; _global.MLeftPress = true; _global.MLeftRelease = true; _global.MLeftPressCount = 0; _global.MLeftReleaseCount = 0; _global.MLeftPressCountOld = 0; _global.MLeftReleaseCountOld = 0; _global.MRightUp = false; _global.MRightDown = false; _global.MRightPress = true; _global.MRightRelease = true; _global.MRightPressCount = 0; _global.MRightReleaseCount = 0; _global.MRightPressCountOld = 0; _global.MRightReleaseCountOld = 0; _global.MMiddleUp = false; _global.MMiddleDown = false; _global.MMiddlePress = true; _global.MMiddleRelease = true; _global.MMiddlePressCount = 0; _global.MMiddleReleaseCount = 0; _global.MMiddlePressCountOld = 0; _global.MMiddleReleaseCountOld = 0; _global.PreMWheel = 0; _global.MWheelSum = 0; _global.MWheel = 0; _global.MWheelUp = false; _global.MWheelDown = false; _global.MWheelPress = true; _global.MWheelRelease = true; _global.MWheelPressCount = 0; _global.MWheelReleaseCount = 0; _global.MWheelPressCountOld = 0; _global.MWheelReleaseCountOld = 0; _global.MWheelLog1 = 0; _global.MWheelLog2 = 0; _global.MWheelLog3 = 0; _global.MCount = 0; _global.MWheelInterval = 5; _global.MWheelIntervalCount = 0; _global.WVec = SGet(0, 0); _global.WPos = SGet(0, 0); _global.WLimPos1 = SGet(0, 0); _global.WLimPos2 = SGet(640, 480); _global.WTAtan = 0; _global.WTAtan360 = 0; _global.WMAtan = 0; _global.WMAtan360 = 0; _global.WWeaponEval = new Array(WWeaponNum); _global.WLineEval = new Array(WLineNum); _global.WWitchEval = new Array(WWitchNum); _global.WGriefSeedEval = new Array(WGriefSeedNum); _global.WMagicEval = new Array(WMagicNumMax); _global.WFireEval = new Array(WBulletNum); _global.WBulletEval = new Array(WBulletNum); _global.WMyCharEval = ; _global.WLightEval = new Array(WLightNum); _global.WPartnerIndexNum = 1; _global.WPartnerEval = ; _global.WWeaponEvalIndex = new Array(WWeaponNum); _global.WWitchEvalIndex = new Array(WWitchNum); _global.WGriefSeedEvalIndex = new Array(WGriefSeedNum); _global.WBulletEvalIndex = new Array(WBulletNum); _global.WLineEvalIndex = new Array(WLineNum); _global.WWeaponIndexNum = 0; _global.WWitchIndexNum = 0; _global.WGriefSeedIndexNum = 0; _global.WBulletIndexNum = 0; _global.WLineIndexNum = 0; _global.WWeaponEvalHitIndex = new Array(WWeaponNum); _global.WWitchEvalHitIndex = new Array(WWitchNum); _global.WMagicEvalHitIndex = new Array(WMagicNumMax); _global.WBulletEvalHitIndex = new Array(WBulletNum); _global.WWeaponHitIndexNum = 0; _global.WWitchHitIndexNum = 0; _global.WBulletHitIndexNum = 0; _global.WMagicHitIndexNum = 0; _global.WMagicNum = 0; _global.WeaponCount = 0; _global.BulletCount = 0; _global.WVisibleCount = 0; _global.WVisibleFlag = false; _global.WCenPos = SScale(_global.WCornerPos, 0.5); _global.WWCenPos = SScale(_global.WCornerPos, 0.5); _global.CPos = SScale(_global.WCornerPos, 0.5); _global.WCPos = SScale(_global.WCornerPos, 0.5); _global.LetsGoFlag = false; _global.LetsGoCount = 5; _global.BackNum = 6; _global.WMiniStageFlag = false; _global.WWitchExistNum = 0; _global.WInfoGaugeSc = 0; _global.WInfoGaugeKp = 0; _global.WInfoGaugeGsp = 0; _global.WInfoBossFlag = false; _global.WInfoBossDeathFlag = false; _global.WScoreShowEndFlag = false; _global.WScoreCount = 0; _global.WEnemyDamageCount = 0; _global.WCharDamageCount = 0; _global.WEnemyBreakCount = 0; _global.WEnemyBreakBonusCount = 0; _global.WCharBreakCount = 0; _global.WCharBreakBonusCount = 0; _global.WCharActionCount = 0; _global.WCharActionHitCount = 0; _global.WBonusCount = 0; _global.WInfoGaugeCp = 0; _global.WInfoGaugeTp = 0; _global.WInfoGaugeHp = 0; _global.WInfoGaugeExp = 0; _global.WInfoGaugeLv = 0; } frame 35 { function stopAll(target) { for (var mc in target) { if (target[mc] instanceof MovieClip) { target[mc].stop(); arguments.callee(target[mc]); } } } _global.WGetWeaponEval = function () { var that; var TempFlag = false; var n = 0; goto 383; for (;;) { ++n; label 383: if (n >= WWeaponNum) break; that = WWeaponEval[n]; if (that.Exist == false && that.FormatFlag == false) { TempFlag = true; } else {} } if (TempFlag == false) { ++_global.WeaponCount; if (_global.WeaponCount >= WWeaponNum) { _global.WeaponCount = 0; } that = WWeaponEval[_global.WeaponCount]; } return that; }; _global.WGetBulletEval = function () { var that; var TempFlag = false; var n = 0; goto 656; for (;;) { ++n; label 656: if (n >= WBulletNum) break; that = WBulletEval[n]; if (that.Exist == false && that.FormatFlag == false) { TempFlag = true; } else {} } if (TempFlag == false) { ++_global.BulletCount; if (_global.BulletCount >= WBulletNum) { _global.BulletCount = 0; } that = WBulletEval[_global.BulletCount]; } return that; }; } frame 36 { _global.Spread = function (Num, xLineNum, yLineNum, xPos, yPos, xLineFlag) { if (0 < xLineNum * yLineNum && Num >= xLineNum * yLineNum) { return 0; } if (!(0 < xLineNum && xLineFlag == 1)) { if (0 < yLineNum) { if (Num < 0) { Num *= -1; } yPos = Num % yLineNum; xPos = (Num - yPos) / yLineNum; return 1; } return 0; } xPos = Num % xLineNum; yPos = (Num - xPos) / xLineNum; return 1; return 0; }; _global.SSpread = function (Num, xLineNum, yLineNum) { var xPos = 0; var yPos = 0; if (0 >= xLineNum) { if (0 < yLineNum) { yPos = Num % yLineNum; xPos = (Num - yPos) / yLineNum; } return {'x': xPos, 'y': yPos}; } xPos = Num % xLineNum; yPos = (Num - xPos) / xLineNum; return {'x': xPos, 'y': yPos}; }; _global.ArcSSpread = function (Pos, xLineNum, yLineNum) { if (xLineNum != 0) { return Pos.x + xLineNum * Pos.y; } if (yLineNum != 0) { return Pos.y + yLineNum * Pos.x; } return -1; }; _global.ArcSpread = function (Posx, Posy, xLineNum, yLineNum) { if (xLineNum != 0) { return Posx + xLineNum * Posy; } if (yLineNum != 0) { return Posy + yLineNum * Posx; } return -1; }; } frame 37 { _global.LimX_Circle_Hit = function (LinePos1, LinePos2, CirclePos, r) { var dx; var dy; var a; var b; var t; var sx; var sy; var nx; var ny; if (CirclePos.x < LinePos1.x && CirclePos.x < LinePos2.x || LinePos1.x < CirclePos.x && LinePos2.x < CirclePos.x) { return false; } dx = LinePos2.x - LinePos1.x; dy = LinePos2.y - LinePos1.y; a = dx * dx + dy * dy; b = dx * (LinePos1.x - CirclePos.x) + dy * (LinePos1.y - CirclePos.y); t = b * -1 / a; nx = LinePos1.x + dx * t; ny = LinePos1.y + dy * t; sx = CirclePos.x - nx; sy = CirclePos.y - ny; if (r * r >= sx * sx + sy * sy) { return true; } return false; }; _global.Lim_Dot_Hit = function (LimPos1, LimPos2, BetweenPos) { var dx; var dy; var a; var b; var t; dx = LimPos2.x - LimPos1.x; dy = LimPos2.y - LimPos1.y; a = dx * dx + dy * dy; b = dx * (LimPos1.x - BetweenPos.x) + dy * (LimPos1.y - BetweenPos.y); t = b * -1 / a; if (t < 0 || 1 < t) { return false; } return true; }; _global.Lim_Circle_Hit = function (LinePos1, LinePos2, CirclePos, r) { var dx; var dy; var a; var b; var t; var sx; var sy; var nx; var ny; dx = LinePos2.x - LinePos1.x; dy = LinePos2.y - LinePos1.y; a = dx * dx + dy * dy; b = dx * (LinePos1.x - CirclePos.x) + dy * (LinePos1.y - CirclePos.y); t = b * -1 / a; if (t < 0) { return false; } if (1 < t) { return false; } nx = LinePos1.x + dx * t; ny = LinePos1.y + dy * t; sx = CirclePos.x - nx; sy = CirclePos.y - ny; if (r * r >= sx * sx + sy * sy) { return true; } return false; }; _global.ParabolaVec2 = function (LongFlag, V, G, Pos0, Pos1) { var X1; var Y1; var a; var b; var c; var D; Re_x = 0; Re_y = 0; X1 = Pos1.x - Pos0.x; Y1 = Pos1.y - Pos0.y; a = 1 + Y1 * Y1 / X1 * X1; b = Y1 * G - V * V; c = G * G * X1 * X1 / 4; D = b * b - 4 * a * c; fscommand('ParaFlaTrace', D); fscommand('ParaFlaTrace', 'シーク1'); D *= -1; if (D < 0) { D = Math.sqrt(D * -1); fscommand('ParaFlaTrace', 'シーク2'); fscommand('ParaFlaTrace', D); if (b * -1 + D >= 0) { fscommand('ParaFlaTrace', 'シーク3'); if (LongFlag == false) { Re_x = Math.sqrt((b * -1 + D) / 2 * a); if (X1 < 0) { Re_x *= -1; } Re_y = Y1 * Re_x / X1 + G * X1 / 2 * Re_x; } if (b * -1 - D >= 0) { if (LongFlag == true) { Re_x = Math.sqrt((b * -1 - D) / 2 * a); if (X1 < 0) { Re_x *= -1; } Re_y = Y1 * Re_x / X1 + G * X1 / 2 * Re_x; } } } } return {'x': Re_x, 'y': Re_y}; }; _global.ParabolaVec = function (LongFlag, V, G, Pos0, Pos1) { var X1; var Y1; var a; var b; var c; var D; var x = 0; var y = 0; X1 = Pos1.x - Pos0.x; Y1 = Pos1.y - Pos0.y; if (X1 == 0) { if (LongFlag != false) { x = 0; y = V * -1; } else { if (0 >= Y1) { x = 0; y = V * -1; } else { x = 0; y = V; } } return {'x': x, 'y': y}; } a = 1 + Y1 * Y1 / X1 * X1; b = Y1 * G - V * V; c = G * G * X1 * X1 / 4; D = b * b - 4 * a * c; if (0 < D) { D = Math.sqrt(D); if (LongFlag != false) { x = Math.sqrt((b * -1 - D) / 2 * a); if (X1 < 0) { x *= -1; } y = Y1 * x / X1 + G * X1 / 2 * x; return {'x': x, 'y': y}; } x = Math.sqrt((b * -1 + D) / 2 * a); if (X1 < 0) { x *= -1; } y = Y1 * x / X1 + G * X1 / 2 * x; } return {'x': x, 'y': y}; }; _global.Dot_Dot_Distance = function (DotPos1, DotPos2) { var a = DotPos2.x - DotPos1.x; var b = DotPos2.y - DotPos1.y; var sqrt = Math.sqrt(a * a + b * b); return sqrt; }; _global.Dot_Circle_Hit = function (DotPos, CirclePos, Radius) { var a = CirclePos.x - DotPos.x; var b = CirclePos.y - DotPos.y; if (Radius * Radius >= a * a + b * b) { return true; } return false; }; _global.Line_Circle_Hit2 = function (LinePos1, LinePos2, CirclePos, r, NearLinePos) { var dx; var dy; var a; var b; var t; var sx; var sy; dx = LinePos2.x - LinePos1.x; dy = LinePos2.y - LinePos1.y; a = dx * dx + dy * dy; b = dx * (LinePos1.x - CirclePos.x) + dy * (LinePos1.y - CirclePos.y); t = b * -1 / a; if (t < 0) { t = 0; } if (1 < t) { t = 1; } NearLinePos.x = LinePos1.x + dx * t; NearLinePos.y = LinePos1.y + dy * t; sx = CirclePos.x - NearLinePos.x; sy = CirclePos.y - NearLinePos.y; if (r * r >= sx * sx + sy * sy) { return true; } return false; }; _global.Line_Circle_Hit = function (LinePos1, LinePos2, CirclePos, r) { var dx; var dy; var a; var b; var t; var sx; var sy; var nx; var ny; dx = LinePos2.x - LinePos1.x; dy = LinePos2.y - LinePos1.y; a = dx * dx + dy * dy; b = dx * (LinePos1.x - CirclePos.x) + dy * (LinePos1.y - CirclePos.y); t = b * -1 / a; if (t < 0) { t = 0; } if (1 < t) { t = 1; } nx = LinePos1.x + dx * t; ny = LinePos1.y + dy * t; sx = CirclePos.x - nx; sy = CirclePos.y - ny; if (r * r >= sx * sx + sy * sy) { return true; } return false; }; _global.Line_Line_Hit = function (Line1Pos1, Line1Pos2, Line2Pos1, Line2Pos2) { var f1 = 0; var g1 = 0; var t1 = 0; var f2 = 0; var g2 = 0; var t2 = 0; var det = 0; var dx = 0; var dy = 0; f1 = Line1Pos2.x - Line1Pos1.x; g1 = Line1Pos2.y - Line1Pos1.y; f2 = Line2Pos2.x - Line2Pos1.x; g2 = Line2Pos2.y - Line2Pos1.y; det = f2 * g1 - f1 * g2; if (det != 0) { dx = Line2Pos1.x - Line1Pos1.x; dy = Line2Pos1.y - Line1Pos1.y; t1 = (f2 * dy - g2 * dx) / det; t2 = (f1 * dy - g1 * dx) / det; if (t1 >= 0 && 1 >= t1 && t2 >= 0 && 1 >= t2) { return true; } } return false; }; _global.Line_Line_HitPos = function (Line1Pos1, Line1Pos2, Line2Pos1, Line2Pos2, DotPos) { var f1; var g1; var t1; var f2; var g2; var t2; var det; var dx; var dy; f1 = Line1Pos2.x - Line1Pos1.x; g1 = Line1Pos2.y - Line1Pos1.y; f2 = Line2Pos2.x - Line2Pos1.x; g2 = Line2Pos2.y - Line2Pos1.y; det = f2 * g1 - f1 * g2; if (det != 0) { dx = Line2Pos1.x - Line1Pos1.x; dy = Line2Pos1.y - Line1Pos1.y; t1 = (f2 * dy - g2 * dx) / det; t2 = (f1 * dy - g1 * dx) / det; if (!(t1 >= 0 && 1 >= t1 && t2 >= 0 && 1 >= t2)) { DotPos.x = 0; DotPos.y = 0; return 0; return 0; } DotPos.x = Line1Pos1.x + f1 * t1; DotPos.y = Line1Pos1.y + g1 * t1; return 1; } return 0; }; _global.Line_Line_Pos = function (Line1Pos1, Line1Pos2, Line2Pos1, Line2Pos2) { var f1; var g1; var t1; var f2; var g2; var t2; var det; var dx; var dy; f1 = Line1Pos2.x - Line1Pos1.x; g1 = Line1Pos2.y - Line1Pos1.y; f2 = Line2Pos2.x - Line2Pos1.x; g2 = Line2Pos2.y - Line2Pos1.y; det = f2 * g1 - f1 * g2; if (det != 0) { dx = Line2Pos1.x - Line1Pos1.x; dy = Line2Pos1.y - Line1Pos1.y; t1 = (f2 * dy - g2 * dx) / det; t2 = (f1 * dy - g1 * dx) / det; if (t1 >= 0 && 1 >= t1 && t2 >= 0 && 1 >= t2) { return {'x': Line1Pos1.x + f1 * t1, 'y': Line1Pos1.y + g1 * t1}; } } return {'x': 0, 'y': 0}; }; _global.Sight_Rad = function (S, T, At) { var s; var t; var at; s = S; t = T; at = At; while (t >= 6.2831852) { t -= 6.2831852; } while (t < 0) { t += 6.2831852; } while (at >= 6.2831852) { at -= 6.2831852; } while (at < 0) { at += 6.2831852; } if (3.1415926 < s) { s = 3.1415926 - 1.0e-006; } var L = 0; var R = 0; var A = t + s; var Z = t - s; if (A >= 6.2831852) { A -= 6.2831852; } if (Z < 0) { Z += 6.2831852; } if (!(Z >= A && t < 3.1415926)) { if (!(Z >= A && t >= 3.1415926)) { if (Z < A) { if (!(t < at && A >= at)) { if (t >= at && Z < at) { L = 1; } } else { R = 1; } } } else { if (!(t < at || A >= at)) { if (t >= at && Z < at) { L = 1; } } else { R = 1; } } } else { if (!(t < at && A >= at)) { if (t >= at || Z < at) { L = 1; } } else { R = 1; } } if (!R) { if (!L) { return 0; } else { return -1; } } else { return 1; } }; _global.Sight_360 = function (S, T, At) { var s; var t; var at; s = S; t = T; at = At; while (t >= 360) { t -= 360; } while (t < 0) { t += 360; } while (at >= 360) { at -= 360; } while (at < 0) { at += 360; } if (180 < s) { s = 180 - 1; } var L = 0; var R = 0; var A = t + s; var Z = t - s; if (A >= 360) { A -= 360; } if (Z < 0) { Z += 360; } if (!(Z >= A && t < 180)) { if (!(Z >= A && t >= 180)) { if (Z < A) { if (!(t < at && A >= at)) { if (t >= at && Z < at) { L = 1; } } else { R = 1; } } } else { if (!(t < at || A >= at)) { if (t >= at && Z < at) { L = 1; } } else { R = 1; } } } else { if (!(t < at && A >= at)) { if (t >= at || Z < at) { L = 1; } } else { R = 1; } } if (!R) { if (!L) { return 0; } else { return -1; } } else { return 1; } }; } instance DetectMouse of movieClip 34 mouse { onClipEvent (enterFrame) { if (Key.isDown(74)) { _global.MControlKeyboard = true; _global.MControlMouse = true; } if (Key.isDown(77)) { _global.MControlKeyboard = false; _global.MControlMouse = true; } if (Key.isDown(75)) { _global.MControlKeyboard = true; _global.MControlMouse = false; } if (MControlMouse) { _global.MWheel = _global.PreMWheel; } _global.PreMWheel = 0; if (MControlKeyboard) { if (MControlMouse == false) { _global.MWheel = 0; } if (Key.isDown(37)) { _global.MWheel = -1; } if (Key.isDown(39)) { _global.MWheel = 1; if (Key.isDown(37)) { _global.MWheel = 0; } } } _global.CPos = SGet(WMyCharEval._x, WMyCharEval._y); _global.WCPos = SEqual(WMyCharEval.Pos); if (!(MControlKeyboard && MControlMouse == false)) { _global.MPos.x = _root._xmouse; _global.MPos.y = _root._ymouse; } else { if (Key.isDown(65)) { _global.MAngle += 25 * ((MDistance * -1 + 600) / 600) / 57.29577951; } if (Key.isDown(68)) { _global.MAngle -= 25 * ((MDistance * -1 + 600) / 600) / 57.29577951; } if (Key.isDown(87)) { _global.MDistance += 20; if (400 < _global.MDistance) { _global.MDistance = 400; } } if (Key.isDown(83)) { _global.MDistance -= 20; if (_global.MDistance < 50) { _global.MDistance = 50; } } _global.MPos = SAdd(CPos, SScale(SGet(Math.cos(MAngle), Math.sin(MAngle)), MDistance)); } _global.WMPos.x = _global.MPos.x + _global.WPos.x; _global.WMPos.y = _global.MPos.y + _global.WPos.y; _global.MLeftDown = false; _global.MLeftUp = false; _global.MRightDown = false; _global.MRightUp = false; _global.MMiddleUp = false; _global.MMiddleDown = false; if (!(MControlMouse && Key.isDown(1) || MControlKeyboard && (Key.isDown(40) || Key.isDown(32)))) { if (_global.MLeftPress) { _global.MLeftUp = true; _global.MLeftPress = false; _global.MLeftRelease = true; _global.MLeftReleaseCountOld = _global.MLeftReleaseCount; _global.MLeftReleaseCount = 0; } ++_global.MLeftReleaseCount; } else { if (_global.MLeftRelease) { _global.MLeftDown = true; _global.MLeftPress = true; _global.MLeftRelease = false; _global.MLeftPressCountOld = _global.MLeftPressCount; _global.MLeftPressCount = 0; } ++_global.MLeftPressCount; } if (!(MControlMouse && Key.isDown(2) || MControlKeyboard && Key.isDown(13))) { if (_global.MRightPress) { _global.MRightUp = true; _global.MRightPress = false; _global.MRightRelease = true; _global.MRightReleaseCountOld = _global.MRightReleaseCount; _global.MRightReleaseCount = 0; } ++_global.MRightReleaseCount; } else { if (_global.MRightRelease) { _global.MRightDown = true; _global.MRightPress = true; _global.MRightRelease = false; _global.MRightPressCountOld = _global.MRightPressCount; _global.MRightPressCount = 0; } ++_global.MRightPressCount; } if (!(MControlMouse && Key.isDown(4) || MControlKeyboard && Key.isDown(38))) { if (_global.MMiddlePress) { _global.MMiddleUp = true; _global.MMiddlePress = false; _global.MMiddleRelease = true; _global.MMiddleReleaseCountOld = _global.MMiddleReleaseCount; _global.MMiddleReleaseCount = 0; } ++_global.MMiddleReleaseCount; } else { if (_global.MMiddleRelease) { _global.MMiddleDown = true; _global.MMiddlePress = true; _global.MMiddleRelease = false; _global.MMiddlePressCountOld = _global.MMiddlePressCount; _global.MMiddlePressCount = 0; } ++_global.MMiddlePressCount; } if (_global.MWheel == 0) { if (_global.MWheelPress) { _global.MWheelUp = true; _global.MWheelPress = false; _global.MWheelRelease = true; _global.MWheelReleaseCountOld = _global.MWheelReleaseCount; _global.MWheelReleaseCount = 0; } ++_global.MWheelReleaseCount; } else { if (_global.MWheelRelease) { _global.MWheelDown = true; _global.MWheelPress = true; _global.MWheelRelease = false; _global.MWheelPressCountOld = _global.MWheelPressCount; _global.MWheelPressCount = 0; } ++_global.MWheelPressCount; } if (_global.MCount == 0) { ++_global.MCount; _global.MLeftUp = false; _global.MLeftDown = false; _global.MRightUp = false; _global.MRightDown = false; _global.MMiddleUp = false; _global.MMiddleDown = false; _global.MWheelSum = 0; _global.MWheel = 0; _global.MWheelUp = false; _global.MWheelDown = false; } } onClipEvent (load) { _root.score = 0; DetectMouse = new Object(); DetectMouse.onMouseWheel = function (delta) { _root.score += delta; _global.PreMWheel = delta; }; Mouse.addListener(DetectMouse); } } frame 40 { if (Key.isDown(90)) { gotoAndPlay('ゲームオーバー'); } if (WMyCharEval.DeathFlag && WMyCharEval.DeathCount == 20) { gotoAndPlay('ゲームオーバー'); } if (Key.isDown(76) && 0 < MWheel) { ++WMyCharEval.LvCount; } if (Key.isDown(76) && MWheel < 0) { --WMyCharEval.LvCount; } if (Key.isDown(86) && 0 < MWheel) { WMyCharEval._visible = true; } if (Key.isDown(86) && MWheel < 0) { WMyCharEval._visible = false; } if (Key.isDown(87) && 0 < MWheel) { _global.WPartnerUseFlag = true; WPartnerEval.Pos = SEqual(WMyCharEval.Pos); WPartnerEval.Vec = SGet(0, 0); WPartnerEval.Direction = WMyCharEval.Direction; WPartnerEval.FormatFlag = true; } if (Key.isDown(87) && MWheel < 0) { _global.WPartnerUseFlag = false; WPartnerEval._visible = false; } } frame 41 { gotoAndPlay('メインルーチン'); } frame 43 { stopAllSounds(); } instance buttonOver of movieClip 610 ボタンover { onClipEvent (load) { this.OnFlag = false; this.OnCount = 0; this.DownFlag = false; } onClipEvent (enterFrame) { var X = _root._xmouse; var Y = _root._ymouse; if (!(120 < X && X < 520 && 330 < Y && Y < 400)) { this.OnFlag = false; } else { this.OnFlag = true; } if (!this.OnFlag) { if (this.OnCount != 0) { this.OnCount = 0; this.image1._visible = true; this.image2._visible = false; } } else { ++this.OnCount; if (this.OnCount == 1) { this.se.gotoAndPlay('over'); this.image1._visible = false; this.image2._visible = true; this.DownFlag = false; } if (Key.isDown(1)) { if (this.DownFlag == false) { this.DownFlag = true; this.se.gotoAndPlay('crick'); } _root.gotoAndPlay('セットコンティニュー'); } } } } button 20003 { on (release) { _quality = 'LOW'; _root.ins_Low.color = 16777215; _root.ins_High.color = 0; _root.ins_Medium.color = 0; _root.Low.color = 16777215; _root.High.color = 0; _root.Medium.color = 0; } on () { } } button 20004 { on (release) { _quality = 'MEDIUM'; _root.ins_Low.color = 0; _root.ins_High.color = 0; _root.ins_Medium.color = 16777215; } on () { } } button 20005 { on (release) { _quality = 'HIGH'; _root.ins_Low.textColor = 0; _root.ins_High.textColor = 16777215; _root.ins_Medium.textColor = 0; } on () { } } frame 47 { if (_quality == 'HIGH') { _root.ins_Low.textColor = 0; _root.ins_High.textColor = 16777215; _root.ins_Medium.textColor = 0; } if (_quality == 'LOW') { _root.ins_Low.textColor = 16777215; _root.ins_High.textColor = 0; _root.ins_Medium.textColor = 0; } if (_quality == 'MEDIUM') { _root.ins_Low.textColor = 0; _root.ins_High.textColor = 0; _root.ins_Medium.textColor = 16777215; } } frame 48 { stop(); } frame 51 { stopAllSounds(); } frame 51 { gotoAndPlay('コンティニュー'); } frame 53 { stop(); }




http://swfchan.com/28/135706/info.shtml
Created: 9/2 -2019 10:53:11 Last modified: 9/2 -2019 10:53:11 Server time: 04/05 -2024 12:30:06