As the title says, i want to make item colors changeable. And i want to change colors not only for magic-rare-epic-legendary, but have monster infrequent have different color than simple rare (like in new TQAE). Also im thinking about adding something like 2 little squares on item image in inventory to show the rarity of prefix and suffix (for example black square if the is no prefix/suffix, yellow if its simple magic and green if its rare). This will make it easier for loot hunt and save you a lot of time cuz you can just see all crappy items without need to read all their names.
So, now that my concept is clear (hopefully), can somebody help me and say where to start with all this? I guess this goes to LUA scripting? Where all this colors for rarity defined? And what should i use to add this suffix/prefix indicators?
I think what you want is a simple UI change, there is probably a global text color in the tag files somewhere. If there isn’t, you will have to manually insert a color code as a prefix for all the items you want to change their colors.
For MIs to be different colors, I don’t think there exists a separate quality identifier, so those will definitely have to be manually changed.
In …\Grim Dawn\database emplates\gameengine.tpl i found this structure, probably item background color with each separate var for RGBA, but all values are empty. Any idea where are they actually defined?
Group
{
name = "Item Info"
type = "list"
Variable
{
name = "commonItemColor.r"
class = "variable"
type = "real"
description = ""
value = ""
defaultValue = ""
}
Variable
{
name = "commonItemColor.g"
class = "variable"
type = "real"
description = ""
value = ""
defaultValue = ""
}
Variable
{
name = "commonItemColor.b"
class = "variable"
type = "real"
description = ""
value = ""
defaultValue = ""
}
Variable
{
name = "commonItemColor.a"
class = "variable"
type = "real"
description = ""
value = ""
defaultValue = ""
}
Variable
{
name = "commonItemColor"
class = "variable"
type = "string"
description = ""
value = ""
defaultValue = ""
}
...
}
Also in DBR Editor -> open any item -> Item parameters -> Item classification defined rarity of this item. But i dont know where can i find ItemClassification definition itself.
Maybe im doing something wrong or somebody already know how to do something like this? Any help would be appreciated!
ok, I found what you’re looking for, it’s actually in the gameengine.dbr file under “ItemInfo”.
Just change the color codes to the ones you want, you should be able to change them all except for the MI. For example, commonitems are set as {^w}, which is white. Change this to {^r} and they will be red. The colors used by items atm are roygbiv, there should be several other colors in between as well but I couldn’t tell you what the codes are for any of them.
Thanks, just found this by myself too
So about MI i can’t just add another classification variable with another color and change all MI’s to that?
And about adding additional elements to UI like suffix/prefix indicator, just read that i can only change existing parts but not add new, is that true?
If both answers yes then i guess this thread will be me begging devs to add this feature
For MI, no you cannot add another classification. You can recycle one that was used for something else and then ‘class’ the MI as that. For example, you could use the ‘questitem’ color and then label MI as quest items. Then you’d have to recolor quest items somehow, so you will still have an issue, but it’s probably your best bet if you don’t want to manually change the tags for every MI to include a color code.
Additional elements to UI… not possible, no… but what do you mean a suffix/prefix indicator?
As i wrote in first message of this thread:
I guess this can be called prefix/suffix indicator.