- /* Clean up */
- clear_from(10);
-
- /*** User enters number of quests ***/
- /* Heino Vander Sanden and Jimmy De Laet */
-
- /* Extra info */
-#ifdef JP
- put_str("ɬ¿Ü¤Î¥¯¥¨¥¹¥È(¥ª¥Ù¥í¥óµÚ¤Óº®Æ٤Υµ¡¼¥Ú¥ó¥È)¤Ë²Ã¤¨¤Æ¡¢ÄɲäΥ¯¥¨¥¹¥È¤Î", 10, 5);
- put_str("¿ô¤òÀßÄꤹ¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£", 11, 5);
- put_str("Äɲ寥¨¥¹¥È¤ò¹Ô¤Ê¤¤¤¿¤¯¤Ê¤¤¾ì¹ç¤Ï '0'¤òÆþÎϤ·¤Æ²¼¤µ¤¤¡£", 12, 5);
- put_str("¥é¥ó¥À¥à¤Ë·èÄꤹ¤ë¤Ë¤Ï'*'¤òÆþÎϤ·¤Æ²¼¤µ¤¤¡£", 13, 5);
-#else
- put_str("You can enter the number of quests you'd like to perform in addition", 10, 5);
- put_str("to the two obligatory ones ( Oberon and the Serpent of Chaos )", 11, 5);
- put_str("In case you do not want any additional quests, just enter 0", 12, 5);
- put_str("If you want a random number of random quests, just enter *", 13, 5);
-#endif
-
- /* Ask the number of additional quests */
- while (TRUE)
- {
-
-#ifdef JP
- put_str(format("Äɲ寥¨¥¹¥È¤Î¿ô (%u°Ê²¼) ", MAX_RANDOM_QUEST - MIN_RANDOM_QUEST + 1), 15, 5);
-#else
- put_str(format("Number of additional quests? (<%u) ", MAX_RANDOM_QUEST - MIN_RANDOM_QUEST + 2), 15, 5);
-#endif
-
-
- /* Get a the number of additional quest */
- while (TRUE)
- {
- /* Move the cursor */
- put_str("", 15, 40);
-
- /* Default */
- strcpy(inp, "10");
-
- /* Get a response (or escape) */
- if (!askfor_aux(inp, 2)) strcpy(inp, "10");
-
- /* Quit */
- if (inp[0] == 'Q') birth_quit();
-
- /* Start over */
- if (inp[0] == 'S') return (FALSE);
-
- /* Check for random number of quests */
- if (inp[0] == '*')
- {
- /* 0 to 10 random quests */
- number_of_quests = randint0(11);
- }
- else if (inp[0] == '?')
- {
-#ifdef JP
- show_help("jbirth.txt#RandomQuests");
-#else
- show_help("birth.txt#RandomQuests");
-#endif
- continue;
- }
- else
- {
- number_of_quests = atoi(inp);
- }
-
- /* Break on valid input */
- if ((number_of_quests <= MAX_RANDOM_QUEST - MIN_RANDOM_QUEST + 1) && (number_of_quests >= 0)) break;
- }
- break;
- }
-