runtime error: type mismatch
proc name: Talk (/mob/Receptionist/verb/Talk)
usr: Platinum Goku (/mob)
src: Receptionist (/mob/Receptionist)
call stack:
Receptionist (/mob/Receptionist): Talk()
Same with any switch input; same error each char, need help :/
Snippet:
ShopKeeper
icon = 'icons/mobs.dmi'
icon_state = "male"
name = "Shopkeeper"
verb
Purchase()
set src in oview(3)
set category="Communication"
switch(input("Hello! What do you wish to buy?", "Shopkeeper",text) in list ("Glasses","Trench Coat","Contact Lenses", "Cape", "Hat", "Pants", "Scouter", "Shoes", "Shorts", "Top", "Boots"))
if("Glasses")
if(usr.zenni<=149)
usr<<"<b>You need 150 zenni!"
if(usr.zenni>=150)
usr<<"<b>You get a pair of Sunglasses!"
var/obj/O=new/obj/glasses
usr.contents+=O
var/new_rgb = F_Color_Selector.Get_Color(src)
var/icon/T = new('icons/glasses.dmi')
T.Blend(new_rgb)
usr.zenni-=150