查看: 4151|回复: 8

[交流讨论] JS 图书馆 暫停更新了

[复制链接]
梦石
0
星屑
84
在线时间
130 小时
注册时间
2014-9-1
回帖
69
发表于 2015-10-25 10:48:18 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 creeper0924 于 2015-12-18 16:57 编辑

大家好,我是。。。呃。。。末日霸王(名字什么的别理他!)
这里,我将发布 RPG Maker MV 的脚本。
麻烦大家不要在楼下回复,谢谢!
这种情况下连贴,应该不算违规吧。。。
呃,麻烦6R站长添加多一个 .js 的上传格式名好么??
每个脚本免费!(应该不多吧。。)

2樓:                                          
Yanfly Engine

3樓:                                          
Kadokawa Plugins

4樓:                                          
Yami
Shaz

5樓:                                          
Archeia
Galenmereth
Neonblack
Zalerinian
Zeriab

评分

参与人数 2星屑 +68 收起 理由
余烬之中 + 66 未免太过缓慢 而且..同楼下
Front + 2 →_→ 全是自带的插件,还收费么?.

查看全部评分

halo大家好,欢迎支持我的部落格
http://dedarknightstudio.blogspot.com
梦石
0
星屑
84
在线时间
130 小时
注册时间
2014-9-1
回帖
69
 楼主| 发表于 2015-10-25 11:00:31 | 显示全部楼层

此乃2楼

本帖最后由 creeper0924 于 2015-12-18 16:56 编辑

