View/Edit #1:has_verb

Switch to edit mode.

Name(s): has_verb
1:  "object:has_verb(verbname)"
2:  "Find out if an object has a verb matching the given verbname."
3:  "Returns {location} if so, 0 if not, where location is the object or the ancestor on which the verb is actually defined."
4:  {verbname} = args
5:  if (valid(parent(this)))
6:    return `verb_info(this, verbname) && {this} ! E_VERBNF => 0' || parent(this):has_verb(verbname)
7:  else
8:    return `verb_info(this, verbname) && {this} ! E_VERBNF => 0'
9:  endif
10: "Last modified by Slacker (#55) on Mon Jun 21 05:46:05 1999 MDT."
11: "This verb previously owned by manta (#7165), and chowned to $slacker upon dewizarding (Sat Aug 17 14:50:03 2002 MDT)."
12: "Last modified by Dax (#789) on Sat Aug 17 14:50:03 2002 MDT."

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

You are not logged in.

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