collapse collapse

 Community


 User Info




Willkommen Gast. Bitte einloggen oder registrieren.

 Partnerseiten

rpgvx.net

Das Forum ist offline

Autor Thema: Itemnamen einfärben?  (Gelesen 717 mal)

Offline Deses

  • Database-Verunstalter
  • **
  • Beiträge: 105
    • Ulugar - Developers Blog
Itemnamen einfärben?
« am: November 09, 2012, 22:42:47 »
Jemand ne Ahnung ob man Item/Waffen/Rüstungsnamen einfärben kann? Ich meine mal nen Script gesehen zu haben, kann mich aber auch täuschen :D

Re: Itemnamen einfärben?

Offline FlipelyFlip

  • Will sein Alter nicht verraten xD
  • Administrator
  • VX-Großmeister
  • ****
  • Beiträge: 884
  • Heyho (=
    • Flips Musik Kariere auf Facebook xD
Re: Itemnamen einfärben?
« Antwort #1 am: November 10, 2012, 14:59:41 »
du meinst wohl dieses:

Spoiler for Hiden:
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

Re: Itemnamen einfärben?

Offline Deses

  • Database-Verunstalter
  • **
  • Beiträge: 105
    • Ulugar - Developers Blog
Re: Itemnamen einfärben?
« Antwort #2 am: November 11, 2012, 16:49:56 »
genau das meine ich :D vielen dank^^

 


 Bild des Monats

rooftop party

Views: 3581
By: papilion

 Umfrage

  • Wer soll das BdM gewinnen?
  • Dot Kandidat 1
  • 3 (25%)
  • Dot Kandidat 2
  • 1 (8%)
  • Dot Kandidat 3
  • 2 (16%)
  • Dot Kandidat 4
  • 0 (0%)
  • Dot Kandidat 5
  • 6 (50%)
  • Stimmen insgesamt: 12
  • View Topic

 Schnellsuche





SimplePortal 2.3.3 © 2008-2010, SimplePortal