I'm trying to make a list of obj but I get type mismatch:
var/list/Objs
del(Objs)
for(var/obj/O in view(1))
Objs+=O <---Type Mismatch On This Line
Anyone know how to do what I'm trying to do, or know what I'm doing wrong here?
--------------------------------------
EDIT:
I found the probleme, but now I have a diffrent question:
I'm declaring a verb:
Item_Take()
set src in view(1)
set name="Take Item"
set category="Inventory"
if(usr==null)return
src.loc=usr
The probleme is, if I type the verb, or click on it from the panel, it sets src from in my inventory, just moving src from my inventory to my inventory. I want to filter srcs in my inventory from possible srcs. I figure I would start with this:
if(locate(src in usr))
But I don't know were to go from here...
ID:174063
Oct 6 2003, 9:47 am (Edited on Oct 6 2003, 11:20 am)
|
|
Oct 6 2003, 2:19 pm
|
|
Use oview() instead of view(). It works in the same way, except that it doesn't include the centre object (which is usr by default) or items inside the centre object (i.e. the centre object's inventory).
|
In response to Crispy
|
|
Thanks Crispy
|