turf/mysterybox
var/list/prizes = newlist(/obj/anthrax,/obj/gun)
mob/verb/getprize()
prize()
proc/prize()
for(var/turf/mysterybox/T in orange(1,src))
if(T)
var/obj/item = pick(T.prizes)
world << "The item is [item]!!"
new item(src)
else
world << "Nothing here!"
It's giving me this:
runtime error: Cannot create objects of type /obj/gun.
proc name: search (/proc/prizes)
source file: testing.dm,27
Help, please.
You are trying to give your 'item' var a new type.