[DGD] Cancelling input_to()
Matt S.
matt at whedimer.com
Wed Apr 30 23:39:31 CEST 2003
In user.c of the Melville lib there should be a variable for the input
object and input function (even if you don't use the lib, it should be
the basic idea) :
object input_obj; /* object for input_to */
static string input_func; /* function for input_to */
If you can place a function in the user object that clears the object,
you can safely get out of the input_to (Look at receive_message() ).
Then just call the function in whatever object you want. You might want
to place security restrictions on this function since it can adversely
effect things if you rely heavily on input_to's. And yes, it seems
possible to do it with a time_out function, but I've never tried it,
nor the answer given above.
However, I haven't tested this, so I can't be sure.
Matt S.
On Wednesday, April 30, 2003, at 10:32 AM, Mordengaard wrote:
> From: "Lord Lerkista" <lordlerkista at gmx.net>
>> I put an opening animation for my mud, and i set an input_to()
>> to cancel the animation and don't wait until it finished to enter the
>> mud if i write "q" the animation stops, but if i wait to the animation
> end,
>> it stills waits that "q", finishing the animation i have a menu, so i
> can't
>> use the menu until i write "q", is there a way to cancel the
>> input_to()
>> of the animation??
>
> Just noticed this question in the archive while I was looking for the
> exact same thing, so I'll just reiterate the question since it didn't
> get
> a response before - -is- it possible to cancel the input_to state, for
> example with a time_out type of function?
>
> Mordengaard
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.476 / Virus Database: 273 - Release Date: 26/04/2003
>
> _________________________________________________________________
> List config page: http://list.imaginary.com/mailman/listinfo/dgd
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 2086 bytes
Desc: not available
URL: <https://mail.dworkin.nl/pipermail/dgd/attachments/20030430/fd9b038d/attachment.bin>
More information about the DGD
mailing list