Yanfly Engine
Yanfly Engine Plugins 核心脚本:
YEP_CoreEngine.js

  1. //=============================================================================
  2. // Yanfly Engine Plugins - Core Engine
  3. // YEP_CoreEngine.js
  4. // Version: 1.00
  5. //=============================================================================

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

  8. var Yanfly = Yanfly || {};
  9. Yanfly.Core = Yanfly.Core || {};

  10. //=============================================================================
  11. /*:
  12. * @plugindesc Needed for the majority of Yanfly Engine Scripts. Also
  13. * contains bug fixes found inherently in RPG Maker.
  14. * @author Yanfly Engine Plugins
  15. *
  16. * @param ---Screen---
  17. * @default
  18. *
  19. * @param Screen Width
  20. * @desc Adjusts the width of the screen.
  21. * Default: 816
  22. * @default 816
  23. *
  24. * @param Screen Height
  25. * @desc Adjusts the height of the screen.
  26. * Default: 624
  27. * @default 624
  28. *
  29. * @param Open Console
  30. * @desc For testing and debug purposes, this opens up the console.
  31. * Don't Open - false     Open - true
  32. * @default false
  33. *
  34. * @param Reposition Battlers
  35. * @desc Allow the plugin to reposition battlers to resolution?
  36. * NO - false     YES - true
  37. * @default true
  38. *
  39. * @param ---Gold---
  40. * @desc
  41. *
  42. * @param Gold Max
  43. * @desc The maximum amount of gold the player can have.
  44. * Default: 99999999
  45. * @default 99999999
  46. *
  47. * @param Gold Font Size
  48. * @desc The font size used to display gold.
  49. * Default: 28
  50. * @default 20
  51. *
  52. * @param Gold Icon
  53. * @desc This will be the icon used to represent gold in the gold
  54. * window. If left at 0, no icon will be displayed.
  55. * @default 313
  56. *
  57. * @param Gold Overlap
  58. * @desc This will be what's displayed when the gold number
  59. * exceeds the allocated area's content size.
  60. * @default A lotta
  61. *
  62. * @param ---Items---
  63. * @desc
  64. *
  65. * @param Default Max
  66. * @desc This is the maximum number of items a player can hold.
  67. * Default: 99
  68. * @default 99
  69. *
  70. * @param Quantity Text Size
  71. * @desc This is the text's font size used for the item quantity.
  72. * Default: 28
  73. * @default 20
  74. *
  75. * @param ---Stats---
  76. * @default
  77. *
  78. * @param Max Level
  79. * @desc Adjusts the maximum level limit for actors.
  80. * Default: 99
  81. * @default 99
  82. *
  83. * @param Actor MaxHP
  84. * @desc Adjusts the maximum HP limit for actors.
  85. * Default: 9999
  86. * @default 9999
  87. *
  88. * @param Actor MaxMP
  89. * @desc Adjusts the maximum MP limit for actors.
  90. * Default: 9999
  91. * @default 9999
  92. *
  93. * @param Actor Parameter
  94. * @desc Adjusts the maximum parameter limit for actors.
  95. * Default: 999
  96. * @default 999
  97. *
  98. * @param Enemy MaxHP
  99. * @desc Adjusts the maximum HP limit for enemies.
  100. * Default: 999999
  101. * @default 999999
  102. *
  103. * @param Enemy MaxMP
  104. * @desc Adjusts the maximum MP limit for enemies.
  105. * Default: 9999
  106. * @default 9999
  107. *
  108. * @param Enemy Parameter
  109. * @desc Adjusts the maximum parameter limit for enemies.
  110. * Default: 999
  111. * @default 999
  112. *
  113. * @param ---Battle---
  114. * @desc
  115. *
  116. * @param Animation Rate
  117. * @desc Adjusts the rate of battle animations. Lower for faster.
  118. * Default: 4
  119. * @default 4
  120. *
  121. * @param Flash Target
  122. * @desc If an enemy is targeted, it flashes or it can whiten.
  123. * OFF - false     ON - true
  124. * @default false
  125. *
  126. * @param ---Font---
  127. * @desc
  128. *
  129. * @param Chinese Font
  130. * @desc Default font(s) used for a Chinese RPG.
  131. * Default: SimHei, Heiti TC, sans-serif
  132. * @default SimHei, Heiti TC, sans-serif
  133. *
  134. * @param Korean Font
  135. * @desc Default font(s) used for a Korean RPG.
  136. * Default: Dotum, AppleGothic, sans-serif
  137. * @default Dotum, AppleGothic, sans-serif
  138. *
  139. * @param Default Font
  140. * @desc Default font(s) used for everything else.
  141. * Default: GameFont
  142. * @default GameFont, Verdana, Arial, Courier New
  143. *
  144. * @param Font Size
  145. * @desc Default font size used for windows.
  146. * Default: 28
  147. * @default 28
  148. *
  149. * @param Text Align
  150. * @desc How to align the text for command windows.
  151. * left     center     right
  152. * @default left
  153. *
  154. * @param ---Windows---
  155. * @default
  156. *
  157. * @param Digit Grouping
  158. * @desc Groups together digits with a comma.
  159. * false - OFF     true - ON
  160. * @default true
  161. *
  162. * @param Line Height
  163. * @desc Adjusts universal line height used in Windows.
  164. * Default: 36
  165. * @default 36
  166. *
  167. * @param Icon Width
  168. * @desc Adjusts the width of your icons.
  169. * Default: 32
  170. * @default 32
  171. *
  172. * @param Icon Height
  173. * @desc Adjusts the height of your icons.
  174. * Default: 32
  175. * @default 32
  176. *
  177. * @param Face Width
  178. * @desc Adjusts the width of actors' faces.
  179. * Default: 144
  180. * @default 144
  181. *
  182. * @param Face Height
  183. * @desc Adjusts the height of actors' faces.
  184. * Default: 144
  185. * @default 144
  186. *
  187. * @param Window Padding
  188. * @desc Adjusts the padding for all standard windows.
  189. * Default: 18
  190. * @default 18
  191. *
  192. * @param Text Padding
  193. * @desc Adjusts the padding for text inside of windows.
  194. * Default: 6
  195. * @default 6
  196. *
  197. * @param Window Opacity
  198. * @desc Adjusts the background opacity for windows.
  199. * Default: 192
  200. * @default 192
  201. *
  202. * @param Gauge Outline
  203. * @desc Enable outlines for gauges.
  204. * false - OFF     true - ON
  205. * @default true
  206. *
  207. * @param Gauge Height
  208. * @desc Sets the height for gauges.
  209. * Default: 6
  210. * @default 18
  211. *
  212. * @param Menu TP Bar
  213. * @desc Draws a TP bar in the menu status for actors.
  214. * false - OFF     true - ON
  215. * @default true
  216. *
  217. * @param ---Window Colors---
  218. * @default
  219. *
  220. * @param Color: Normal
  221. * @desc Changes the text color for Windows.
  222. * Default: 0
  223. * @default 0
  224. *
  225. * @param Color: System
  226. * @desc Changes the text color for Windows.
  227. * Default: 16
  228. * @default 16
  229. *
  230. * @param Color: Crisis
  231. * @desc Changes the text color for Windows.
  232. * Default: 17
  233. * @default 17
  234. *
  235. * @param Color: Death
  236. * @desc Changes the text color for Windows.
  237. * Default: 18
  238. * @default 18
  239. *
  240. * @param Color: Gauge Back
  241. * @desc Changes the text color for Windows.
  242. * Default: 19
  243. * @default 19
  244. *
  245. * @param Color: HP Gauge 1
  246. * @desc Changes the text color for Windows.
  247. * Default: 20
  248. * @default 20
  249. *
  250. * @param Color: HP Gauge 2
  251. * @desc Changes the text color for Windows.
  252. * Default: 21
  253. * @default 21
  254. *
  255. * @param Color: MP Gauge 1
  256. * @desc Changes the text color for Windows.
  257. * Default: 22
  258. * @default 22
  259. *
  260. * @param Color: MP Gauge 2
  261. * @desc Changes the text color for Windows.
  262. * Default: 23
  263. * @default 23
  264. *
  265. * @param Color: MP Cost
  266. * @desc Changes the text color for Windows.
  267. * Default: 23
  268. * @default 23
  269. *
  270. * @param Color: Power Up
  271. * @desc Changes the text color for Windows.
  272. * Default: 24
  273. * @default 24
  274. *
  275. * @param Color: Power Down
  276. * @desc Changes the text color for Windows.
  277. * Default: 25
  278. * @default 25
  279. *
  280. * @param Color: TP Gauge 1
  281. * @desc Changes the text color for Windows.
  282. * Default: 28
  283. * @default 28
  284. *
  285. * @param Color: TP Gauge 2
  286. * @desc Changes the text color for Windows.
  287. * Default: 29
  288. * @default 29
  289. *
  290. * @param Color: TP Cost Color
  291. * @desc Changes the text color for Windows.
  292. * Default: 29
  293. * @default 29
  294. *
  295. * @help
  296. * ============================================================================
  297. * Introduction and Instructions
  298. * ============================================================================
  299. *
  300. * Yanfly Engine Plugins - Core Engine is made for RPG Maker MV. This plugin
  301. * functions primarily to fix bugs and to allow the user more control over RPG
  302. * Maker MV's various features, such as the screen resolution, font, window
  303. * colors, and more.
  304. *
  305. * Just place this on top of all the other Yanfly Engine Plugins.
  306. * Adjust any parameters as you see fit.
  307. *
  308. * ============================================================================
  309. * Bug Fixes
  310. * ============================================================================
  311. *
  312. * This plugin fixes a few bugs found present within RPG Maker MV. Of them are
  313. * the following:
  314. *
  315. * Animation Overlay
  316. *   When a skill/item that targets multiple enemies at once using a fullscreen
  317. *   animation, it will overlay multiple times causing the image to look
  318. *   distorted by a series of overlayed effects. The plugin fixes this issue by
  319. *   having only one animation played over the group instead of every one.
  320. *
  321. * Event Updating
  322. *   By default, a moving event at Frequency 5 stops briefly for a frame
  323. *   instead of continuously moving. The plugin fixes this issue to match the
  324. *   previous iterations of RPG Maker XP, RPG Maker VX, and RPG Maker VX Ace
  325. *   where the event will move nonstop.
  326. *
  327. * Event Movement Speed
  328. *   The movement speed of events are slightly slower than what they should be
  329. *   due a small error in the source code. The plugin fixes this issue and they
  330. *   move at the properly speed.
  331. *
  332. * Event Movement Queue
  333. *   If an event were to move through an event command, changing a condition
  334. *   that would set the event to change to a different page would cause that
  335. *   event's move route to halt in its tracks. The plugin fixes this issue and
  336. *   the event's move route will finish.
  337. *
  338. * Event Colliding
  339. *   Events cannot move over other events with a Below Player setting. This
  340. *   makes it difficult for certain types of puzzles or events to exist. This
  341. *   plugin fixes this issue by making the collision check only apply to events
  342. *   of "Same as Characters" priority. Any event that's above or below the
  343. *   characters will no longer collide with other events.
  344. *
  345. * Screen Tearing
  346. *   When moving slowly, the tiles on the screen tear. While it's not
  347. *   noticeable on all systems, slower computers will definitely show it. The
  348. *   plugin will fix this issue and synch the tiles to keep up to pace with
  349. *   the screen's camera movement properly.
  350. *
  351. * Sprite Distortion
  352. *   Because of JavaScript's strange mathematical behavior, sometimes values
  353. *   with decimal places cause spritesheets to end up looking distorted. The
  354. *   plugin will get rid of the decimal places and have sprite sheets take out
  355. *   frames properly by using integer values only.
  356. *
  357. * ============================================================================
  358. * Gold
  359. * ============================================================================
  360. *
  361. * You can use the plugin commands to add or remove gold more than the
  362. * editor's 9,999,999 limit. You can also place notetags into items, weapons,
  363. * and armors to over the 999,999 cost limit.
  364. *
  365. * Plugin Command:
  366. *   GainGold 1234567890       # Party gains 1234567890 gold.
  367. *   LoseGold 9876543210       # Party loses 9876543210 gold.
  368. *
  369. * Item, Weapon, Armor Notetags
  370. *   <Price: x>
  371. *   Changes the price of the item to x. This notetag allows you to bypass the
  372. *   editor's 999,999 gold cost limit.
  373. *
  374. * Enemy Notetag
  375. *   <Gold: x>
  376. *   Changes the gold drop value of enemies to x. This notetag allows you to
  377. *   bypass the editor's 9,999,999 gold drop limit.
  378. *
  379. * ============================================================================
  380. * Items
  381. * ============================================================================
  382. *
  383. * Change the parameters to reflect the maximum number of items a player can
  384. * hold per item. If you wish to make individual items have different max
  385. * values, use the following notetag:
  386. *
  387. * Item, Weapon, Armor Notetag:
  388. *   <Max Item: x>
  389. *   This changes the maximum amount of the item to x.
  390. *
  391. * ============================================================================
  392. * Stats
  393. * ============================================================================
  394. *
  395. * Even with the parameter limits raised, the editor is still confined to RPG
  396. * Maker MV's default limits. To break past them, use the following notetags
  397. * to allow further control over the individual aspects for the parameters.
  398. *
  399. * Actor Notetag
  400. *   <Initial Level: x>
  401. *   Changes the actor's initial level to x. This allows you to bypass the
  402. *   editor's level 99 limit.
  403. *
  404. *   <Max Level: x>
  405. *   Changes the actor's max level to x. This allows you to bypass the editor's
  406. *   level 99 limit.
  407. *
  408. * Class Skill Learn Notetag
  409. *   <Learn at Level: x>
  410. *   When placed inside a class's "Skills to Learn" notetag, this will cause
  411. *   the class to learn the skill at level x.
  412. *
  413. * Weapon and Armor Notetags
  414. *   <stat: +x>
  415. *   <stat: -x>
  416. *   Allows the piece of weapon or armor to gain or lose x amount of stat.
  417. *   Replace "stat" with "hp", "mp", "atk", "def", "mat", "mdf", "agi", or
  418. *   "luk" to alter that specific stat. This allows the piece of equipment
  419. *   to go past the editor's default limitation so long as the maximum value
  420. *   allows for it.
  421. *
  422. * Enemy Notetags
  423. *   <stat: x>
  424. *   This changes the enemy's stat to x amount. Replace "stat" with "hp",
  425. *   "mp", "atk", "def", "mat", "mdf", "agi", or "luk" to alter that
  426. *   specific stat. This allows the piece of equipment to go past the
  427. *   editor's default limitation.
  428. *
  429. *   <exp: x>
  430. *   This changes the enemy's exp given out to x amount. This allows the
  431. *   enemy give out more exp than the editor's default 9,999,999 limit.
  432. */
  433. //=============================================================================

  434. //=============================================================================
  435. // Parameter Variables
  436. //=============================================================================

  437. Yanfly.Parameters = PluginManager.parameters('YEP_CoreEngine');
  438. Yanfly.Param = Yanfly.Param || {};
  439. Yanfly.Icon = Yanfly.Icon || {};

  440. Yanfly.Param.OpenConsole = String(Yanfly.Parameters['Open Console']);
  441. Yanfly.Param.DigitGroup = String(Yanfly.Parameters['Digit Grouping']);
  442. Yanfly.Param.MaxItem = Number(Yanfly.Parameters['Default Max']);
  443. Yanfly.Param.MaxLevel = Number(Yanfly.Parameters['Max Level']);
  444. Yanfly.Param.AnimationRate = Number(Yanfly.Parameters['Animation Rate']);
  445. Yanfly.Param.FlashTarget = String(Yanfly.Parameters['Flash Target']);
  446. Yanfly.Param.ReposBattlers = String(Yanfly.Parameters['Reposition Battlers']);
  447. Yanfly.Param.EnemyMaxHp = Number(Yanfly.Parameters['Enemy MaxHP']);
  448. Yanfly.Param.EnemyMaxMp = Number(Yanfly.Parameters['Enemy MaxMP']);
  449. Yanfly.Param.EnemyParam = Number(Yanfly.Parameters['Enemy Parameter']);
  450. Yanfly.Param.ActorMaxHp = Number(Yanfly.Parameters['Actor MaxHP']);
  451. Yanfly.Param.ActorMaxMp = Number(Yanfly.Parameters['Actor MaxMP']);
  452. Yanfly.Param.ActorParam = Number(Yanfly.Parameters['Actor Parameter']);
  453. Yanfly.Param.MaxGold = String(Yanfly.Parameters['Gold Max']);
  454. Yanfly.Param.ChineseFont = String(Yanfly.Parameters['Chinese Font']);
  455. Yanfly.Param.KoreanFont = String(Yanfly.Parameters['Korean Font']);
  456. Yanfly.Param.DefaultFont = String(Yanfly.Parameters['Default Font']);
  457. Yanfly.Param.FontSize = Number(Yanfly.Parameters['Font Size']);
  458. Yanfly.Param.TextAlign = String(Yanfly.Parameters['Text Align']);
  459. Yanfly.Param.LineHeight = Number(Yanfly.Parameters['Line Height']);
  460. Yanfly.Param.GaugeOutline = String(Yanfly.Parameters['Gauge Outline']);
  461. Yanfly.Param.GaugeHeight = Number(Yanfly.Parameters['Gauge Height']);
  462. Yanfly.Param.WindowPadding = Number(Yanfly.Parameters['Window Padding']);
  463. Yanfly.Param.TextPadding = Number(Yanfly.Parameters['Text Padding']);
  464. Yanfly.Param.WindowOpacity = Number(Yanfly.Parameters['Window Opacity']);
  465. Yanfly.Param.MenuTpGauge = String(Yanfly.Parameters['Menu TP Bar']);
  466. Yanfly.Param.ColorNormal = Number(Yanfly.Parameters['Color: Normal']);
  467. Yanfly.Param.ColorSystem = Number(Yanfly.Parameters['Color: System']);
  468. Yanfly.Param.ColorCrisis = Number(Yanfly.Parameters['Color: Crisis']);
  469. Yanfly.Param.ColorDeath = Number(Yanfly.Parameters['Color: Death']);
  470. Yanfly.Param.ColorGaugeBack = Number(Yanfly.Parameters['Color: Gauge Back']);
  471. Yanfly.Param.ColorHpGauge1 = Number(Yanfly.Parameters['Color: HP Gauge 1']);
  472. Yanfly.Param.ColorHpGauge2 = Number(Yanfly.Parameters['Color: HP Gauge 2']);
  473. Yanfly.Param.ColorMpGauge1 = Number(Yanfly.Parameters['Color: MP Gauge 1']);
  474. Yanfly.Param.ColorMpGauge2 = Number(Yanfly.Parameters['Color: MP Gauge 2']);
  475. Yanfly.Param.ColorMpCost = Number(Yanfly.Parameters['Color: MP Cost']);
  476. Yanfly.Param.ColorPowerUp = Number(Yanfly.Parameters['Color: Power Up']);
  477. Yanfly.Param.ColorPowerDown = Number(Yanfly.Parameters['Color: Power Down']);
  478. Yanfly.Param.ColorTpGauge1 = Number(Yanfly.Parameters['Color: TP Gauge 1']);
  479. Yanfly.Param.ColorTpGauge2 = Number(Yanfly.Parameters['Color: TP Gauge 2']);
  480. Yanfly.Param.ColorTpCost = Number(Yanfly.Parameters['Color: TP Cost Color']);
  481. Yanfly.Param.GoldFontSize = String(Yanfly.Parameters['Gold Font Size']);
  482. Yanfly.Icon.Gold = Number(Yanfly.Parameters['Gold Icon']);
  483. Yanfly.Param.GoldOverlap = String(Yanfly.Parameters['Gold Overlap']);
  484. Yanfly.Param.ItemQuantitySize = Number(Yanfly.Parameters['Quantity Text Size']);

  485. //=============================================================================
  486. // Bitmap
  487. //=============================================================================

  488. Yanfly.Core.Bitmap_initialize = Bitmap.prototype.initialize;
  489. Bitmap.prototype.initialize = function(width, height) {
  490.         Yanfly.Core.Bitmap_initialize.call(this, width, height);
  491.         this.fontFace = Yanfly.Param.DefaultFont;
  492. };

  493. //=============================================================================
  494. // Sprite
  495. //=============================================================================

  496. Yanfly.Core.Sprite_updateTransform = Sprite.prototype.updateTransform;
  497. Sprite.prototype.updateTransform = function() {
  498.   Yanfly.Core.Sprite_updateTransform.call(this);
  499.   this.worldTransform.tx = Math.floor(this.worldTransform.tx);
  500.   this.worldTransform.ty = Math.floor(this.worldTransform.ty);
  501. };

  502. //=============================================================================
  503. // ScreenSprite
  504. //=============================================================================

  505. Yanfly.Core.ScreenSprite_initialize = ScreenSprite.prototype.initialize;
  506. ScreenSprite.prototype.initialize = function() {
  507.     Yanfly.Core.ScreenSprite_initialize.call(this);
  508.     this.scale.x = Graphics.width * 2;
  509.     this.scale.y = Graphics.height * 2;
  510.     this.anchor.x = 0.5;
  511.     this.anchor.y = 0.5;
  512.     this.x = Graphics.boxWidth / 2;
  513.     this.x = Graphics.boxHeight / 2;
  514. };

  515. //=============================================================================
  516. // DataManager
  517. //=============================================================================

  518. Yanfly.Core.DataManager_isDatabaseLoaded = DataManager.isDatabaseLoaded;
  519. DataManager.isDatabaseLoaded = function() {
  520.     if (!Yanfly.Core.DataManager_isDatabaseLoaded.call(this)) return false;
  521.                 this.processCORENotetags1($dataItems);
  522.                 this.processCORENotetags1($dataWeapons);
  523.                 this.processCORENotetags1($dataArmors);
  524.                 this.processCORENotetags2($dataEnemies);
  525.                 this.processCORENotetags3($dataActors);
  526.                 this.processCORENotetags4($dataClasses);
  527.                 return true;
  528. };

  529. DataManager.processCORENotetags1 = function(group) {
  530.         for (var n = 1; n < group.length; n++) {
  531.                 var obj = group[n];
  532.                 var notedata = obj.note.split(/[\r\n]+/);

  533.                 obj.maxItem = Yanfly.Param.MaxItem;

  534.                 for (var i = 0; i < notedata.length; i++) {
  535.                         var line = notedata[i];
  536.                         if (line.match(/<(?:PRICE):[ ](\d+)>/i)) {
  537.         obj.price = parseInt(RegExp.$1);
  538.                         } else if (line.match(/<(?:MAX ITEM):[ ](\d+)>/i)) {
  539.         obj.maxItem = Math.max(1, parseInt(RegExp.$1));
  540.                         } else if (line.match(/<(.*):[ ]([\+\-]\d+)>/i)) {
  541.         var stat = String(RegExp.$1).toUpperCase();
  542.                                 var value = parseInt(RegExp.$2);
  543.                                 switch (stat) {
  544.                                         case 'HP':
  545.                       case 'MAXHP':
  546.                       case 'MAX HP':
  547.                                                 obj.params[0] = value;
  548.                                                 break;
  549.                                         case 'MP':
  550.                       case 'MAXMP':
  551.                       case 'MAX MP':
  552.                       case 'SP':
  553.                       case 'MAXSP':
  554.                       case 'MAX SP':
  555.                                                 obj.params[1] = value;
  556.                                                 break;
  557.                                         case 'ATK':
  558.                       case 'STR':
  559.                                                 obj.params[2] = value;
  560.                                                 break;
  561.                                         case 'DEF':
  562.                                                 obj.params[3] = value;
  563.                                                 break;
  564.                                         case 'MAT':
  565.                       case 'INT' || 'SPI':
  566.                                                 obj.params[4] = value;
  567.                                                 break;
  568.                                         case 'MDF':
  569.                       case 'RES':
  570.                                                 obj.params[5] = value;
  571.                                                 break;
  572.                                         case 'AGI':
  573.                       case 'SPD':
  574.                                                 obj.params[6] = value;
  575.                                                 break;
  576.                                         case 'LUK':
  577.                                                 obj.params[7] = value;
  578.                                                 break;
  579.                                         case 'EXP':
  580.                       case 'XP':
  581.                                                 obj.exp = value;
  582.                                                 break;
  583.                                 }
  584.                         }
  585.                 }
  586.         }
  587. };

  588. DataManager.processCORENotetags2 = function(group) {
  589.         for (var n = 1; n < group.length; n++) {
  590.                 var obj = group[n];
  591.                 var notedata = obj.note.split(/[\r\n]+/);

  592.                 for (var i = 0; i < notedata.length; i++) {
  593.                         var line = notedata[i];
  594.                         if (line.match(/<(?:GOLD):[ ](\d+)>/i)) {
  595.         obj.gold = parseInt(RegExp.$1);
  596.                         } else if (line.match(/<(.*):[ ](\d+)>/i)) {
  597.         var stat = String(RegExp.$1).toUpperCase();
  598.                                 var value = parseInt(RegExp.$2);
  599.                                 switch (stat) {
  600.                                         case 'HP':
  601.                       case 'MAXHP':
  602.                       case 'MAX HP':
  603.                                                 obj.params[0] = value;
  604.                                                 break;
  605.                                         case 'MP':
  606.                       case 'MAXMP':
  607.                       case 'MAX MP':
  608.                       case 'SP':
  609.                       case 'MAXSP':
  610.                       case 'MAX SP':
  611.                                                 obj.params[1] = value;
  612.                                                 break;
  613.                                         case 'ATK':
  614.                       case 'STR':
  615.                                                 obj.params[2] = value;
  616.                                                 break;
  617.                                         case 'DEF':
  618.                                                 obj.params[3] = value;
  619.                                                 break;
  620.                                         case 'MAT':
  621.                       case 'INT':
  622.                       case 'SPI':
  623.                                                 obj.params[4] = value;
  624.                                                 break;
  625.                                         case 'MDF':
  626.                       case 'RES':
  627.                                                 obj.params[5] = value;
  628.                                                 break;
  629.                                         case 'AGI':
  630.                       case 'SPD':
  631.                                                 obj.params[6] = value;
  632.                                                 break;
  633.                                         case 'LUK':
  634.                                                 obj.params[7] = value;
  635.                                                 break;
  636.                                 }
  637.                         }
  638.                 }
  639.         }
  640. };

  641. DataManager.processCORENotetags3 = function(group) {
  642.         for (var n = 1; n < group.length; n++) {
  643.                 var obj = group[n];
  644.                 var notedata = obj.note.split(/[\r\n]+/);

  645.                 obj.maxLevel = Yanfly.Param.MaxLevel;

  646.                 for (var i = 0; i < notedata.length; i++) {
  647.                         var line = notedata[i];
  648.                         if (line.match(/<(?:MAX LEVEL):[ ](\d+)>/i)) {
  649.         obj.maxLevel = parseInt(RegExp.$1);
  650.                                 if (obj.maxLevel < 1) obj.maxLevel = 1;
  651.                         } else if (line.match(/<(?:INITIAL LEVEL):[ ](\d+)>/i)) {
  652.                                 obj.initialLevel = parseInt(RegExp.$1);
  653.                                 if (obj.initialLevel < 1) obj.initialLevel = 1;
  654.                         }
  655.                 }
  656.         }
  657. };

  658. DataManager.processCORENotetags4 = function(group) {
  659.         for (var n = 1; n < group.length; n++) {
  660.                 var obj = group[n];
  661.                 var notedata = obj.note.split(/[\r\n]+/);

  662.                 obj.learnings.forEach(function(learning) {
  663.                         if (learning.note.match(/<(?:LEARN LEVEL):[ ](\d+)>/i)) {
  664.                                 learning.level = parseInt(RegExp.$1);
  665.                                 if (learning.level < 1) obj.maxLevel = 1;
  666.                         }
  667.                 }, this);
  668.         }
  669. };

  670. //=============================================================================
  671. // Scene_Manager
  672. //=============================================================================

  673. SceneManager._screenWidth  = Number(Yanfly.Parameters['Screen Width'] || 816);
  674. SceneManager._screenHeight = Number(Yanfly.Parameters['Screen Height'] || 624);
  675. SceneManager._boxWidth     = Number(Yanfly.Parameters['Screen Width'] || 816);
  676. SceneManager._boxHeight    = Number(Yanfly.Parameters['Screen Height'] || 624);

  677. Yanfly.Core.SceneManager_run = SceneManager.run;
  678. SceneManager.run = function(sceneClass) {
  679.     Yanfly.Core.SceneManager_run.call(this, sceneClass);
  680.                 if (Utils.isMobileDevice()) return;
  681.                 if (Utils.isMobileSafari()) return;
  682.                 if (Utils.isAndroidChrome()) return;
  683.                 var resizeWidth = Graphics.boxWidth - window.innerWidth;
  684.                 var resizeHeight = Graphics.boxHeight - window.innerHeight;
  685.     if (eval(Yanfly.Param.OpenConsole)) this.openConsole();
  686.     if (!Imported.ScreenResolution) {
  687.                   window.moveBy(-1 * resizeWidth / 2, -1 * resizeHeight / 2);
  688.       window.resizeBy(resizeWidth, resizeHeight);
  689.     }
  690. };

  691. SceneManager.openConsole = function() {
  692.     if (Utils.isNwjs() && Utils.isOptionValid('test')) {
  693.       var _debugWindow = require('nw.gui').Window.get().showDevTools();
  694.       _debugWindow.moveTo(0, 0);
  695.       window.focus();
  696.     }
  697. };

  698. //=============================================================================
  699. // BattleManager
  700. //=============================================================================

  701. Yanfly.Core.BattleManager_displayStartMessages =
  702.     BattleManager.displayStartMessages;
  703. BattleManager.displayStartMessages = function() {
  704.   Yanfly.Core.BattleManager_displayStartMessages.call(this);
  705.         $gameTroop.members().forEach(function(enemy) {
  706.                         enemy.recoverAll();
  707.         });
  708. };

  709. //=============================================================================
  710. // Sprite_Animation
  711. //=============================================================================

  712. Sprite_Animation.prototype.setupRate = function() {
  713.         this._rate = Yanfly.Param.AnimationRate;
  714. };

  715. //=============================================================================
  716. // Sprite_Battler
  717. //=============================================================================

  718. if (!eval(Yanfly.Param.FlashTarget)) {

  719. Yanfly.Core.Sprite_Battler_updateSelectionEffect =
  720.                 Sprite_Battler.prototype.updateSelectionEffect;
  721. Sprite_Battler.prototype.updateSelectionEffect = function() {
  722.                 if (this._battler.isActor()) {
  723.                         Yanfly.Core.Sprite_Battler_updateSelectionEffect.call(this);
  724.                 } else {
  725.                         if (this._battler.isSelected()) this.startEffect('whiten');
  726.                 }
  727. };

  728. };

  729. //=============================================================================
  730. // Sprite_Actor
  731. //=============================================================================

  732. if (eval(Yanfly.Param.ReposBattlers)) {
  733.         Yanfly.Core.Sprite_Actor_setActorHome = Sprite_Actor.prototype.setActorHome;
  734.         Sprite_Actor.prototype.setActorHome = function(index) {
  735.                         Yanfly.Core.Sprite_Actor_setActorHome.call(this, index);
  736.                         this._homeX += Graphics.boxWidth - 816;
  737.                         this._homeY += Graphics.boxHeight - 624;
  738.         };
  739. };

  740. //=============================================================================
  741. // Sprite_Enemy
  742. //=============================================================================

  743. if (eval(Yanfly.Param.ReposBattlers)) {
  744.         Yanfly.Core.Sprite_Enemy_setBattler = Sprite_Enemy.prototype.setBattler;
  745.         Sprite_Enemy.prototype.setBattler = function(battler) {
  746.                         Yanfly.Core.Sprite_Enemy_setBattler.call(this, battler);
  747.                         this._homeY += Graphics.boxHeight - 624;
  748.                         if ($gameSystem.isSideView()) return;
  749.                         this._homeX += (Graphics.boxWidth - 816) / 2;
  750.         };
  751. };

  752. //=============================================================================
  753. // Sprite_StateIcon
  754. //=============================================================================

  755. Sprite_StateIcon._iconWidth  = Number(Yanfly.Parameters['Icon Width'] || 32);;
  756. Sprite_StateIcon._iconHeight = Number(Yanfly.Parameters['Icon Height'] || 32);;

  757. //=============================================================================
  758. // Game_BattlerBase
  759. //=============================================================================

  760. Game_BattlerBase.prototype.paramMax = function(paramId) {
  761.     if (paramId === 0) {
  762.         return Yanfly.Param.EnemyMaxHp;
  763.     } else if (paramId === 1) {
  764.         return Yanfly.Param.EnemyMaxMp;
  765.     } else {
  766.         return Yanfly.Param.EnemyParam;
  767.     }
  768. };

  769. //=============================================================================
  770. // Game_Actor
  771. //=============================================================================

  772. Yanfly.Core.Game_Actor_isMaxLevel = Game_Actor.prototype.isMaxLevel;
  773. Game_Actor.prototype.isMaxLevel = function() {
  774.                 if (this.maxLevel() == 0) return false;
  775.     return Yanfly.Core.Game_Actor_isMaxLevel.call(this);
  776. };

  777. Game_Actor.prototype.paramMax = function(paramId) {
  778.         if (paramId === 0) {
  779.                         return Yanfly.Param.ActorMaxHp;
  780.         } else if (paramId === 1) {
  781.                         return Yanfly.Param.ActorMaxMp;
  782.         } else {
  783.                         return Yanfly.Param.ActorParam;
  784.         }
  785. };

  786. Yanfly.Core.Game_Actor_paramBase = Game_Actor.prototype.paramBase;
  787. Game_Actor.prototype.paramBase = function(paramId) {
  788.                 if (this.level > 99) {
  789.                         var i = this.currentClass().params[paramId][99];
  790.                         var j = this.currentClass().params[paramId][98];
  791.                         i += (i - j) * (this.level - 99);
  792.                         return i;
  793.                 }
  794.     return Yanfly.Core.Game_Actor_paramBase.call(this, paramId);
  795. };

  796. //=============================================================================
  797. // Game_Party
  798. //=============================================================================

  799. Game_Party.prototype.maxGold = function() {
  800.     return eval(Yanfly.Param.MaxGold);
  801. };

  802. Game_Party.prototype.maxItems = function(item) {
  803.     if (!item) return 1;
  804.     return item.maxItem;
  805. };

  806. //=============================================================================
  807. // Game_Map
  808. //=============================================================================

  809. Game_Map.prototype.displayX = function() {
  810.     return parseFloat(Math.floor(this._displayX *
  811.                         this.tileWidth())) / this.tileWidth();
  812. };

  813. Game_Map.prototype.displayY = function() {
  814.     return parseFloat(Math.floor(this._displayY *
  815.                         this.tileHeight())) / this.tileHeight();
  816. };

  817. Game_Map.prototype.adjustX = function(x) {
  818.     if (this.isLoopHorizontal() && x < this.displayX() -
  819.             (this.width() - this.screenTileX()) / 2) {
  820.         return x - this.displayX() + $dataMap.width;
  821.     } else {
  822.         return x - this.displayX();
  823.     }
  824. };

  825. Game_Map.prototype.adjustY = function(y) {
  826.     if (this.isLoopVertical() && y < this.displayY() -
  827.             (this.height() - this.screenTileY()) / 2) {
  828.         return y - this.displayY() + $dataMap.height;
  829.     } else {
  830.         return y - this.displayY();
  831.     }
  832. };

  833. //=============================================================================
  834. // Game_CharacterBase
  835. //=============================================================================

  836. Game_CharacterBase.prototype.update = function() {
  837.     if (this.isJumping()) {
  838.         this.updateJump();
  839.     } else if (this.isMoving()) {
  840.         this.updateMove();
  841.     }
  842.     if (!this.isMoving()) {
  843.         this.updateStop();
  844.     }
  845.     this.updateAnimation();
  846. };

  847. Yanfly.Core.Game_CharacterBase_updateMove =
  848.                 Game_CharacterBase.prototype.updateMove;
  849. Game_CharacterBase.prototype.updateMove = function() {
  850.     Yanfly.Core.Game_CharacterBase_updateMove.call(this);
  851.     if (!this.isMoving()) this.updateStop();
  852. };

  853. //=============================================================================
  854. // Game_Character
  855. //=============================================================================

  856. Game_Character.prototype.queueMoveRoute = function(moveRoute) {
  857.     this._originalMoveRoute = moveRoute;
  858.     this._originalMoveRouteIndex = 0;
  859. };

  860. Yanfly.Core.Game_Event_setMoveRoute =
  861.     Game_Event.prototype.setMoveRoute;
  862. Game_Character.prototype.setMoveRoute = function(moveRoute) {
  863.     if (!this._moveRouteForcing) {
  864.         Yanfly.Core.Game_Event_setMoveRoute.call(this, moveRoute);
  865.     } else {
  866.         this.queueMoveRoute(moveRoute);
  867.     }
  868. };

  869. //=============================================================================
  870. // Game_Event
  871. //=============================================================================

  872. Game_Event.prototype.isCollidedWithEvents = function(x, y) {
  873.   var events = $gameMap.eventsXyNt(x, y).filter(function(ev) {
  874.                 return ev.isNormalPriority();
  875.         });
  876.         if (events.length <= 0) return false;
  877.         return this.isNormalPriority();
  878. };

  879. //=============================================================================
  880. // Game_Interpreter
  881. //=============================================================================

  882. Yanfly.Core.Game_Interpreter_pluginCommand =
  883.     Game_Interpreter.prototype.pluginCommand;
  884. Game_Interpreter.prototype.pluginCommand = function(command, args) {
  885.     Yanfly.Core.Game_Interpreter_pluginCommand.call(this, command, args);
  886.     if (command === 'GainGold') {
  887.         $gameParty.gainGold(parseInt(args[0]));
  888.     }
  889.     if (command === 'LoseGold') {
  890.         $gameParty.loseGold(parseInt(args[0]));
  891.     }
  892. };

  893. //=============================================================================
  894. // Window_Base
  895. //=============================================================================

  896. Window_Base._iconWidth   = Number(Yanfly.Parameters['Icon Width'] || 32);
  897. Window_Base._iconHeight  = Number(Yanfly.Parameters['Icon Height'] || 32);
  898. Window_Base._faceWidth   = Number(Yanfly.Parameters['Face Width'] || 144);
  899. Window_Base._faceHeight  = Number(Yanfly.Parameters['Face Height'] || 144);

  900. Window_Base.prototype.lineHeight = function() {
  901.         return Yanfly.Param.LineHeight;
  902. };

  903. Window_Base.prototype.textWidthEx = function(text) {
  904.     return this.drawTextEx(text, 0, this.contents.height);
  905. };

  906. Window_Base.prototype.standardFontFace = function() {
  907.     if ($gameSystem.isChinese()) {
  908.                 return Yanfly.Param.ChineseFont;
  909.     } else if ($gameSystem.isKorean()) {
  910.                 return Yanfly.Param.KoreanFont;
  911.     } else {
  912.                 return Yanfly.Param.DefaultFont;
  913.     }
  914. };

  915. Window_Base.prototype.standardFontSize = function() {
  916.     return Yanfly.Param.FontSize;
  917. };

  918. Window_Base.prototype.standardPadding = function() {
  919.     return Yanfly.Param.WindowPadding;
  920. };

  921. Window_Base.prototype.textPadding = function() {
  922.     return Yanfly.Param.TextPadding;
  923. };

  924. Window_Base.prototype.standardBackOpacity = function() {
  925.     return Yanfly.Param.WindowOpacity;
  926. };

  927. Window_Base.prototype.normalColor = function() {
  928.         return this.textColor(Yanfly.Param.ColorNormal);
  929. };
  930. Window_Base.prototype.systemColor = function() {
  931.     return this.textColor(Yanfly.Param.ColorSystem);
  932. };

  933. Window_Base.prototype.crisisColor = function() {
  934.     return this.textColor(Yanfly.Param.ColorCrisis);
  935. };

  936. Window_Base.prototype.deathColor = function() {
  937.     return this.textColor(Yanfly.Param.ColorDeath);
  938. };

  939. Window_Base.prototype.gaugeBackColor = function() {
  940.     return this.textColor(Yanfly.Param.ColorGaugeBack);
  941. };

  942. Window_Base.prototype.hpGaugeColor1 = function() {
  943.     return this.textColor(Yanfly.Param.ColorHpGauge1);
  944. };

  945. Window_Base.prototype.hpGaugeColor2 = function() {
  946.     return this.textColor(Yanfly.Param.ColorHpGauge2);
  947. };

  948. Window_Base.prototype.mpGaugeColor1 = function() {
  949.     return this.textColor(Yanfly.Param.ColorMpGauge1);
  950. };

  951. Window_Base.prototype.mpGaugeColor2 = function() {
  952.     return this.textColor(Yanfly.Param.ColorMpGauge2);
  953. };

  954. Window_Base.prototype.mpCostColor = function() {
  955.     return this.textColor(Yanfly.Param.ColorMpCost);
  956. };

  957. Window_Base.prototype.powerUpColor = function() {
  958.     return this.textColor(Yanfly.Param.ColorPowerUp);
  959. };

  960. Window_Base.prototype.powerDownColor = function() {
  961.     return this.textColor(Yanfly.Param.ColorPowerDown);
  962. };

  963. Window_Base.prototype.tpGaugeColor1 = function() {
  964.     return this.textColor(Yanfly.Param.ColorTpGauge1);
  965. };

  966. Window_Base.prototype.tpGaugeColor2 = function() {
  967.     return this.textColor(Yanfly.Param.ColorTpGauge2);
  968. };

  969. Window_Base.prototype.tpCostColor = function() {
  970.                 return this.textColor(Yanfly.Param.ColorTpCost);
  971. };

  972. Window_Base.prototype.drawGauge = function(dx, dy, dw, rate, color1, color2) {
  973.         var color3 = this.gaugeBackColor();
  974.         var fillW = Math.floor(dw * rate).clamp(0, dw);
  975.         var gaugeH = this.gaugeHeight();
  976.         var gaugeY = dy + this.lineHeight() - gaugeH - 2;
  977.         if (eval(Yanfly.Param.GaugeOutline)) {
  978.                 color3.paintOpacity = this.translucentOpacity();
  979.                 this.contents.fillRect(dx, gaugeY-1, dw+2, gaugeH+2, color3);
  980.                 dx += 1;
  981.         } else {
  982.                 var fillW = Math.floor(dw * rate);
  983.                 var gaugeY = dy + this.lineHeight() - gaugeH - 2;
  984.                 this.contents.fillRect(dx, gaugeY, dw, gaugeH, color3);
  985.         }
  986.     this.contents.gradientFillRect(dx, gaugeY, fillW, gaugeH, color1, color2);
  987. };

  988. Window_Base.prototype.gaugeHeight = function() {
  989.                 return Yanfly.Param.GaugeHeight;
  990. };

  991. Window_Base.prototype.drawActorLevel = function(actor, x, y) {
  992.     this.changeTextColor(this.systemColor());
  993.                 var dw1 = this.textWidth(TextManager.levelA);
  994.                 this.drawText(TextManager.levelA, x, y, dw1);
  995.     this.resetTextColor();
  996.                 var level = Yanfly.Util.toGroup(actor.level);
  997.                 var dw2 = this.textWidth(Yanfly.Util.toGroup(actor.maxLevel()));
  998.     this.drawText(level, x + dw1, y, dw2, 'right');
  999. };

  1000. Window_Base.prototype.drawCurrentAndMax = function(current, max, x, y,
  1001.                                                    width, color1, color2) {
  1002.                 var labelWidth = this.textWidth('HP');
  1003.     var valueWidth = this.textWidth(Yanfly.Util.toGroup(max));
  1004.     var slashWidth = this.textWidth('/');
  1005.     var x1 = x + width - valueWidth;
  1006.     var x2 = x1 - slashWidth;
  1007.     var x3 = x2 - valueWidth;
  1008.     if (x3 >= x + labelWidth) {
  1009.         this.changeTextColor(color1);
  1010.         this.drawText(Yanfly.Util.toGroup(current), x3, y, valueWidth,
  1011.                                         'right');
  1012.         this.changeTextColor(color2);
  1013.         this.drawText('/', x2, y, slashWidth, 'right');
  1014.         this.drawText(Yanfly.Util.toGroup(max), x1, y, valueWidth, 'right');
  1015.     } else {
  1016.         this.changeTextColor(color1);
  1017.         this.drawText(Yanfly.Util.toGroup(current), x1, y, valueWidth,
  1018.                                         'right');
  1019.     }
  1020. };

  1021. Window_Base.prototype.drawActorTp = function(actor, x, y, width) {
  1022.     width = width || 96;
  1023.     var color1 = this.tpGaugeColor1();
  1024.     var color2 = this.tpGaugeColor2();
  1025.     this.drawGauge(x, y, width, actor.tpRate(), color1, color2);
  1026.     this.changeTextColor(this.systemColor());
  1027.     this.drawText(TextManager.tpA, x, y, 44);
  1028.     this.changeTextColor(this.tpColor(actor));
  1029.     this.drawText(Yanfly.Util.toGroup(actor.tp), x + width - 64, y, 64,
  1030.                         'right');
  1031. };

  1032. Window_Base.prototype.drawActorSimpleStatus = function(actor, x, y, width) {
  1033.     var lineHeight = this.lineHeight();
  1034.                 var xpad = Window_Base._faceWidth + (2 * Yanfly.Param.TextPadding);
  1035.     var x2 = x + xpad;
  1036.     var width2 = Math.max(200, width - xpad - this.textPadding());
  1037.     this.drawActorName(actor, x, y);
  1038.     this.drawActorLevel(actor, x, y + lineHeight * 1);
  1039.     this.drawActorIcons(actor, x, y + lineHeight * 2);
  1040.     this.drawActorClass(actor, x2, y, width2);
  1041.     this.drawActorHp(actor, x2, y + lineHeight * 1, width2);
  1042.     this.drawActorMp(actor, x2, y + lineHeight * 2, width2);
  1043.                 if (eval(Yanfly.Param.MenuTpGauge)) {
  1044.                         this.drawActorTp(actor, x2, y + lineHeight * 3, width2);
  1045.                 }
  1046. };

  1047. Window_Base.prototype.drawCurrencyValue = function(value, unit, wx, wy, ww) {
  1048.     this.resetTextColor();
  1049.     this.contents.fontSize = Yanfly.Param.GoldFontSize;
  1050.     if (this.usingGoldIcon(unit)) {
  1051.       var cx = Window_Base._iconWidth;
  1052.     } else {
  1053.       var cx = this.textWidth(unit);
  1054.     }
  1055.     var text = Yanfly.Util.toGroup(value);
  1056.     if (this.textWidth(text) > ww - cx) {
  1057.       text = Yanfly.Param.GoldOverlap;
  1058.     }
  1059.     this.drawText(text, wx, wy, ww - cx - 4, 'right');
  1060.     if (this.usingGoldIcon(unit)) {
  1061.       this.drawIcon(Yanfly.Icon.Gold, wx + ww - Window_Base._iconWidth, wy + 2);
  1062.     } else {
  1063.       this.changeTextColor(this.systemColor());
  1064.       this.drawText(unit, wx, wy, ww, 'right');
  1065.     }
  1066.     this.resetFontSettings();
  1067. };

  1068. Window_Base.prototype.usingGoldIcon = function(unit) {
  1069.     if (unit !== TextManager.currencyUnit) return false;
  1070.     return Yanfly.Icon.Gold > 0;
  1071. };

  1072. Window_Base.prototype.drawItemName = function(item, x, y, width) {
  1073.     width = width || 312;
  1074.     if (item) {
  1075.         var iconBoxWidth = this.lineHeight();
  1076.                                 var padding = (iconBoxWidth - Window_Base._iconWidth) / 2;
  1077.         this.resetTextColor();
  1078.         this.drawIcon(item.iconIndex, x + padding, y + padding);
  1079.         this.drawText(item.name, x + iconBoxWidth, y, width - iconBoxWidth);
  1080.     }
  1081. };

  1082. //=============================================================================
  1083. // Window_Command
  1084. //=============================================================================

  1085. Window_Command.prototype.itemTextAlign = function() {
  1086.     return Yanfly.Param.TextAlign;
  1087. };

  1088. //=============================================================================
  1089. // Window_MenuStatus
  1090. //=============================================================================

  1091. Window_MenuStatus.prototype.drawItemStatus = function(index) {
  1092.     var actor = $gameParty.members()[index];
  1093.     var rect = this.itemRect(index);
  1094.                 var xpad = Yanfly.Param.WindowPadding + Window_Base._faceWidth;
  1095.     var x = rect.x + xpad;
  1096.                 if (!eval(Yanfly.Param.MenuTpGauge)) {
  1097.                         var y = rect.y + rect.height / 2 - this.lineHeight() * 1.5;
  1098.                 } else {
  1099.                         var y = rect.y;
  1100.                 }
  1101.     var width = rect.width - x - this.textPadding();
  1102.     this.drawActorSimpleStatus(actor, x, y, width);
  1103. };

  1104. //=============================================================================
  1105. // Window_ItemList
  1106. //=============================================================================

  1107. Window_ItemList.prototype.numberWidth = function() {
  1108.     return this.textWidth('\u00d70,000');
  1109. };

  1110. Window_ItemList.prototype.drawItemNumber = function(item, x, y, width) {
  1111.     if (!this.needsNumber()) return;
  1112.                 var numItems = Yanfly.Util.toGroup($gameParty.numItems(item));
  1113.     this.contents.fontSize = Yanfly.Param.ItemQuantitySize;
  1114.     this.drawText('\u00d7' + numItems, x, y, width, 'right');
  1115.     this.resetFontSettings();
  1116. };

  1117. //=============================================================================
  1118. // Window_SkillStatus
  1119. //=============================================================================

  1120. Window_SkillStatus.prototype.refresh = function() {
  1121.     this.contents.clear();
  1122.     if (this._actor) {
  1123.         var w = this.width - this.padding * 2;
  1124.         var h = this.height - this.padding * 2;
  1125.                                 if (!eval(Yanfly.Param.MenuTpGauge)) {
  1126.                                         var y = rect.height / 2 - this.lineHeight() * 1.5;
  1127.                                 } else {
  1128.                                         var y = 0;
  1129.                                 }
  1130.                                 var xpad = Yanfly.Param.WindowPadding + Window_Base._faceWidth;
  1131.         var width = w - xpad - this.textPadding();
  1132.         this.drawActorFace(this._actor, 0, 0, Window_Base._faceWidth, h);
  1133.         this.drawActorSimpleStatus(this._actor, xpad, y, width);
  1134.     }
  1135. };

  1136. Window_SkillList.prototype.drawSkillCost = function(skill, x, y, width) {
  1137.     if (this._actor.skillTpCost(skill) > 0) {
  1138.         this.changeTextColor(this.tpCostColor());
  1139.                                 var skillcost = Yanfly.Util.toGroup(this._actor.skillTpCost(skill));
  1140.         this.drawText(skillcost, x, y, width, 'right');
  1141.     } else if (this._actor.skillMpCost(skill) > 0) {
  1142.         this.changeTextColor(this.mpCostColor());
  1143.                                 var skillcost = Yanfly.Util.toGroup(this._actor.skillMpCost(skill));
  1144.         this.drawText(skillcost, x, y, width, 'right');
  1145.     }
  1146. };

  1147. //=============================================================================
  1148. // Window_EquipStatus
  1149. //=============================================================================

  1150. Window_EquipStatus.prototype.drawCurrentParam = function(x, y, paramId) {
  1151.     this.resetTextColor();
  1152.                 var actorparam = Yanfly.Util.toGroup(this._actor.param(paramId));
  1153.     this.drawText(actorparam, x, y, 48, 'right');
  1154. };

  1155. Window_EquipStatus.prototype.drawNewParam = function(x, y, paramId) {
  1156.     var newValue = this._tempActor.param(paramId);
  1157.     var diffvalue = newValue - this._actor.param(paramId);
  1158.                 var actorparam = Yanfly.Util.toGroup(newValue);
  1159.     this.changeTextColor(this.paramchangeTextColor(diffvalue));
  1160.     this.drawText(actorparam, x, y, 48, 'right');
  1161. };

  1162. //=============================================================================
  1163. // Window_SkillType
  1164. //=============================================================================

  1165. Window_SkillType.prototype.makeCommandList = function() {
  1166.     if (this._actor) {
  1167.         var skillTypes = this._actor.addedSkillTypes();
  1168.         skillTypes.sort(function(a, b){return a-b});
  1169.         skillTypes.forEach(function(stypeId) {
  1170.             var name = $dataSystem.skillTypes[stypeId];
  1171.             this.addCommand(name, 'skill', true, stypeId);
  1172.         }, this);
  1173.     }
  1174. };

  1175. //=============================================================================
  1176. // Window_ActorCommand
  1177. //=============================================================================

  1178. Window_ActorCommand.prototype.addSkillCommands = function() {
  1179.     var skillTypes = this._actor.addedSkillTypes();
  1180.     skillTypes.sort(function(a, b){return a-b});
  1181.     skillTypes.forEach(function(stypeId) {
  1182.         var name = $dataSystem.skillTypes[stypeId];
  1183.         this.addCommand(name, 'skill', true, stypeId);
  1184.     }, this);
  1185. };

  1186. //=============================================================================
  1187. // Window_Status
  1188. //=============================================================================

  1189. Window_Status.prototype.drawParameters = function(x, y) {
  1190.     var lineHeight = this.lineHeight();
  1191.     for (var i = 0; i < 6; i++) {
  1192.       var paramId = i + 2;
  1193.       var y2 = y + lineHeight * i;
  1194.       this.changeTextColor(this.systemColor());
  1195.       this.drawText(TextManager.param(paramId), x, y2, 160);
  1196.       this.resetTextColor();
  1197.                         var actorParam = Yanfly.Util.toGroup(this._actor.param(paramId));
  1198.                         var dw = this.textWidth(Yanfly.Util.toGroup(this._actor.paramMax(i + 2)));
  1199.       this.drawText(actorParam, x + 160, y2, dw, 'right');
  1200.     }
  1201. };

  1202. Window_Status.prototype.drawExpInfo = function(x, y) {
  1203.     var lineHeight = this.lineHeight();
  1204.     var expTotal = TextManager.expTotal.format(TextManager.exp);
  1205.     var expNext = TextManager.expNext.format(TextManager.level);
  1206.     var value1 = this._actor.currentExp();
  1207.     var value2 = this._actor.nextRequiredExp();
  1208.     if (this._actor.isMaxLevel()) {
  1209.         value1 = '-------';
  1210.         value2 = '-------';
  1211.     } else {
  1212.                         value1 = Yanfly.Util.toGroup(value1);
  1213.                         value2 = Yanfly.Util.toGroup(value2);
  1214.                 }
  1215.     this.changeTextColor(this.systemColor());
  1216.     this.drawText(expTotal, x, y + lineHeight * 0, 270);
  1217.     this.drawText(expNext, x, y + lineHeight * 2, 270);
  1218.     this.resetTextColor();
  1219.     this.drawText(value1, x, y + lineHeight * 1, 270, 'right');
  1220.     this.drawText(value2, x, y + lineHeight * 3, 270, 'right');
  1221. };

  1222. //=============================================================================
  1223. // Window_ShopBuy
  1224. //=============================================================================

  1225. Window_ShopBuy.prototype.drawItem = function(index) {
  1226.     var item = this._data[index];
  1227.     var rect = this.itemRect(index);
  1228.     rect.width -= this.textPadding();
  1229.     this.changePaintOpacity(this.isEnabled(item));
  1230.     this.drawItemName(item, rect.x, rect.y, rect.width);
  1231.     this.contents.fontSize = Yanfly.Param.GoldFontSize;
  1232.                 var itemPrice = Yanfly.Util.toGroup(this.price(item));
  1233.     this.drawText(itemPrice, rect.x, rect.y, rect.width, 'right');
  1234.     this.changePaintOpacity(true);
  1235.     this.resetFontSettings();
  1236. };

  1237. //=============================================================================
  1238. // Window_ShopNumber
  1239. //=============================================================================

  1240. Window_ShopNumber.prototype.drawNumber = function() {
  1241.     var x = this.cursorX();
  1242.     var y = this.itemY();
  1243.     var width = this.cursorWidth() - this.textPadding();
  1244.     this.resetTextColor();
  1245.                 var itemNumber = Yanfly.Util.toGroup(this._number);
  1246.     this.drawText(itemNumber, x, y, width, 'right');
  1247. };

  1248. //=============================================================================
  1249. // Window_BattleStatus
  1250. //=============================================================================

  1251. Window_BattleStatus.prototype.gaugeAreaWidth = function() {
  1252.     return this.width / 2 + this.standardPadding();
  1253. };

  1254. Window_BattleStatus.prototype.drawBasicArea = function(rect, actor) {
  1255.     var minIconArea = Window_Base._iconWidth * 2;
  1256.                 var nameLength = this.textWidth('0') * 16 + 6;
  1257.                 var iconWidth = Math.max(rect.width - nameLength, minIconArea);
  1258.                 var nameWidth = rect.width - iconWidth;
  1259.                 this.drawActorName(actor, rect.x + 0, rect.y, nameWidth);
  1260.     this.drawActorIcons(actor, rect.x + nameWidth, rect.y, iconWidth);
  1261. };

  1262. Window_BattleStatus.prototype.drawGaugeAreaWithTp = function(rect, actor) {
  1263.     var totalArea = this.gaugeAreaWidth() - 30;
  1264.                 var hpW = parseInt(totalArea * 108 / 300);
  1265.                 var otW = parseInt(totalArea * 96 / 300);
  1266.                 this.drawActorHp(actor, rect.x + 0, rect.y, hpW);
  1267.     this.drawActorMp(actor, rect.x + hpW + 15, rect.y, otW);
  1268.     this.drawActorTp(actor, rect.x + hpW + otW + 30, rect.y, otW);
  1269. };

  1270. Window_BattleStatus.prototype.drawGaugeAreaWithoutTp = function(rect, actor) {
  1271.                 var totalArea = this.gaugeAreaWidth() - 15;
  1272.                 var hpW = parseInt(totalArea * 201 / 315);
  1273.                 var otW = parseInt(totalArea * 114 / 315);
  1274.                 this.drawActorHp(actor, rect.x + 0, rect.y, hpW);
  1275.     this.drawActorMp(actor, rect.x + hpW + 15,  rect.y, otW);
  1276. };

  1277. //=============================================================================
  1278. // Window_BattleLog
  1279. //=============================================================================

  1280. Window_BattleLog.prototype.showNormalAnimation = function(targets,
  1281. animationId, mirror) {
  1282.     var animation = $dataAnimations[animationId];
  1283.     if (animation) {
  1284.                         if (animation.position === 3) {
  1285.                                 targets.forEach(function(target) {
  1286.                                                 target.startAnimation(animationId, mirror, 0);
  1287.                                 });
  1288.                         } else {
  1289.                                         var delay = this.animationBaseDelay();
  1290.                 var nextDelay = this.animationNextDelay();
  1291.                 targets.forEach(function(target) {
  1292.                     target.startAnimation(animationId, mirror, delay);
  1293.                     delay += nextDelay;
  1294.                 });
  1295.                         }
  1296.     }
  1297. };

  1298. //=============================================================================
  1299. // New Function
  1300. //=============================================================================

  1301. Yanfly.Util = Yanfly.Util || {};

  1302. Yanfly.Util.toGroup = function(inVal) {
  1303.         if (typeof inVal !== 'string') { inVal = String(inVal); }
  1304.         if (!eval(Yanfly.Param.DigitGroup)) return inVal;
  1305.         return inVal.replace(/(^|[^\w.])(\d{4,})/g, function($0, $1, $2) {
  1306.                 return $1 + $2.replace(/\d(?=(?:\d\d\d)+(?!\d))/g, "$&,");
  1307.         });
  1308.         return returnNum;
  1309. };

  1310. //=============================================================================
  1311. // End of File
  1312. //=============================================================================
