mob/Build/verb/
Build()
var/list/buildlist=list()
for(var/obj/furniture/s) if(s.woodreq) if(usr.wood>=s.woodreq)
buildlist.Add(s)
usr<<"added"
if(!buildlist.len) usr<<"nope";return
var/item=input("What do you wish to build?","Build") in buildlist
var/obj/a = new item(usr.loc)
if(a.dirs)
var/b=input("What direction should it face?","Build") in list("North","East","South","West")
a.icon_state="[a][b]"
usr.wood-=a.woodreq
a.owner=usr
buildlist=list()
Problem description: The .len is always false (null), though I have objects and yes, they have a woodreq, and yes I have a heck a lot of wood, so I have no clue what the hell is happening.
That's the same as:
You need to use those brackets, if you want to put it in one line: