Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module TLZ
- # 0 - MHP
- # 1 - MMP
- # 2 - ATK
- # 3 - DEF
- # 4 - MAT
- # 5 - MDF
- # 6 - AGI
- # 7 - LUK
- # Catet stats yg mau didisable disini
- Disabled_Stats = [1,6,7]
- end
- # ----------------------------------------------------------------------------
- # Overwrite how draw stats is handled
- # ----------------------------------------------------------------------------
- class Window_VictoryLevelUp
- def draw_param_names(actor, dx)
- dx += 108
- change_color(system_color)
- text = Vocab.level
- draw_text(dx, 0, contents.width - dx, line_height, text)
- dy = 0
- for i in 0...8
- next if TLZ::Disabled_Stats.include?(i)
- dy += line_height
- text = Vocab.param(i)
- draw_text(dx, dy, contents.width - dx, line_height, text)
- end
- end
- def draw_former_stats(actor)
- dw = contents.width / 2 - 12
- dy = 0
- change_color(normal_color)
- draw_text(0, dy, dw, line_height, actor.level.group, 2)
- for i in 0...8
- next if TLZ::Disabled_Stats.include?(i)
- dy += line_height
- draw_text(0, dy, dw, line_height, actor.param(i).group, 2)
- end
- end
- def draw_arrows
- dx = contents.width / 2 - 12
- dy = 0
- change_color(system_color)
- for i in 0..8
- next if TLZ::Disabled_Stats.include?(i)
- draw_text(dx, dy, 24, line_height, "→", 1)
- dy += line_height
- end
- end
- def draw_newer_stats(actor, temp_actor)
- dx = contents.width / 2 + 12
- dw = contents.width - dx
- dy = 0
- change_color(param_change_color(actor.level - temp_actor.level))
- draw_text(dx, dy, dw, line_height, actor.level.group, 0)
- for i in 0...8
- next if TLZ::Disabled_Stats.include?(i)
- dy += line_height
- change_color(param_change_color(actor.param(i) - temp_actor.param(i)))
- draw_text(dx, dy, dw, line_height, actor.param(i).group, 0)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment