MOO-cows Mailing List Archive


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.

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.

--  -- Site admin for
Chaeon - Site Wiz or K'ryn - Bronze rider,  VirtuaPern Moo
VirtuaPern MOO - telnet port 9999

Home | Subject Index | Thread Index