Switch to edit mode.
Name(s): tell_contents1: q = {}
2: if ((t = this:has_tick(player)) != 0)
3: for x in (this.contents)
4: if (player != x && this:has_tick(x) != 0 && this:has_tick(x).cur_sq == t.cur_sq)
5: q = {@q, x}
6: endif
7: endfor
8: if (length(q) == 1)
9: $msg:mtell("ghost_sing", q[1])
10: elseif (length(q) > 1)
11: $msg:mtell("ghost_plur", q)
12: endif
13: else
14: for x in (this.contents)
15: if (this:has_tick(x) == 0 && x != player)
16: q = {@q, x}
17: endif
18: endfor
19: pass(q)
20: endif