MOO-cows Mailing List Archive
[Prev][Next][Index][Thread]
Re: Server Code
On Sat, 1 Jun 1996, Chuck Adams wrote:
> bartmoss@mistral.co.uk drew these hieroglyphs:
> >
> > I'm calling verbs from server calls, similar to how :enterfunc gets
> > called everytime a player enters a room.
> > The functions is called 'call_verb', and it returns a error type. But I
> > would like to know what the return of the verb that was called is after
> > it finishes executing so that the code in the server can react to it.
> > Anybody got any ideas?
> >
>
> If it's being called from the top level (i.e. not from a builtin) then
> you can look at the examples of #0:do_command (grep for 'do_command'
> in the MOO source).
>
> Otherwise, look at the examples for bf_move(). It's not at all an
> easy task, and not too well documented how to do.
>
>
>
That is indeed what I did, the call is to be done from a built in and
while bf_move uses call_verb to execute :exitfunc etc it returns the
error type and not the return value of the MOO verb which was called.
do_command does somehow react to the return value, but I cannot see
how it is doing it.
References:
Home |
Subject Index |
Thread Index