MOO-cows Mailing List Archive

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

Re: verb calling



>Hello, 
>
>Sorry to bother you all again, but another question came up for me.  I have
>a verb that goes along the lines of this (there might be typeos in this and
>may not compile, it is just an example)
>
>verbname = "next prev again quit"
>
>text = verb;
>$value:text();
>
>and $value will have verbs named "next" "prev" "again" and "quit"
>
>What I want to do, is somehow call one of the verbs on $value by using the
>name used to call the first verb.
>
>I know the above example doesn't work, cause I have tried it....is there
>anyway to do this?
>

Try putting it in parentheses... $value:(text)().. or you could just skip
the first step and use $value:(verb)().. if you also wanted to pass the
arguments around you could use $value:(verb)(@args).





>Thanks for all your help
>
>Elisabeth
>Four Seasons MOO
>Role Playing Game &
>Internet Tutorial
>
>
>
>




Home | Subject Index | Thread Index