View/Edit #4572:tell_contents

Switch to edit mode.

Name(s): tell_contents
1:  "Copied from Generic Room (#6):tell_contents by Hacker (#60)Dec 21 18:33:07 1999"
2:  contents = args[1]
3:  "ctype = args[2]"
4:  if (`this.dark ! E_PROPNF => 0')
5:    return
6:  endif
7:  players = things = exits = {}
8:  for x in (contents)
9:    if (x.name == "} hidden {" && !this:junk_p(x))
10:     "It's hidden. Let's ignore it."
11:   elseif (is_player(x))
12:     players = {@players, x}
13:   elseif (this:is_exit(x))
14:     exits = {@exits, x}
15:   else
16:     things = {@things, x}
17:   endif
18: endfor
19: "this:tell_things(things);"
20: "this:tell_players(players);"
21: pass(@args)
22: this:tell_exits(this:exits())
23: "Last modified by Cecil (#7407) on Thu Nov  7 18:16:45 2002 MST."

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

You are not logged in.

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