mob/var/list/click = list()
obj
Pot
icon = 'items.dmi'
icon_state="pot"
var/list/contained = list()
var/amount
verb
Add()
set src in oview(10)
usr.click = new()
for(var/obj/O in usr)
if(O.clickable)
usr.click.Add(O)
var/obj/adding = input("What would you like to add?") in usr.click
if(adding)
contained.Add(adding)
del(adding)
Brew()
set src in oview(10)
var/obj/items/LizardEye/LE
var/obj/items/MountainRoot/MR
var/obj/items/SpiderLeg/SL
var/obj/items/BatWing/BW
var/obj/items/Enting/ET
if(contained.Find(LE) && contained.Find(MR) && contained.Find(SL))
new/obj/fastpotion(usr)
//for a new list contained = new()
contained -= /obj/items/LizardEye
contained -= /obj/items/MountainRoot
contained -= /obj/items/SpiderLeg
else if(contained.Find(BW) && contained.Find(BW))
contained -= /obj/items/BatWing
contained -= /obj/items/BatWing
new/obj/Healingpotion(usr)
else if(contained.Find(BW) && contained.Find(BW) && contained.Find(ET))
contained -= /obj/items/BatWing
contained -= /obj/items/BatWing
contained -= /obj/items/Enting
new/obj/Healingpotion2(usr)
thats *supposed* to make an item after adding 2-3items and brewing them together, can anyone tell me whats wrong with it?*Edit* when u add the items needed and click brew the wrong items come up. im thinkit it has something to do with :
contained.Find(SL))//(list.Find(var))
Then, just use, for example, findList(list("/obj/bateyes"=2,"/obj/Something"=1).