MOO-cows Mailing List Archive
[Prev][Next][Index][Thread]
Re: commands like " and ;
On Tue, 3 Oct 1995, Chris Black wrote:
> How would I make a verb act like the " alias for say and the ;
> alias for eval? There are two things I have to figure out about this
> problem:
> 1. How I would add a verb to act that way no matter where you were,
> like page, ie a global verb
> 2. How do I get the verb to take what is adjacent to the command as
> the args? (this is the hard part) I have been trying to get stuff so
> you can have your args not seperated by a space but this doesn't seem
> to work.
This is a pretty simple thing that is probably covered in the
programmer's manual. I'll answer it, but next time, RTFM. (F
stands for 'Friendly') :-)
1) Stick it on $player.
2) What is adjascent to the command is considered to be PART of the
command. Hence, if you use what I use for page: `` 'player Heya '', then
the verb == "'player". On the first line of the verb, simply do
something like args = {verb[2..length(verb)], @args}.
Phantom
References:
Home |
Subject Index |
Thread Index