obj/pickups/Oil_LanternO
icon='equipment.dmi'
icon_state="lantern"
verb/Interact()
set src in oview(1)
set hidden = 1
if(usr.LanternGrabbed==TRUE)
usr<<"You already have a lantern. Don't hog them."
return
if(usr.InventoryCap == usr.InventoryCapMax)
usr<<"You're out of inventory space."
else
usr.contents += Lantern
usr.InventoryCap += 1
usr.LanternGrabbed = TRUE
del src
return
Problem description: The run time error is below. I have no idea what's happening. Been messing with it all morning.
runtime error: cannot append to list
proc name: Interact (/obj/pickups/Oil_LanternO/verb/Interact)
source file: The Black Death.dm,364
Throw a
in there right before you add it to contents.
I assume that is line 364?