ID:179226
 
what is the state of "contents" if the player's inventory is empty?

I tried this (within a mob/player/verb):

if(contents != null)
usr << "You may only have 1 tile at a time"
else
...

---

it compiles, but contents never == null
try

if(contents.len == 0)
...

contents is a list, and when evaluating it in an expression like that, it returns a value of /list, no matter what is in it. A list len of 0 means no contents.
In response to Flick
yea, that seems to work much better.

thanks Flick!