ID:262334
 
Code:
mob
Barber
icon = 'guy.dmi'
verb
Talk()
set src in oview(1)
set category ="Communication"
switch(input("Do you want to get your Hair Cut?", text) in list ("Yes","No"))
if ("Yes")

switch(input("What hair style do you want?", "Customization", text) in list ("default","Spikey"))
if("Spikey")
usr.overlays = 0
var/new_rgb = F_Color_Selector.Get_Color(src)
var/icon/I = new('hair_black_spikey.dmi')
I.Blend(new_rgb)
usr.overlays = I
else
usr << "Just Shorting this


Problem description:
Just trying to get away from the 3 ol' input screens. but i have no idea how this works. Please advise.
Your problem is this line:

var/new_rgb = F_Color_Selector.Get_Color(src)

"src" is the "Barber", which is passing the barber into the proc as an argument, when it should be the player.

var/new_rgb = F_Color_Selector.Get_Color(usr)

Is what you need.
In response to Teh Governator
i still get the error:

runtime error: Cannot execute null.Get Color().
proc name: Talk2 (/mob/Barber/verb/Talk2)
source file: mobs.dm,2272
usr: X</FON... (/mob/characters/humanjin)
src: Barber (/mob/Barber)
call stack:
Barber (/mob/Barber): Talk2()
In response to GOTENKS SS5
That's because, you're not initializing "F_Color_Selector".
In response to Teh Governator
Teh Governator wrote:
That's because, you're not initializing "F_Color_Selector".

how do i fix this?
In response to GOTENKS SS5
GOTENKS SS5 wrote:
Teh Governator wrote:
That's because, you're not initializing "F_Color_Selector".

how do i fix this?
F_Color_Selector=new
In response to Teh Governator
awsome thanks Teh Govenator that worked.