ID:144313
 
Code:cauldrons
obj 
Cauldron
icon='cauldron.dmi'
icon_state="empty"
density=1
Click()
var/list/PotionStuff = list()
for(var/obj/herb/P in usr)
PotionStuff += P
var/Choice = input("What would you like to mix in?","POTION") in PotionStuff+("Cancel")
if(Choice=="Ditox_leaf")
src.icon_state="1"
del(/obj/herb/Ditox_leaf in usr.contents)
..()
herb
Ditox_leaf
icon='cauldron-items.dmi'
icon_state="ditoxleaf"
verb
Pick()
set src in oview(1)
usr.contents+=src


Problem description:the del wont work, and the cauldron wont change icons

~Volks
I have different code of that in my HP game, if you want to check it out just ask. If you're going to use it, please give credit.
In response to Adam76
yeah id like to use it, does it work?, if so yeah id love to use it, i cant do notta with mine, ive tried this and that and this and that, but nothing seems to work
In response to VolksBlade
fixed most of my coding, it works now but now it takes all of my mob/herbs out of my invitory.
In response to VolksBlade
Mine works, but it's more flexible. Have msn?
In response to Adam76
yah, [email protected] cant wait to hear from you again :)
In response to VolksBlade
Instead of: del(/obj/herb/Ditox_leaf in usr.contents)
Consider: del Choice
In response to Atomixkid
sweet thanks
In response to VolksBlade
No problem.
I couldn't have done it without the help of my paperclip friend. You know him, the one that pops up every 5 minutes while I'm trying to type an essay. The one that irritates you about everything and gets in the way all the itme!!! THE ONE THAT DROVE ME INSANE! Couldn't have done it without his help.
In response to Atomixkid
oh in microsoft word?, yeah i got him too, darn pain in the but, i feel your pain man, im a book-writer of sorts and i use microsoft word for its spell-checker and stuff like that. cya
In response to VolksBlade
*Cries*
In response to Atomixkid
i feel your pain *patts atomixkid on the back*
In response to VolksBlade
obj 
Cauldron
icon='cauldron.dmi'
icon_state="empty"
density=1
var/obj/DL = /obj/herb/Ditox_leaf
Click()
switch(input("What would you like to brew") in list ("Cancel","Ditox leaf"))// add the rest
if("Ditox leaf")
if(DL in usr.contents)
src.icon = 'waterv.dmi'
src.icon_state = "watever"
usr.contents += new /obj/potion/waterv
del DL


herb
Ditox_leaf
icon='cauldron-items.dmi'
icon_state="ditoxleaf"
verb
Pick()
set src in oview(1)
Move(usr)


- Miran94
Hope this helps