Changing only one part of an icon's RGB...(without overlays
If you want to change just a single portion of an icon, such as a mob wearing a blue shirt and blue pants, but you want to keep the shirt blue, and make the pants black... While possible, will take a very large amount of work to make it actually happen.
I can write a theoretical snippet if you'd like, Which method would you like to see?
(note, the file above isnt working in my browser, so I don't know what the deal is... O_o Is it working for you?)
Note that I never attested to the usefulness of such a system.
You're better off using overlays.
It's not that hard, it just requires a mask for every piece of clothing. So, why not just have an unclothed base, and then the clothing overlays, to which you can swap/add color to however you want? It's just plain wasteful, as a matter of fact.
Is it possible? I've tried everything I could think off...
SwapColor proc (icon)See also: icon icon procs rgb() proc Format: SwapColor(old_rgb,new_rgb) Args: old_rgb: the old rgb value to be replaced new_rgb: the new rgb value to use in its place This causes a color value in the icon's palette to be changed