View/Edit #2030:look_self

Switch to edit mode.

Name(s): look_self
1:  "Creates a description based on whether the player is inside or not."
2:  if (player.location == this)
3:    where = valid(l = this.location) ? l:title() | tostr(l)
4:    this:jabber_quiet(this:msg_view1(), where)
5:    valid(l) ? (out_desc = this.location:description()) ? player:sub_tell(out_desc) | $msg:mtell("no_desc") | $msg:mtell("no_desc")
6:    if ($object_utils:isa(this.location, $room))
7:      this.location:tell_contents(setremove(this.location:contents(), this))
8:    endif
9:    this:jabber_quiet(this:msg_view2())
10:   this:tell_contents(setremove(this:contents(), player))
11: else
12:   if (desc = this:description())
13:     player:tell(desc)
14:     player:tell()
15:   endif
16:   $msg:mtell(this.who ? length(this.who) == 1 ? "desc_sing" | "desc_plur" | "desc_none", this.who, this:title_in())
17:   $msg:mtell(length(this.who) >= this.crowd && this.crowd ? "desc_noclimb" | "desc_climb", this.who, this:title_in())
18:   $cecil_utils:autoextend()
19: endif
20: "Last modified by Dax (#789) on Sat Apr 14 13:53:13 2001 MDT."

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

You are not logged in.

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