设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 1362|回复: 2
打印 上一主题 下一主题

[已经解决] mv如何加快战斗流程的速度啊!大神!

[复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
7 小时
注册时间
2016-9-15
帖子
19
跳转到指定楼层
1
发表于 2016-9-21 16:23:31 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
mv如何加快战斗流程的速度啊!大神!     我嫌系统的太慢!!!

Lv2.观梦者

梦石
0
星屑
311
在线时间
204 小时
注册时间
2007-2-4
帖子
1817
2
发表于 2016-9-24 22:05:12 | 只看该作者
JAVASCRIPT 代码复制下载
  1. //=============================================================================
  2. // sound sepher Engine - Battle Speed Up 高機能版
  3. // SSEP_BattleSpeedUp_v2.js
  4. // Version: 2.01
  5. //=============================================================================
  6.  
  7. var Imported = Imported || {};
  8. Imported.SSEP_BattleSpeedUp = true;
  9.  
  10. var Sepher = Sepher || {};
  11.  
  12. //=============================================================================
  13. /*:
  14.  * @plugindesc [ver2.01] 戦闘速度を上げるプラグインです。YanflyEngine対応。
  15.  * 利用時は、必ずYanflyEngineの後に読み込んでください。
  16.  * @author Shoichiro Sakamoto(sound sepher)
  17.  *
  18.  * @help
  19.  * ------------------------------------------------------------------------------
  20.  * ■sound sepher Engine - "Battle Speed UP" Plugin (Ver2.01 '15 11/07)
  21.  * ------------------------------------------------------------------------------
  22.  * 制作:坂本昌一郎 / Shoichiro Sakamoto (sound sepher)
  23.  * Web :[url]http://sepher.jp/[/url]
  24.  *
  25.  * ------------------------------------------------------------------------------
  26.  * ■内容説明
  27.  * ------------------------------------------------------------------------------
  28.  * このプラグインは戦闘速度を上げるプラグインです。
  29.  * フロントビュー・サイドビュー両方に対応しています。
  30.  *
  31.  * また、YanflyEngineのBattleCore、アクションシーケンスパック(X_ActSeqPack1等)、
  32.  * YEP Active Time Battle、VictoryAftermath、Ellye's Active Time Battle に対応。
  33.  *
  34.  * ------------------------------------------------------------------------------
  35.  * ■使い方
  36.  * ------------------------------------------------------------------------------
  37.  * OKボタンを押しっぱなしにすると戦闘が早送りモードになります。
  38.  * また、画面上に表示されるスイッチボタンを押すと常時早送りになります。
  39.  * シフト(X)キーを押すことで、同様の効果を得ることも可能です。
  40.  *
  41.  * これらはすべてオフにすることもできます。
  42.  *
  43.  * 戦闘速度やスイッチ画像の設定を細かく調整することができます。
  44.  * 設定項目の意味がわからない場合は、デフォルト状態でお使いください。
  45.  * 通常ではGeneral Settingの値を変えるだけでも充分でしょう。
  46.  *
  47.  * YanflyEngineとEllye's ATBに対応していますが、プラグインマネージャでこれらの
  48.  * プラグインの後にこのプラグインを置かないと正確に実行されません。
  49.  * また、Ellye's ATBを使う場合は108行め"(function() {"と550行め"})();"を削除して、
  50.  * 関数スコープを開放してください。
  51.  *
  52.  * ------------------------------------------------------------------------------
  53.  * ■注意事項
  54.  * ------------------------------------------------------------------------------
  55.  * ・利用時は競合を避けるため、必ずYanflyEngineの後に読み込んでください。
  56.  * ・サポートは行いませんので、自己責任でご利用ください。
  57.  * ・できればtxtやクレジットに、前述の著作権表記を掲載して頂けたら嬉しいです。
  58.  *
  59.  * ------------------------------------------------------------------------------
  60.  * ■パラメータの説明
  61.  * ------------------------------------------------------------------------------
  62.  * ・BattleSpeed (Default):OKボタンを押していないときの戦闘速度の倍数です。
  63.  * ・BattleSpeed (Boost) :OKボタンを押してあるときの戦闘速度の倍数です。
  64.  *              4倍速以上は効果がありません。
  65.  * ・OkayKeyBoost     :OKボタンを押しっぱなしにすることでブースト状態に
  66.  *              するかどうかを指定します。(true:する / false:しない)
  67.  * ・VisibleSwitch    :ブースト切り替えスイッチの表示可否です。
  68.  *              このスイッチを非表示にすると、BoostTggleSwitchも
  69.  *              無効になります。(true:表示 / false:非表示)
  70.  * ・BoostToggleSwitch  :ブースト状態を切り替える際に押すボタンの名前です。
  71.  * ------------------------------------------------------------------------------
  72.  * ・StateIcon      :敵のステートアイコン表示速度を調節します。
  73.  * ・StateOverLay     :味方のステートアニメのアニメ速度を調節します。
  74.  * ・Weapon        :サイドビューで味方が武器を振る速度です。
  75.  * ・Motion        :味方と敵のアニメーション速度です。
  76.  *              待機アニメ・移動アニメ等の速度に影響します。
  77.  *              また、WeaponとMotionは同期していますので、
  78.  *              値は同じにしたほうが無難です。
  79.  * ・Balloon       :吹き出しの表示速度です。
  80.  * ・Damage        :ダメージ数値の持続フレーム数です。
  81.  * ・DamageMin      :ダメージ数値の持続フレーム数の最低値です。
  82.  *              Damageを早く設定すると見づらいので、防止措置です。
  83.  * ------------------------------------------------------------------------------
  84.  * ・LogAnime BaseDelay  :バトルログウィンドウの表示フレーム数です。
  85.  * ・LogAnime NextDelay  :バトルログウィンドウの持続フレーム数です。
  86.  * ・LogWaitCount Default :バトルログウィンドウ表示中の待機フレーム数を
  87.  *              指定倍数分、早くします。
  88.  * ・LogWaitCount Boost  :バトルログウィンドウ表示中の待機フレーム数を
  89.  *              指定倍数分、早くします。(ブースト状態時)
  90.  *              なお、待機フレームはOKボタンを押しっぱなしにすると、
  91.  *              更に早くすることができます。
  92.  * ------------------------------------------------------------------------------
  93.  * ・SE BoostON      :ブースト状態をオンにしたときの効果音です。
  94.  * ・SE BoostOFF     :ブースト状態をオフにしたときの効果音です。
  95.  * ・SE Volume      :効果音の音量です。
  96.  * ・SwitchImage     :表示するスイッチ画像のファイル名です。
  97.  *             systemフォルダを参照します。
  98.  * ・SwitchX       :スイッチ画像を表示する位置Xを指定します。
  99.  * ・SwitchY       :スイッチ画像を表示する位置Yを指定します。
  100.  * ・SwitchWidth     :スイッチ1つ分の横幅のサイズを指定します。
  101.  * ・SwitchHeight     :スイッチ1つ分の縦幅のサイズを指定します。
  102.  * ・SwitchTop      :表示するスイッチ画像の段数を指定します。
  103.  *              0が最上段で、数が増えるごとに段が下に移動します。
  104.  *              デフォルトではBalloonの2段め「?」を参照しています。
  105.  * ・SwitchLeft      :スイッチアニメの開始コマ数を指定します。
  106.  * ・SwitchAnimePattern  :スイッチアニメの最後のコマを指定します。
  107.  *              デフォルトでは、2コマ~8コマをループしています。
  108.  * ・SwitchAnimeSpeed   :スイッチアニメの表示速度をフレーム数で指定します。
  109.  * ------------------------------------------------------------------------------
  110.  * ★以下はYanflyEngine - BattleCore用追加オプション
  111.  *
  112.  * ・YEP Battle MotionWait:値が小さいほど攻撃演出のウェイトが早くなります。
  113.  * ------------------------------------------------------------------------------
  114.  * ★以下はYanflyEngine - Active Time Battle用追加オプション
  115.  *
  116.  * ・YEP ATB BoostSwitch :YEP ATBを導入時、ブーストするかどうか指定します。
  117.  *              (true:する / false:しない)
  118.  * ------------------------------------------------------------------------------
  119.  * ★以下はEllye & Yanfly ATB用追加オプション(両対応)
  120.  *
  121.  * ・ATB Speed(Default)  :通常時のATゲージのスピードを倍数で指定します。
  122.  * ・ATB Speed(Boost)   :ブースト時のATゲージのスピードを倍数で指定します。
  123.  * ------------------------------------------------------------------------------
  124.  * ★以下はYanflyEngine - VictoryAftermath用追加オプション
  125.  *
  126.  * ・YEP Victory Motion  :勝利時にブースト状態の場合、ウェイトを短縮します。
  127.  *              (true:短縮する / false:短縮しない)
  128.  * ------------------------------------------------------------------------------
  129.  *
  130.  * @param ---General Setting---
  131.  * @default
  132.  * @param BattleSpeed (Default)
  133.  * @desc デフォルトのアニメスピードです。初期値は1。
  134.  * 武器攻撃以外のアニメ速度を指定の倍数分、早くします。
  135.  * @default 1
  136.  * @param BattleSpeed (Boost)
  137.  * @desc 決定(OK)キー入力時のアニメスピードです。初期値は2。
  138.  * 武器攻撃以外のアニメ速度を指定の倍数分、早くします。
  139.  * @default 2
  140.  * @param OkayKeyBoost
  141.  * @desc 決定(OK)キー押しっぱなしでブースト状態にするかどうかです。
  142.  * 初期値はtrue。
  143.  * @default true
  144.  * @param VisibleSwitch
  145.  * @desc ブーストスイッチを表示するかどうか。初期値はtrue。
  146.  * しない場合はBoostToggleSwitchも無効になります。
  147.  * @default true
  148.  * @param BoostToggleSwitch
  149.  * @desc ブースト状態を切り替えるキーの名前を入力してください。
  150.  * 初期値はshift。パッドではYボタンに相当。
  151.  * @default shift
  152.  * @param ---Detail Setting---
  153.  * @default
  154.  * @param StateIcon
  155.  * @desc ステートアイコンのアニメスピードを指定します。
  156.  * 初期値は40。
  157.  * @default 40
  158.  * @param StateOverlay
  159.  * @desc ステートオーバーレイのアニメスピードを指定します
  160.  * 初期値は8。
  161.  * @default 8
  162.  * @param Weapon
  163.  * @desc サイドビュー時の武器攻撃のアニメスピードを指定します。
  164.  * 初期値は12。Motionと同期してるので同じ値がおすすめ。
  165.  * @default 12
  166.  * @param Motion
  167.  * @desc 行動モーションのアニメスピードを指定します。
  168.  * 初期値は12。Weaponと同期してるので同じ値がおすすめ。
  169.  * @default 12
  170.  * @param Balloon
  171.  * @desc バルーンのアニメスピードを指定します。
  172.  * 初期値は12。
  173.  * @default 12
  174.  * @param Damage
  175.  * @desc ダメージポップアップの持続フレーム数を指定します。
  176.  * 初期値は90。早過ぎると目視できなくなるので要注意。
  177.  * @default 90
  178.  * @param DamageMin
  179.  * @desc ダメージポップアップの持続フレーム数の最低値を指定します。
  180.  * 初期値は60。このままにしておくことをオススメします。
  181.  * @default 60
  182.  * @param --BattleLog Setting--
  183.  * @default
  184.  * @param LogAnime BaseDelay
  185.  * @desc バトルログウィンドウの表示フレーム数を指定します。
  186.  * 初期値は8。BattleSpeed (Default)の影響を受けません。
  187.  * @default 8
  188.  * @param LogAnime NextDelay
  189.  * @desc バトルログウィンドウの持続フレーム数を指定します。
  190.  * 初期値は12。BattleSpeed (Default)の影響を受けません。
  191.  * @default 12
  192.  * @param LogWaitCount Default
  193.  * @desc バトルログ表示中の待機フレームを指定倍数分、早くします。
  194.  * 初期値は1。値を増やすとバトルログの速度がアップします。
  195.  * @default 1
  196.  * @param LogWaitCount Boost
  197.  * @desc バトルログブースト中の待機フレームを指定倍数分、早くします。
  198.  * 初期値は20。値を増やすとバトルログの速度がアップします。
  199.  * @default 2
  200.  * @param ---Switch Setting---
  201.  * @default
  202.  * @param SE BoostON
  203.  * @desc ブースト状態をオンにしたときの効果音です。
  204.  * 初期値はDecision2。
  205.  * @default Decision2
  206.  * @param SE BoostOFF
  207.  * @desc ブースト状態をオフにしたときの効果音です。
  208.  * 初期値はDecision2。
  209.  * @default Decision2
  210.  * @param SE Volume
  211.  * @desc 効果音の音量です。初期値は50。
  212.  * @default 50
  213.  * @param SwitchImage
  214.  * @desc 画像のファイル名です。systemフォルダを参照します。
  215.  * 初期値はBalloon。
  216.  * @default Balloon
  217.  * @param SwitchX
  218.  * @desc スイッチの位置Xです。初期値は10。
  219.  * @default 10
  220.  * @param SwitchY
  221.  * @desc スイッチの位置Yです。初期値は10。
  222.  * @default 10
  223.  * @param SwitchWidth
  224.  * @desc スイッチ横幅のサイズです。初期値は48。
  225.  * @default 48
  226.  * @param SwitchHeight
  227.  * @desc スイッチ縦幅のサイズです。初期値は48。
  228.  * @default 48
  229.  * @param SwitchTop
  230.  * @desc スイッチアニメの段数。0が最上段です。
  231.  * 初期値は2。
  232.  * @default 2
  233.  * @param SwitchLeft
  234.  * @desc スイッチアニメの開始コマ数。0が1コマめです。
  235.  * 初期値は1。
  236.  * @default 1
  237.  * @param SwitchAnimePattern
  238.  * @desc スイッチアニメの最後のコマです。
  239.  * 初期値は8。
  240.  * @default 8
  241.  * @param SwitchAnimeSpeed
  242.  * @desc スイッチのアニメスピードです。初期値は5。
  243.  * @default 5
  244.  * @param ---YEP BattleCore---
  245.  * @default
  246.  * @param YEP Battle MotionWait
  247.  * @desc YEP BattleCoreを導入していた場合のみ設定可能です。
  248.  * 初期値は20。値を減らすと攻撃演出のウェイトが早くなります。
  249.  * @default 20
  250.  * @param ---YEP ATB---
  251.  * @default
  252.  * @param YEP ATB BoostSwitch
  253.  * @desc YEP ATBを導入していた場合のみ設定可能です。
  254.  * 初期値はtrue。trueにするとブースト時にATBも速度を上げます。
  255.  * @default true
  256.  * @param ---ATB Speed---
  257.  * @default
  258.  * @param ATB Speed(Default)
  259.  * @desc EllyeもしくはYEP ATBを導入していた場合のみ設定可能です。
  260.  * 初期値は1。デフォルトのATゲージのスピードを倍数で指定します。
  261.  * @default 1
  262.  * @param ATB Speed(Boost)
  263.  * @desc EllyeもしくはYEP ATBを導入していた場合のみ設定可能です。
  264.  * 初期値は2。ブースト時のATゲージのスピードを倍数で指定します。
  265.  * @default 2
  266.  * @param ---YEP Victory AM---
  267.  * @default
  268.  * @param YEP Victory Wait
  269.  * @desc YEP VictoryAftermathを導入していた場合のみ設定可能です。
  270.  * 初期値はtrue。ブースト中、勝利時のウェイトを早くします。
  271.  * @default true
  272.  *
  273.  */
  274.  
  275.  
  276. //------------------------------------------------------------------------------
  277. // グローバル変数
  278. //------------------------------------------------------------------------------
  279.  
  280. Sepher.Parameters = PluginManager.parameters('SSEP_BattleSpeedUp_v2');
  281. Sepher.Param = Sepher.Param || {};
  282.  
  283. Sepher.Param.BattleSpeedDefault        = Number(Sepher.Parameters['BattleSpeed (Default)']);
  284. Sepher.Param.BattleSpeedBoost        = Number(Sepher.Parameters['BattleSpeed (Boost)']);
  285. Sepher.Param.OkayKeyBoost                = String(Sepher.Parameters['OkayKeyBoost']);
  286. Sepher.Param.VisibleSwitch                = String(Sepher.Parameters['VisibleSwitch']);
  287. Sepher.Param.BoostToggleSwitch        = String(Sepher.Parameters['BoostToggleSwitch']);
  288. Sepher.Param.StateIcon                        = Number(Sepher.Parameters['StateIcon']);
  289. Sepher.Param.StateOverlay                = Number(Sepher.Parameters['StateOverlay']);
  290. Sepher.Param.Weapon                                = Number(Sepher.Parameters['Weapon']);
  291. Sepher.Param.Balloon                        = Number(Sepher.Parameters['Balloon']);
  292. Sepher.Param.Motion                                = Number(Sepher.Parameters['Motion']);
  293. Sepher.Param.Damage                                = Number(Sepher.Parameters['Damage']);
  294. Sepher.Param.DamageMin                        = Number(Sepher.Parameters['DamageMin']);
  295. Sepher.Param.LogBase                        = Number(Sepher.Parameters['LogAnime BaseDelay']);
  296. Sepher.Param.LogNext                        = Number(Sepher.Parameters['LogAnime NextDelay']);
  297. Sepher.Param.logWaitDefault                = Number(Sepher.Parameters['LogWaitCount Default']);
  298. Sepher.Param.logWaitBoost                = Number(Sepher.Parameters['LogWaitCount Boost']);
  299. Sepher.Param.seBoostON                        = String(Sepher.Parameters['SE BoostON']);
  300. Sepher.Param.seBoostOFF                        = String(Sepher.Parameters['SE BoostOFF']);
  301. Sepher.Param.seVolume                        = Number(Sepher.Parameters['SE Volume']);
  302. Sepher.Param.SwitchImage                = String(Sepher.Parameters['SwitchImage']);
  303. Sepher.Param.SwitchX                        = Number(Sepher.Parameters['SwitchX']);
  304. Sepher.Param.SwitchY                        = Number(Sepher.Parameters['SwitchY']);
  305. Sepher.Param.SwitchWidth                = Number(Sepher.Parameters['SwitchWidth']);
  306. Sepher.Param.SwitchHeight                = Number(Sepher.Parameters['SwitchHeight']);
  307. Sepher.Param.SwitchTop                        = Number(Sepher.Parameters['SwitchTop']);
  308. Sepher.Param.SwitchLeft                        = Number(Sepher.Parameters['SwitchLeft']);
  309. Sepher.Param.SwitchAnimePattern        = Number(Sepher.Parameters['SwitchAnimePattern']);
  310. Sepher.Param.SwitchAnimeSpeed        = Number(Sepher.Parameters['SwitchAnimeSpeed']);
  311. Sepher.Param.YEPMotionWait                = Number(Sepher.Parameters['YEP Battle MotionWait']);
  312. Sepher.Param.YEPVictoryWait                = String(Sepher.Parameters['YEP Victory Wait']);
  313. Sepher.Param.YEPBoostSwitch                = String(Sepher.Parameters['YEP ATB BoostSwitch']);
  314. Sepher.Param.ATBSpeedDefault        = Number(Sepher.Parameters['ATB Speed(Default)']);
  315. Sepher.Param.ATBSpeedBoost                = Number(Sepher.Parameters['ATB Speed(Boost)']);
  316.  
  317. // OkayKeyBoost型変換
  318. if (Sepher.Param.OkayKeyBoost == 'true'){
  319.         Sepher.Param.OkayKeyBoost = true;
  320. }else{
  321.         Sepher.Param.OkayKeyBoost = false;
  322. };
  323. // VisibleSwitch型変換
  324. if (Sepher.Param.VisibleSwitch == 'true'){
  325.         Sepher.Param.VisibleSwitch = true;
  326. }else{
  327.         Sepher.Param.VisibleSwitch = false;
  328. };
  329. // YEPVictoryWait型変換
  330. if (Sepher.Param.YEPVictoryWait == 'true'){
  331.         Sepher.Param.YEPVictoryWait = true;
  332. }else{
  333.         Sepher.Param.YEPVictoryWait = false;
  334. };
  335. // YEPBoostSwitch型変換
  336. if (Sepher.Param.YEPBoostSwitch == 'true'){
  337.         Sepher.Param.YEPBoostSwitch = true;
  338. }else{
  339.         Sepher.Param.YEPBoostSwitch = false;
  340. };
  341.  
  342.  
  343. //------------------------------------------------------------------------------
  344. // Switch Setting
  345. //------------------------------------------------------------------------------
  346.  
  347. if (Sepher.Param.VisibleSwitch){
  348.         var QuickMode = false;
  349.         var createUpper = Spriteset_Battle.prototype.createUpperLayer;
  350.         Spriteset_Battle.prototype.createUpperLayer = function() {
  351.                 createUpper.apply(this, arguments);
  352.                 var button = new Sprite_Button();
  353.                 button.bitmap = ImageManager.loadSystem(Sepher.Param.SwitchImage);
  354.                 button.x = Sepher.Param.SwitchX;
  355.                 button.y = Sepher.Param.SwitchY;
  356.                 button.visible = true;
  357.                 button.opacity = 80;
  358.                 this.addChild(button);
  359.  
  360.                 var animCount = 1;
  361.                 var duration = 1;
  362.                 button.updateFrame = function() {
  363.                         var quickModeKey = Input.isTriggered(Sepher.Param.BoostToggleSwitch);
  364.                         if (quickModeKey){
  365.                                 button.quickModeToggleSwitch();
  366.                         }
  367.                         if (QuickMode) {
  368.                                 button.opacity = 255;
  369.                                 if (++duration == Sepher.Param.SwitchAnimeSpeed) {
  370.                                         if (++animCount >= Sepher.Param.SwitchAnimePattern) {
  371.                                                 animCount = 1;
  372.                                         }
  373.                                         button.setFrame(animCount * Sepher.Param.SwitchWidth, Sepher.Param.SwitchTop * Sepher.Param.SwitchHeight, Sepher.Param.SwitchWidth, Sepher.Param.SwitchHeight);
  374.                                         duration = 1;
  375.                                 }
  376.                         }
  377.                 }
  378.                 button.setFrame(Sepher.Param.SwitchLeft * Sepher.Param.SwitchWidth, Sepher.Param.SwitchTop * Sepher.Param.SwitchHeight, Sepher.Param.SwitchWidth, Sepher.Param.SwitchHeight);
  379.  
  380.                 button.setClickHandler(function () {
  381.                         QuickMode = !QuickMode;
  382.                         if (QuickMode) {
  383.                                    var sound = {
  384.                                         name:   Sepher.Param.seBoostON,
  385.                                         volume: Sepher.Param.seVolume,
  386.                                         pitch:  100,
  387.                                            pan:    0
  388.                                 };
  389.                                    AudioManager.playSe(sound);
  390.                                 button.opacity = 255;
  391.                         }else{
  392.                                    var sound = {
  393.                                         name:   Sepher.Param.seBoostOFF,
  394.                                         volume: Sepher.Param.seVolume,
  395.                                            pitch:  100,
  396.                                     pan:    0
  397.                                   };
  398.                                    AudioManager.playSe(sound);
  399.                                 button.setFrame(Sepher.Param.SwitchLeft * Sepher.Param.SwitchWidth, Sepher.Param.SwitchTop * Sepher.Param.SwitchHeight, Sepher.Param.SwitchWidth, Sepher.Param.SwitchHeight);
  400.                                 button.opacity = 80;
  401.                         }
  402.                 });
  403.  
  404.                 button.quickModeToggleSwitch = function() {
  405.                         QuickMode = !QuickMode;
  406.                         if (QuickMode) {
  407.                                    var sound = {
  408.                                         name:   Sepher.Param.seBoostON,
  409.                                         volume: Sepher.Param.seVolume,
  410.                                         pitch:  100,
  411.                                            pan:    0
  412.                                 };
  413.                                    AudioManager.playSe(sound);
  414.                                 button.opacity = 255;
  415.                         }else{
  416.                                    var sound = {
  417.                                         name:   Sepher.Param.seBoostOFF,
  418.                                         volume: Sepher.Param.seVolume,
  419.                                            pitch:  100,
  420.                                     pan:    0
  421.                                   };
  422.                             AudioManager.playSe(sound);
  423.                                 button.setFrame(Sepher.Param.SwitchLeft * Sepher.Param.SwitchWidth, Sepher.Param.SwitchTop * Sepher.Param.SwitchHeight, Sepher.Param.SwitchWidth, Sepher.Param.SwitchHeight);
  424.                                 button.opacity = 80;
  425.                         }
  426.                 };
  427.         };
  428. }
  429.  
  430. // Alias - launchBattle
  431. var launchBattle = Scene_Map.prototype.launchBattle;
  432. Scene_Map.prototype.launchBattle = function() {
  433.         launchBattle.apply(this, arguments);
  434. };
  435.  
  436. //------------------------------------------------------------------------------
  437. // QuickMode Speed Setting
  438. //------------------------------------------------------------------------------
  439.  
  440. Sprite_StateIcon.prototype.animationWait = function() {
  441.         var speed = Sepher.Param.StateIcon / Sepher.Param.BattleSpeedDefault;
  442.     return speed;
  443. };
  444.  
  445. Sprite_StateOverlay.prototype.animationWait = function() {
  446.         var speed = Sepher.Param.StateOverlay / Sepher.Param.BattleSpeedDefault;
  447.     return speed;
  448. };
  449.  
  450. Sprite_Weapon.prototype.animationWait = function() {
  451.         var speed = Sepher.Param.Weapon / Sepher.Param.BattleSpeedDefault;
  452.         if (Sepher.Param.OkayKeyBoost){
  453.                 if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  454.                         speed = speed / Sepher.Param.BattleSpeedBoost;
  455.                 } else {
  456.                         speed = speed / Sepher.Param.BattleSpeedDefault;
  457.                 }
  458.         } else {
  459.                 if (QuickMode){
  460.                         speed = speed / Sepher.Param.BattleSpeedBoost;
  461.                 } else {
  462.                         speed = speed / Sepher.Param.BattleSpeedDefault;
  463.                 }
  464.         }
  465.            return speed;
  466. };
  467.  
  468. Sprite_Balloon.prototype.waitTime = function() {
  469.         var speed = Sepher.Param.Balloon / Sepher.Param.BattleSpeedDefault;
  470.         if (Sepher.Param.OkayKeyBoost){
  471.                 if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  472.                         speed = speed / Sepher.Param.BattleSpeedBoost;
  473.                 } else {
  474.                         speed = speed / Sepher.Param.BattleSpeedDefault;
  475.                 }
  476.         } else {
  477.                 if (QuickMode){
  478.                         speed = speed / Sepher.Param.BattleSpeedBoost;
  479.                 } else {
  480.                         speed = speed / Sepher.Param.BattleSpeedDefault;
  481.                 }
  482.         }
  483.     return speed;
  484. };
  485.  
  486. // Alias - startMove
  487. var _SSEP_Battler_startMove = Sprite_Battler.prototype.startMove;
  488. Sprite_Battler.prototype.startMove = function(x, y, duration) {
  489.         if (Sepher.Param.OkayKeyBoost){
  490.                 if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  491.                           duration = duration / Sepher.Param.BattleSpeedBoost;
  492.                   } else {
  493.                           duration = duration / Sepher.Param.BattleSpeedDefault;
  494.                 }
  495.         } else {
  496.                 if (QuickMode){
  497.                         duration = duration / Sepher.Param.BattleSpeedBoost;
  498.                   } else {
  499.                           duration = duration / Sepher.Param.BattleSpeedDefault;
  500.                 }
  501.         }
  502.         _SSEP_Battler_startMove.call(this, x, y, duration);
  503. };
  504.  
  505.  
  506. Sprite_Actor.prototype.motionSpeed = function() {
  507.         var speed = Sepher.Param.Motion;
  508.         if (Sepher.Param.OkayKeyBoost){
  509.                 if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  510.                         speed = speed / Sepher.Param.BattleSpeedBoost;
  511.                 } else {
  512.                         speed = speed / Sepher.Param.BattleSpeedDefault;
  513.                 }
  514.         } else {
  515.                 if (QuickMode){
  516.                         speed = speed / Sepher.Param.BattleSpeedBoost;
  517.                 } else {
  518.                         speed = speed / Sepher.Param.BattleSpeedDefault;
  519.                 }
  520.         }
  521.     return speed;
  522. };
  523.  
  524. // Alias - Animation setup
  525. var _SSEP_Animation_setup = Sprite_Animation.prototype.setup;
  526. Sprite_Animation.prototype.setup = function(target, animation, mirror, delay) {
  527.         delay = delay / Sepher.Param.BattleSpeedDefault;
  528.         if (Sepher.Param.OkayKeyBoost){
  529.                 if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  530.                         delay = delay / Sepher.Param.BattleSpeedBoost;
  531.                 } else {
  532.                         delay = delay / Sepher.Param.BattleSpeedDefault;
  533.                 }
  534.         } else {
  535.                 if (QuickMode){
  536.                         delay = delay / Sepher.Param.BattleSpeedBoost;
  537.                 } else {
  538.                         delay = delay / Sepher.Param.BattleSpeedDefault;
  539.                 }
  540.         }
  541.         _SSEP_Animation_setup.call(this, target, animation, mirror, delay);
  542. };
  543.  
  544. // Alias - Animation_setupRate
  545. var _SSEP_Animation_setupRate = Sprite_Animation.prototype.setupRate;
  546. Sprite_Animation.prototype.setupRate = function() {
  547.     _SSEP_Animation_setupRate;
  548.         if (Sepher.Param.OkayKeyBoost){
  549.                 if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  550.                         this._rate = this._rate / Sepher.Param.BattleSpeedBoost;
  551.                 } else {
  552.                     this._rate = this._rate / Sepher.Param.BattleSpeedDefault;
  553.                 }
  554.         } else {
  555.                 if (QuickMode){
  556.                         this._rate = this._rate / Sepher.Param.BattleSpeedBoost;
  557.                 } else {
  558.                     this._rate = this._rate / Sepher.Param.BattleSpeedDefault;
  559.                 }
  560.         }
  561.         this._rate = (Math.round(this._rate));
  562.         if (this._rate < 1){
  563.                 this._rate = 1;
  564.         }
  565. };
  566.  
  567. var _SSEP_Damage_initialize = Sprite_Damage.prototype.initialize;
  568. Sprite_Damage.prototype.initialize = function() {
  569.         _SSEP_Damage_initialize.call(this);
  570.     this._duration = Sepher.Param.Damage;
  571.         if (Sepher.Param.OkayKeyBoost){
  572.                 if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  573.                         this._duration = this._duration / Sepher.Param.BattleSpeedBoost;
  574.                 } else {
  575.                         this._duration = this._duration / Sepher.Param.BattleSpeedDefault;
  576.                 }
  577.         } else {
  578.                 if (QuickMode){
  579.                         this._duration = this._duration / Sepher.Param.BattleSpeedBoost;
  580.                 } else {
  581.                         this._duration = this._duration / Sepher.Param.BattleSpeedDefault;
  582.                 }
  583.         }
  584.     if (this._duration <= Sepher.Param.DamageMin){
  585.             this._duration = Sepher.Param.DamageMin;
  586.     }
  587. };
  588.  
  589. // BattleLog Window
  590.  
  591. Window_BattleLog.prototype.animationBaseDelay = function() {
  592.         var speed = Sepher.Param.LogBase;
  593.     return speed;
  594. };
  595.  
  596. Window_BattleLog.prototype.animationNextDelay = function() {
  597.         var speed = Sepher.Param.LogNext;
  598.     return speed;
  599. };
  600.  
  601. Window_BattleLog.prototype.updateWaitCount = function() {
  602.         var waitMax;
  603.         var waitMin;
  604.         if (Sepher.Param.OkayKeyBoost){
  605.                 if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  606.                         waitMax = 3 * Sepher.Param.logWaitBoost;
  607.                     waitMin = 1 * Sepher.Param.logWaitBoost;
  608.                    }else{
  609.                         waitMax = 3 * Sepher.Param.logWaitDefault;
  610.                     waitMin = 1 * Sepher.Param.logWaitDefault;
  611.                 }
  612.         }else{
  613.                 if (QuickMode){
  614.                         waitMax = 3 * Sepher.Param.logWaitBoost;
  615.                     waitMin = 1 * Sepher.Param.logWaitBoost;
  616.                    }else{
  617.                         waitMax = 3 * Sepher.Param.logWaitDefault;
  618.                     waitMin = 1 * Sepher.Param.logWaitDefault;
  619.                 }
  620.         }
  621.  
  622.     if (this._waitCount > 0) {
  623.         this._waitCount -= this.isFastForward() ? waitMax : waitMin;
  624.         if (this._waitCount < 0) {
  625.             this._waitCount = 0;
  626.         }
  627.             return true;
  628.     }
  629.     return false;
  630. };
  631.  
  632. //------------------------------------------------------------------------------
  633. // Support - YanflyEngine BattleCore
  634. //------------------------------------------------------------------------------
  635.  
  636. if (Imported.YEP_BattleEngineCore){
  637.  
  638.         //Overwrite actionPerformAction
  639.         BattleManager.actionPerformAction = function() {
  640.                 wait = Sepher.Param.YEPMotionWait;
  641.                 if (Sepher.Param.OkayKeyBoost){
  642.                         if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  643.                                 wait = wait / Sepher.Param.BattleSpeedBoost;
  644.                         } else {
  645.                                 wait = wait / Sepher.Param.BattleSpeedDefault;
  646.                         }
  647.                 } else {
  648.                         if (QuickMode){
  649.                                 wait = wait / Sepher.Param.BattleSpeedBoost;
  650.                         } else {
  651.                                 wait = wait / Sepher.Param.BattleSpeedDefault;
  652.                         }
  653.                 }
  654.  
  655.             this._logWindow.performAction(this._subject, this._action);
  656.                         if (this._subject.isActor() && this._subject.isSpriteVisible) {
  657.                                 this._logWindow._waitCount += wait;
  658.                                 return false;
  659.                         }
  660.            return true;
  661.         };
  662.  
  663.         //Overwrite actionFloat
  664.         BattleManager.actionFloat = function(name, actionArgs) {
  665.                 var movers = this.makeActionTargets(name);
  666.                 if (movers.length < 1) return true;
  667.                 var cmd = actionArgs[0];
  668.                 var frames = actionArgs[1] || 12;
  669.  
  670.                 if (Sepher.Param.OkayKeyBoost){
  671.                         if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  672.                                 frames = frames / Sepher.Param.BattleSpeedBoost;
  673.                         } else {
  674.                                 frames = frames / Sepher.Param.BattleSpeedDefault;
  675.                         }
  676.                 } else {
  677.                         if (QuickMode){
  678.                                 frames = frames / Sepher.Param.BattleSpeedBoost;
  679.                         } else {
  680.                                 frames = frames / Sepher.Param.BattleSpeedDefault;
  681.                         }
  682.                 }
  683.  
  684.             var pixels = 0;
  685.             if (cmd.match(/(\d+)([%%])/i)) {
  686.                     var floatPeak = parseFloat(RegExp.$1 * 0.01);
  687.                 } else if (cmd.match(/(\d+)/i)) {
  688.                         pixels = parseInt(RegExp.$1);
  689.                         var floatPeak = 0.0;
  690.             } else {
  691.                     var floatPeak = 1.0;
  692.             }
  693.             movers.forEach(function(mover) {
  694.                     var floatRate = floatPeak + (pixels / mover.spriteHeight());
  695.                     mover.spriteFloat(floatRate, frames);
  696.             });
  697.             return false;
  698.         };
  699.  
  700.         //Overwrite actionJump
  701.         BattleManager.actionJump = function(name, actionArgs) {
  702.                 var movers = this.makeActionTargets(name);
  703.                 if (movers.length < 1) return true;
  704.                 var cmd = actionArgs[0];
  705.             var frames = actionArgs[1] || 12;
  706.  
  707.                 if (Sepher.Param.OkayKeyBoost){
  708.                         if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  709.                                 frames = frames / Sepher.Param.BattleSpeedBoost;
  710.                         } else {
  711.                                 frames = frames / Sepher.Param.BattleSpeedDefault;
  712.                         }
  713.                 } else {
  714.                         if (QuickMode){
  715.                                 frames = frames / Sepher.Param.BattleSpeedBoost;
  716.                         } else {
  717.                                 frames = frames / Sepher.Param.BattleSpeedDefault;
  718.                         }
  719.                 }
  720.  
  721.             var pixels = 0;
  722.                 if (cmd.match(/(\d+)([%%])/i)) {
  723.                         var jumpPeak = parseFloat(RegExp.$1 * 0.01);
  724.             } else if (cmd.match(/(\d+)/i)) {
  725.                     pixels = parseInt(RegExp.$1);
  726.                     var jumpPeak = 0.0;
  727.             } else {
  728.                     var jumpPeak = 1.0;
  729.             }
  730.             movers.forEach(function(mover) {
  731.                     var jumpRate = jumpPeak + (pixels / mover.spriteHeight());
  732.                     mover.spriteJump(jumpRate, frames);
  733.             });
  734.             return true;
  735.     };
  736. }
  737.  
  738. //------------------------------------------------------------------------------
  739. // Support - YanflyEngine Active Time Battle
  740. //------------------------------------------------------------------------------
  741.  
  742. if (Imported.YEP_X_BattleSysATB){
  743.         //Overwrite atbTickRate
  744.         BattleManager.atbTickRate = function() {
  745.             var rate = 0.1 * ConfigManager.atbSpeed;
  746.             //Add
  747.             if (Sepher.Param.OkayKeyBoost){
  748.                         if (Sepher.Param.YEPBoostSwitch){
  749.                                 if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  750.                                         rate = rate * Sepher.Param.ATBSpeedBoost;
  751.                                 } else {
  752.                                         rate = rate * Sepher.Param.ATBSpeedDefault;
  753.                                 }
  754.                         }
  755.                 } else {
  756.                     if (Sepher.Param.YEPBoostSwitch){
  757.                                 if (QuickMode || TouchInput.isPressed()){
  758.                                         rate = rate * Sepher.Param.ATBSpeedBoost;
  759.                                 } else {
  760.                                         rate = rate * Sepher.Param.ATBSpeedDefault;
  761.                                 }
  762.                         }
  763.  
  764.                 }
  765.             return rate;
  766.         };
  767. }
  768.  
  769. //------------------------------------------------------------------------------
  770. // Support - YanflyEngine Victory Aftermath
  771. //------------------------------------------------------------------------------
  772.  
  773. if (Imported.YEP_VictoryAftermath){
  774.         //Overwrite isFinishedVictoryCheer
  775.         BattleManager.isFinishedVictoryCheer = function() {
  776.                 if (Sepher.Param.YEPVictoryWait){
  777.                         if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  778.                                 return ++this._victoryCheerWait >= Yanfly.Param.VACheerWait / Sepher.Param.BattleSpeedBoost;
  779.                         } else {
  780.                                 return ++this._victoryCheerWait >= Yanfly.Param.VACheerWait / Sepher.Param.BattleSpeedDefault;
  781.                         }
  782.                 } else {
  783.                         return ++this._victoryCheerWait >= Yanfly.Param.VACheerWait;
  784.                 }
  785.         };
  786. }
  787.  
  788. //------------------------------------------------------------------------------
  789. // Support - Ellye's ATB
  790. //------------------------------------------------------------------------------
  791.  
  792. //Check if there is Window_CTB function
  793. if (typeof Window_CTB == "function"){
  794.     //Changing the flow of battle
  795.     //_BattleManager_update=BattleManager.update;
  796.     BattleManager.update=function() {
  797.         if(!this.isBusy()&&!this.updateEvent()) {
  798.             switch(this._phase) {
  799.                 case 'atb':
  800.                         //Add script
  801.                                         if (Sepher.Param.OkayKeyBoost){
  802.                                                 if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  803.                                         var speed = Sepher.Param.ATBSpeedBoost;
  804.                                                 } else {
  805.                                         var speed = Sepher.Param.ATBSpeedDefault;
  806.                                                 }
  807.                                         } else {
  808.                                                 if (QuickMode){
  809.                                         var speed = Sepher.Param.ATBSpeedBoost;
  810.                                                 } else {
  811.                                         var speed = Sepher.Param.ATBSpeedDefault;
  812.                                                 }
  813.                                         }
  814.                     this.increaseAtbGauges(speed);
  815.                     break;
  816.                 default:
  817.                     _BattleManager_update.call(this);
  818.                     break;
  819.             }
  820.         }
  821.     };
  822.  
  823.     //Alias - increaseAtbGauses
  824.     var _SSEP_increaseAtbGauges = BattleManager.increaseAtbGauges;
  825.     BattleManager.increaseAtbGauges = function(speed) {
  826.             //Add variable and Rate calculation
  827.             var copy_base_atb_increase = base_atb_increase;
  828.         base_atb_increase = base_atb_increase * speed;
  829.         //original method
  830.         _SSEP_increaseAtbGauges.call(this);
  831.         //return global variable
  832.         base_atb_increase = copy_base_atb_increase;
  833.     };
  834. }
新しい誕生祝いだッ!
回复 支持 反对

使用道具 举报

Lv2.观梦者

梦石
0
星屑
497
在线时间
266 小时
注册时间
2015-12-8
帖子
873
3
发表于 2016-9-24 23:10:09 | 只看该作者
按下SHIFT
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-4-29 19:12

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表