Re: [STUPID CODE QUESTION]

From: Rick Glover (magik@thegrid.net)
Date: 12/03/98


I'd probably not load (file_to_string) the startup screen in db.c, but save
it for interpreter.c.

In there I'd put a switch/case something like:

switch (number(1,4)) {
case 1:
  file_to_string(LIB_TEXT"screen1", &GREETINGS);
case 2:
  file_to_string(LIB_TEXT"screen2", &GREETINGS);
...
}

Or something like that.  <insert standard disclaimer here>

Rick

-----Original Message-----
From: Eduo <eduo@ciateq.mx>
To: CIRCLE@post.queensu.ca <CIRCLE@post.queensu.ca>
Date: Thursday, December 03, 1998 6:31 AM
Subject:  [STUPID CODE QUESTION]


>I'm numb, I didn't sleep because I was too wired up finishing a zone and I
>tried to do something just now and, of course, didn't figure it right.
>
>What would the easiest way to substitute:
>
>#define STARTUP_FILE    LIB_TEXT"startup"       /* startup screen       */
>
>In db.h so it takes a file at random between startup1 and startup4 every
>time someone logs on (not everytime the mud starts up).


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



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