-void SPEAK(vocab_t msg)
-/* Print the message which starts at LINES[N]. Precede it with a blank line
- * unless game.blklin is false. */
-{
- long blank, casemake, i, nxt, neg, nparms, param, prmtyp, state;
-
- if (msg == 0)
- return;
- blank=game.blklin;
- nparms=1;
- do {
- nxt=labs(LINES[msg])-1;
- ++msg;
- LNLENG=0;
- LNPOSN=1;
- state=0;
- for (i = msg; i <= nxt; i++) {
- PUTTXT(LINES[i],&state,2);
- }
- LNPOSN=0;
- ++LNPOSN;
-
- while (LNPOSN <= LNLENG) {
- if (INLINE[LNPOSN] != ascii_to_advent['%']) {
- ++LNPOSN;
- continue;
- }
- prmtyp = INLINE[LNPOSN+1];
- /* A "%"; the next character determine the type of
- * parameter: 1 (!) = suppress message completely, 29 (S) = NULL
- * If PARAM=1, else 'S' (optional plural ending), 33 (W) = word
- * (two 30-bit values) with trailing spaces suppressed, 22 (L) or
- * 31 (U) = word but map to lower/upper case, 13 (C) = word in
- * lower case with first letter capitalised, 65-73 (1-9) =
- * number using that many characters. */
- if (prmtyp == ascii_to_advent['!'])
- return;
- if (prmtyp == ascii_to_advent['S']) {
- SHFTXT(LNPOSN+2,-1);
- INLINE[LNPOSN] = ascii_to_advent['s'];
- if (PARMS[nparms] == 1)
- SHFTXT(LNPOSN+1,-1);
- ++nparms;
- continue;