ID:172581
 
err im learning coding (or trying) so im just playing around with a zeta rip but how would i make like custom auras and clothing ( note i can't find how to do this on any of the begginer tutorials)

any help would be appreciated thanks =/
its basically just using the rgb proc to add colors to the thing you want customized. Hit F1 why'll in dreammaker and it should pop up with a search thing, search rgb() for a better explanation then i can give you.
In response to LilTrunks
thx
In response to LilTrunks
ok i get it but i dunno how to put it in could you give me a example =/ sorry if i sound like a n00b cause im still learning and all.
In response to Whatazarian
I'll show you an example which creates an object in front of the player then asks them to customize its color....


obj
thing
icon = 'iconhere.dmi'
icon_state = "iconstate"


mob
verb
Customize_Things_Color()
var/obj/thing/T = new/obj/thing //this creates the object doesn't place it anywhere on the map
T.loc=locate(usr.x-1,usr.y,usr.z) //place the object next to the user
var/rr = input("How much red would you like to add to [T]?") as num //asks how much red
var/gg = input("How much green would you like to add to [T]?") as num //asks how much green
var/bb = input("How much blue would you like to add to [T]?") as num //asks how much blue
T.icon += rgb(rr,gg,bb) //adds the value of rr,gg,bb into the objects icon to customize it


You also want the icon to be black in the areas you want to customize so its rgb value is (0,0,0) otherwise it will turn out funky
In response to LilTrunks
LilTrunks wrote:
I'll show you an example which creates an object in front of the player then asks them to customize its color....


obj
thing
icon = 'iconhere.dmi'
icon_state = "iconstate"


mob
verb
Customize_Things_Color()
var/obj/thing/T = new/obj/thing //this creates the object doesn't place it anywhere on the map
T.loc=locate(usr.x-1,usr.y,usr.z) //place the object next to the user
var/rr = input("How much red would you like to add to [T]?") as num //asks how much red
var/gg = input("How much green would you like to add to [T]?") as num //asks how much green
var/bb = input("How much blue would you like to add to [T]?") as num //asks how much blue
T.icon += rgb(rr,gg,bb) //adds the value of rr,gg,bb into the objects icon to customize it


You also want the icon to be black in the areas you want to customize so its rgb value is (0,0,0) otherwise it will turn out funky
Or, alternatively, he could use:

T.icon*=rgb(R,G,B), then it won't matter what color it is.
Also, if you're going to be using objects to color icons, delete it afterwards so you don't have useless atoms clogging up your server.
That's a bad way to learn how to program.