Code:
mob/proc/scouter_sales()
var/obj/Equipment/Scouters/O=new
switch(input("Want colour of Scouter do you want to buy? 750Z per scouter")in list("Green","Red","Blue","Yellow","Pink","Never Mind"))
if("Never Mind")
return
if("Green")
if(usr.zenni >= 750)
usr.zenni -= 750
O.icon = 'Green Scouter.dmi'
O.UNDER = 'Green Scouter.dmi'
usr.contents += new/obj/Equipment/Scouter
usr << "<font size = -1><B><font color = blue>Shop Keep:</font> Thanks for buying!"
return
else
usr << "<font size = -1><B><font color = blue>Shop Keep:</font> You cannot afford this!"
return
if("Red")
if(usr.zenni >= 750)
usr.zenni -= 750
O.icon = 'Red Scouter.dmi'
O.UNDER = 'Red Scouter.dmi'
usr.contents += new/obj/Equipment/Scouter
usr << "<font size = -1><B><font color = blue>Shop Keep:</font> Thanks for buying!"
return
else
usr << "<font size = -1><B><font color = blue>Shop Keep:</font> You cannot afford this!"
return
if("Blue")
if(usr.zenni >= 750)
usr.zenni -= 750
O.icon = 'Blue Scouter.dmi'
O.UNDER = 'Blue Scouter.dmi'
usr.contents += new/obj/Equipment/Scouter
usr << "<font size = -1><B><font color = blue>Shop Keep:</font> Thanks for buying!"
return
else
usr << "<font size = -1><B><font color = blue>Shop Keep:</font> You cannot afford this!"
return
if("Yellow")
if(usr.zenni >= 750)
usr.zenni -= 750
O.icon = 'Yellow Scouter.dmi'
O.UNDER = 'Yellow Scouter.dmi'
usr.contents += new/obj/Equipment/Scouter
usr << "<font size = -1><B><font color = blue>Shop Keep:</font> Thanks for buying!"
return
else
usr << "<font size = -1><B><font color = blue>Shop Keep:</font> You cannot afford this!"
return
if("Pink")
if(usr.zenni >= 750)
usr.zenni -= 750
O.icon = 'Pink Scouter.dmi'
O.UNDER = 'Pink Scouter.dmi'
usr.contents += new/obj/Equipment/Scouter
usr << "<font size = -1><B><font color = blue>Shop Keep:</font> Thanks for buying!"
return
else
usr << "<font size = -1><B><font color = blue>Shop Keep:</font> You cannot afford this!"
return
Problem description:
It hightlights switch(input("Want colour of Scouter do you want to buy? 750Z per scouter")in list("Green","Red","Blue","Yellow","Pink","Never Mind")),
Return, if(usr.zenni >= 750), else, if("Red")
Hiead