复制代码


叙述:这是强大的Yanfly Engine 核心脚本,此脚本还包含了自动检测系统固有的BUG
脚本使用手册
——Screen——
Screen Width        #调整游戏画面的宽度,预设为 816px
Screen Height       #调整游戏画面的高度,预设为 624px
Open Console       #是否打开 Debug 窗口 (true/false),预设为 false
Reposition Battler #是否根据画面宽度和高度调整战斗人物位置(true/false),预设为 true
——Gold——
Gold Max              #游戏中最大的金钱数值
Gold Font Size
Gold Icon
Gold Overlap


回复

使用道具 举报

梦石
0
星屑
84
在线时间
130 小时
注册时间
2014-9-1
回帖
69
 楼主| 发表于 2015-10-25 11:01:08 | 显示全部楼层
本帖最后由 creeper0924 于 2015-10-25 11:12 编辑

Kadokawa Plugins
halo大家好,欢迎支持我的部落格
http://dedarknightstudio.blogspot.com
回复

使用道具 举报

梦石
0
星屑
84
在线时间
130 小时
注册时间
2014-9-1
回帖
69
 楼主| 发表于 2015-10-25 11:01:39 | 显示全部楼层
Yami

Shaz
回复

使用道具 举报

梦石
0
星屑
84
在线时间
130 小时
注册时间
2014-9-1
回帖
69
 楼主| 发表于 2015-10-25 11:02:04 | 显示全部楼层
Archeia
Galenmereth
Neonblack
Zalerinian
Zeriab
halo大家好,欢迎支持我的部落格
http://dedarknightstudio.blogspot.com
回复

使用道具 举报

梦石
0
星屑
84
在线时间
130 小时
注册时间
2014-9-1
回帖
69
 楼主| 发表于 2015-10-25 11:02:45 | 显示全部楼层
保留樓層
回复

使用道具 举报

梦石
0
星屑
48
在线时间
784 小时
注册时间
2013-1-4
回帖
1057
发表于 2015-10-25 12:25:29 | 显示全部楼层
首先 你现在的行为是连贴。虽然这个板块暂时没版主和版规。
如果要进行此类活动,应首先向版主申请【没有版主,大概是向分区版主申请?
虽然诚心一片,不过我建议还是最好按着制度来。毕竟无规矩不成方圆。

点评

这么说各大图书馆馆主表示愤(;¬_¬)  发表于 2015-10-25 12:29
RM-GUI延期。。。最近被黑心老板压迫T_T
二次元少女的shitake,长着长脸,身高165,蓝色卷双马尾,FCUP,瞳色黑色,病气和御宅属性,是天才少女。
回复

使用道具 举报

梦石
1
星屑
7574
在线时间
2650 小时
注册时间
2013-8-23
回帖
2152

开拓者

发表于 2015-10-26 03:35:17 | 显示全部楼层
楼主最好把每个脚本的功能都描述一下。
如果不清楚可以看看宣传视频,在水区可以找到。
光发个脚本出来,大部分人都不知道是什么吧

点评

好的谢谢你的建议。  发表于 2015-10-26 19:21
回复

使用道具 举报

老鹰

梦石
40
星屑
38044
在线时间
7127 小时
注册时间
2012-5-26
回帖
3306

极短24评委极短23参与极短22参与极短21评委老司机慢点开短篇十吟唱者组别冠军开拓者剧作品鉴家

发表于 2015-10-26 11:01:25 | 显示全部楼层
你至少翻译一下吧!
就这样我还不如直接开工程翻目录下的js文件,用我自己的编辑器开开来,更方便还(对比上)更好看

点评

我是指翻译脚本备注…不是指翻译调用指令…  发表于 2015-10-26 23:59
呃。。在 (正版)RMMV 里不支持任何的中文输入,所以不是我不想翻译,而是我无法测试翻译结果。对不起。  发表于 2015-10-26 19:57
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部