Well, This Time I try but not get that I want. How I can reduce this piece of code to less lines without affect the work of the same?.
My code:
Well, sorry for ask to much sometimes I'm very annoying.':|
Thanks In advance! :thumb:
My code:
Code:
case $game_variables[@parameters[0]]
when 0..19
self.contents.font.color = Color.disabled
self.contents.draw_text(0, 33, 116, 32, Profession::Rank[0], 1)
when 20..39
self.contents.font.color = Color.yellow
self.contents.draw_text(0, 33, 116, 32, Profession::Rank[1], 1)
when 40..59
self.contents.font.color = Color.crisis
self.contents.draw_text(0, 33, 116, 32, Profession::Rank[2], 1)
when 60..79
self.contents.font.color = Color.orange
self.contents.draw_text(0, 33, 116, 32, Profession::Rank[3], 1)
when 80..5000
self.contents.font.color = Color.knockout
self.contents.draw_text(0, 33, 116, 32, Profession::Rank[4], 1)
end
end
Well, sorry for ask to much sometimes I'm very annoying.':|
Thanks In advance! :thumb: