View/Edit #1:has_callable_verb

Switch to edit mode.

Name(s): has_callable_verb
1:  "Usage:  object:has_callable_verb(verb)"
2:  "See if an object has a verb that can be called by another verb (i.e., that has its x permission bit set)."
3:  "Return {location}, where location is the object that defines the verb, or 0 if the object doesn't have the verb."
4:  {verbname} = args
5:  if (verbname == tostr(toint(verbname)))
6:    return 0
7:  elseif (valid(parent(this)))
8:    return `index(verb_info(this, verbname)[2], "x") && {this} ! E_VERBNF => 0' || parent(this):(verb)(verbname)
9:  else
10:   return `index(verb_info(this, verbname)[2], "x") && {this} ! E_VERBNF => 0'
11: endif
12: "Last modified by Slacker (#55) on Mon Jun 21 05:46:05 1999 MDT."
13: "This verb previously owned by manta (#7165), and chowned to $slacker upon dewizarding (Sat Aug 17 14:50:03 2002 MDT)."
14: "Last modified by Dax (#789) on Tue May  3 14:11:53 2005 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]