查看: 2110|回复: 2

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

[复制链接]
梦石
0
星屑
50
在线时间
7 小时
注册时间
2016-9-15
回帖
15
发表于 2016-9-21 16:23:31 | 显示全部楼层 |阅读模式

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

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

×
mv如何加快战斗流程的速度啊!大神!     我嫌系统的太慢!!!
梦石
0
星屑
311
在线时间
204 小时
注册时间
2007-2-4
回帖
1772
发表于 2016-9-24 22:05:12 | 显示全部楼层
  1. //=============================================================================
  2. // sound sepher Engine - Battle Speed Up 高機能版
  3. // SSEP_BattleSpeedUp_v2.js
  4. // Version: 2.01
  5. //=============================================================================

  6. var Imported = Imported || {};
  7. Imported.SSEP_BattleSpeedUp = true;

  8. var Sepher = Sepher || {};

  9. //=============================================================================
  10. /*:
  11. * @plugindesc [ver2.01] 戦闘速度を上げるプラグインです。YanflyEngine対応。
  12. * 利用時は、必ずYanflyEngineの後に読み込んでください。
  13. * @author Shoichiro Sakamoto(sound sepher)
  14. *
  15. * @help
  16. * ------------------------------------------------------------------------------
  17. * ■sound sepher Engine - "Battle Speed UP" Plugin (Ver2.01 '15 11/07)
  18. * ------------------------------------------------------------------------------
  19. * 制作:坂本昌一郎 / Shoichiro Sakamoto (sound sepher)
  20. * Web :[url]http://sepher.jp/[/url]
  21. *
  22. * ------------------------------------------------------------------------------
  23. * ■内容説明
  24. * ------------------------------------------------------------------------------
  25. * このプラグインは戦闘速度を上げるプラグインです。
  26. * フロントビュー・サイドビュー両方に対応しています。
  27. *
  28. * また、YanflyEngineのBattleCore、アクションシーケンスパック(X_ActSeqPack1等)、
  29. * YEP Active Time Battle、VictoryAftermath、Ellye's Active Time Battle に対応。
  30. *
  31. * ------------------------------------------------------------------------------
  32. * ■使い方
  33. * ------------------------------------------------------------------------------
  34. * OKボタンを押しっぱなしにすると戦闘が早送りモードになります。
  35. * また、画面上に表示されるスイッチボタンを押すと常時早送りになります。
  36. * シフト(X)キーを押すことで、同様の効果を得ることも可能です。
  37. *
  38. * これらはすべてオフにすることもできます。
  39. *
  40. * 戦闘速度やスイッチ画像の設定を細かく調整することができます。
  41. * 設定項目の意味がわからない場合は、デフォルト状態でお使いください。
  42. * 通常ではGeneral Settingの値を変えるだけでも充分でしょう。
  43. *
  44. * YanflyEngineとEllye's ATBに対応していますが、プラグインマネージャでこれらの
  45. * プラグインの後にこのプラグインを置かないと正確に実行されません。
  46. * また、Ellye's ATBを使う場合は108行め"(function() {"と550行め"})();"を削除して、
  47. * 関数スコープを開放してください。
  48. *
  49. * ------------------------------------------------------------------------------
  50. * ■注意事項
  51. * ------------------------------------------------------------------------------
  52. * ・利用時は競合を避けるため、必ずYanflyEngineの後に読み込んでください。
  53. * ・サポートは行いませんので、自己責任でご利用ください。
  54. * ・できればtxtやクレジットに、前述の著作権表記を掲載して頂けたら嬉しいです。
  55. *
  56. * ------------------------------------------------------------------------------
  57. * ■パラメータの説明
  58. * ------------------------------------------------------------------------------
  59. * ・BattleSpeed (Default):OKボタンを押していないときの戦闘速度の倍数です。
  60. * ・BattleSpeed (Boost) :OKボタンを押してあるときの戦闘速度の倍数です。
  61. *              4倍速以上は効果がありません。
  62. * ・OkayKeyBoost     :OKボタンを押しっぱなしにすることでブースト状態に
  63. *              するかどうかを指定します。(true:する / false:しない)
  64. * ・VisibleSwitch    :ブースト切り替えスイッチの表示可否です。
  65. *              このスイッチを非表示にすると、BoostTggleSwitchも
  66. *              無効になります。(true:表示 / false:非表示)
  67. * ・BoostToggleSwitch  :ブースト状態を切り替える際に押すボタンの名前です。
  68. * ------------------------------------------------------------------------------
  69. * ・StateIcon      :敵のステートアイコン表示速度を調節します。
  70. * ・StateOverLay     :味方のステートアニメのアニメ速度を調節します。
  71. * ・Weapon        :サイドビューで味方が武器を振る速度です。
  72. * ・Motion        :味方と敵のアニメーション速度です。
  73. *              待機アニメ・移動アニメ等の速度に影響します。
  74. *              また、WeaponとMotionは同期していますので、
  75. *              値は同じにしたほうが無難です。
  76. * ・Balloon       :吹き出しの表示速度です。
  77. * ・Damage        :ダメージ数値の持続フレーム数です。
  78. * ・DamageMin      :ダメージ数値の持続フレーム数の最低値です。
  79. *              Damageを早く設定すると見づらいので、防止措置です。
  80. * ------------------------------------------------------------------------------
  81. * ・LogAnime BaseDelay  :バトルログウィンドウの表示フレーム数です。
  82. * ・LogAnime NextDelay  :バトルログウィンドウの持続フレーム数です。
  83. * ・LogWaitCount Default :バトルログウィンドウ表示中の待機フレーム数を
  84. *              指定倍数分、早くします。
  85. * ・LogWaitCount Boost  :バトルログウィンドウ表示中の待機フレーム数を
  86. *              指定倍数分、早くします。(ブースト状態時)
  87. *              なお、待機フレームはOKボタンを押しっぱなしにすると、
  88. *              更に早くすることができます。
  89. * ------------------------------------------------------------------------------
  90. * ・SE BoostON      :ブースト状態をオンにしたときの効果音です。
  91. * ・SE BoostOFF     :ブースト状態をオフにしたときの効果音です。
  92. * ・SE Volume      :効果音の音量です。
  93. * ・SwitchImage     :表示するスイッチ画像のファイル名です。
  94. *             systemフォルダを参照します。
  95. * ・SwitchX       :スイッチ画像を表示する位置Xを指定します。
  96. * ・SwitchY       :スイッチ画像を表示する位置Yを指定します。
  97. * ・SwitchWidth     :スイッチ1つ分の横幅のサイズを指定します。
  98. * ・SwitchHeight     :スイッチ1つ分の縦幅のサイズを指定します。
  99. * ・SwitchTop      :表示するスイッチ画像の段数を指定します。
  100. *              0が最上段で、数が増えるごとに段が下に移動します。
  101. *              デフォルトではBalloonの2段め「?」を参照しています。
  102. * ・SwitchLeft      :スイッチアニメの開始コマ数を指定します。
  103. * ・SwitchAnimePattern  :スイッチアニメの最後のコマを指定します。
  104. *              デフォルトでは、2コマ~8コマをループしています。
  105. * ・SwitchAnimeSpeed   :スイッチアニメの表示速度をフレーム数で指定します。
  106. * ------------------------------------------------------------------------------
  107. * ★以下はYanflyEngine - BattleCore用追加オプション
  108. *
  109. * ・YEP Battle MotionWait:値が小さいほど攻撃演出のウェイトが早くなります。
  110. * ------------------------------------------------------------------------------
  111. * ★以下はYanflyEngine - Active Time Battle用追加オプション
  112. *
  113. * ・YEP ATB BoostSwitch :YEP ATBを導入時、ブーストするかどうか指定します。
  114. *              (true:する / false:しない)
  115. * ------------------------------------------------------------------------------
  116. * ★以下はEllye & Yanfly ATB用追加オプション(両対応)
  117. *
  118. * ・ATB Speed(Default)  :通常時のATゲージのスピードを倍数で指定します。
  119. * ・ATB Speed(Boost)   :ブースト時のATゲージのスピードを倍数で指定します。
  120. * ------------------------------------------------------------------------------
  121. * ★以下はYanflyEngine - VictoryAftermath用追加オプション
  122. *
  123. * ・YEP Victory Motion  :勝利時にブースト状態の場合、ウェイトを短縮します。
  124. *              (true:短縮する / false:短縮しない)
  125. * ------------------------------------------------------------------------------
  126. *
  127. * @param ---General Setting---
  128. * @default
  129. * @param BattleSpeed (Default)
  130. * @desc デフォルトのアニメスピードです。初期値は1。
  131. * 武器攻撃以外のアニメ速度を指定の倍数分、早くします。
  132. * @default 1
  133. * @param BattleSpeed (Boost)
  134. * @desc 決定(OK)キー入力時のアニメスピードです。初期値は2。
  135. * 武器攻撃以外のアニメ速度を指定の倍数分、早くします。
  136. * @default 2
  137. * @param OkayKeyBoost
  138. * @desc 決定(OK)キー押しっぱなしでブースト状態にするかどうかです。
  139. * 初期値はtrue。
  140. * @default true
  141. * @param VisibleSwitch
  142. * @desc ブーストスイッチを表示するかどうか。初期値はtrue。
  143. * しない場合はBoostToggleSwitchも無効になります。
  144. * @default true
  145. * @param BoostToggleSwitch
  146. * @desc ブースト状態を切り替えるキーの名前を入力してください。
  147. * 初期値はshift。パッドではYボタンに相当。
  148. * @default shift
  149. * @param ---Detail Setting---
  150. * @default
  151. * @param StateIcon
  152. * @desc ステートアイコンのアニメスピードを指定します。
  153. * 初期値は40。
  154. * @default 40
  155. * @param StateOverlay
  156. * @desc ステートオーバーレイのアニメスピードを指定します
  157. * 初期値は8。
  158. * @default 8
  159. * @param Weapon
  160. * @desc サイドビュー時の武器攻撃のアニメスピードを指定します。
  161. * 初期値は12。Motionと同期してるので同じ値がおすすめ。
  162. * @default 12
  163. * @param Motion
  164. * @desc 行動モーションのアニメスピードを指定します。
  165. * 初期値は12。Weaponと同期してるので同じ値がおすすめ。
  166. * @default 12
  167. * @param Balloon
  168. * @desc バルーンのアニメスピードを指定します。
  169. * 初期値は12。
  170. * @default 12
  171. * @param Damage
  172. * @desc ダメージポップアップの持続フレーム数を指定します。
  173. * 初期値は90。早過ぎると目視できなくなるので要注意。
  174. * @default 90
  175. * @param DamageMin
  176. * @desc ダメージポップアップの持続フレーム数の最低値を指定します。
  177. * 初期値は60。このままにしておくことをオススメします。
  178. * @default 60
  179. * @param --BattleLog Setting--
  180. * @default
  181. * @param LogAnime BaseDelay
  182. * @desc バトルログウィンドウの表示フレーム数を指定します。
  183. * 初期値は8。BattleSpeed (Default)の影響を受けません。
  184. * @default 8
  185. * @param LogAnime NextDelay
  186. * @desc バトルログウィンドウの持続フレーム数を指定します。
  187. * 初期値は12。BattleSpeed (Default)の影響を受けません。
  188. * @default 12
  189. * @param LogWaitCount Default
  190. * @desc バトルログ表示中の待機フレームを指定倍数分、早くします。
  191. * 初期値は1。値を増やすとバトルログの速度がアップします。
  192. * @default 1
  193. * @param LogWaitCount Boost
  194. * @desc バトルログブースト中の待機フレームを指定倍数分、早くします。
  195. * 初期値は20。値を増やすとバトルログの速度がアップします。
  196. * @default 2
  197. * @param ---Switch Setting---
  198. * @default
  199. * @param SE BoostON
  200. * @desc ブースト状態をオンにしたときの効果音です。
  201. * 初期値はDecision2。
  202. * @default Decision2
  203. * @param SE BoostOFF
  204. * @desc ブースト状態をオフにしたときの効果音です。
  205. * 初期値はDecision2。
  206. * @default Decision2
  207. * @param SE Volume
  208. * @desc 効果音の音量です。初期値は50。
  209. * @default 50
  210. * @param SwitchImage
  211. * @desc 画像のファイル名です。systemフォルダを参照します。
  212. * 初期値はBalloon。
  213. * @default Balloon
  214. * @param SwitchX
  215. * @desc スイッチの位置Xです。初期値は10。
  216. * @default 10
  217. * @param SwitchY
  218. * @desc スイッチの位置Yです。初期値は10。
  219. * @default 10
  220. * @param SwitchWidth
  221. * @desc スイッチ横幅のサイズです。初期値は48。
  222. * @default 48
  223. * @param SwitchHeight
  224. * @desc スイッチ縦幅のサイズです。初期値は48。
  225. * @default 48
  226. * @param SwitchTop
  227. * @desc スイッチアニメの段数。0が最上段です。
  228. * 初期値は2。
  229. * @default 2
  230. * @param SwitchLeft
  231. * @desc スイッチアニメの開始コマ数。0が1コマめです。
  232. * 初期値は1。
  233. * @default 1
  234. * @param SwitchAnimePattern
  235. * @desc スイッチアニメの最後のコマです。
  236. * 初期値は8。
  237. * @default 8
  238. * @param SwitchAnimeSpeed
  239. * @desc スイッチのアニメスピードです。初期値は5。
  240. * @default 5
  241. * @param ---YEP BattleCore---
  242. * @default
  243. * @param YEP Battle MotionWait
  244. * @desc YEP BattleCoreを導入していた場合のみ設定可能です。
  245. * 初期値は20。値を減らすと攻撃演出のウェイトが早くなります。
  246. * @default 20
  247. * @param ---YEP ATB---
  248. * @default
  249. * @param YEP ATB BoostSwitch
  250. * @desc YEP ATBを導入していた場合のみ設定可能です。
  251. * 初期値はtrue。trueにするとブースト時にATBも速度を上げます。
  252. * @default true
  253. * @param ---ATB Speed---
  254. * @default
  255. * @param ATB Speed(Default)
  256. * @desc EllyeもしくはYEP ATBを導入していた場合のみ設定可能です。
  257. * 初期値は1。デフォルトのATゲージのスピードを倍数で指定します。
  258. * @default 1
  259. * @param ATB Speed(Boost)
  260. * @desc EllyeもしくはYEP ATBを導入していた場合のみ設定可能です。
  261. * 初期値は2。ブースト時のATゲージのスピードを倍数で指定します。
  262. * @default 2
  263. * @param ---YEP Victory AM---
  264. * @default
  265. * @param YEP Victory Wait
  266. * @desc YEP VictoryAftermathを導入していた場合のみ設定可能です。
  267. * 初期値はtrue。ブースト中、勝利時のウェイトを早くします。
  268. * @default true
  269. *
  270. */


  271. //------------------------------------------------------------------------------
  272. // グローバル変数
  273. //------------------------------------------------------------------------------

  274. Sepher.Parameters = PluginManager.parameters('SSEP_BattleSpeedUp_v2');
  275. Sepher.Param = Sepher.Param || {};

  276. Sepher.Param.BattleSpeedDefault        = Number(Sepher.Parameters['BattleSpeed (Default)']);
  277. Sepher.Param.BattleSpeedBoost        = Number(Sepher.Parameters['BattleSpeed (Boost)']);
  278. Sepher.Param.OkayKeyBoost                = String(Sepher.Parameters['OkayKeyBoost']);
  279. Sepher.Param.VisibleSwitch                = String(Sepher.Parameters['VisibleSwitch']);
  280. Sepher.Param.BoostToggleSwitch        = String(Sepher.Parameters['BoostToggleSwitch']);
  281. Sepher.Param.StateIcon                        = Number(Sepher.Parameters['StateIcon']);
  282. Sepher.Param.StateOverlay                = Number(Sepher.Parameters['StateOverlay']);
  283. Sepher.Param.Weapon                                = Number(Sepher.Parameters['Weapon']);
  284. Sepher.Param.Balloon                        = Number(Sepher.Parameters['Balloon']);
  285. Sepher.Param.Motion                                = Number(Sepher.Parameters['Motion']);
  286. Sepher.Param.Damage                                = Number(Sepher.Parameters['Damage']);
  287. Sepher.Param.DamageMin                        = Number(Sepher.Parameters['DamageMin']);
  288. Sepher.Param.LogBase                        = Number(Sepher.Parameters['LogAnime BaseDelay']);
  289. Sepher.Param.LogNext                        = Number(Sepher.Parameters['LogAnime NextDelay']);
  290. Sepher.Param.logWaitDefault                = Number(Sepher.Parameters['LogWaitCount Default']);
  291. Sepher.Param.logWaitBoost                = Number(Sepher.Parameters['LogWaitCount Boost']);
  292. Sepher.Param.seBoostON                        = String(Sepher.Parameters['SE BoostON']);
  293. Sepher.Param.seBoostOFF                        = String(Sepher.Parameters['SE BoostOFF']);
  294. Sepher.Param.seVolume                        = Number(Sepher.Parameters['SE Volume']);
  295. Sepher.Param.SwitchImage                = String(Sepher.Parameters['SwitchImage']);
  296. Sepher.Param.SwitchX                        = Number(Sepher.Parameters['SwitchX']);
  297. Sepher.Param.SwitchY                        = Number(Sepher.Parameters['SwitchY']);
  298. Sepher.Param.SwitchWidth                = Number(Sepher.Parameters['SwitchWidth']);
  299. Sepher.Param.SwitchHeight                = Number(Sepher.Parameters['SwitchHeight']);
  300. Sepher.Param.SwitchTop                        = Number(Sepher.Parameters['SwitchTop']);
  301. Sepher.Param.SwitchLeft                        = Number(Sepher.Parameters['SwitchLeft']);
  302. Sepher.Param.SwitchAnimePattern        = Number(Sepher.Parameters['SwitchAnimePattern']);
  303. Sepher.Param.SwitchAnimeSpeed        = Number(Sepher.Parameters['SwitchAnimeSpeed']);
  304. Sepher.Param.YEPMotionWait                = Number(Sepher.Parameters['YEP Battle MotionWait']);
  305. Sepher.Param.YEPVictoryWait                = String(Sepher.Parameters['YEP Victory Wait']);
  306. Sepher.Param.YEPBoostSwitch                = String(Sepher.Parameters['YEP ATB BoostSwitch']);
  307. Sepher.Param.ATBSpeedDefault        = Number(Sepher.Parameters['ATB Speed(Default)']);
  308. Sepher.Param.ATBSpeedBoost                = Number(Sepher.Parameters['ATB Speed(Boost)']);

  309. // OkayKeyBoost型変換
  310. if (Sepher.Param.OkayKeyBoost == 'true'){
  311.         Sepher.Param.OkayKeyBoost = true;
  312. }else{
  313.         Sepher.Param.OkayKeyBoost = false;
  314. };
  315. // VisibleSwitch型変換
  316. if (Sepher.Param.VisibleSwitch == 'true'){
  317.         Sepher.Param.VisibleSwitch = true;
  318. }else{
  319.         Sepher.Param.VisibleSwitch = false;
  320. };
  321. // YEPVictoryWait型変換
  322. if (Sepher.Param.YEPVictoryWait == 'true'){
  323.         Sepher.Param.YEPVictoryWait = true;
  324. }else{
  325.         Sepher.Param.YEPVictoryWait = false;
  326. };
  327. // YEPBoostSwitch型変換
  328. if (Sepher.Param.YEPBoostSwitch == 'true'){
  329.         Sepher.Param.YEPBoostSwitch = true;
  330. }else{
  331.         Sepher.Param.YEPBoostSwitch = false;
  332. };


  333. //------------------------------------------------------------------------------
  334. // Switch Setting
  335. //------------------------------------------------------------------------------

  336. if (Sepher.Param.VisibleSwitch){
  337.         var QuickMode = false;
  338.         var createUpper = Spriteset_Battle.prototype.createUpperLayer;
  339.         Spriteset_Battle.prototype.createUpperLayer = function() {
  340.                 createUpper.apply(this, arguments);
  341.                 var button = new Sprite_Button();
  342.                 button.bitmap = ImageManager.loadSystem(Sepher.Param.SwitchImage);
  343.                 button.x = Sepher.Param.SwitchX;
  344.                 button.y = Sepher.Param.SwitchY;
  345.                 button.visible = true;
  346.                 button.opacity = 80;
  347.                 this.addChild(button);

  348.                 var animCount = 1;
  349.                 var duration = 1;
  350.                 button.updateFrame = function() {
  351.                         var quickModeKey = Input.isTriggered(Sepher.Param.BoostToggleSwitch);
  352.                         if (quickModeKey){
  353.                                 button.quickModeToggleSwitch();
  354.                         }
  355.                         if (QuickMode) {
  356.                                 button.opacity = 255;
  357.                                 if (++duration == Sepher.Param.SwitchAnimeSpeed) {
  358.                                         if (++animCount >= Sepher.Param.SwitchAnimePattern) {
  359.                                                 animCount = 1;
  360.                                         }
  361.                                         button.setFrame(animCount * Sepher.Param.SwitchWidth, Sepher.Param.SwitchTop * Sepher.Param.SwitchHeight, Sepher.Param.SwitchWidth, Sepher.Param.SwitchHeight);
  362.                                         duration = 1;
  363.                                 }
  364.                         }
  365.                 }
  366.                 button.setFrame(Sepher.Param.SwitchLeft * Sepher.Param.SwitchWidth, Sepher.Param.SwitchTop * Sepher.Param.SwitchHeight, Sepher.Param.SwitchWidth, Sepher.Param.SwitchHeight);

  367.                 button.setClickHandler(function () {
  368.                         QuickMode = !QuickMode;
  369.                         if (QuickMode) {
  370.                                    var sound = {
  371.                                         name:   Sepher.Param.seBoostON,
  372.                                         volume: Sepher.Param.seVolume,
  373.                                         pitch:  100,
  374.                                            pan:    0
  375.                                 };
  376.                                    AudioManager.playSe(sound);
  377.                                 button.opacity = 255;
  378.                         }else{
  379.                                    var sound = {
  380.                                         name:   Sepher.Param.seBoostOFF,
  381.                                         volume: Sepher.Param.seVolume,
  382.                                            pitch:  100,
  383.                                     pan:    0
  384.                                   };
  385.                                    AudioManager.playSe(sound);
  386.                                 button.setFrame(Sepher.Param.SwitchLeft * Sepher.Param.SwitchWidth, Sepher.Param.SwitchTop * Sepher.Param.SwitchHeight, Sepher.Param.SwitchWidth, Sepher.Param.SwitchHeight);
  387.                                 button.opacity = 80;
  388.                         }
  389.                 });

  390.                 button.quickModeToggleSwitch = function() {
  391.                         QuickMode = !QuickMode;
  392.                         if (QuickMode) {
  393.                                    var sound = {
  394.                                         name:   Sepher.Param.seBoostON,
  395.                                         volume: Sepher.Param.seVolume,
  396.                                         pitch:  100,
  397.                                            pan:    0
  398.                                 };
  399.                                    AudioManager.playSe(sound);
  400.                                 button.opacity = 255;
  401.                         }else{
  402.                                    var sound = {
  403.                                         name:   Sepher.Param.seBoostOFF,
  404.                                         volume: Sepher.Param.seVolume,
  405.                                            pitch:  100,
  406.                                     pan:    0
  407.                                   };
  408.                             AudioManager.playSe(sound);
  409.                                 button.setFrame(Sepher.Param.SwitchLeft * Sepher.Param.SwitchWidth, Sepher.Param.SwitchTop * Sepher.Param.SwitchHeight, Sepher.Param.SwitchWidth, Sepher.Param.SwitchHeight);
  410.                                 button.opacity = 80;
  411.                         }
  412.                 };
  413.         };
  414. }

  415. // Alias - launchBattle
  416. var launchBattle = Scene_Map.prototype.launchBattle;
  417. Scene_Map.prototype.launchBattle = function() {
  418.         launchBattle.apply(this, arguments);
  419. };

  420. //------------------------------------------------------------------------------
  421. // QuickMode Speed Setting
  422. //------------------------------------------------------------------------------

  423. Sprite_StateIcon.prototype.animationWait = function() {
  424.         var speed = Sepher.Param.StateIcon / Sepher.Param.BattleSpeedDefault;
  425.     return speed;
  426. };

  427. Sprite_StateOverlay.prototype.animationWait = function() {
  428.         var speed = Sepher.Param.StateOverlay / Sepher.Param.BattleSpeedDefault;
  429.     return speed;
  430. };

  431. Sprite_Weapon.prototype.animationWait = function() {
  432.         var speed = Sepher.Param.Weapon / Sepher.Param.BattleSpeedDefault;
  433.         if (Sepher.Param.OkayKeyBoost){
  434.                 if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  435.                         speed = speed / Sepher.Param.BattleSpeedBoost;
  436.                 } else {
  437.                         speed = speed / Sepher.Param.BattleSpeedDefault;
  438.                 }
  439.         } else {
  440.                 if (QuickMode){
  441.                         speed = speed / Sepher.Param.BattleSpeedBoost;
  442.                 } else {
  443.                         speed = speed / Sepher.Param.BattleSpeedDefault;
  444.                 }
  445.         }
  446.            return speed;
  447. };

  448. Sprite_Balloon.prototype.waitTime = function() {
  449.         var speed = Sepher.Param.Balloon / Sepher.Param.BattleSpeedDefault;
  450.         if (Sepher.Param.OkayKeyBoost){
  451.                 if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  452.                         speed = speed / Sepher.Param.BattleSpeedBoost;
  453.                 } else {
  454.                         speed = speed / Sepher.Param.BattleSpeedDefault;
  455.                 }
  456.         } else {
  457.                 if (QuickMode){
  458.                         speed = speed / Sepher.Param.BattleSpeedBoost;
  459.                 } else {
  460.                         speed = speed / Sepher.Param.BattleSpeedDefault;
  461.                 }
  462.         }
  463.     return speed;
  464. };

  465. // Alias - startMove
  466. var _SSEP_Battler_startMove = Sprite_Battler.prototype.startMove;
  467. Sprite_Battler.prototype.startMove = function(x, y, duration) {
  468.         if (Sepher.Param.OkayKeyBoost){
  469.                 if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  470.                           duration = duration / Sepher.Param.BattleSpeedBoost;
  471.                   } else {
  472.                           duration = duration / Sepher.Param.BattleSpeedDefault;
  473.                 }
  474.         } else {
  475.                 if (QuickMode){
  476.                         duration = duration / Sepher.Param.BattleSpeedBoost;
  477.                   } else {
  478.                           duration = duration / Sepher.Param.BattleSpeedDefault;
  479.                 }
  480.         }
  481.         _SSEP_Battler_startMove.call(this, x, y, duration);
  482. };


  483. Sprite_Actor.prototype.motionSpeed = function() {
  484.         var speed = Sepher.Param.Motion;
  485.         if (Sepher.Param.OkayKeyBoost){
  486.                 if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  487.                         speed = speed / Sepher.Param.BattleSpeedBoost;
  488.                 } else {
  489.                         speed = speed / Sepher.Param.BattleSpeedDefault;
  490.                 }
  491.         } else {
  492.                 if (QuickMode){
  493.                         speed = speed / Sepher.Param.BattleSpeedBoost;
  494.                 } else {
  495.                         speed = speed / Sepher.Param.BattleSpeedDefault;
  496.                 }
  497.         }
  498.     return speed;
  499. };

  500. // Alias - Animation setup
  501. var _SSEP_Animation_setup = Sprite_Animation.prototype.setup;
  502. Sprite_Animation.prototype.setup = function(target, animation, mirror, delay) {
  503.         delay = delay / Sepher.Param.BattleSpeedDefault;
  504.         if (Sepher.Param.OkayKeyBoost){
  505.                 if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  506.                         delay = delay / Sepher.Param.BattleSpeedBoost;
  507.                 } else {
  508.                         delay = delay / Sepher.Param.BattleSpeedDefault;
  509.                 }
  510.         } else {
  511.                 if (QuickMode){
  512.                         delay = delay / Sepher.Param.BattleSpeedBoost;
  513.                 } else {
  514.                         delay = delay / Sepher.Param.BattleSpeedDefault;
  515.                 }
  516.         }
  517.         _SSEP_Animation_setup.call(this, target, animation, mirror, delay);
  518. };

  519. // Alias - Animation_setupRate
  520. var _SSEP_Animation_setupRate = Sprite_Animation.prototype.setupRate;
  521. Sprite_Animation.prototype.setupRate = function() {
  522.     _SSEP_Animation_setupRate;
  523.         if (Sepher.Param.OkayKeyBoost){
  524.                 if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  525.                         this._rate = this._rate / Sepher.Param.BattleSpeedBoost;
  526.                 } else {
  527.                     this._rate = this._rate / Sepher.Param.BattleSpeedDefault;
  528.                 }
  529.         } else {
  530.                 if (QuickMode){
  531.                         this._rate = this._rate / Sepher.Param.BattleSpeedBoost;
  532.                 } else {
  533.                     this._rate = this._rate / Sepher.Param.BattleSpeedDefault;
  534.                 }
  535.         }
  536.         this._rate = (Math.round(this._rate));
  537.         if (this._rate < 1){
  538.                 this._rate = 1;
  539.         }
  540. };

  541. var _SSEP_Damage_initialize = Sprite_Damage.prototype.initialize;
  542. Sprite_Damage.prototype.initialize = function() {
  543.         _SSEP_Damage_initialize.call(this);
  544.     this._duration = Sepher.Param.Damage;
  545.         if (Sepher.Param.OkayKeyBoost){
  546.                 if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  547.                         this._duration = this._duration / Sepher.Param.BattleSpeedBoost;
  548.                 } else {
  549.                         this._duration = this._duration / Sepher.Param.BattleSpeedDefault;
  550.                 }
  551.         } else {
  552.                 if (QuickMode){
  553.                         this._duration = this._duration / Sepher.Param.BattleSpeedBoost;
  554.                 } else {
  555.                         this._duration = this._duration / Sepher.Param.BattleSpeedDefault;
  556.                 }
  557.         }
  558.     if (this._duration <= Sepher.Param.DamageMin){
  559.             this._duration = Sepher.Param.DamageMin;
  560.     }
  561. };

  562. // BattleLog Window

  563. Window_BattleLog.prototype.animationBaseDelay = function() {
  564.         var speed = Sepher.Param.LogBase;
  565.     return speed;
  566. };

  567. Window_BattleLog.prototype.animationNextDelay = function() {
  568.         var speed = Sepher.Param.LogNext;
  569.     return speed;
  570. };

  571. Window_BattleLog.prototype.updateWaitCount = function() {
  572.         var waitMax;
  573.         var waitMin;
  574.         if (Sepher.Param.OkayKeyBoost){
  575.                 if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  576.                         waitMax = 3 * Sepher.Param.logWaitBoost;
  577.                     waitMin = 1 * Sepher.Param.logWaitBoost;
  578.                    }else{
  579.                         waitMax = 3 * Sepher.Param.logWaitDefault;
  580.                     waitMin = 1 * Sepher.Param.logWaitDefault;
  581.                 }
  582.         }else{
  583.                 if (QuickMode){
  584.                         waitMax = 3 * Sepher.Param.logWaitBoost;
  585.                     waitMin = 1 * Sepher.Param.logWaitBoost;
  586.                    }else{
  587.                         waitMax = 3 * Sepher.Param.logWaitDefault;
  588.                     waitMin = 1 * Sepher.Param.logWaitDefault;
  589.                 }
  590.         }

  591.     if (this._waitCount > 0) {
  592.         this._waitCount -= this.isFastForward() ? waitMax : waitMin;
  593.         if (this._waitCount < 0) {
  594.             this._waitCount = 0;
  595.         }
  596.             return true;
  597.     }
  598.     return false;
  599. };

  600. //------------------------------------------------------------------------------
  601. // Support - YanflyEngine BattleCore
  602. //------------------------------------------------------------------------------

  603. if (Imported.YEP_BattleEngineCore){

  604.         //Overwrite actionPerformAction
  605.         BattleManager.actionPerformAction = function() {
  606.                 wait = Sepher.Param.YEPMotionWait;
  607.                 if (Sepher.Param.OkayKeyBoost){
  608.                         if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  609.                                 wait = wait / Sepher.Param.BattleSpeedBoost;
  610.                         } else {
  611.                                 wait = wait / Sepher.Param.BattleSpeedDefault;
  612.                         }
  613.                 } else {
  614.                         if (QuickMode){
  615.                                 wait = wait / Sepher.Param.BattleSpeedBoost;
  616.                         } else {
  617.                                 wait = wait / Sepher.Param.BattleSpeedDefault;
  618.                         }
  619.                 }
  620.                
  621.             this._logWindow.performAction(this._subject, this._action);
  622.                         if (this._subject.isActor() && this._subject.isSpriteVisible) {
  623.                                 this._logWindow._waitCount += wait;
  624.                                 return false;
  625.                         }
  626.            return true;
  627.         };

  628.         //Overwrite actionFloat
  629.         BattleManager.actionFloat = function(name, actionArgs) {
  630.                 var movers = this.makeActionTargets(name);
  631.                 if (movers.length < 1) return true;
  632.                 var cmd = actionArgs[0];
  633.                 var frames = actionArgs[1] || 12;

  634.                 if (Sepher.Param.OkayKeyBoost){
  635.                         if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  636.                                 frames = frames / Sepher.Param.BattleSpeedBoost;
  637.                         } else {
  638.                                 frames = frames / Sepher.Param.BattleSpeedDefault;
  639.                         }
  640.                 } else {
  641.                         if (QuickMode){
  642.                                 frames = frames / Sepher.Param.BattleSpeedBoost;
  643.                         } else {
  644.                                 frames = frames / Sepher.Param.BattleSpeedDefault;
  645.                         }
  646.                 }

  647.             var pixels = 0;
  648.             if (cmd.match(/(\d+)([%%])/i)) {
  649.                     var floatPeak = parseFloat(RegExp.$1 * 0.01);
  650.                 } else if (cmd.match(/(\d+)/i)) {
  651.                         pixels = parseInt(RegExp.$1);
  652.                         var floatPeak = 0.0;
  653.             } else {
  654.                     var floatPeak = 1.0;
  655.             }
  656.             movers.forEach(function(mover) {
  657.                     var floatRate = floatPeak + (pixels / mover.spriteHeight());
  658.                     mover.spriteFloat(floatRate, frames);
  659.             });
  660.             return false;
  661.         };

  662.         //Overwrite actionJump
  663.         BattleManager.actionJump = function(name, actionArgs) {
  664.                 var movers = this.makeActionTargets(name);
  665.                 if (movers.length < 1) return true;
  666.                 var cmd = actionArgs[0];
  667.             var frames = actionArgs[1] || 12;

  668.                 if (Sepher.Param.OkayKeyBoost){
  669.                         if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  670.                                 frames = frames / Sepher.Param.BattleSpeedBoost;
  671.                         } else {
  672.                                 frames = frames / Sepher.Param.BattleSpeedDefault;
  673.                         }
  674.                 } else {
  675.                         if (QuickMode){
  676.                                 frames = frames / Sepher.Param.BattleSpeedBoost;
  677.                         } else {
  678.                                 frames = frames / Sepher.Param.BattleSpeedDefault;
  679.                         }
  680.                 }

  681.             var pixels = 0;
  682.                 if (cmd.match(/(\d+)([%%])/i)) {
  683.                         var jumpPeak = parseFloat(RegExp.$1 * 0.01);
  684.             } else if (cmd.match(/(\d+)/i)) {
  685.                     pixels = parseInt(RegExp.$1);
  686.                     var jumpPeak = 0.0;
  687.             } else {
  688.                     var jumpPeak = 1.0;
  689.             }
  690.             movers.forEach(function(mover) {
  691.                     var jumpRate = jumpPeak + (pixels / mover.spriteHeight());
  692.                     mover.spriteJump(jumpRate, frames);
  693.             });
  694.             return true;
  695.     };
  696. }

  697. //------------------------------------------------------------------------------
  698. // Support - YanflyEngine Active Time Battle
  699. //------------------------------------------------------------------------------

  700. if (Imported.YEP_X_BattleSysATB){
  701.         //Overwrite atbTickRate
  702.         BattleManager.atbTickRate = function() {
  703.             var rate = 0.1 * ConfigManager.atbSpeed;
  704.             //Add
  705.             if (Sepher.Param.OkayKeyBoost){
  706.                         if (Sepher.Param.YEPBoostSwitch){
  707.                                 if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  708.                                         rate = rate * Sepher.Param.ATBSpeedBoost;
  709.                                 } else {
  710.                                         rate = rate * Sepher.Param.ATBSpeedDefault;
  711.                                 }
  712.                         }
  713.                 } else {
  714.                     if (Sepher.Param.YEPBoostSwitch){
  715.                                 if (QuickMode || TouchInput.isPressed()){
  716.                                         rate = rate * Sepher.Param.ATBSpeedBoost;
  717.                                 } else {
  718.                                         rate = rate * Sepher.Param.ATBSpeedDefault;
  719.                                 }
  720.                         }

  721.                 }
  722.             return rate;
  723.         };
  724. }

  725. //------------------------------------------------------------------------------
  726. // Support - YanflyEngine Victory Aftermath
  727. //------------------------------------------------------------------------------

  728. if (Imported.YEP_VictoryAftermath){
  729.         //Overwrite isFinishedVictoryCheer
  730.         BattleManager.isFinishedVictoryCheer = function() {
  731.                 if (Sepher.Param.YEPVictoryWait){
  732.                         if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  733.                                 return ++this._victoryCheerWait >= Yanfly.Param.VACheerWait / Sepher.Param.BattleSpeedBoost;
  734.                         } else {
  735.                                 return ++this._victoryCheerWait >= Yanfly.Param.VACheerWait / Sepher.Param.BattleSpeedDefault;
  736.                         }
  737.                 } else {
  738.                         return ++this._victoryCheerWait >= Yanfly.Param.VACheerWait;
  739.                 }
  740.         };
  741. }

  742. //------------------------------------------------------------------------------
  743. // Support - Ellye's ATB
  744. //------------------------------------------------------------------------------

  745. //Check if there is Window_CTB function
  746. if (typeof Window_CTB == "function"){
  747.     //Changing the flow of battle
  748.     //_BattleManager_update=BattleManager.update;
  749.     BattleManager.update=function() {
  750.         if(!this.isBusy()&&!this.updateEvent()) {
  751.             switch(this._phase) {
  752.                 case 'atb':
  753.                         //Add script
  754.                                         if (Sepher.Param.OkayKeyBoost){
  755.                                                 if (QuickMode || Input.isPressed('ok') || TouchInput.isPressed()){
  756.                                         var speed = Sepher.Param.ATBSpeedBoost;
  757.                                                 } else {
  758.                                         var speed = Sepher.Param.ATBSpeedDefault;
  759.                                                 }
  760.                                         } else {
  761.                                                 if (QuickMode){
  762.                                         var speed = Sepher.Param.ATBSpeedBoost;
  763.                                                 } else {
  764.                                         var speed = Sepher.Param.ATBSpeedDefault;
  765.                                                 }
  766.                                         }
  767.                     this.increaseAtbGauges(speed);
  768.                     break;
  769.                 default:
  770.                     _BattleManager_update.call(this);
  771.                     break;
  772.             }
  773.         }
  774.     };

  775.     //Alias - increaseAtbGauses
  776.     var _SSEP_increaseAtbGauges = BattleManager.increaseAtbGauges;
  777.     BattleManager.increaseAtbGauges = function(speed) {
  778.             //Add variable and Rate calculation
  779.             var copy_base_atb_increase = base_atb_increase;
  780.         base_atb_increase = base_atb_increase * speed;
  781.         //original method
  782.         _SSEP_increaseAtbGauges.call(this);
  783.         //return global variable
  784.         base_atb_increase = copy_base_atb_increase;
  785.     };
  786. }
复制代码
新しい誕生祝いだッ!
回复

使用道具 举报

梦石
0
星屑
497
在线时间
266 小时
注册时间
2015-12-8
回帖
729
发表于 2016-9-24 23:10:09 | 显示全部楼层
按下SHIFT
回复

使用道具 举报

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

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部