obj/glasses
icon='gfx/glasses.dmi'
mob/Shopkeeper_2
icon='gfx/shopkeeper_2.dmi'
verb/Buy()
set src in oview(2)
usr<<"Welcome to the Marshblob ! The clothing store giant what may we do for you ?"
input("Pick anything you like !")in list("Jeans(30 blobbers)","Blue Glasses(5 blobbers)","Black Shirt(10 blobbers)","White Shirt(10 blobbers)")
if("Jeans(30 blobbers)" && usr.blobbers>=30)
usr.blobbers-=30
usr<<"Thanks for buying at Marshblob"
else
usr<<"Hey dont come here without anymoney sucurity!"
if("Blue Glasses(5 blobbers)" && usr.blobbers>=1)
usr.overlays+="gfx/glasses.dmi"
usr<<"Thanks for shoping at Marshblob !"
Problem description:
why arnt the glasses showing up as an overlay.What I mean is when I buy them my apperence does not change.
I'm not sure but I think this will fix it from where you put usr.overlays+= "gfx/glasses.dmi" for an icon it should be '
and for an icon state it should be "