du meinst wohl dieses:
module IQC_Configs
################################################################################
# Basic Item Quality Colors of Awesome VX v1.1 #
################################################################################
# Author: Leongon #
# Contact: carlos_gon47@hotmail.com (or PM leongon on the board below) #
# Licence: Free for commercial and non-commercial proyects, just credit. #
# Share: Exclusive for [url=http://www.rpgrevolution.com]www.rpgrevolution.com[/url] #
# If you want to share it outside, give a link only, please. #
################################################################################
# This is a really tiny one. Item Quality let you set "quality" by colors, #
# like in Diablo II: green for sets, yellow for epics, etc. and lot of other #
# games around that colorizes the item, weapon and armor's names. And also can #
# be used on skills if you want to colourize them by element or something. #
################################################################################
################################################################################
# Instructions # #
################ #
# #
# Setting an Item Quality. --------------------------------------------------- #
# #
# Insert this tag in the item, weapon, armor or skill's notefields: #
# <IQC quality> #
# #
# Being "quality" the name you set for that quality, like rare, epic or uber. #
# #
# Asigning a color to a Item Quality. ---------------------------------------- #
# #
# Below, in the configuration area, you can find the color list from 0 to 31. #
# There insert the proper quality name at the color you want to be linked. #
# #
# If there are no tag found, the name will appear at normal text color: white #
# in default RTP Window.png #
# #
# I defaulted according to WoW quality colors: poor, rare, epic and legendary, #
# but you must take in consideration that I used the default RTP Window.png #
# So if you have a custom one you can have different colors, so change the #
# list at your will to match your needs. #
# #
################################################################################
# Configuration Area #
######################
#
IQC_quality = # Don't touch this line.
{ # Don't touch this line.
0 => "0", #
1 => "1", # Hellblau
2 => "2", # orange
3 => "3", # green
4 => "4", #
5 => "5", #
6 => "6", #
7 => "7", #
8 => "8", # gray
9 => "9", # blue
10 => "10", # red
11 => "11", # green
12 => "12", #
13 => "13", #
14 => "14", #
15 => "15", # black
16 => "16", #
17 => "17", # yellow
18 => "18", # red
19 => "19", #
20 => "20", # brown
21 => "21", # gold
22 => "22", #
23 => "23", #
24 => "24", # lime green
25 => "25", #
26 => "26", #
27 => "27", #
28 => "28", #
29 => "29", #
30 => "30", # purple
31 => "31" #
} # Don't touch this line.
#
######################
# Config Area End #
######################
end
#------------------------------------------------------------------------------#
# Don't cross this line unless your country is at the top of the group table #
# on South Africa's 2010 soccer world cup. #
#------------------------------------------------------------------------------#
module LNR
def get_single_for(note_field,tag_name)
lines = note_field.split("\n")
for line in lines
if line[0,1].eql?("<")
line2=line.split(/[<> ]/)
if line2[1].eql?(tag_name)
return line2[2]
end
end
end
end
end
#------------------------------------------------------------------------------#
class Window_Base < Window
include LNR
include IQC_Configs
def draw_item_name(item, x, y, enabled = true)
if item != nil
draw_icon(item.icon_index, x, y, enabled)
self.contents.font.color = normal_color
if item.note.include?("<IQC ")
quality = get_single_for(item.note,"IQC")
self.contents.font.color = text_color(IQC_quality.index(quality).to_i)
end
self.contents.font.color.alpha = enabled ? 255 : 128
self.contents.draw_text(x + 24, y, 172, WLH, item.name)
self.contents.font.color = normal_color
end
end
end
credits gehn an Leongon (:
lg flipy