if("Short1")
new_mob.hair = "Short1"
var/hairred = input("How much red do you want to put into your hair? (255 is the brightest and 0 is the darkest.)") as num
var/hairblue = input("How much blue do you want to put into your hair?) (255 is the brightest and 0 is the darkest.)")as num
var/hairgreen = input("How much green do you want to put into your hair?) (255 is the brightest and 0 is the darkest.)") as num
var/hairover = 'maleshort.dmi'
hairover += rgb(hairred,hairgreen,hairblue)
new_mob.rhair = hairred
new_mob.ghair = hairgreen
new_mob.bhair = hairblue
new_mob.overlays += hairover
ID:173834
Nov 9 2003, 12:08 pm
|
|
OK... where in a code like this would I put the layer for an overlay?
|
In response to Ease
|
|
WoE.dm:284:error:hairover.layer:undefined var
|
In response to Blueseed15
|
|
var/obj/hairover/H=new
H.icon='icon.dmi' H.layer=MOB_LAYER+1 etc... |
In response to Goku72
|
|
runtime error: type mismatch
proc name: CreateNewCharacter (/mob/other/creating_character/proc/CreateNewCharacter) source file: WoE.dm,300 usr: Blueseed15 (/mob/other/creating_character) src: Blueseed15 (/mob/other/creating_character) call stack: Blueseed15 (/mob/other/creating_character): CreateNewCharacter() Blueseed15 (/mob/other/creating_character): CreateNewCharacter() Blueseed15 (/mob/other/creating_character): CreateCharacter() Blueseed15 (/mob/other/creating_character): Login() line 300= hairover += rgb(hairred,hairgreen,hairblue) full code change: if("Short1") when i tried your way, tons and tons of errors came up so I messed around with it a bit... |
In response to Blueseed15
|
|
hairover += rgb(hairred,hairgreen,hairblue) That's because you're trying to manipulate the object it self. You only want to manipulate its icon, so... hairover.icon+=rgb(hairred,hairgreen,hairblue) |
In response to Goku72
|
|
thank you, works now
|
~Ease~