Click()
var/obj/E = src
var/r = input("Please choose between 0 and 255 for red")
var/g = input("Please choose between 0 and 255 for green")
var/b = input("Please choose between 0 and 255 for blue")
E.icon -= rgb(r,g,b)
Problem description:
well, simply put, it won't recolor an object that is dominantly white in color when it is clicked. Everything should work.
since white is 255,255,255, then naturally subtracting the color values should make it less white, and more of that color, however it will not do this.
can someone point out to me what I'm doing wrong? this is my first time using the RGB() proc. Thanks in advance.
For one. just always put input as number if your wanting a number entered. so your code should look like this, that way people cant enter text as the input for the variable. but i dont rly know what the problem is. maybe making E = src.icon might help as well.