ID:149849
 
My code below doesn't work... Both of the usr << show up, but no objects are created.

Code:
obj/item/food/seeds/cornseeds
icon = 'items1.dmi'
icon_state = "seeds"
iweight = 1
description = "Some seeds"
verb
Plant()
set src in usr.contents
usr << "[usr.x]"
new/obj/plant/babycorn(locate(usr.x,usr.y,usr.z))
usr << "You plant Corn Seeds"
del(src)


obj/plant/babycorn
icon = 'items1.dmi'
icon_state = "scorn"
Why not just give it to the usr and put it in their inventory?


Plant()
set src in usr.contents
usr << "[usr.x]"
new/obj/plant/babycorn(usr)
usr << "You plant Corn Seeds"
del(src)


obj/plant/babycorn
icon = 'items1.dmi'
icon_state = "scorn"
In response to LordJR
Plants don't grow in your inventory :oP
In response to Foomer
lol. Of course not. But that doesn't answer the question...
In response to Foomer
Foomer wrote:
Plants don't grow in your inventory :oP

They could if you left in there long enough! :P
I figured it out!!!

I had icon_state = "scorn" (Small Corn), but it should have been lcorn (little corn)!!
In response to Nova2000
anything's possible in afantasy world!!!