Last active
August 29, 2015 14:13
-
-
Save HimeWorks/676ee5ad4de0e98122e9 to your computer and use it in GitHub Desktop.
Non-Cumulative EXP display
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RPG Maker VX Ace by default shows the cumulative EXP up to now. | |
# For example, Level 1 to Level 2 requires 50 EXP and Level 2 to Level 3 requires 50 EXP. | |
# If you just reached level 2, Ace would say you currently have 50 EXP and need 50 EXP to level. | |
# This snippet makes it so that the current exp displayed is relative to the current level, and not level 1. | |
# So now it would say you have 0 EXP and need 50 EXP. | |
class Window_Status < Window_Selectable | |
def draw_exp_info(x, y) | |
s1 = @actor.max_level? ? "-------" : @actor.exp - @actor.exp_for_level(@actor.level) | |
s2 = @actor.max_level? ? "-------" : @actor.next_level_exp - @actor.exp | |
s_next = sprintf(Vocab::ExpNext, Vocab::level) | |
change_color(system_color) | |
draw_text(x, y + line_height * 0, 180, line_height, Vocab::ExpTotal) | |
draw_text(x, y + line_height * 2, 180, line_height, s_next) | |
change_color(normal_color) | |
draw_text(x, y + line_height * 1, 180, line_height, s1, 2) | |
draw_text(x, y + line_height * 3, 180, line_height, s2, 2) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment