MOO-cows Mailing List Archive

[Prev][Next][Index][Thread]

Verb access problem in new server...



The new server allows access to a verb via it's position in verbs(#obj) but I can't find any way
to execute that verb via its number.

(This example is not based on LambdaCore)

verbs = verbs(this);
for x in [1..length(verbs)]
  if ($lib:match_verb(verbs[x], "foo") && $lib:match_args(verbs[x], "this","none","none"))

    ... how do I execute verb # x? ...  me:(x)() yeilds a type mismatch.

  endif
endfor
player:tell("I don't understand.");

I know I could set the server option to re-enable the old method, but that doesn't sound like
the right solution.

--
chaeon@roc.clawpaw.com  -- Site admin for clawpaw.com     http://www.clawpaw.com
Chaeon - Site Wiz or K'ryn - Bronze rider,  VirtuaPern Moo   http://www.clawpaw.com/VirtuaPern
VirtuaPern MOO - telnet dragon.clawpaw.com port 9999





Home | Subject Index | Thread Index