Help - Search - Members - Calendar
Full Version: Basic - Item Quality Colors - of Awesome v1.1
RPG RPG Revolution Forums > Scripting > Script Submissions > RGSS2-Submissions
leongon
Item weapon armor object color quality rarity name

Basic Item Quality Colors of Awesome

Version: 1.1
Author: Leongon
Release: June 16 2010
Last Actualization: July 18 2010
Exclusive: at RPG RPG Revolution
Requires: Your country at the top of the group table on South Africa's 2010 soccer world cup.


Introduction
This is a really small and nice one. Item Quality Colors replicates the colouring of item's names used in most actual MMORPGs to ease the quality or element affinity noticing for the players.

wink.gif


Features
- Easy setting of many different quality colors in the script configuration area.
- Set each item, armor and weapon's quality adding a simple tag in their notefield, with the quality name you set.
- Also can be used in skills, to colourize them by element affinity or something.


Further Instructions and configuration on script header.

Script
Archive:
Click to view attachment

Customization
Change, add or remove many qualities as you want for all 32 colors in the script's configuration area, then add the proper tags with your quality names in the item, weapon, armor and skill's noteboxes.

For example: First you assign the key "awesome" to color 22 in the script, then you go to the notefield of the item, armor, weapon or skill you want with that color, and write <IQC awesome> on it.

Compatibility
Rewrites draw_item_name on Window_Base class, so if you have other scripts handling item display you can get issues. Try putting this one above.

Screenshot




DEMO
No need

Installation
Plug it above main, set your color qualities in the script, add the proper tags in notefields, and play.

History
v1.0
- Release.
v1.01
- Note reader module standarization for all my scripts.
v1.1
- Now does not check for a defined item kind, so can work with custom item types and even skills.

Terms and Conditions
Use on commercial and non-commercial proyects, just give credit.
Don't post it outside www.rpgrevolution.com If you want to share this, use only a link to here.

Credits
Leongon
Zenu_The_Druid
Haha. Reminds me of you-know-what. I will likely use this, with credit, of course. Thanks for the script. cool.gif
leongon
I-don'tknow-what happy.gif hahaha

What you refer to?
Zenu_The_Druid
QUOTE (leongon @ Jun 16 2010, 01:15 PM) *
I-don'tknow-what happy.gif hahaha

What you refer to?


tongue.gif I was referring to World of Warcraft. I assumed that is where you got the idea of White/Green/Blue/Purple. But still, nice script. wink.gif
leongon
To tell the thuth, I'm developing a game based in Warcraft universe, so I made this one and the states details, to be environment stuff familiar to it.
Zenu_The_Druid
QUOTE (leongon @ Jun 16 2010, 01:22 PM) *
To tell the thuth, I'm developing a game based in Warcraft universe, so I made this one and the states details, to be environment stuff familiar to it.


Ah, well good luck! Lemme know when it's finished. happy.gif
leongon
v1.01 Note reader compatibility for my other scripts.
new
wow! nice, and its gona be something like for WoW.

is this compatible with custom message systems? KGC equip scene?
are you gona make like an equip upgrade script?equip durability?
leongon
Is compatible with everything but other scripts that change item, armor and weapon base display.

KGC equip scene... I don't know that :B

About next scripts, mm well, I make scripts when I got an idea and got to think of a way that my actual capabilities can make it work.
Scriptless
Great script idea keep up the good work.
Xeyla
one of Yanfly's YERD Scripts does this function also, but you can choose what colors to make the words. Your not limited to a set number of colors.
leongon
I just defaulted 5 qualities in the script, you can add 27 more.

You have all the 32 text colors of your Windows.png disponible. Anyway, a limited number of colors is a help on keeping standard your game visual aspects.
Reshiram//Exe
Also don't forget oranges biggrin.gif But nice WoW Reference there.
leongon
New version 1.1
Now has better compatibility, and also work with skills.

Give color to your world!
new
is it possible you can add a function of the script to add the text too with the color? for example, IQC uncommon in the pic above, the name Great Axe [Uncommon] will be displayed instead with the text [Uncommon] as green. i need that block in one of my scripts.
leongon
QUOTE (new @ Aug 17 2011, 02:50 PM) *
is it possible you can add a function of the script to add the text too with the color? for example, IQC uncommon in the pic above, the name Great Axe [Uncommon] will be displayed instead with the text [Uncommon] as green. i need that block in one of my scripts.

Hi

I don't have RPG Maker VX anymore, so I can't test it... but try replacing the whole class Window_Base on my script with this:

CODE
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)
        self.contents.font.color.alpha = enabled ? 255 : 128
        self.contents.draw_text(x + 24, y, 172, WLH, item.name + " [" + quality + "]")
      else
        self.contents.font.color.alpha = enabled ? 255 : 128
        self.contents.draw_text(x + 24, y, 172, WLH, item.name)
      end
      self.contents.font.color = normal_color
    end
  end
end


That should do what you want, if I'm correct.
new
CODE
class Window_ItemStatus < Window_Base
  
  include LNR
  include IQC_Configs

  def refresh
    self.contents.clear
    return if @item == nil
    draw_icon(@item.icon_index, 0, 0, true)
    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)
        self.contents.font.color.alpha = enabled ? 255 : 128
        self.contents.draw_text(x + 24, y, 172, WLH, item.name + " [" + quality + "]")
      else
        self.contents.draw_text(24, 0, 288, WLH, @item.name)  
      end
    self.contents.draw_text(4,   WLH * 1, 504, WLH, @item.description)
    self.contents.draw_text(360+20, 0, 120-32, WLH, @item.price, 2)
end
end


here's what i did and it doesnt work. where did i go wrong?
leongon
Just replace all the class with the one i gave you... is strange to see you asking what you did wrong if is clearly that what i edited for you is different from what you're showing now.
new
wow it works! nice. yeah i just placed what you originally made. real cool thanks!
Athrun77
This is some genuine great stuff, respect.
leongon
@new: Nice, I'm glad it worked. Was a bit scared I forgot VX scripting xD
@Athrun77: Thanks dude.
DeathKing
Yeah, something like the Diablo III.

So, in my forum, someone has already made it, but it isn't perfect at all.( He made it on 4/19,2009 at all!)

Click to view attachment
2Pringles
i had this problem where it wouldnt work no matter what i did, and then it turns out i was using IQC epic in the note box,
it took me a while [too long for me] to realized to put <IQC epic> with the < >'s, plus its the first 3rd party script added to my game, and was easy to install, a demo would hav been nice, just for reference, but didnt take long to learn to put it in a new column under the "Materials" tab, plus i love all the multiple choices for different rarities.
great script! i will enjoy adding this to my game. props to u man for making such a simple yet much needed addition.
leongon
Glad you like it. Feel free to ask if you have any problems using it, I'm still supporting my scripts here.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.