MOO-cows Mailing List Archive
[Prev][Next][Index][Thread]
Wierd Verb Stuff - Need Help!
Hi, everyone. I'm trying to setup a verb on an object which
works like this:
[Verb code may not work; making this off the top of my head]
cmd = "foo";
player:cmd();
[Could this be setup so that the second line will execute player:foo(),
and then if cmd is changed (say to "bar"), that it would execute
player:bar()?]
I've though of a few ways, but they're not really elegant, and
would waste server ticks:
[Example]
cmd = "foo";
if (cmd == "foo")
player:foo();
elseif (cmd == "bar")
player:bar();
endif
[end verb code]
Any ideas?
/--------------------v- PGP Fingerprint --------------------------------\
|42 -It's the answer!| 95 2F 8F 26 F9 CA 4B 1A D1 CA C1 5E F9 76 59 AB |
\--------------------^--------------------------------------------------/
Follow-Ups:
Home |
Subject Index |
Thread Index