Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Non-Cumulative EXP display
# 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
You can’t perform that action at this time.