What we did for a reroll function, is put a level check in the do_reroll command, to let level 1 and > 209 do it, and then dropped down the minimum level in interpreter.c, Only problem we have is making sure that really new newbies know about it, but it works fine.... Ghost Shaidan, Questionable Sanity porsche.ag.net 4000 || 199.199.16.76 4000 On Sat, 16 Nov 1996, DJ Pure wrote: > I'm trying to implement a re-roll function > > The problem I''m stuck in is trying to get a player response. > > <in CON_ROLLS, in Nanny()> > ... > <various sprintf lines - printing player rolls that were just rolled.> > > // answer is defined above as a char* > //scanf ("%s", &answer); > SEND_TO_Q("Yes/No ??:", d); > printf ("Answer is %s\n", d); > > <obviously a case statement to determine what to do by the answer> > ... > > Now if i have the scanf, the the game hangs .. like it's waiting for > something > No if I add the SEN_TO_Q in .. the game runs, but doesn't wait for the > user to type in some input (which should be the yes / no). > > any suggestions please. > Thanks in advance. > > Jussy. > +-----------------------------------------------------------+ > | Ensure that you have read the CircleMUD Mailing List FAQ: | > | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | > +-----------------------------------------------------------+ > +-----------------------------------------------------------+ | 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