Re: [code][extracting input]

From: Sammy (Samedi@cris.com)
Date: 12/26/96


On Mon, 25 Nov 1996, invincibill wrote:

- to wait on input from a char for some action, say, like choose from a
- menu, is this what i need do do??...
- 
- set a state of something (say  #define CON_SoEd   17  ) in structs.h
- set the player state to that con...ch->desc->connected or STATE(d) =
- CON_SoEd.
- 
- then parse arg for the input??  this is my first stab at it, but it
- appears that this is how the rest of the stuff is handled.  am i doin it
- right?

Sounds good to me.  I think you'll have to add the new CON state to nanny,
or make the default CON in nanny call a check for additional CON states.

Keep in mind that if they're not CON_PLAYING, they won't show up on who
and are incommunicado until they finish up with that menu.

Sam

+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST