Hello I'm looking for a short script that draws exp as 0/50, and when I reach the max exp it will draw max exp.
in the form of this:
def draw_exp_info(x, y)
s1 = @actor.max_level? ? "MAX EXP" : @actor.exp
s2 = @actor.max_level? ? "MAX EXP" : @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) #EXP WORD
draw_text(x, y - 20 + line_height * 2, 180, line_height, s_next) #NEXT EXP WORD
change_color(normal_color)
draw_text(x - 110, y - 10 + line_height * 1, 180, line_height, s1, 2) #EXP NUMBER
draw_text(x - 110, y - 30 + line_height * 3, 180, line_height, s2, 2) #NEXT EXP NUMBER
end
I want it to be under the same method. So I want to be able to add it back into the main script and use it, and instead of it displaying as
current exp
0
to next exp
50
it will say 0/50
thanks in advance!
I basically took it from the status window, and added it to another script. it's working but I want it to look cleaner.
in the form of this:
def draw_exp_info(x, y)
s1 = @actor.max_level? ? "MAX EXP" : @actor.exp
s2 = @actor.max_level? ? "MAX EXP" : @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) #EXP WORD
draw_text(x, y - 20 + line_height * 2, 180, line_height, s_next) #NEXT EXP WORD
change_color(normal_color)
draw_text(x - 110, y - 10 + line_height * 1, 180, line_height, s1, 2) #EXP NUMBER
draw_text(x - 110, y - 30 + line_height * 3, 180, line_height, s2, 2) #NEXT EXP NUMBER
end
I want it to be under the same method. So I want to be able to add it back into the main script and use it, and instead of it displaying as
current exp
0
to next exp
50
it will say 0/50
thanks in advance!
I basically took it from the status window, and added it to another script. it's working but I want it to look cleaner.