View/Edit #85:references

Switch to edit mode.

Name(s): references
1:  "Return a list of all props on the $ref_db containing objects controlled by the requested player (or everyone if no player is requested)."
2:  {?who = #-1} = args
3:  refs = {}
4:  for ref in (who == #-1 || who.wizard ? $all_properties() | properties($ref_db))
5:    what = #0.(ref)
6:    if (typeof(what) != $OBJ)
7:      "Huh?"
8:    elseif (who == #-1)
9:      "Everything"
10:     refs = {@refs, ref}
11:   elseif (who:controls(what))
12:     "Just your stuff"
13:     refs = {@refs, ref}
14:   endif
15: endfor
16: return refs
17: "Last modified by Dax (#789) on Wed May  4 06:44:31 2005 MDT."

Verb arguments: this none this
Verb perms: Readable eXecutable NOT-Debug
Verb owned by: Dax (#789)

You are not logged in.

[home | help | who | search | setup | code]