TheoAllen

YEA - Disable Victory Stats

Apr 15th, 2014
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. module TLZ
  2.  
  3. # 0 - MHP
  4. # 1 - MMP
  5. # 2 - ATK
  6. # 3 - DEF
  7. # 4 - MAT
  8. # 5 - MDF
  9. # 6 - AGI
  10. # 7 - LUK
  11.  
  12. # Catet stats yg mau didisable disini
  13. Disabled_Stats = [1,6,7]
  14.  
  15. end
  16. # ----------------------------------------------------------------------------
  17. # Overwrite how draw stats is handled
  18. # ----------------------------------------------------------------------------
  19. class Window_VictoryLevelUp
  20.  
  21. def draw_param_names(actor, dx)
  22. dx += 108
  23. change_color(system_color)
  24. text = Vocab.level
  25. draw_text(dx, 0, contents.width - dx, line_height, text)
  26. dy = 0
  27. for i in 0...8
  28. next if TLZ::Disabled_Stats.include?(i)
  29. dy += line_height
  30. text = Vocab.param(i)
  31. draw_text(dx, dy, contents.width - dx, line_height, text)
  32. end
  33. end
  34.  
  35. def draw_former_stats(actor)
  36. dw = contents.width / 2 - 12
  37. dy = 0
  38. change_color(normal_color)
  39. draw_text(0, dy, dw, line_height, actor.level.group, 2)
  40. for i in 0...8
  41. next if TLZ::Disabled_Stats.include?(i)
  42. dy += line_height
  43. draw_text(0, dy, dw, line_height, actor.param(i).group, 2)
  44. end
  45. end
  46.  
  47. def draw_arrows
  48. dx = contents.width / 2 - 12
  49. dy = 0
  50. change_color(system_color)
  51. for i in 0..8
  52. next if TLZ::Disabled_Stats.include?(i)
  53. draw_text(dx, dy, 24, line_height, "→", 1)
  54. dy += line_height
  55. end
  56. end
  57.  
  58. def draw_newer_stats(actor, temp_actor)
  59. dx = contents.width / 2 + 12
  60. dw = contents.width - dx
  61. dy = 0
  62. change_color(param_change_color(actor.level - temp_actor.level))
  63. draw_text(dx, dy, dw, line_height, actor.level.group, 0)
  64. for i in 0...8
  65. next if TLZ::Disabled_Stats.include?(i)
  66. dy += line_height
  67. change_color(param_change_color(actor.param(i) - temp_actor.param(i)))
  68. draw_text(dx, dy, dw, line_height, actor.param(i).group, 0)
  69. end
  70. end
  71.  
  72. end
Advertisement
Add Comment
Please, Sign In to add comment