Advertisement
Dekita

info core 1.0

Nov 9th, 2012
5,277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 75.03 KB | None | 0 0
  1. =begin =========================================================================
  2. Dekita's v1.0
  3. ★ Perfect Series info CORE™ ★
  4.  
  5. ================================================================================
  6. Script Information:
  7. ====================
  8. This is quite simply a script to hold all the methods for drawing information
  9. This script doesnt alias or overwrite any default methods.
  10. You should place this above all other Dekita scripts.
  11. You can set the customisation options however you want, but i highly reccomend
  12. you do NOT change anything below the customisation, as it is very likley to
  13. change, and you would have to redo your modifications ^_^
  14.  
  15. ================================================================================
  16. ★☆★☆★☆★☆★☆★☆★☆★ TERMS AND CONDITIONS: ☆★☆★☆★☆★☆★☆★☆★☆★☆
  17. ================================================================================
  18. 1. You must give credit to "Dekita"
  19. 2. You are NOT allowed to repost this script.(or modified versions)
  20. 3. You are NOT allowed to convert this script.(into other game engines e.g RGSS2)
  21. 4. You are NOT allowed to use this script for Commercial games.
  22. 5. ENJOY!
  23.  
  24. "FINE PRINT"
  25. By using this script you hereby agree to the above terms and conditions,
  26. if any violation of the above terms occurs "legal action" may be taken.
  27. Not understanding the above terms and conditions does NOT mean that
  28. they do not apply to you.
  29. If you wish to discuss the terms and conditions in further detail you can
  30. contact me at http://dekitarpg.wordpress.com/ or DekitaRPG@gmail.com
  31.  
  32. ================================================================================
  33. History:
  34. =========
  35. D /M /Y
  36. 11/10/2o12 - Started Script,
  37.  
  38. ================================================================================
  39. Credit and Thanks to :
  40. =======================
  41. Tsukihime - for a better method to check items features.
  42.  
  43. ================================================================================
  44. Known Bugs:
  45. ============
  46. N/A
  47.  
  48. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  49. If a new bug is found please contact me at
  50. http://dekitarpg.wordpress.com/
  51.  
  52. ================================================================================
  53. INSTRUCTIONS:
  54. ==============
  55. Place this script UNDER "▼ Materials" and ABOVE "▼ Main" in your script editor.
  56. Place this script above all other Dekita scripts.
  57.  
  58. =end #==========================================================================
  59. module Dekita__CORE
  60. #######################
  61. # Customisation Begin #
  62. #######################
  63.  
  64. N_A_Vocab = "N/A"
  65.  
  66. # Draw Gauges ?
  67. Draw_Param_Gauges = true
  68. Draw_x_Param_Gauges = true
  69. Draw_s_Param_Gauges = true
  70. Draw_Element_Gauges = true
  71. Draw_Status_Gauges = true
  72.  
  73. # Draw Icons ?
  74. Draw_Param_Icons = true
  75. Draw_x_Param_Icons = true
  76. Draw_s_Param_Icons = true
  77. Draw_Element_Icons = true
  78. Draw_Status_Icons = true
  79.  
  80. # // General Info
  81.  
  82. # Name Settings
  83. Name_Vocab = "Name"
  84. Name_Icon = 7122
  85. Draw_Name_Icon = true
  86.  
  87. Nickname_Vocab = "Nickname"
  88. Nickname_Icon = 1750
  89. Draw_Nickname_Icon = true
  90.  
  91. Class_Vocab = "Class"
  92. Class_Icon = 9004
  93. Draw_Class_Icon = true
  94.  
  95. Level_Vocab = "Level"
  96. Level_Icon = 4
  97. Draw_Level_Icon = true
  98.  
  99. Exp_Total_Icon = 5
  100. Draw_Exp_Total_Icon = true
  101.  
  102. Exp_To_Next_Icon = 6
  103. Draw_Exp_To_Next_Icon = true
  104.  
  105.  
  106. Empty_Gauge_Color = Color.new(0, 0, 0, 125)
  107.  
  108. Background_Color = Color.new(0, 0, 0, 75)
  109.  
  110. # Gauge Height
  111. Gauge_Height = 4
  112.  
  113. # Draw Icons ?
  114. Draw_Icons = true
  115.  
  116. # Dull Icons ?
  117. Dull_Icons = false
  118.  
  119. # This string is shown in between "min" & "max" values
  120. Seperator = " - "
  121.  
  122. # This one is only shown for current / max Values
  123. Seperator2 = " / "
  124.  
  125. # This is the variance for atk, def, mat, mdf, agi & luk
  126. # if this is 0.10 it will show a 20% variance between
  127. # the stat. (your real param is the average)
  128. Variance = 0.10
  129.  
  130. Info_Font_Size = 16
  131.  
  132. ##########
  133. # Params #
  134. ##########
  135.  
  136. # MaxHP Settings
  137. MHP_Vocab = "Health"
  138. MHP_Icon = 9181
  139. MHP_Color_1 = Color.new(0, 50, 0, 100)
  140. MHP_Color_2 = Color.new(0, 255, 0, 150)
  141.  
  142. # MaxMP Settings
  143. MMP_Vocab = "Will"
  144. MMP_Icon = 9023
  145. MMP_Color_1 = Color.new(0, 0, 50)
  146. MMP_Color_2 = Color.new(0, 0, 255)
  147.  
  148. # TP Settings
  149. TP_Vocab = "Rage"
  150. TP_Icon = 9487#741
  151. TP_Color_1 = Color.new(50, 0, 0)
  152. TP_Color_2 = Color.new(255, 0, 0)
  153. Draw_TP_Gauge = true
  154. Draw_TP_Icon = true
  155.  
  156. # Attack Settings
  157. ATK_Vocab = "Attack"
  158. ATK_Icon = 8811
  159. ATK_Color_1 = Color.new(30, 15, 0)
  160. ATK_Color_2 = Color.new(255, 100, 0)
  161.  
  162. # Defence Settings
  163. DEF_Vocab = "Defence"
  164. DEF_Icon = 9886
  165. DEF_Color_1 = Color.new(15, 10, 0)
  166. DEF_Color_2 = Color.new(165, 105, 0)
  167.  
  168. # Magic Attack Settings
  169. MAT_Vocab = "Mag Atk"
  170. MAT_Icon = 9085
  171. MAT_Color_1 = Color.new(0, 30, 30)
  172. MAT_Color_2 = Color.new(0, 150, 255)
  173.  
  174. # Magic Defence Settings
  175. MDF_Vocab = "Mag Def"
  176. MDF_Icon = 9397
  177. MDF_Color_1 = Color.new(15, 15, 30)
  178. MDF_Color_2 = Color.new(220, 130, 200)
  179.  
  180. # Agility Settings
  181. AGI_Vocab = "Agility"
  182. AGI_Icon = 9169
  183. AGI_Color_1 = Color.new( 15, 40, 10)
  184. AGI_Color_2 = Color.new(120, 200, 120)
  185.  
  186. # Luck Settings
  187. LUK_Vocab = "Luck"
  188. LUK_Icon = 9861
  189. LUK_Color_1 = Color.new(50, 50, 0)
  190. LUK_Color_2 = Color.new(255, 255, 0)
  191.  
  192.  
  193. ############
  194. # x-Params #
  195. ############
  196.  
  197. # Hit / Accuracy Rate
  198. HIT_Vocab = "Accuracy"
  199. HIT_Icon = 9927
  200. HIT_Color_1 = Color.new(55, 40, 10)
  201. HIT_Color_2 = Color.new(255, 250, 200)
  202.  
  203. # Evasion Rate
  204. EVA_Vocab = "Evasion"
  205. EVA_Icon = 9757
  206. EVA_Color_1 = Color.new(0, 40, 10)
  207. EVA_Color_2 = Color.new(0, 250, 200)
  208.  
  209. # Critical Hit Rate
  210. CRI_Vocab = "Critical"
  211. CRI_Icon = 9454
  212. CRI_Color_1 = Color.new(55, 0, 0)
  213. CRI_Color_2 = Color.new(255, 80, 40)
  214.  
  215. # Critical Evasion Rate
  216. CEV_Vocab = "Crit Eva"
  217. CEV_Icon = 9024
  218. CEV_Color_1 = Color.new(0, 0, 55)
  219. CEV_Color_2 = Color.new(40, 80, 255)
  220.  
  221. # Magical Evasion Rate
  222. MEV_Vocab = "Mag Eva"
  223. MEV_Icon = 9672
  224. MEV_Color_1 = Color.new(55, 0, 10)
  225. MEV_Color_2 = Color.new(255, 50, 200)
  226.  
  227. # Magic Reflection Rate
  228. MRF_Vocab = "Mag Reflect"
  229. MRF_Icon = 9773
  230. MRF_Color_1 = Color.new(0, 0, 50)
  231. MRF_Color_2 = Color.new(0, 150, 255)
  232.  
  233. # Counter Rate
  234. CNT_Vocab = "Counter"
  235. CNT_Icon = 9587
  236. CNT_Color_1 = Color.new(0, 0, 0)
  237. CNT_Color_2 = Color.new(200, 0, 50)
  238.  
  239. # HP Regeneration Rate
  240. HRG_Vocab = "HP Regen Rate"
  241. HRG_Icon = 8919
  242. HRG_Color_1 = Color.new(0, 20, 0)
  243. HRG_Color_2 = Color.new(0, 160, 0)
  244.  
  245. # MP Regeneration Rate
  246. MRG_Vocab = "MP Regen Rate"
  247. MRG_Icon = 9138
  248. MRG_Color_1 = Color.new(0, 0, 20)
  249. MRG_Color_2 = Color.new(0, 0, 160)
  250.  
  251. # TP Regeneration Rate
  252. TRG_Vocab = "TP Regen Rate"
  253. TRG_Icon = 9519
  254. TRG_Color_1 = Color.new(20, 0, 0)
  255. TRG_Color_2 = Color.new(160, 0, 0)
  256.  
  257.  
  258. ############
  259. # s-Params #
  260. ############
  261.  
  262. # Target Rate (Aggro)
  263. TGR_Vocab = "Aggro Rate"
  264. TGR_Icon = 9574
  265. TGR_Color_1 = Color.new(50, 0, 5)
  266. TGR_Color_2 = Color.new(255, 0, 50)
  267.  
  268. # Guard Rate
  269. GRD_Vocab = "Guard Rate"
  270. GRD_Icon = 10024
  271. GRD_Color_1 = Color.new(10, 10, 10)
  272. GRD_Color_2 = Color.new(125, 125, 125)
  273.  
  274. # Recovery Rate
  275. REC_Vocab = "Recovery"
  276. REC_Icon = 8698
  277. REC_Color_1 = Color.new(15, 15, 15)
  278. REC_Color_2 = Color.new(255, 255, 255)
  279.  
  280. # Pharmacology Rate
  281. PHA_Vocab = "Pharmacology"
  282. PHA_Icon = 8691
  283. PHA_Color_1 = Color.new(10, 10, 10)
  284. PHA_Color_2 = Color.new(125, 125, 200)
  285.  
  286. # MP Cost Rate
  287. MCR_Vocab = "MP Cost Rate"
  288. MCR_Icon = 9109
  289. MCR_Color_1 = Color.new(0, 0, 40)
  290. MCR_Color_2 = Color.new(5, 0, 200)
  291.  
  292. # TP Charge Rate
  293. TCR_Vocab = "TP Charge Rate"
  294. TCR_Icon = 9499
  295. TCR_Color_1 = Color.new(40, 0, 10)
  296. TCR_Color_2 = Color.new(255, 0, 40)
  297.  
  298. # Physical Defence Rate
  299. PDR_Vocab = "Phys Def Rate"
  300. PDR_Icon = 9871
  301. PDR_Color_1 = Color.new(45, 22, 0)
  302. PDR_Color_2 = Color.new(140, 110, 0)
  303.  
  304. # Magical Defence Rate
  305. MDR_Vocab = "Mag Def Rate"
  306. MDR_Icon = 9620
  307. MDR_Color_1 = Color.new(30, 0, 20)
  308. MDR_Color_2 = Color.new(255, 0, 200)
  309.  
  310. # Floor Damage Rate
  311. FDR_Vocab = "Floor Dmg Rate"
  312. FDR_Icon = 9708
  313. FDR_Color_1 = Color.new(20, 0, 20)
  314. FDR_Color_2 = Color.new(160, 0, 60)
  315.  
  316. # Experience Rate
  317. EXR_Vocab = "Exp Rate"
  318. EXR_Icon = 9272
  319. EXR_Color_1 = Color.new(0, 20, 0)
  320. EXR_Color_2 = Color.new(0, 200, 0)
  321.  
  322.  
  323. ####################
  324. # Element Settings #
  325. ####################
  326.  
  327. # Element slot 1 info
  328. Element_Slot_1_id = 3
  329. Element_Slot_1_Icon = 96
  330. Element_Slot_1_Color_1 = Color.new(50, 0, 0)
  331. Element_Slot_1_Color_2 = Color.new(255, 250, 200)
  332.  
  333. Attack_Element_Slot_1_Color_1 = Color.new(255, 250, 200)
  334. Attack_Element_Slot_1_Color_2 = Color.new(50, 0, 0)
  335.  
  336. # Element slot 2 info
  337. Element_Slot_2_id = 4
  338. Element_Slot_2_Icon = 97
  339. Element_Slot_2_Color_1 = Color.new(0, 0, 50)
  340. Element_Slot_2_Color_2 = Color.new(200, 250, 255)
  341.  
  342. Attack_Element_Slot_2_Color_1 = Color.new(200, 250, 255)
  343. Attack_Element_Slot_2_Color_2 = Color.new(0, 0, 50)
  344.  
  345. # Element slot 3 info
  346. Element_Slot_3_id = 5
  347. Element_Slot_3_Icon = 98
  348. Element_Slot_3_Color_1 = Color.new(55, 55, 0)
  349. Element_Slot_3_Color_2 = Color.new(255, 255, 200)
  350.  
  351. Attack_Element_Slot_3_Color_1 = Color.new(255, 255, 200)
  352. Attack_Element_Slot_3_Color_2 = Color.new(55, 55, 0)
  353.  
  354. # Element slot 4 info
  355. Element_Slot_4_id = 6
  356. Element_Slot_4_Icon = 99
  357. Element_Slot_4_Color_1 = Color.new(0, 0, 100)
  358. Element_Slot_4_Color_2 = Color.new(150, 150, 200)
  359.  
  360. Attack_Element_Slot_4_Color_1 = Color.new(150, 150, 200)
  361. Attack_Element_Slot_4_Color_2 = Color.new(0, 0, 100)
  362.  
  363. # Element slot 5 info
  364. Element_Slot_5_id = 7
  365. Element_Slot_5_Icon = 100
  366. Element_Slot_5_Color_1 = Color.new(80, 20, 0)
  367. Element_Slot_5_Color_2 = Color.new(140, 110, 100)
  368.  
  369. Attack_Element_Slot_5_Color_1 = Color.new(140, 110, 100)
  370. Attack_Element_Slot_5_Color_2 = Color.new(80, 20, 0)
  371.  
  372. # Element slot 6 info
  373. Element_Slot_6_id = 8
  374. Element_Slot_6_Icon = 101
  375. Element_Slot_6_Color_1 = Color.new(0, 100, 0)
  376. Element_Slot_6_Color_2 = Color.new(200, 250, 200)
  377.  
  378. Attack_Element_Slot_6_Color_1 = Color.new(200, 250, 200)
  379. Attack_Element_Slot_6_Color_2 = Color.new(0, 100, 0)
  380.  
  381. # Element slot 7 info
  382. Element_Slot_7_id = 9
  383. Element_Slot_7_Icon = 102
  384. Element_Slot_7_Color_1 = Color.new(55, 55, 55, 100)
  385. Element_Slot_7_Color_2 = Color.new(255, 255, 255)
  386.  
  387. Attack_Element_Slot_7_Color_1 = Color.new(255, 255, 255)
  388. Attack_Element_Slot_7_Color_2 = Color.new(55, 55, 55, 100)
  389.  
  390. # Element slot 8 info
  391. Element_Slot_8_id = 10
  392. Element_Slot_8_Icon = 103
  393. Element_Slot_8_Color_1 = Color.new(0, 0, 0)
  394. Element_Slot_8_Color_2 = Color.new(111, 111, 111)
  395.  
  396. Attack_Element_Slot_8_Color_1 = Color.new(111, 111, 111)
  397. Attack_Element_Slot_8_Color_2 = Color.new(10, 10, 10)
  398.  
  399. # Element slot 9 info
  400. Element_Slot_9_id = 2
  401. Element_Slot_9_Icon = 104
  402. Element_Slot_9_Color_1 = Color.new(0, 0, 255, 100)
  403. Element_Slot_9_Color_2 = Color.new(255, 0, 0, 100)
  404.  
  405. Attack_Element_Slot_9_Color_1 = Color.new(255, 0, 0, 100)
  406. Attack_Element_Slot_9_Color_2 = Color.new(0, 0, 255, 100)
  407.  
  408.  
  409. ###################
  410. # Status Settings #
  411. ###################
  412.  
  413. # Status slot 1 info
  414. Status_Slot_1_id = 2
  415. Status_Slot_1_Color_1 = Color.new(55, 20, 0)
  416. Status_Slot_1_Color_2 = Color.new(255, 125, 0)
  417.  
  418. Attack_Status_Slot_1_Color_1 = Color.new(50, 0, 0)
  419. Attack_Status_Slot_1_Color_2 = Color.new(255, 250, 200)
  420.  
  421. # Status slot 2 info
  422. Status_Slot_2_id = 3
  423. Status_Slot_2_Color_1 = Color.new(55, 20, 0)
  424. Status_Slot_2_Color_2 = Color.new(255, 125, 0)
  425.  
  426. Attack_Status_Slot_2_Color_1 = Color.new(50, 0, 0)
  427. Attack_Status_Slot_2_Color_2 = Color.new(255, 250, 200)
  428.  
  429. # Status slot 3 info
  430. Status_Slot_3_id = 4
  431. Status_Slot_3_Color_1 = Color.new(55, 20, 0)
  432. Status_Slot_3_Color_2 = Color.new(255, 125, 0)
  433.  
  434. Attack_Status_Slot_3_Color_1 = Color.new(50, 0, 0)
  435. Attack_Status_Slot_3_Color_2 = Color.new(255, 250, 200)
  436.  
  437. # Status slot 4 info
  438. Status_Slot_4_id = 5
  439. Status_Slot_4_Color_1 = Color.new(55, 20, 0)
  440. Status_Slot_4_Color_2 = Color.new(255, 125, 0)
  441.  
  442. Attack_Status_Slot_4_Color_1 = Color.new(50, 0, 0)
  443. Attack_Status_Slot_4_Color_2 = Color.new(255, 250, 200)
  444.  
  445. # Status slot 5 info
  446. Status_Slot_5_id = 6
  447. Status_Slot_5_Color_1 = Color.new(55, 20, 0)
  448. Status_Slot_5_Color_2 = Color.new(255, 125, 0)
  449.  
  450. Attack_Status_Slot_5_Color_1 = Color.new(50, 0, 0)
  451. Attack_Status_Slot_5_Color_2 = Color.new(255, 250, 200)
  452.  
  453. # Status slot 6 info
  454. Status_Slot_6_id = 7
  455. Status_Slot_6_Color_1 = Color.new(55, 20, 0)
  456. Status_Slot_6_Color_2 = Color.new(255, 125, 0)
  457.  
  458. Attack_Status_Slot_6_Color_1 = Color.new(50, 0, 0)
  459. Attack_Status_Slot_6_Color_2 = Color.new(255, 250, 200)
  460.  
  461. # Status slot 7 info
  462. Status_Slot_7_id = 8
  463. Status_Slot_7_Color_1 = Color.new(55, 20, 0)
  464. Status_Slot_7_Color_2 = Color.new(255, 125, 0)
  465.  
  466. Attack_Status_Slot_7_Color_1 = Color.new(50, 0, 0)
  467. Attack_Status_Slot_7_Color_2 = Color.new(255, 250, 200)
  468.  
  469. # Status slot 8 info
  470. Status_Slot_8_id = 9
  471. Status_Slot_8_Color_1 = Color.new(55, 20, 0)
  472. Status_Slot_8_Color_2 = Color.new(255, 125, 0)
  473.  
  474. Attack_Status_Slot_8_Color_1 = Color.new(50, 0, 0)
  475. Attack_Status_Slot_8_Color_2 = Color.new(255, 250, 200)
  476.  
  477. # Status slot 9 info
  478. Status_Slot_9_id = 10
  479. Status_Slot_9_Color_1 = Color.new(55, 20, 0)
  480. Status_Slot_9_Color_2 = Color.new(255, 125, 0)
  481.  
  482. Attack_Status_Slot_9_Color_1 = Color.new(50, 0, 0)
  483. Attack_Status_Slot_9_Color_2 = Color.new(255, 250, 200)
  484.  
  485. # Status Row 2 slot 1 info
  486. Status_Row_2_Slot_1_id = 11
  487. Status_Row_2_Slot_1_Color_1 = Color.new(55, 20, 0)
  488. Status_Row_2_Slot_1_Color_2 = Color.new(255, 125, 0)
  489.  
  490. Attack_Status_Row_2_Slot_1_Color_1 = Color.new(50, 0, 0)
  491. Attack_Status_Row_2_Slot_1_Color_2 = Color.new(255, 250, 200)
  492.  
  493. # Status_Row_2 slot 2 info
  494. Status_Row_2_Slot_2_id = 12
  495. Status_Row_2_Slot_2_Color_1 = Color.new(55, 20, 0)
  496. Status_Row_2_Slot_2_Color_2 = Color.new(255, 125, 0)
  497.  
  498. Attack_Status_Row_2_Slot_2_Color_1 = Color.new(50, 0, 0)
  499. Attack_Status_Row_2_Slot_2_Color_2 = Color.new(255, 250, 200)
  500.  
  501. # Status_Row_2 slot 3 info
  502. Status_Row_2_Slot_3_id = 13
  503. Status_Row_2_Slot_3_Color_1 = Color.new(55, 20, 0)
  504. Status_Row_2_Slot_3_Color_2 = Color.new(255, 125, 0)
  505.  
  506. Attack_Status_Row_2_Slot_3_Color_1 = Color.new(50, 0, 0)
  507. Attack_Status_Row_2_Slot_3_Color_2 = Color.new(255, 250, 200)
  508.  
  509. # Status_Row_2 slot 4 info
  510. Status_Row_2_Slot_4_id = 14
  511. Status_Row_2_Slot_4_Color_1 = Color.new(55, 20, 0)
  512. Status_Row_2_Slot_4_Color_2 = Color.new(255, 125, 0)
  513.  
  514. Attack_Status_Row_2_Slot_4_Color_1 = Color.new(50, 0, 0)
  515. Attack_Status_Row_2_Slot_4_Color_2 = Color.new(255, 250, 200)
  516.  
  517. # Status_Row_2 slot 5 info
  518. Status_Row_2_Slot_5_id = 15
  519. Status_Row_2_Slot_5_Color_1 = Color.new(55, 20, 0)
  520. Status_Row_2_Slot_5_Color_2 = Color.new(255, 125, 0)
  521.  
  522. Attack_Status_Row_2_Slot_5_Color_1 = Color.new(50, 0, 0)
  523. Attack_Status_Row_2_Slot_5_Color_2 = Color.new(255, 250, 200)
  524.  
  525. # Status_Row_2 slot 6 info
  526. Status_Row_2_Slot_6_id = 16
  527. Status_Row_2_Slot_6_Color_1 = Color.new(55, 20, 0)
  528. Status_Row_2_Slot_6_Color_2 = Color.new(255, 125, 0)
  529.  
  530. Attack_Status_Row_2_Slot_6_Color_1 = Color.new(50, 0, 0)
  531. Attack_Status_Row_2_Slot_6_Color_2 = Color.new(255, 250, 200)
  532.  
  533. # Status_Row_2 slot 7 info
  534. Status_Row_2_Slot_7_id = 17
  535. Status_Row_2_Slot_7_Color_1 = Color.new(55, 20, 0)
  536. Status_Row_2_Slot_7_Color_2 = Color.new(255, 125, 0)
  537.  
  538. Attack_Status_Row_2_Slot_7_Color_1 = Color.new(50, 0, 0)
  539. Attack_Status_Row_2_Slot_7_Color_2 = Color.new(255, 250, 200)
  540.  
  541. # Status_Row_2 slot 8 info
  542. Status_Row_2_Slot_8_id = 18
  543. Status_Row_2_Slot_8_Color_1 = Color.new(55, 20, 0)
  544. Status_Row_2_Slot_8_Color_2 = Color.new(255, 125, 0)
  545.  
  546. Attack_Status_Row_2_Slot_8_Color_1 = Color.new(50, 0, 0)
  547. Attack_Status_Row_2_Slot_8_Color_2 = Color.new(255, 250, 200)
  548.  
  549. # Status_Row_2 slot 9 info
  550. Status_Row_2_Slot_9_id = 19
  551. Status_Row_2_Slot_9_Color_1 = Color.new(55, 20, 0)
  552. Status_Row_2_Slot_9_Color_2 = Color.new(255, 125, 0)
  553.  
  554. Attack_Status_Row_2_Slot_9_Color_1 = Color.new(50, 0, 0)
  555. Attack_Status_Row_2_Slot_9_Color_2 = Color.new(255, 250, 200)
  556.  
  557. ###########################################################################
  558. ## CUSTOMISATION OPTIONS END DO NOT MODIFY ANYTHING! BEYOND THIS POINT ##
  559. # Do NOT Modify ANYTHING beyond this point as it will be subject to #
  560. # regular change in forthcoming updates ! #
  561. ###########################################################################
  562.  
  563. def self.Param_Gauge_Rate(target, stat)
  564. if target.is_a?(RPG::EquipItem)
  565. gauge_rate = self.Get_Equip_Param_Gauge_Rate(target, stat)
  566. return gauge_rate
  567. elsif target == false
  568. return 0
  569. else
  570. gauge_rate = self.Get_Actor_Param_Gauge_Rate(target, stat)
  571. return gauge_rate
  572. end
  573. end
  574.  
  575. def self.Get_Actor_Param_Gauge_Rate(target, stat)
  576. fmt = "%1.2f%%"
  577. return target.hp_rate if stat == :mhp
  578. return target.mp_rate if stat == :mmp
  579. return target.tp.to_f / target.max_tp if stat == :mtp
  580. par_id = self.GET_PARAM_ID(stat)
  581. ele_id = self.Get_Elemt_ID(stat)
  582. sta_id = self.Get_State_ID(stat)
  583. case stat
  584. when :atk, :def, :mat, :mdf, :agi, :luk
  585. return((target.param(par_id).to_f-1)/(target.param_max(par_id)-1).to_f)
  586. when :hit, :eva
  587. return(target.xparam(par_id).to_f/10)
  588. when :cri, :cev, :mev, :mrf, :cnt, :hrg, :mrg, :trg
  589. return(target.xparam(par_id).to_f/1)
  590. when :tgr, :grd
  591. return(target.sparam(par_id).to_f/10)
  592. when :rec, :pha, :mcr, :tcr, :pdr, :mdr, :fdr, :exr
  593. return(target.sparam(par_id).to_f/1)
  594. when :element_slot_1, :element_slot_2, :element_slot_3, :element_slot_4,
  595. :element_slot_5, :element_slot_6, :element_slot_7, :element_slot_8, :element_slot_9,
  596. :atk_element_slot_1, :atk_element_slot_2, :atk_element_slot_3, :atk_element_slot_4,
  597. :atk_element_slot_5, :atk_element_slot_6, :atk_element_slot_7, :atk_element_slot_8,
  598. :atk_element_slot_9
  599. return(target.element_rate(ele_id) / 2)
  600. when :status_slot_1, :status_slot_2, :status_slot_3, :status_slot_4,
  601. :status_slot_5, :status_slot_6, :status_slot_7, :status_slot_8,
  602. :status_slot_9, :status_slot_1_row_2, :status_slot_2_row_2, :status_slot_3_row_2,
  603. :status_slot_4_row_2, :status_slot_5_row_2, :status_slot_6_row_2,
  604. :status_slot_7_row_2, :status_slot_8_row_2, :status_slot_9_row_2
  605. return (target.state_rate(sta_id) / 1)
  606. when :atk_status_slot_1, :atk_status_slot_2, :atk_status_slot_3, :atk_status_slot_4,
  607. :atk_status_slot_5, :atk_status_slot_6, :atk_status_slot_7, :atk_status_slot_8, :atk_status_slot_9,
  608. :atk_status_slot_1_row_2, :atk_status_slot_2_row_2, :atk_status_slot_3_row_2,
  609. :atk_status_slot_4_row_2, :atk_status_slot_5_row_2, :atk_status_slot_6_row_2,
  610. :atk_status_slot_7_row_2, :atk_status_slot_8_row_2, :atk_status_slot_9_row_2
  611. return (target.atk_states_rate(sta_id) / 1)
  612. else
  613. return N_A_Vocab
  614. end
  615. end
  616.  
  617. def self.Get_Equip_Param_Gauge_Rate(target, stat)
  618. par_id = self.GET_PARAM_ID(stat)
  619. case stat
  620. when :mhp, :mmp, :atk, :def, :mat, :mdf, :agi, :luk
  621. return (target.params[par_id].to_f / 99).to_f
  622. when :mtp
  623. return target.max_tp_boost_DPBz.to_f / 100 if $imported[:Dekita__TP_Limits]
  624. when :hit, :eva, :cri, :cev, :mev, :mrf, :cnt, :hrg, :mrg, :trg
  625. return target.item_features_sum(target, 22, par_id)
  626. when :tgr, :grd, :rec, :pha, :mcr, :tcr, :pdr, :mdr, :fdr, :exr
  627. return target.item_features_pi(target, 23, par_id)
  628. else
  629. return 0
  630. end
  631. end
  632.  
  633. def self.C_M_STAT_Value(target, stat)
  634. if target.is_a?(RPG::EquipItem)
  635. stat_id = self.GET_PARAM_ID(stat)
  636. case stat
  637. when :mhp, :mmp, :atk, :def, :mat, :mdf, :agi, :luk
  638. return target.params[stat_id].to_i
  639. when :mtp
  640. return target.max_tp_boost_DPBz.to_i if $imported[:Dekita__TP_Limits]
  641. when :hit, :eva, :cri, :cev, :mev, :mrf, :cnt, :hrg, :mrg, :trg
  642. return(target.xparam(par_id).to_f/10)
  643. when :tgr, :grd, :rec, :pha, :mcr, :tcr, :pdr, :mdr, :fdr, :exr
  644. return (target.sparam(par_id).to_f/10)
  645. else
  646. end
  647. elsif target == false
  648. return N_A_Vocab
  649. else
  650. value = self.Cur_Max_PARAM_VALUE(target, stat)
  651. return value
  652. end
  653. end
  654.  
  655. def self.Cur_Max_PARAM_VALUE(target, stat)
  656. return "#{target.hp.to_i}#{Seperator2}#{target.mhp.to_i}" if stat == :mhp
  657. return "#{target.mp.to_i}#{Seperator2}#{target.mmp.to_i}" if stat == :mmp
  658. return "#{target.tp.to_i}#{Seperator2}#{target.max_tp.to_i}" if stat == :mtp# if $imported[:Dekita__TP_Limits]
  659. return N_A_Vocab if nil || false
  660. end
  661.  
  662.  
  663. def self.STAT_Value(target, stat)
  664. if target.is_a?(RPG::EquipItem)
  665. value = self.Get_Equip_Stat_Value(target, stat)
  666. return value
  667. elsif target == false
  668. return N_A_Vocab
  669. else
  670. value = self.GET_PARAM_VALUE(target, stat)
  671. case stat
  672. when :atk , :def , :mat , :mdf , :agi , :luk
  673. return "#{value-(value * Variance).to_i}#{Seperator}#{value+(value * Variance).to_i}"
  674. when :hit , :eva , :cri , :cev , :mev , :mrf , :cnt , :hrg , :mrg , :trg
  675. return value
  676. when :tgr, :grd, :rec, :pha, :mcr, :tcr, :pdr, :mdr, :fdr, :exr
  677. return value
  678. when :element_slot_1, :element_slot_2, :element_slot_3, :element_slot_4,
  679. :element_slot_5, :element_slot_6, :element_slot_7, :element_slot_8, :element_slot_9,
  680. :atk_element_slot_1, :atk_element_slot_2, :atk_element_slot_3, :atk_element_slot_4,
  681. :atk_element_slot_5, :atk_element_slot_6, :atk_element_slot_7, :atk_element_slot_8,
  682. :atk_element_slot_9
  683. return value
  684. when :status_slot_1, :status_slot_2, :status_slot_3, :status_slot_4,
  685. :status_slot_5, :status_slot_6, :status_slot_7, :status_slot_8,
  686. :status_slot_9, :status_slot_1_row_2, :status_slot_2_row_2, :status_slot_3_row_2,
  687. :status_slot_4_row_2, :status_slot_5_row_2, :status_slot_6_row_2,
  688. :status_slot_7_row_2, :status_slot_8_row_2, :status_slot_9_row_2,
  689. :atk_status_slot_1, :atk_status_slot_2, :atk_status_slot_3, :atk_status_slot_4,
  690. :atk_status_slot_5, :atk_status_slot_6, :atk_status_slot_7, :atk_status_slot_8, :atk_status_slot_9,
  691. :atk_status_slot_1_row_2, :atk_status_slot_2_row_2, :atk_status_slot_3_row_2,
  692. :atk_status_slot_4_row_2, :atk_status_slot_5_row_2, :atk_status_slot_6_row_2,
  693. :atk_status_slot_7_row_2, :atk_status_slot_8_row_2, :atk_status_slot_9_row_2
  694. return value
  695. end
  696. end
  697. end
  698.  
  699. def self.GET_PARAM_ID(stat)
  700. return 0 if stat == :mhp
  701. return 1 if stat == :mmp
  702. return 2 if stat == :atk
  703. return 3 if stat == :def
  704. return 4 if stat == :mat
  705. return 5 if stat == :mdf
  706. return 6 if stat == :agi
  707. return 7 if stat == :luk
  708. return 0 if stat == :hit
  709. return 1 if stat == :eva
  710. return 2 if stat == :cri
  711. return 3 if stat == :cev
  712. return 4 if stat == :mev
  713. return 5 if stat == :mrf
  714. return 6 if stat == :cnt
  715. return 7 if stat == :hrg
  716. return 8 if stat == :mrg
  717. return 9 if stat == :trg
  718. return 0 if stat == :tgr
  719. return 1 if stat == :grd
  720. return 2 if stat == :rec
  721. return 3 if stat == :pha
  722. return 4 if stat == :mcr
  723. return 5 if stat == :tcr
  724. return 6 if stat == :pdr
  725. return 7 if stat == :mdr
  726. return 8 if stat == :fdr
  727. return 9 if stat == :exr
  728. return nil
  729. end
  730.  
  731. def self.Get_Elemt_ID(stat)
  732. return Element_Slot_1_id if stat == :element_slot_1
  733. return Element_Slot_2_id if stat == :element_slot_2
  734. return Element_Slot_3_id if stat == :element_slot_3
  735. return Element_Slot_4_id if stat == :element_slot_4
  736. return Element_Slot_5_id if stat == :element_slot_5
  737. return Element_Slot_6_id if stat == :element_slot_6
  738. return Element_Slot_7_id if stat == :element_slot_7
  739. return Element_Slot_8_id if stat == :element_slot_8
  740. return Element_Slot_9_id if stat == :element_slot_9
  741. return Element_Slot_1_id if stat == :atk_element_slot_1
  742. return Element_Slot_2_id if stat == :atk_element_slot_2
  743. return Element_Slot_3_id if stat == :atk_element_slot_3
  744. return Element_Slot_4_id if stat == :atk_element_slot_4
  745. return Element_Slot_5_id if stat == :atk_element_slot_5
  746. return Element_Slot_6_id if stat == :atk_element_slot_6
  747. return Element_Slot_7_id if stat == :atk_element_slot_7
  748. return Element_Slot_8_id if stat == :atk_element_slot_8
  749. return Element_Slot_9_id if stat == :atk_element_slot_9
  750. return nil
  751. end
  752.  
  753. def self.Get_State_ID(stat)
  754. return Status_Slot_1_id if stat == :status_slot_1
  755. return Status_Slot_2_id if stat == :status_slot_2
  756. return Status_Slot_3_id if stat == :status_slot_3
  757. return Status_Slot_4_id if stat == :status_slot_4
  758. return Status_Slot_5_id if stat == :status_slot_5
  759. return Status_Slot_6_id if stat == :status_slot_6
  760. return Status_Slot_7_id if stat == :status_slot_7
  761. return Status_Slot_8_id if stat == :status_slot_8
  762. return Status_Slot_9_id if stat == :status_slot_9
  763. return Status_Row_2_Slot_1_id if stat == :status_slot_1_row_2
  764. return Status_Row_2_Slot_2_id if stat == :status_slot_2_row_2
  765. return Status_Row_2_Slot_3_id if stat == :status_slot_3_row_2
  766. return Status_Row_2_Slot_4_id if stat == :status_slot_4_row_2
  767. return Status_Row_2_Slot_5_id if stat == :status_slot_5_row_2
  768. return Status_Row_2_Slot_6_id if stat == :status_slot_6_row_2
  769. return Status_Row_2_Slot_7_id if stat == :status_slot_7_row_2
  770. return Status_Row_2_Slot_8_id if stat == :status_slot_8_row_2
  771. return Status_Row_2_Slot_9_id if stat == :status_slot_9_row_2
  772. return Status_Slot_1_id if stat == :atk_status_slot_1
  773. return Status_Slot_2_id if stat == :atk_status_slot_2
  774. return Status_Slot_3_id if stat == :atk_status_slot_3
  775. return Status_Slot_4_id if stat == :atk_status_slot_4
  776. return Status_Slot_5_id if stat == :atk_status_slot_5
  777. return Status_Slot_6_id if stat == :atk_status_slot_6
  778. return Status_Slot_7_id if stat == :atk_status_slot_7
  779. return Status_Slot_8_id if stat == :atk_status_slot_8
  780. return Status_Slot_9_id if stat == :atk_status_slot_9
  781. return Status_Row_2_Slot_1_id if stat == :atk_status_slot_1_row_2
  782. return Status_Row_2_Slot_2_id if stat == :atk_status_slot_2_row_2
  783. return Status_Row_2_Slot_3_id if stat == :atk_status_slot_3_row_2
  784. return Status_Row_2_Slot_4_id if stat == :atk_status_slot_4_row_2
  785. return Status_Row_2_Slot_5_id if stat == :atk_status_slot_5_row_2
  786. return Status_Row_2_Slot_6_id if stat == :atk_status_slot_6_row_2
  787. return Status_Row_2_Slot_7_id if stat == :atk_status_slot_7_row_2
  788. return Status_Row_2_Slot_8_id if stat == :atk_status_slot_8_row_2
  789. return Status_Row_2_Slot_9_id if stat == :atk_status_slot_9_row_2
  790. return nil
  791. end
  792.  
  793. def self.GET_PARAM_VALUE(target, stat)
  794. fmt = "%1.2f%%"
  795. return target.atk if stat == :atk
  796. return target.def if stat == :def
  797. return target.mat if stat == :mat
  798. return target.mdf if stat == :mdf
  799. return target.agi if stat == :agi
  800. return target.luk if stat == :luk
  801. return sprintf(fmt, target.hit * 100) if stat == :hit
  802. return sprintf(fmt, target.eva * 100) if stat == :eva
  803. return sprintf(fmt, target.cri * 100) if stat == :cri
  804. return sprintf(fmt, target.cev * 100) if stat == :cev
  805. return sprintf(fmt, target.mev * 100) if stat == :mev
  806. return sprintf(fmt, target.mrf * 100) if stat == :mrf
  807. return sprintf(fmt, target.cnt * 100) if stat == :cnt
  808. return sprintf(fmt, target.hrg * 100) if stat == :hrg
  809. return sprintf(fmt, target.mrg * 100) if stat == :mrg
  810. return sprintf(fmt, target.trg * 100) if stat == :trg
  811. return sprintf(fmt, target.tgr * 100) if stat == :tgr
  812. return sprintf(fmt, target.grd * 100) if stat == :grd
  813. return sprintf(fmt, target.rec * 100) if stat == :rec
  814. return sprintf(fmt, target.pha * 100) if stat == :pha
  815. return sprintf(fmt, target.mcr * 100) if stat == :mcr
  816. return sprintf(fmt, target.tcr * 100) if stat == :tcr
  817. return sprintf(fmt, target.pdr * 100) if stat == :pdr
  818. return sprintf(fmt, target.mdr * 100) if stat == :mdr
  819. return sprintf(fmt, target.fdr * 100) if stat == :fdr
  820. return sprintf(fmt, target.exr * 100) if stat == :exr
  821. return sprintf(fmt, (target.element_rate(Element_Slot_1_id) * 100)) if stat == :element_slot_1
  822. return sprintf(fmt, (target.element_rate(Element_Slot_2_id) * 100)) if stat == :element_slot_2
  823. return sprintf(fmt, (target.element_rate(Element_Slot_3_id) * 100)) if stat == :element_slot_3
  824. return sprintf(fmt, (target.element_rate(Element_Slot_4_id) * 100)) if stat == :element_slot_4
  825. return sprintf(fmt, (target.element_rate(Element_Slot_5_id) * 100)) if stat == :element_slot_5
  826. return sprintf(fmt, (target.element_rate(Element_Slot_6_id) * 100)) if stat == :element_slot_6
  827. return sprintf(fmt, (target.element_rate(Element_Slot_7_id) * 100)) if stat == :element_slot_7
  828. return sprintf(fmt, (target.element_rate(Element_Slot_8_id) * 100)) if stat == :element_slot_8
  829. return sprintf(fmt, (target.element_rate(Element_Slot_9_id) * 100)) if stat == :element_slot_9
  830. return sprintf(fmt, (target.atk_element_rate(Element_Slot_1_id) * 100)) if stat == :atk_element_slot_1
  831. return sprintf(fmt, (target.atk_element_rate(Element_Slot_2_id) * 100)) if stat == :atk_element_slot_2
  832. return sprintf(fmt, (target.atk_element_rate(Element_Slot_3_id) * 100)) if stat == :atk_element_slot_3
  833. return sprintf(fmt, (target.atk_element_rate(Element_Slot_4_id) * 100)) if stat == :atk_element_slot_4
  834. return sprintf(fmt, (target.atk_element_rate(Element_Slot_5_id) * 100)) if stat == :atk_element_slot_5
  835. return sprintf(fmt, (target.atk_element_rate(Element_Slot_6_id) * 100)) if stat == :atk_element_slot_6
  836. return sprintf(fmt, (target.atk_element_rate(Element_Slot_7_id) * 100)) if stat == :atk_element_slot_7
  837. return sprintf(fmt, (target.atk_element_rate(Element_Slot_8_id) * 100)) if stat == :atk_element_slot_8
  838. return sprintf(fmt, (target.atk_element_rate(Element_Slot_9_id) * 100)) if stat == :atk_element_slot_9
  839. return (sprintf(fmt, target.state_rate(Status_Slot_1_id) * 100)) if stat == :status_slot_1
  840. return (sprintf(fmt, target.state_rate(Status_Slot_2_id) * 100)) if stat == :status_slot_2
  841. return (sprintf(fmt, target.state_rate(Status_Slot_3_id) * 100)) if stat == :status_slot_3
  842. return (sprintf(fmt, target.state_rate(Status_Slot_4_id) * 100)) if stat == :status_slot_4
  843. return (sprintf(fmt, target.state_rate(Status_Slot_5_id) * 100)) if stat == :status_slot_5
  844. return (sprintf(fmt, target.state_rate(Status_Slot_6_id) * 100)) if stat == :status_slot_6
  845. return (sprintf(fmt, target.state_rate(Status_Slot_7_id) * 100)) if stat == :status_slot_7
  846. return (sprintf(fmt, target.state_rate(Status_Slot_8_id) * 100)) if stat == :status_slot_8
  847. return (sprintf(fmt, target.state_rate(Status_Slot_9_id) * 100)) if stat == :status_slot_9
  848. return (sprintf(fmt, target.state_rate(Status_Row_2_Slot_1_id) * 100)) if stat == :status_slot_1_row_2
  849. return (sprintf(fmt, target.state_rate(Status_Row_2_Slot_2_id) * 100)) if stat == :status_slot_2_row_2
  850. return (sprintf(fmt, target.state_rate(Status_Row_2_Slot_3_id) * 100)) if stat == :status_slot_3_row_2
  851. return (sprintf(fmt, target.state_rate(Status_Row_2_Slot_4_id) * 100)) if stat == :status_slot_4_row_2
  852. return (sprintf(fmt, target.state_rate(Status_Row_2_Slot_5_id) * 100)) if stat == :status_slot_5_row_2
  853. return (sprintf(fmt, target.state_rate(Status_Row_2_Slot_6_id) * 100)) if stat == :status_slot_6_row_2
  854. return (sprintf(fmt, target.state_rate(Status_Row_2_Slot_7_id) * 100)) if stat == :status_slot_7_row_2
  855. return (sprintf(fmt, target.state_rate(Status_Row_2_Slot_8_id) * 100)) if stat == :status_slot_8_row_2
  856. return (sprintf(fmt, target.state_rate(Status_Row_2_Slot_9_id) * 100)) if stat == :status_slot_9_row_2
  857. return sprintf(fmt, (target.atk_states_rate(Status_Slot_1_id) * 100)) if stat == :atk_status_slot_1
  858. return sprintf(fmt, (target.atk_states_rate(Status_Slot_2_id) * 100)) if stat == :atk_status_slot_2
  859. return sprintf(fmt, (target.atk_states_rate(Status_Slot_3_id) * 100)) if stat == :atk_status_slot_3
  860. return sprintf(fmt, (target.atk_states_rate(Status_Slot_4_id) * 100)) if stat == :atk_status_slot_4
  861. return sprintf(fmt, (target.atk_states_rate(Status_Slot_5_id) * 100)) if stat == :atk_status_slot_5
  862. return sprintf(fmt, (target.atk_states_rate(Status_Slot_6_id) * 100)) if stat == :atk_status_slot_6
  863. return sprintf(fmt, (target.atk_states_rate(Status_Slot_7_id) * 100)) if stat == :atk_status_slot_7
  864. return sprintf(fmt, (target.atk_states_rate(Status_Slot_8_id) * 100)) if stat == :atk_status_slot_8
  865. return sprintf(fmt, (target.atk_states_rate(Status_Slot_9_id) * 100)) if stat == :atk_status_slot_9
  866. return sprintf(fmt, (target.atk_states_rate(Status_Row_2_Slot_1_id) * 100)) if stat == :atk_status_slot_1_row_2
  867. return sprintf(fmt, (target.atk_states_rate(Status_Row_2_Slot_2_id) * 100)) if stat == :atk_status_slot_2_row_2
  868. return sprintf(fmt, (target.atk_states_rate(Status_Row_2_Slot_3_id) * 100)) if stat == :atk_status_slot_3_row_2
  869. return sprintf(fmt, (target.atk_states_rate(Status_Row_2_Slot_4_id) * 100)) if stat == :atk_status_slot_4_row_2
  870. return sprintf(fmt, (target.atk_states_rate(Status_Row_2_Slot_5_id) * 100)) if stat == :atk_status_slot_5_row_2
  871. return sprintf(fmt, (target.atk_states_rate(Status_Row_2_Slot_6_id) * 100)) if stat == :atk_status_slot_6_row_2
  872. return sprintf(fmt, (target.atk_states_rate(Status_Row_2_Slot_7_id) * 100)) if stat == :atk_status_slot_7_row_2
  873. return sprintf(fmt, (target.atk_states_rate(Status_Row_2_Slot_8_id) * 100)) if stat == :atk_status_slot_8_row_2
  874. return sprintf(fmt, (target.atk_states_rate(Status_Row_2_Slot_9_id) * 100)) if stat == :atk_status_slot_9_row_2
  875. return nil
  876. end
  877.  
  878.  
  879.  
  880. def self.Get_Equip_Stat_Value(target, stat)
  881. fmt = "%1.2f%%"
  882. stat_id = self.GET_PARAM_ID(stat)
  883. return target.params[stat_id].to_i if stat == :mhp
  884. return target.params[stat_id].to_i if stat == :mmp
  885. return target.max_tp_boost_DPBz.to_i if stat == :mtp if $imported[:Dekita__TP_Limits]
  886. return target.params[stat_id].to_i if stat == :atk
  887. return target.params[stat_id].to_i if stat == :def
  888. return target.params[stat_id].to_i if stat == :mat
  889. return target.params[stat_id].to_i if stat == :mdf
  890. return target.params[stat_id].to_i if stat == :agi
  891. return target.params[stat_id].to_i if stat == :luk
  892. return sprintf(fmt, ((target.xparams[stat_id].to_f * 100) +
  893. (target.item_features_sum(target, 22, stat_id) * 100))) if stat == :hit if $imported[:Dekita__PSPDS]
  894. return sprintf(fmt, ((target.xparams[stat_id].to_f * 100) +
  895. (target.item_features_sum(target, 22, stat_id) * 100))) if stat == :eva if $imported[:Dekita__PSPDS]
  896. return sprintf(fmt, ((target.xparams[stat_id].to_f * 100) +
  897. (target.item_features_sum(target, 22, stat_id) * 100))) if stat == :cri if $imported[:Dekita__PSPDS]
  898. return sprintf(fmt, ((target.xparams[stat_id].to_f * 100) +
  899. (target.item_features_sum(target, 22, stat_id) * 100))) if stat == :cev if $imported[:Dekita__PSPDS]
  900. return sprintf(fmt, ((target.xparams[stat_id].to_f * 100) +
  901. (target.item_features_sum(target, 22, stat_id) * 100))) if stat == :mev if $imported[:Dekita__PSPDS]
  902. return sprintf(fmt, ((target.xparams[stat_id].to_f * 100) +
  903. (target.item_features_sum(target, 22, stat_id) * 100))) if stat == :mrf if $imported[:Dekita__PSPDS]
  904. return sprintf(fmt, ((target.xparams[stat_id].to_f * 100) +
  905. (target.item_features_sum(target, 22, stat_id) * 100))) if stat == :cnt if $imported[:Dekita__PSPDS]
  906. return sprintf(fmt, ((target.xparams[stat_id].to_f * 100) +
  907. (target.item_features_sum(target, 22, stat_id) * 100))) if stat == :hrg if $imported[:Dekita__PSPDS]
  908. return sprintf(fmt, ((target.xparams[stat_id].to_f * 100) +
  909. (target.item_features_sum(target, 22, stat_id) * 100))) if stat == :mrg if $imported[:Dekita__PSPDS]
  910. return sprintf(fmt, ((target.xparams[stat_id].to_f * 100) +
  911. (target.item_features_sum(target, 22, stat_id) * 100))) if stat == :trg if $imported[:Dekita__PSPDS]
  912. return sprintf(fmt, target.item_features_sum(target, 22, stat_id) * 100) if stat == :hit
  913. return sprintf(fmt, target.item_features_sum(target, 22, stat_id) * 100) if stat == :eva
  914. return sprintf(fmt, target.item_features_sum(target, 22, stat_id) * 100) if stat == :cri
  915. return sprintf(fmt, target.item_features_sum(target, 22, stat_id) * 100) if stat == :cev
  916. return sprintf(fmt, target.item_features_sum(target, 22, stat_id) * 100) if stat == :mev
  917. return sprintf(fmt, target.item_features_sum(target, 22, stat_id) * 100) if stat == :mrf
  918. return sprintf(fmt, target.item_features_sum(target, 22, stat_id) * 100) if stat == :cnt
  919. return sprintf(fmt, target.item_features_sum(target, 22, stat_id) * 100) if stat == :hrg
  920. return sprintf(fmt, target.item_features_sum(target, 22, stat_id) * 100) if stat == :mrg
  921. return sprintf(fmt, target.item_features_sum(target, 22, stat_id) * 100) if stat == :trg
  922. return sprintf(fmt, ((target.sparams[stat_id].to_f * 100) +
  923. (target.item_features_pi(target, 23, stat_id) * 100) - 100)) if stat == :tgr if $imported[:Dekita__PSPDS]
  924. return sprintf(fmt, ((target.sparams[stat_id].to_f * 100) +
  925. (target.item_features_pi(target, 23, stat_id) * 100) - 100)) if stat == :grd if $imported[:Dekita__PSPDS]
  926. return sprintf(fmt, ((target.sparams[stat_id].to_f * 100) +
  927. (target.item_features_pi(target, 23, stat_id) * 100) - 100)) if stat == :rec if $imported[:Dekita__PSPDS]
  928. return sprintf(fmt, ((target.sparams[stat_id].to_f * 100) +
  929. (target.item_features_pi(target, 23, stat_id) * 100) - 100)) if stat == :pha if $imported[:Dekita__PSPDS]
  930. return sprintf(fmt, ((target.sparams[stat_id].to_f * 100) +
  931. (target.item_features_pi(target, 23, stat_id) * 100) - 100)) if stat == :mcr if $imported[:Dekita__PSPDS]
  932. return sprintf(fmt, ((target.sparams[stat_id].to_f * 100) +
  933. (target.item_features_pi(target, 23, stat_id) * 100) - 100)) if stat == :tcr if $imported[:Dekita__PSPDS]
  934. return sprintf(fmt, ((target.sparams[stat_id].to_f * 100) +
  935. (target.item_features_pi(target, 23, stat_id) * 100) - 100)) if stat == :pdr if $imported[:Dekita__PSPDS]
  936. return sprintf(fmt, ((target.sparams[stat_id].to_f * 100) +
  937. (target.item_features_pi(target, 23, stat_id) * 100) - 100)) if stat == :mdr if $imported[:Dekita__PSPDS]
  938. return sprintf(fmt, ((target.sparams[stat_id].to_f * 100) +
  939. (target.item_features_pi(target, 23, stat_id) * 100) - 100)) if stat == :fdr if $imported[:Dekita__PSPDS]
  940. return sprintf(fmt, ((target.sparams[stat_id].to_f * 100) +
  941. (target.item_features_pi(target, 23, stat_id) * 100) - 100)) if stat == :exr if $imported[:Dekita__PSPDS]
  942. return sprintf(fmt, (target.item_features_pi(target, 23, stat_id) * 100) - 100) if stat == :tgr
  943. return sprintf(fmt, (target.item_features_pi(target, 23, stat_id) * 100) - 100) if stat == :grd
  944. return sprintf(fmt, (target.item_features_pi(target, 23, stat_id) * 100) - 100) if stat == :rec
  945. return sprintf(fmt, (target.item_features_pi(target, 23, stat_id) * 100) - 100) if stat == :pha
  946. return sprintf(fmt, (target.item_features_pi(target, 23, stat_id) * 100) - 100) if stat == :mcr
  947. return sprintf(fmt, (target.item_features_pi(target, 23, stat_id) * 100) - 100) if stat == :tcr
  948. return sprintf(fmt, (target.item_features_pi(target, 23, stat_id) * 100) - 100) if stat == :pdr
  949. return sprintf(fmt, (target.item_features_pi(target, 23, stat_id) * 100) - 100) if stat == :mdr
  950. return sprintf(fmt, (target.item_features_pi(target, 23, stat_id) * 100) - 100) if stat == :fdr
  951. return sprintf(fmt, (target.item_features_pi(target, 23, stat_id) * 100) - 100) if stat == :exr
  952. return nil
  953. end
  954.  
  955. def self.Get_Info_Vocab(stat)
  956. return MHP_Vocab if stat == :mhp
  957. return MMP_Vocab if stat == :mmp
  958. return ATK_Vocab if stat == :atk
  959. return DEF_Vocab if stat == :def
  960. return MAT_Vocab if stat == :mat
  961. return MDF_Vocab if stat == :mdf
  962. return AGI_Vocab if stat == :agi
  963. return LUK_Vocab if stat == :luk
  964. return TP_Vocab if stat == :mtp
  965. return HIT_Vocab if stat == :hit
  966. return EVA_Vocab if stat == :eva
  967. return CRI_Vocab if stat == :cri
  968. return CEV_Vocab if stat == :cev
  969. return MEV_Vocab if stat == :mev
  970. return MRF_Vocab if stat == :mrf
  971. return CNT_Vocab if stat == :cnt
  972. return HRG_Vocab if stat == :hrg
  973. return MRG_Vocab if stat == :mrg
  974. return TRG_Vocab if stat == :trg
  975. return TGR_Vocab if stat == :tgr
  976. return GRD_Vocab if stat == :grd
  977. return REC_Vocab if stat == :rec
  978. return PHA_Vocab if stat == :pha
  979. return MCR_Vocab if stat == :mcr
  980. return TCR_Vocab if stat == :tcr
  981. return PDR_Vocab if stat == :pdr
  982. return MDR_Vocab if stat == :mdr
  983. return FDR_Vocab if stat == :fdr
  984. return EXR_Vocab if stat == :exr
  985. return $data_system.elements[Element_Slot_1_id] if stat == :element_slot_1
  986. return $data_system.elements[Element_Slot_2_id] if stat == :element_slot_2
  987. return $data_system.elements[Element_Slot_3_id] if stat == :element_slot_3
  988. return $data_system.elements[Element_Slot_4_id] if stat == :element_slot_4
  989. return $data_system.elements[Element_Slot_5_id] if stat == :element_slot_5
  990. return $data_system.elements[Element_Slot_6_id] if stat == :element_slot_6
  991. return $data_system.elements[Element_Slot_7_id] if stat == :element_slot_7
  992. return $data_system.elements[Element_Slot_8_id] if stat == :element_slot_8
  993. return $data_system.elements[Element_Slot_9_id] if stat == :element_slot_9
  994. return $data_system.elements[Element_Slot_1_id] if stat == :atk_element_slot_1
  995. return $data_system.elements[Element_Slot_2_id] if stat == :atk_element_slot_2
  996. return $data_system.elements[Element_Slot_3_id] if stat == :atk_element_slot_3
  997. return $data_system.elements[Element_Slot_4_id] if stat == :atk_element_slot_4
  998. return $data_system.elements[Element_Slot_5_id] if stat == :atk_element_slot_5
  999. return $data_system.elements[Element_Slot_6_id] if stat == :atk_element_slot_6
  1000. return $data_system.elements[Element_Slot_7_id] if stat == :atk_element_slot_7
  1001. return $data_system.elements[Element_Slot_8_id] if stat == :atk_element_slot_8
  1002. return $data_system.elements[Element_Slot_9_id] if stat == :atk_element_slot_9
  1003. return $data_states[Status_Slot_1_id].name if stat == :status_slot_1
  1004. return $data_states[Status_Slot_2_id].name if stat == :status_slot_2
  1005. return $data_states[Status_Slot_3_id].name if stat == :status_slot_3
  1006. return $data_states[Status_Slot_4_id].name if stat == :status_slot_4
  1007. return $data_states[Status_Slot_5_id].name if stat == :status_slot_5
  1008. return $data_states[Status_Slot_6_id].name if stat == :status_slot_6
  1009. return $data_states[Status_Slot_7_id].name if stat == :status_slot_7
  1010. return $data_states[Status_Slot_8_id].name if stat == :status_slot_8
  1011. return $data_states[Status_Slot_9_id].name if stat == :status_slot_9
  1012. return $data_states[Status_Row_2_Slot_1_id].name if stat == :status_slot_1_row_2
  1013. return $data_states[Status_Row_2_Slot_2_id].name if stat == :status_slot_2_row_2
  1014. return $data_states[Status_Row_2_Slot_3_id].name if stat == :status_slot_3_row_2
  1015. return $data_states[Status_Row_2_Slot_4_id].name if stat == :status_slot_4_row_2
  1016. return $data_states[Status_Row_2_Slot_5_id].name if stat == :status_slot_5_row_2
  1017. return $data_states[Status_Row_2_Slot_6_id].name if stat == :status_slot_6_row_2
  1018. return $data_states[Status_Row_2_Slot_7_id].name if stat == :status_slot_7_row_2
  1019. return $data_states[Status_Row_2_Slot_8_id].name if stat == :status_slot_8_row_2
  1020. return $data_states[Status_Row_2_Slot_9_id].name if stat == :status_slot_9_row_2
  1021. return $data_states[Status_Slot_1_id].name if stat == :atk_status_slot_1
  1022. return $data_states[Status_Slot_2_id].name if stat == :atk_status_slot_2
  1023. return $data_states[Status_Slot_3_id].name if stat == :atk_status_slot_3
  1024. return $data_states[Status_Slot_4_id].name if stat == :atk_status_slot_4
  1025. return $data_states[Status_Slot_5_id].name if stat == :atk_status_slot_5
  1026. return $data_states[Status_Slot_6_id].name if stat == :atk_status_slot_6
  1027. return $data_states[Status_Slot_7_id].name if stat == :atk_status_slot_7
  1028. return $data_states[Status_Slot_8_id].name if stat == :atk_status_slot_8
  1029. return $data_states[Status_Slot_9_id].name if stat == :atk_status_slot_9
  1030. return $data_states[Status_Row_2_Slot_1_id].name if stat == :atk_status_slot_1_row_2
  1031. return $data_states[Status_Row_2_Slot_2_id].name if stat == :atk_status_slot_2_row_2
  1032. return $data_states[Status_Row_2_Slot_3_id].name if stat == :atk_status_slot_3_row_2
  1033. return $data_states[Status_Row_2_Slot_4_id].name if stat == :atk_status_slot_4_row_2
  1034. return $data_states[Status_Row_2_Slot_5_id].name if stat == :atk_status_slot_5_row_2
  1035. return $data_states[Status_Row_2_Slot_6_id].name if stat == :atk_status_slot_6_row_2
  1036. return $data_states[Status_Row_2_Slot_7_id].name if stat == :atk_status_slot_7_row_2
  1037. return $data_states[Status_Row_2_Slot_8_id].name if stat == :atk_status_slot_8_row_2
  1038. return $data_states[Status_Row_2_Slot_9_id].name if stat == :atk_status_slot_9_row_2
  1039. return "NuLL"
  1040. end
  1041.  
  1042. def self.Get_Info_Icons(stat)
  1043. return MHP_Icon if stat == :mhp
  1044. return MMP_Icon if stat == :mmp
  1045. return ATK_Icon if stat == :atk
  1046. return DEF_Icon if stat == :def
  1047. return MAT_Icon if stat == :mat
  1048. return MDF_Icon if stat == :mdf
  1049. return AGI_Icon if stat == :agi
  1050. return LUK_Icon if stat == :luk
  1051. return TP_Icon if stat == :mtp
  1052. return HIT_Icon if stat == :hit
  1053. return EVA_Icon if stat == :eva
  1054. return CRI_Icon if stat == :cri
  1055. return CEV_Icon if stat == :cev
  1056. return MEV_Icon if stat == :mev
  1057. return MRF_Icon if stat == :mrf
  1058. return CNT_Icon if stat == :cnt
  1059. return HRG_Icon if stat == :hrg
  1060. return MRG_Icon if stat == :mrg
  1061. return TRG_Icon if stat == :trg
  1062. return TGR_Icon if stat == :tgr
  1063. return GRD_Icon if stat == :grd
  1064. return REC_Icon if stat == :rec
  1065. return PHA_Icon if stat == :pha
  1066. return MCR_Icon if stat == :mcr
  1067. return TCR_Icon if stat == :tcr
  1068. return PDR_Icon if stat == :pdr
  1069. return MDR_Icon if stat == :mdr
  1070. return FDR_Icon if stat == :fdr
  1071. return EXR_Icon if stat == :exr
  1072. return Element_Slot_1_Icon if stat == :element_slot_1
  1073. return Element_Slot_2_Icon if stat == :element_slot_2
  1074. return Element_Slot_3_Icon if stat == :element_slot_3
  1075. return Element_Slot_4_Icon if stat == :element_slot_4
  1076. return Element_Slot_5_Icon if stat == :element_slot_5
  1077. return Element_Slot_6_Icon if stat == :element_slot_6
  1078. return Element_Slot_7_Icon if stat == :element_slot_7
  1079. return Element_Slot_8_Icon if stat == :element_slot_8
  1080. return Element_Slot_9_Icon if stat == :element_slot_9
  1081. return Element_Slot_1_Icon if stat == :atk_element_slot_1
  1082. return Element_Slot_2_Icon if stat == :atk_element_slot_2
  1083. return Element_Slot_3_Icon if stat == :atk_element_slot_3
  1084. return Element_Slot_4_Icon if stat == :atk_element_slot_4
  1085. return Element_Slot_5_Icon if stat == :atk_element_slot_5
  1086. return Element_Slot_6_Icon if stat == :atk_element_slot_6
  1087. return Element_Slot_7_Icon if stat == :atk_element_slot_7
  1088. return Element_Slot_8_Icon if stat == :atk_element_slot_8
  1089. return Element_Slot_9_Icon if stat == :atk_element_slot_9
  1090. return $data_states[Status_Slot_1_id].icon_index if stat == :status_slot_1
  1091. return $data_states[Status_Slot_2_id].icon_index if stat == :status_slot_2
  1092. return $data_states[Status_Slot_3_id].icon_index if stat == :status_slot_3
  1093. return $data_states[Status_Slot_4_id].icon_index if stat == :status_slot_4
  1094. return $data_states[Status_Slot_5_id].icon_index if stat == :status_slot_5
  1095. return $data_states[Status_Slot_6_id].icon_index if stat == :status_slot_6
  1096. return $data_states[Status_Slot_7_id].icon_index if stat == :status_slot_7
  1097. return $data_states[Status_Slot_8_id].icon_index if stat == :status_slot_8
  1098. return $data_states[Status_Slot_9_id].icon_index if stat == :status_slot_9
  1099. return $data_states[Status_Row_2_Slot_1_id].icon_index if stat == :status_slot_1_row_2
  1100. return $data_states[Status_Row_2_Slot_2_id].icon_index if stat == :status_slot_2_row_2
  1101. return $data_states[Status_Row_2_Slot_3_id].icon_index if stat == :status_slot_3_row_2
  1102. return $data_states[Status_Row_2_Slot_4_id].icon_index if stat == :status_slot_4_row_2
  1103. return $data_states[Status_Row_2_Slot_5_id].icon_index if stat == :status_slot_5_row_2
  1104. return $data_states[Status_Row_2_Slot_6_id].icon_index if stat == :status_slot_6_row_2
  1105. return $data_states[Status_Row_2_Slot_7_id].icon_index if stat == :status_slot_7_row_2
  1106. return $data_states[Status_Row_2_Slot_8_id].icon_index if stat == :status_slot_8_row_2
  1107. return $data_states[Status_Row_2_Slot_9_id].icon_index if stat == :status_slot_9_row_2
  1108. return $data_states[Status_Slot_1_id].icon_index if stat == :atk_status_slot_1
  1109. return $data_states[Status_Slot_2_id].icon_index if stat == :atk_status_slot_2
  1110. return $data_states[Status_Slot_3_id].icon_index if stat == :atk_status_slot_3
  1111. return $data_states[Status_Slot_4_id].icon_index if stat == :atk_status_slot_4
  1112. return $data_states[Status_Slot_5_id].icon_index if stat == :atk_status_slot_5
  1113. return $data_states[Status_Slot_6_id].icon_index if stat == :atk_status_slot_6
  1114. return $data_states[Status_Slot_7_id].icon_index if stat == :atk_status_slot_7
  1115. return $data_states[Status_Slot_8_id].icon_index if stat == :atk_status_slot_8
  1116. return $data_states[Status_Slot_9_id].icon_index if stat == :atk_status_slot_9
  1117. return $data_states[Status_Row_2_Slot_1_id].icon_index if stat == :atk_status_slot_1_row_2
  1118. return $data_states[Status_Row_2_Slot_2_id].icon_index if stat == :atk_status_slot_2_row_2
  1119. return $data_states[Status_Row_2_Slot_3_id].icon_index if stat == :atk_status_slot_3_row_2
  1120. return $data_states[Status_Row_2_Slot_4_id].icon_index if stat == :atk_status_slot_4_row_2
  1121. return $data_states[Status_Row_2_Slot_5_id].icon_index if stat == :atk_status_slot_5_row_2
  1122. return $data_states[Status_Row_2_Slot_6_id].icon_index if stat == :atk_status_slot_6_row_2
  1123. return $data_states[Status_Row_2_Slot_7_id].icon_index if stat == :atk_status_slot_7_row_2
  1124. return $data_states[Status_Row_2_Slot_8_id].icon_index if stat == :atk_status_slot_8_row_2
  1125. return $data_states[Status_Row_2_Slot_9_id].icon_index if stat == :atk_status_slot_9_row_2
  1126. return 0
  1127. end
  1128.  
  1129.  
  1130. def self.Get_Gauge_Color_1(stat)
  1131. return MHP_Color_1 if stat == :mhp
  1132. return MMP_Color_1 if stat == :mmp
  1133. return TP_Color_1 if stat == :mtp
  1134. return ATK_Color_1 if stat == :atk
  1135. return DEF_Color_1 if stat == :def
  1136. return MAT_Color_1 if stat == :mat
  1137. return MDF_Color_1 if stat == :mdf
  1138. return AGI_Color_1 if stat == :agi
  1139. return LUK_Color_1 if stat == :luk
  1140. return HIT_Color_1 if stat == :hit
  1141. return EVA_Color_1 if stat == :eva
  1142. return CRI_Color_1 if stat == :cri
  1143. return CEV_Color_1 if stat == :cev
  1144. return MEV_Color_1 if stat == :mev
  1145. return MRF_Color_1 if stat == :mrf
  1146. return CNT_Color_1 if stat == :cnt
  1147. return HRG_Color_1 if stat == :hrg
  1148. return MRG_Color_1 if stat == :mrg
  1149. return TRG_Color_1 if stat == :trg
  1150. return TGR_Color_1 if stat == :tgr
  1151. return GRD_Color_1 if stat == :grd
  1152. return REC_Color_1 if stat == :rec
  1153. return PHA_Color_1 if stat == :pha
  1154. return MCR_Color_1 if stat == :mcr
  1155. return TCR_Color_1 if stat == :tcr
  1156. return PDR_Color_1 if stat == :pdr
  1157. return MDR_Color_1 if stat == :mdr
  1158. return FDR_Color_1 if stat == :fdr
  1159. return EXR_Color_1 if stat == :exr
  1160. return Element_Slot_1_Color_1 if stat == :element_slot_1
  1161. return Element_Slot_2_Color_1 if stat == :element_slot_2
  1162. return Element_Slot_3_Color_1 if stat == :element_slot_3
  1163. return Element_Slot_4_Color_1 if stat == :element_slot_4
  1164. return Element_Slot_5_Color_1 if stat == :element_slot_5
  1165. return Element_Slot_6_Color_1 if stat == :element_slot_6
  1166. return Element_Slot_7_Color_1 if stat == :element_slot_7
  1167. return Element_Slot_8_Color_1 if stat == :element_slot_8
  1168. return Element_Slot_9_Color_1 if stat == :element_slot_9
  1169. return Attack_Element_Slot_1_Color_1 if stat == :atk_element_slot_1
  1170. return Attack_Element_Slot_2_Color_1 if stat == :atk_element_slot_2
  1171. return Attack_Element_Slot_3_Color_1 if stat == :atk_element_slot_3
  1172. return Attack_Element_Slot_4_Color_1 if stat == :atk_element_slot_4
  1173. return Attack_Element_Slot_5_Color_1 if stat == :atk_element_slot_5
  1174. return Attack_Element_Slot_6_Color_1 if stat == :atk_element_slot_6
  1175. return Attack_Element_Slot_7_Color_1 if stat == :atk_element_slot_7
  1176. return Attack_Element_Slot_8_Color_1 if stat == :atk_element_slot_8
  1177. return Attack_Element_Slot_9_Color_1 if stat == :atk_element_slot_9
  1178. return Status_Slot_1_Color_1 if stat == :status_slot_1
  1179. return Status_Slot_2_Color_1 if stat == :status_slot_2
  1180. return Status_Slot_3_Color_1 if stat == :status_slot_3
  1181. return Status_Slot_4_Color_1 if stat == :status_slot_4
  1182. return Status_Slot_5_Color_1 if stat == :status_slot_5
  1183. return Status_Slot_6_Color_1 if stat == :status_slot_6
  1184. return Status_Slot_7_Color_1 if stat == :status_slot_7
  1185. return Status_Slot_8_Color_1 if stat == :status_slot_8
  1186. return Status_Slot_9_Color_1 if stat == :status_slot_9
  1187. return Status_Row_2_Slot_1_Color_1 if stat == :status_slot_1_row_2
  1188. return Status_Row_2_Slot_2_Color_1 if stat == :status_slot_2_row_2
  1189. return Status_Row_2_Slot_3_Color_1 if stat == :status_slot_3_row_2
  1190. return Status_Row_2_Slot_4_Color_1 if stat == :status_slot_4_row_2
  1191. return Status_Row_2_Slot_5_Color_1 if stat == :status_slot_5_row_2
  1192. return Status_Row_2_Slot_6_Color_1 if stat == :status_slot_6_row_2
  1193. return Status_Row_2_Slot_7_Color_1 if stat == :status_slot_7_row_2
  1194. return Status_Row_2_Slot_8_Color_1 if stat == :status_slot_8_row_2
  1195. return Status_Row_2_Slot_9_Color_1 if stat == :status_slot_9_row_2
  1196. return Attack_Status_Slot_1_Color_1 if stat == :atk_status_slot_1
  1197. return Attack_Status_Slot_2_Color_1 if stat == :atk_status_slot_2
  1198. return Attack_Status_Slot_3_Color_1 if stat == :atk_status_slot_3
  1199. return Attack_Status_Slot_4_Color_1 if stat == :atk_status_slot_4
  1200. return Attack_Status_Slot_5_Color_1 if stat == :atk_status_slot_5
  1201. return Attack_Status_Slot_6_Color_1 if stat == :atk_status_slot_6
  1202. return Attack_Status_Slot_7_Color_1 if stat == :atk_status_slot_7
  1203. return Attack_Status_Slot_8_Color_1 if stat == :atk_status_slot_8
  1204. return Attack_Status_Slot_9_Color_1 if stat == :atk_status_slot_9
  1205. return Attack_Status_Row_2_Slot_1_Color_1 if stat == :atk_status_slot_1_row_2
  1206. return Attack_Status_Row_2_Slot_2_Color_1 if stat == :atk_status_slot_2_row_2
  1207. return Attack_Status_Row_2_Slot_3_Color_1 if stat == :atk_status_slot_3_row_2
  1208. return Attack_Status_Row_2_Slot_4_Color_1 if stat == :atk_status_slot_4_row_2
  1209. return Attack_Status_Row_2_Slot_5_Color_1 if stat == :atk_status_slot_5_row_2
  1210. return Attack_Status_Row_2_Slot_6_Color_1 if stat == :atk_status_slot_6_row_2
  1211. return Attack_Status_Row_2_Slot_7_Color_1 if stat == :atk_status_slot_7_row_2
  1212. return Attack_Status_Row_2_Slot_8_Color_1 if stat == :atk_status_slot_8_row_2
  1213. return Attack_Status_Row_2_Slot_9_Color_1 if stat == :atk_status_slot_9_row_2
  1214. return Color.new(0, 0, 0)
  1215. end
  1216.  
  1217. def self.Get_Gauge_Color_2(stat)
  1218. return MHP_Color_2 if stat == :mhp
  1219. return MMP_Color_2 if stat == :mmp
  1220. return TP_Color_2 if stat == :mtp
  1221. return ATK_Color_2 if stat == :atk
  1222. return DEF_Color_2 if stat == :def
  1223. return MAT_Color_2 if stat == :mat
  1224. return MDF_Color_2 if stat == :mdf
  1225. return AGI_Color_2 if stat == :agi
  1226. return LUK_Color_2 if stat == :luk
  1227. return HIT_Color_2 if stat == :hit
  1228. return EVA_Color_2 if stat == :eva
  1229. return CRI_Color_2 if stat == :cri
  1230. return CEV_Color_2 if stat == :cev
  1231. return MEV_Color_2 if stat == :mev
  1232. return MRF_Color_2 if stat == :mrf
  1233. return CNT_Color_2 if stat == :cnt
  1234. return HRG_Color_2 if stat == :hrg
  1235. return MRG_Color_2 if stat == :mrg
  1236. return TRG_Color_2 if stat == :trg
  1237. return TGR_Color_2 if stat == :tgr
  1238. return GRD_Color_2 if stat == :grd
  1239. return REC_Color_2 if stat == :rec
  1240. return PHA_Color_2 if stat == :pha
  1241. return MCR_Color_2 if stat == :mcr
  1242. return TCR_Color_2 if stat == :tcr
  1243. return PDR_Color_2 if stat == :pdr
  1244. return MDR_Color_2 if stat == :mdr
  1245. return FDR_Color_2 if stat == :fdr
  1246. return EXR_Color_2 if stat == :exr
  1247. return Element_Slot_1_Color_2 if stat == :element_slot_1
  1248. return Element_Slot_2_Color_2 if stat == :element_slot_2
  1249. return Element_Slot_3_Color_2 if stat == :element_slot_3
  1250. return Element_Slot_4_Color_2 if stat == :element_slot_4
  1251. return Element_Slot_5_Color_2 if stat == :element_slot_5
  1252. return Element_Slot_6_Color_2 if stat == :element_slot_6
  1253. return Element_Slot_7_Color_2 if stat == :element_slot_7
  1254. return Element_Slot_8_Color_2 if stat == :element_slot_8
  1255. return Element_Slot_9_Color_2 if stat == :element_slot_9
  1256. return Attack_Element_Slot_1_Color_2 if stat == :atk_element_slot_1
  1257. return Attack_Element_Slot_2_Color_2 if stat == :atk_element_slot_2
  1258. return Attack_Element_Slot_3_Color_2 if stat == :atk_element_slot_3
  1259. return Attack_Element_Slot_4_Color_2 if stat == :atk_element_slot_4
  1260. return Attack_Element_Slot_5_Color_2 if stat == :atk_element_slot_5
  1261. return Attack_Element_Slot_6_Color_2 if stat == :atk_element_slot_6
  1262. return Attack_Element_Slot_7_Color_2 if stat == :atk_element_slot_7
  1263. return Attack_Element_Slot_8_Color_2 if stat == :atk_element_slot_8
  1264. return Attack_Element_Slot_9_Color_2 if stat == :atk_element_slot_9
  1265. return Status_Slot_1_Color_2 if stat == :status_slot_1
  1266. return Status_Slot_2_Color_2 if stat == :status_slot_2
  1267. return Status_Slot_3_Color_2 if stat == :status_slot_3
  1268. return Status_Slot_4_Color_2 if stat == :status_slot_4
  1269. return Status_Slot_5_Color_2 if stat == :status_slot_5
  1270. return Status_Slot_6_Color_2 if stat == :status_slot_6
  1271. return Status_Slot_7_Color_2 if stat == :status_slot_7
  1272. return Status_Slot_8_Color_2 if stat == :status_slot_8
  1273. return Status_Slot_9_Color_2 if stat == :status_slot_9
  1274. return Status_Row_2_Slot_1_Color_2 if stat == :status_slot_1_row_2
  1275. return Status_Row_2_Slot_2_Color_2 if stat == :status_slot_2_row_2
  1276. return Status_Row_2_Slot_3_Color_2 if stat == :status_slot_3_row_2
  1277. return Status_Row_2_Slot_4_Color_2 if stat == :status_slot_4_row_2
  1278. return Status_Row_2_Slot_5_Color_2 if stat == :status_slot_5_row_2
  1279. return Status_Row_2_Slot_6_Color_2 if stat == :status_slot_6_row_2
  1280. return Status_Row_2_Slot_7_Color_2 if stat == :status_slot_7_row_2
  1281. return Status_Row_2_Slot_8_Color_2 if stat == :status_slot_8_row_2
  1282. return Status_Row_2_Slot_9_Color_2 if stat == :status_slot_9_row_2
  1283. return Attack_Status_Slot_1_Color_2 if stat == :atk_status_slot_1
  1284. return Attack_Status_Slot_2_Color_2 if stat == :atk_status_slot_2
  1285. return Attack_Status_Slot_3_Color_2 if stat == :atk_status_slot_3
  1286. return Attack_Status_Slot_4_Color_2 if stat == :atk_status_slot_4
  1287. return Attack_Status_Slot_5_Color_2 if stat == :atk_status_slot_5
  1288. return Attack_Status_Slot_6_Color_2 if stat == :atk_status_slot_6
  1289. return Attack_Status_Slot_7_Color_2 if stat == :atk_status_slot_7
  1290. return Attack_Status_Slot_8_Color_2 if stat == :atk_status_slot_8
  1291. return Attack_Status_Slot_9_Color_2 if stat == :atk_status_slot_9
  1292. return Attack_Status_Row_2_Slot_1_Color_2 if stat == :atk_status_slot_1_row_2
  1293. return Attack_Status_Row_2_Slot_2_Color_2 if stat == :atk_status_slot_2_row_2
  1294. return Attack_Status_Row_2_Slot_3_Color_2 if stat == :atk_status_slot_3_row_2
  1295. return Attack_Status_Row_2_Slot_4_Color_2 if stat == :atk_status_slot_4_row_2
  1296. return Attack_Status_Row_2_Slot_5_Color_2 if stat == :atk_status_slot_5_row_2
  1297. return Attack_Status_Row_2_Slot_6_Color_2 if stat == :atk_status_slot_6_row_2
  1298. return Attack_Status_Row_2_Slot_7_Color_2 if stat == :atk_status_slot_7_row_2
  1299. return Attack_Status_Row_2_Slot_8_Color_2 if stat == :atk_status_slot_8_row_2
  1300. return Attack_Status_Row_2_Slot_9_Color_2 if stat == :atk_status_slot_9_row_2
  1301. return Color.new(0, 0, 0)
  1302. end
  1303.  
  1304. def self.String_Value_Color_Settings(value)
  1305. return Color.new(0, 0, 0, 0) if value.nil?
  1306. return Color.new(111, 111, 111) if value == N_A_Vocab
  1307. return Color.new(222, 222, 222)
  1308. end
  1309.  
  1310. def self.Value_Color_Settings(value)
  1311. val = value.to_f
  1312. if val == 0.0
  1313. return Color.new(111, 111, 111)
  1314. elsif val < 0.0
  1315. return Color.new(222, 111, 111)
  1316. elsif val > 0.0
  1317. return Color.new(222, 222, 222)
  1318. end
  1319. end
  1320.  
  1321. def self.Name_Value(target)
  1322. if target == false
  1323. return N_A_Vocab
  1324. else
  1325. return "#{target.name}"
  1326. end
  1327. end
  1328.  
  1329.  
  1330. # Do Not Remove This.
  1331. p 'Loaded : DPBz - CORE'
  1332. end # module Dekita__CORE
  1333.  
  1334. $imported = {} if $imported.nil?
  1335. $imported[:Dekita__CORE] = true
  1336.  
  1337. #==============================================================================
  1338. class Object
  1339. #==============================================================================
  1340.  
  1341. def dpbz_randy(min, max)
  1342. min + rand(max - min + 1)
  1343. end
  1344.  
  1345. def dup!
  1346. Marshal.load(Marshal.dump(self))
  1347. end
  1348.  
  1349. end # class Object
  1350.  
  1351. #==============================================================================
  1352. #class Window_Base < Window
  1353. #==============================================================================
  1354. module Dekita__CORE__Module
  1355. # // Draws Stat Information
  1356. def draw_stat_info_DPBz(stat_info, target, dx, dy, dw)
  1357. dpbz_target = target
  1358. fmt = "%1.2f%%"
  1359. gh = Dekita__CORE::Gauge_Height
  1360. case stat_info[0]
  1361. when :vit, :str, :dex, :mag
  1362. return dy unless $imported[:Dekita__PSPDS]
  1363. text = DPB::PSPDS.PSPDS_Vocab(stat_info[0])
  1364. value = DPB::PSPDS.PSPDS_Value(target, stat_info[0])
  1365. icon_ = DPB::PSPDS.PSPDS_Icons(stat_info[0])
  1366. rate = DPB::PSPDS.PWIs_Gauge_Rate(target, stat_info[0])
  1367. color1 = DPB::PSPDS.PSPDS_Gauge_Color_1(stat_info[0])
  1368. color2 = DPB::PSPDS.PSPDS_Gauge_Color_2(stat_info[0])
  1369. gauge = DPB::PSPDS::Draw_Vit_Str_Dex_Mag_Gauges
  1370. draw_icons = DPB::PSPDS::Draw_Vit_Str_Dex_Mag_Icons
  1371. value_color = Dekita__CORE.Value_Color_Settings(value)
  1372. when :atl, :dfl
  1373. return dy unless $imported[:Dekita__ATL_AND_DFL]
  1374. text = DPB::ATLANDDFL.atls_Vocab(stat_info[0])
  1375. value = DPB::ATLANDDFL.atls_Value(target, stat_info[0])
  1376. icon_ = DPB::ATLANDDFL.atls_Icons(stat_info[0])
  1377. rate = DPB::ATLANDDFL.atls_Gauge_Rate(target, stat_info[0])
  1378. color1 = DPB::ATLANDDFL.Get_Gauge_Color_1(stat_info[0])
  1379. color2 = DPB::ATLANDDFL.Get_Gauge_Color_2(stat_info[0])
  1380. gauge = DPB::ATLANDDFL::Draw_Atl_And_Dfl_Gauges
  1381. draw_icons = DPB::ATLANDDFL::Draw_Atl_And_Dfl_Icons
  1382. value_color = Dekita__CORE.Value_Color_Settings(value)
  1383. when :mhp , :mmp , :mtp
  1384. text = Dekita__CORE.Get_Info_Vocab(stat_info[0])
  1385. value = Dekita__CORE.C_M_STAT_Value(dpbz_target, stat_info[0])
  1386. icon_ = Dekita__CORE.Get_Info_Icons(stat_info[0])
  1387. rate = Dekita__CORE.Param_Gauge_Rate(dpbz_target, stat_info[0])
  1388. color1 = Dekita__CORE.Get_Gauge_Color_1(stat_info[0])
  1389. color2 = Dekita__CORE.Get_Gauge_Color_2(stat_info[0])
  1390. gauge = Dekita__CORE::Draw_Param_Gauges
  1391. draw_icons = Dekita__CORE::Draw_Param_Icons
  1392. value_color = Dekita__CORE.Value_Color_Settings(value)
  1393. when :atk, :def, :mat, :mdf, :agi, :luk, :hit, :eva, :cri, :cev, :mev, :mrf,
  1394. :cnt, :hrg, :mrg, :trg, :tgr, :grd, :rec, :pha, :mcr, :tcr, :pdr, :mdr,
  1395. :fdr, :exr
  1396. text = Dekita__CORE.Get_Info_Vocab(stat_info[0])
  1397. value = Dekita__CORE::STAT_Value(dpbz_target, stat_info[0])
  1398. icon_ = Dekita__CORE.Get_Info_Icons(stat_info[0])
  1399. rate = Dekita__CORE.Param_Gauge_Rate(dpbz_target, stat_info[0])
  1400. color1 = Dekita__CORE.Get_Gauge_Color_1(stat_info[0])
  1401. color2 = Dekita__CORE.Get_Gauge_Color_2(stat_info[0])
  1402. gauge = Dekita__CORE::Draw_Param_Gauges
  1403. draw_icons = Dekita__CORE::Draw_Param_Icons
  1404. value_color = Dekita__CORE.Value_Color_Settings(value)
  1405. when :element_slot_1, :element_slot_2, :element_slot_3, :element_slot_4,
  1406. :element_slot_5, :element_slot_6, :element_slot_7, :element_slot_8, :element_slot_9,
  1407. :atk_element_slot_1, :atk_element_slot_2, :atk_element_slot_3, :atk_element_slot_4,
  1408. :atk_element_slot_5, :atk_element_slot_6, :atk_element_slot_7, :atk_element_slot_8,
  1409. :atk_element_slot_9
  1410. return dy if $data_system.elements[Dekita__CORE::Element_Slot_1_id].nil?
  1411. text = Dekita__CORE.Get_Info_Vocab(stat_info[0])
  1412. value = Dekita__CORE::STAT_Value(dpbz_target, stat_info[0])
  1413. icon_ = Dekita__CORE.Get_Info_Icons(stat_info[0])
  1414. rate = Dekita__CORE.Param_Gauge_Rate(dpbz_target, stat_info[0])
  1415. color1 = Dekita__CORE.Get_Gauge_Color_1(stat_info[0])
  1416. color2 = Dekita__CORE.Get_Gauge_Color_2(stat_info[0])
  1417. gauge = Dekita__CORE::Draw_Element_Gauges
  1418. draw_icons = Dekita__CORE::Draw_Element_Icons
  1419. value_color = Dekita__CORE.Value_Color_Settings(value)
  1420. when :status_slot_1, :status_slot_2, :status_slot_3, :status_slot_4,
  1421. :status_slot_5, :status_slot_6, :status_slot_7, :status_slot_8,
  1422. :status_slot_9, :status_slot_1_row_2, :status_slot_2_row_2, :status_slot_3_row_2,
  1423. :status_slot_4_row_2, :status_slot_5_row_2, :status_slot_6_row_2,
  1424. :status_slot_7_row_2, :status_slot_8_row_2, :status_slot_9_row_2,
  1425. :atk_status_slot_1, :atk_status_slot_2, :atk_status_slot_3, :atk_status_slot_4,
  1426. :atk_status_slot_5, :atk_status_slot_6, :atk_status_slot_7, :atk_status_slot_8, :atk_status_slot_9,
  1427. :atk_status_slot_1_row_2, :atk_status_slot_2_row_2, :atk_status_slot_3_row_2,
  1428. :atk_status_slot_4_row_2, :atk_status_slot_5_row_2, :atk_status_slot_6_row_2,
  1429. :atk_status_slot_7_row_2, :atk_status_slot_8_row_2, :atk_status_slot_9_row_2
  1430. return dy if $data_states[Dekita__CORE::Status_Slot_1_id].nil?
  1431. text = Dekita__CORE.Get_Info_Vocab(stat_info[0])
  1432. value = Dekita__CORE::STAT_Value(dpbz_target, stat_info[0])
  1433. icon_ = Dekita__CORE.Get_Info_Icons(stat_info[0])
  1434. rate = Dekita__CORE.Param_Gauge_Rate(dpbz_target, stat_info[0])
  1435. color1 = Dekita__CORE.Get_Gauge_Color_1(stat_info[0])
  1436. color2 = Dekita__CORE.Get_Gauge_Color_2(stat_info[0])
  1437. gauge = Dekita__CORE::Draw_Status_Gauges
  1438. draw_icons = Dekita__CORE::Draw_Status_Icons
  1439. value_color = Dekita__CORE.Value_Color_Settings(value)
  1440. when :name
  1441. text = Dekita__CORE::Name_Vocab
  1442. value = Dekita__CORE.Name_Value(dpbz_target)
  1443. icon_ = Dekita__CORE::Name_Icon
  1444. gauge = false
  1445. draw_icons = Dekita__CORE::Draw_Name_Icon
  1446. value_color = Dekita__CORE.String_Value_Color_Settings(value)
  1447. when :nickname
  1448. return dy if dpbz_target.is_a?(RPG::EquipItem)
  1449. return dy if dpbz_target.is_a?(RPG::Enemy)
  1450. return dy if dpbz_target == false
  1451. text = Dekita__CORE::Nickname_Vocab#"Nickname"
  1452. value = dpbz_target.nickname
  1453. icon_ = Dekita__CORE::Nickname_Icon
  1454. gauge = false
  1455. draw_icons = Dekita__CORE::Draw_Nickname_Icon
  1456. value_color = Dekita__CORE.String_Value_Color_Settings(value)
  1457. when :class
  1458. return dy if dpbz_target.is_a?(RPG::EquipItem)
  1459. return dy if dpbz_target.is_a?(RPG::Enemy)
  1460. return dy if dpbz_target == false
  1461. text = Dekita__CORE::Class_Vocab#"Class"
  1462. value = dpbz_target.class.name
  1463. icon_ = Dekita__CORE::Class_Icon
  1464. gauge = false
  1465. draw_icons = Dekita__CORE::Draw_Class_Icon
  1466. value_color = Dekita__CORE.String_Value_Color_Settings(value)
  1467. when :level
  1468. return dy if dpbz_target == false
  1469. return dy if dpbz_target.is_a?(RPG::EquipItem)
  1470. text = Dekita__CORE::Level_Vocab#"Level"
  1471. value = dpbz_target.level
  1472. icon_ = Dekita__CORE::Level_Icon
  1473. gauge = false
  1474. draw_icons = Dekita__CORE::Draw_Level_Icon
  1475. value_color = Dekita__CORE.Value_Color_Settings(value)
  1476. when :exp_total
  1477. return dy if dpbz_target == false
  1478. return dy if dpbz_target.is_a?(RPG::EquipItem)
  1479. text = "Exp Total"
  1480. value = dpbz_target.exp
  1481. icon_ = Dekita__CORE::Exp_Total_Icon
  1482. gauge = false
  1483. draw_icons = Dekita__CORE::Draw_Exp_Total_Icon
  1484. value_color = Dekita__CORE.Value_Color_Settings(value)
  1485. when :exp_to_next
  1486. return dy if dpbz_target == false
  1487. return dy if dpbz_target.is_a?(RPG::EquipItem)
  1488. return dy if dpbz_target.is_a?(RPG::Enemy)
  1489. text = "Exp To Next"
  1490. value = dpbz_target.max_level? ? "----" : dpbz_target.next_level_exp - dpbz_target.exp
  1491. icon_ = Dekita__CORE::Exp_To_Next_Icon
  1492. gauge = false
  1493. draw_icons = Dekita__CORE::Draw_Exp_To_Next_Icon
  1494. value_color = Dekita__CORE.Value_Color_Settings(value)
  1495. when :req_lvl, :req_vit, :req_str, :req_dex, :req_mag, :req_atl, :req_dfl, :req_adc
  1496. return dy unless $imported[:Dekita__Equip_Requirements]
  1497. return dy unless $imported[:Dekita__PSPDS]
  1498. text = DPB::EQUIPREQZ.Requirements_For_Equip_Vocab(stat_info[0])
  1499. value = DPB::EQUIPREQZ.Requirements_For_Equip_Value(dpbz_target, stat_info[0])
  1500. icon_ = DPB::EQUIPREQZ.Requirements_For_Equip_Icons(stat_info[0])
  1501. gauge = false
  1502. draw_icons = DPB::EQUIPREQZ::Use_Equip_Reqz_Icons
  1503. value_color = Dekita__CORE.Value_Color_Settings(value)
  1504. when :death_counter
  1505. return dy if dpbz_target == false
  1506. return dy unless $imported[:Dekita__Status_Screen]
  1507. return dy unless $imported[:Dekita__Actors_Death_Counter]
  1508. return dy if dpbz_target.is_a?(RPG::EquipItem)
  1509. text = Dekita__Actors_Death_Counter::Death_Counter_Vocab
  1510. value = Dekita__Actors_Death_Counter.Death_Counter_Value(dpbz_target)
  1511. icon_ = Dekita__Actors_Death_Counter::Death_Counter_Icon
  1512. gauge = false#Dekita__Actors_Death_Counter::Draw_Death_Counter_Gauge
  1513. draw_icons = Dekita__Actors_Death_Counter::Draw_Death_Counter_Icon
  1514. value_color = Dekita__CORE.Value_Color_Settings(value)
  1515. else ; return dy ; end
  1516. contents.font.size = Dekita__CORE::Info_Font_Size
  1517. colour = Dekita__CORE::Background_Color
  1518. rect = Rect.new(dx+1, dy+1, dw-2, line_height-2)
  1519. contents.fill_rect(rect, colour)
  1520. change_color(Color.new(255, 255, 255))
  1521. if draw_icons
  1522. draw_icon(icon_, dx, dy, enable_DPBz_icons?)
  1523. draw_gauge_DPBz(dx+25, dy+1, dw-27, gh, rate, color1, color2) if gauge
  1524. draw_text(dx+25, dy, dw-8, line_height, text, 0)
  1525. else
  1526. draw_gauge_DPBz(dx+5, dy+1, dw-4, gh, rate, color1, color2) if gauge
  1527. draw_text(dx+4, dy, dw-8, line_height, text, 0)
  1528. end
  1529. change_color(value_color)
  1530. draw_text(dx+4, dy, dw-8, line_height, value, 2)
  1531. return dy + line_height
  1532. end
  1533.  
  1534. def draw_points_info_DPBz(stat_info, target, dx, dy, dw)
  1535. dpbz_target = target
  1536. fmt = "%1.2f%%"
  1537. case stat_info[0]
  1538. when :points
  1539. return dy unless $imported[:Dekita__PSPDS]
  1540. text = DPB::PSPDS::LVLUPPTSVOCAB
  1541. value = dpbz_target.level_up_pts
  1542. icon_ = DPB::PSPDS::Points_Icon
  1543. draw_icons = DPB::PSPDS::Draw_Vit_Str_Dex_Mag_Icons
  1544. value_color = Dekita__CORE.Value_Color_Settings(value)
  1545. else ; return dy ; end
  1546. contents.font.size = Dekita__CORE::Info_Font_Size
  1547. colour = Dekita__CORE::Background_Color
  1548. rect = Rect.new(dx+1, dy+1, dw-2, line_height-2)
  1549. contents.fill_rect(rect, colour)
  1550. change_color(Color.new(255, 255, 255))
  1551. if draw_icons
  1552. draw_icon(icon_, dx, dy, enable_DPBz_icons?)
  1553. draw_text(dx+25, dy, dw-8, line_height, text, 0)
  1554. else
  1555. draw_text(dx+4, dy, dw-8, line_height, text, 0)
  1556. end
  1557. change_color(value_color)
  1558. draw_text(dx+4, dy, dw-8, line_height, value, 2)
  1559. return dy + line_height
  1560. end
  1561.  
  1562. def check_more_stat_info_DPBz(stat_info, target, dx, dy, dw)
  1563. return dy if stat_info.nil?
  1564. # // For Future Add-on's
  1565. end
  1566.  
  1567. # // Enable Icon Lights ?
  1568. def enable_DPBz_icons?
  1569. return false if Dekita__CORE::Dull_Icons
  1570. return true
  1571. end
  1572.  
  1573. # // Method to Draw a Gauge with height
  1574. def draw_gauge_DPBz(dx, dy, dw, dh, rate, color1, color2)
  1575. empty_gauge_color = Dekita__CORE::Empty_Gauge_Color
  1576. fill_w = [(dw * rate).to_i, dw].min
  1577. gauge_h = dh
  1578. gauge_y = dy + line_height - 2 - gauge_h
  1579. contents.fill_rect(dx, gauge_y, dw, gauge_h, empty_gauge_color)
  1580. contents.gradient_fill_rect(dx, gauge_y, fill_w, gauge_h, color1, color2)
  1581. end
  1582.  
  1583.  
  1584.  
  1585. end # class Window_Base < Window
  1586.  
  1587. #==============================================================================
  1588. class Window_Base < Window
  1589. #==============================================================================
  1590. include Dekita__CORE__Module
  1591.  
  1592. end # Window_Base < Window
  1593.  
  1594.  
  1595. #==============================================================================
  1596. class RPG::BaseItem
  1597. # Credits to Tsukihime for these methods.
  1598. #==============================================================================
  1599.  
  1600. # Returns features for item filtered by code
  1601. def item_features(item, code)
  1602. item.features.select {|ft| ft.code == code}
  1603. end
  1604.  
  1605. # Returns features for item filtered by code and data ID
  1606. def item_features_with_id(item, code, data_id)
  1607. item.features.select {|ft| ft.code == code && ft.data_id == data_id}
  1608. end
  1609.  
  1610. # Returns sum of all features for item, by code and data ID
  1611. def item_features_sum(item, code, data_id)
  1612. item_features_with_id(item, code, data_id).inject(0.0) {|r, ft| r += ft.value }
  1613. end
  1614.  
  1615.  
  1616. def item_features_pi(item, code, data_id)
  1617. item_features_with_id(item, code, data_id).inject(1.0) {|r, ft| r *= ft.value }
  1618. end
  1619.  
  1620. end # RPG::BaseItem
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement