obj
npc
creator
icon = 'yuramon.dmi'
icon_state = "rookie"
density = 1
DblClick(creator,Location)
var/crt = input("What do you want me to make?") in list("HP Potion","Cancel")
switch(crt)
if("HP Potion")
if(/obj/Items/Drops/Tanemon_Leaf in usr.contents >= 5)
new/obj/Items/Etc/HP_Potion
Move(usr)
if(usr.InventoryUp)
usr.CreateInventory()
else
usr << "You do not have the needed items!"
if("Cancel")
return
Problem description:
I want the creator to give me a "Potion" if I got over 5 tanemon leafs but I get error in game "type mismatch" and I don't see what's wrong :S
Also I use On-Screen inventory made by SSJ Radditz