1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325
|
/*
* File: monspeak.cc
* Summary: Functions to handle speaking monsters
*
* Change History (most recent first):
*
* <1> 01/09/00 BWR Created
*/
#include "AppHdr.h"
#include "monspeak.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#ifdef DOS
#include <conio.h>
#endif
#include "externs.h"
#include "beam.h"
#include "debug.h"
#include "fight.h"
#include "insult.h"
#include "itemname.h"
#include "misc.h"
#include "monplace.h"
#include "monstuff.h"
#include "mon-util.h"
#include "mstuff2.h"
#include "player.h"
#include "spells2.h"
#include "spells4.h"
#include "stuff.h"
#include "view.h"
// returns true if something is said
bool mons_speaks(struct monsters *monster)
{
int temp_rand; // probability determination
// This function is a little bit of a problem for the message channels
// since some of the messages it generates are "fake" warning to
// scare the player. In order to accomidate this intent, we're
// falsely categorizing various things in the function as spells and
// danger warning... everything else just goes into the talk channel -- bwr
int msg_type = MSGCH_TALK;
const char *m_name = ptr_monam(monster, DESC_CAP_THE);
strcpy(info, m_name);
if (mons_has_ench(monster, ENCH_INVIS))
return false;
// invisible monster tries to remain unnoticed
//mv: if it's also invisible, program never gets here
if (silenced(monster->x, monster->y))
{
if (!one_chance_in(3))
return false; // while silenced, don't bother so often
if (mons_has_ench(monster, ENCH_CONFUSION))
{
temp_rand = random2(10);
strcat(info, (temp_rand < 4) ? " gestures wildly." :
(temp_rand == 4) ? " looks confused." :
(temp_rand == 5) ? " grins evilly." :
(temp_rand == 6) ? " smiles happily." :
(temp_rand == 7) ? " cries."
: " says something but you don't hear anything.");
}
else if (monster->behaviour == BEH_FLEE)
{
temp_rand = random2(10);
strcat(info,
(temp_rand < 3) ? " glances furtively about." :
(temp_rand == 3) ? " opens its mouth, as if shouting." :
(temp_rand == 4) ? " looks around." :
(temp_rand == 5) ? " appears indecisive." :
(temp_rand == 6) ? " ponders the situation."
: " seems to says something.");
}
// disregard charmed critters.. they're not too expressive
else if (monster->attitude == ATT_FRIENDLY)
{
temp_rand = random2(10);
strcat(info, (temp_rand < 3) ? " gives you a thumbs up." :
(temp_rand == 3) ? " looks at you." :
(temp_rand == 4) ? " waves at you." :
(temp_rand == 5) ? " smiles happily.":
(temp_rand == 6) ? " winks at you."
: " says something you can't hear.");
}
else
{
temp_rand = random2(10);
strcat(info, (temp_rand < 3) ? " gestures." :
(temp_rand == 3) ? " gestures obscenely." :
(temp_rand == 4) ? " grins." :
(temp_rand == 5) ? " looks angry." :
(temp_rand == 6) ? " seems to be listening."
: " says something but you don't hear anything.");
} //end switch silenced monster's behaviour
mpr(info, MSGCH_TALK);
return true;
} // end silenced monster
// charmed monsters aren't too expressive
if (mons_has_ench(monster, ENCH_CHARM))
return false;
if (mons_has_ench(monster, ENCH_CONFUSION))
{
if (mons_holiness( monster->type ) == MH_DEMONIC
&& monster->type != MONS_IMP)
{
return (false);
}
if (mons_friendly(monster))
{
switch (random2(18)) // speaks for friendly confused monsters
{
case 0:
strcat(info, " prays for help.");
break;
case 1:
strcat(info, " screams, \"Help!\"");
break;
case 2:
strcat(info, " shouts, \"I'm losing control!\"");
break;
case 3:
strcat(info, " shouts, \"What's happening?\"");
break;
case 4:
case 5:
strcat(info, " gestures wildly.");
break;
case 6:
strcat(info, " cries.");
break;
case 7:
strcat(info, " shouts, \"Yeah!\"");
break;
case 8:
strcat(info, " sings.");
break;
case 9:
strcat(info, " laughs crazily.");
break;
case 10:
strcat(info, " ponders the situation.");
break;
case 11:
strcat(info, " grins madly.");
break;
case 12:
strcat(info, " looks very confused.");
break;
case 13:
strcat(info, " mumbles something.");
break;
case 14:
strcat(info, " giggles crazily.");
break;
case 15:
strcat(info, " screams, \"");
strcat(info, you.your_name);
strcat(info, "! Help!\"");
break;
case 16:
strcat(info, " screams, \"");
strcat(info, you.your_name);
strcat(info, "! What's going on?\"");
break;
case 17:
strcat(info, " says, \"");
strcat(info, you.your_name);
strcat(info, ", I'm little bit confused.\"");
break;
}
}
else
{
switch (random2(23)) // speaks for unfriendly confused monsters
{
case 0:
strcat(info, " yells, \"Get them off of me!\"");
break;
case 1:
strcat(info, " screams, \"I will kill you anyway!\"");
break;
case 2:
strcat(info, " shouts, \"What's happening?\"");
break;
case 3:
case 4:
case 5:
strcat(info, " gestures wildly.");
break;
case 6:
strcat(info, " cries.");
break;
case 7:
strcat(info, " shouts, \"NO!\"");
break;
case 8:
strcat(info, " shouts, \"YES!\"");
break;
case 9:
strcat(info, " laughs crazily.");
break;
case 10:
strcat(info, " ponders the situation.");
break;
case 11:
strcat(info, " grins madly.");
break;
case 12:
strcat(info, " looks very confused.");
break;
case 13:
strcat(info, " mumbles something.");
break;
case 14:
strcat(info, " says, \"I'm little bit confused.\"");
break;
case 15:
strcat(info, " asks, \"Where am I?\"");
break;
case 16:
strcat(info, " shakes.");
break;
case 17:
strcat(info, " asks, \"Who are you?\"");
break;
case 18:
strcat(info, " asks, \"What the hell are we doing here? Mmm, I see...\"");
break;
case 19:
strcat(info, " cries, \"My head! MY HEAD!!!\"");
break;
case 20:
strcat(info, " says, \"Why is everything spinning?\"");
break;
case 21:
strcat(info, " screams, \"NO! I can't bear up that noise!\"");
break;
case 22:
strcat(info, " is trying to cover his eyes.");
break;
}
}
}
else if (monster->behaviour == BEH_FLEE)
{
if (mons_holiness( monster->type ) == MH_DEMONIC
&& monster->type != MONS_IMP)
{
return (false);
}
if (mons_friendly(monster))
{
switch (random2(11))
{
case 0:
snprintf( info, INFO_SIZE, "%s %s, \"WAIT FOR ME!\"", m_name,
coinflip() ? "shouts" : "yells");
strcat(info, you.your_name);
strcat(info, ", could you help me?\"");
break;
case 1:
strcat(info, " screams, \"Help!\"");
break;
case 2:
strcat(info, " shouts, \"Cover me!\"");
break;
case 3:
strcat(info, " screams, \"");
strcat(info, you.your_name);
strcat(info, "! Help me!\"");
break;
case 4:
case 5:
case 6:
strcat(info, " tries to hide somewhere.");
break;
case 7:
strcat(info, " prays for help.");
break;
case 8:
strcat(info, " looks at you beseechingly.");
break;
case 9:
strcat(info, " shouts, \"Protect me!\"");
break;
case 10:
strcat(info, " cries, \"Don't forget your friends!\"");
break;
}
}
else
{
switch (random2(20)) // speaks for unfriendly fleeing monsters
{
case 0:
snprintf( info, INFO_SIZE, "%s %s, \"Help!\"", m_name, coinflip()? "yells" : "wails");
break;
case 1:
snprintf( info, INFO_SIZE, "%s %s, \"Help!\"", m_name,
coinflip() ? "cries" : "screams"); break;
case 2:
snprintf( info, INFO_SIZE, "%s %s, \"Why can't we all just get along?\"",
m_name, coinflip() ? "begs" : "pleads");
break;
case 3:
snprintf( info, INFO_SIZE, "%s %s trips in trying to escape.", m_name,
coinflip() ? "nearly" : "almost");
break;
case 4:
snprintf( info, INFO_SIZE, "%s %s, \"Of all the rotten luck!\"", m_name,
coinflip() ? "mutters" : "mumbles");
break;
case 5:
snprintf( info, INFO_SIZE, "%s %s, \"Oh dear! Oh dear!\"", m_name,
coinflip() ? "moans" : "wails");
case 6:
snprintf( info, INFO_SIZE, "%s %s, \"Damn and blast!\"", m_name,
coinflip() ? "mutters" : "mumbles");
break;
case 7:
strcat(info, " prays for help.");
break;
case 8:
strcat(info, " shouts, \"No! I'll never do that again!\"");
break;
case 9:
snprintf( info, INFO_SIZE, "%s %s", m_name,
coinflip() ? "begs for mercy." : "cries, \"Mercy!\"");
break;
case 10:
snprintf( info, INFO_SIZE, "%s %s, \"%s!\"", m_name,
coinflip() ? "blubbers" : "cries",
coinflip() ? "Mommeee" : "Daddeee");
break;
case 11:
snprintf( info, INFO_SIZE, "%s %s, \"Please don't kill me!\"", m_name,
coinflip() ? "begs" : "pleads");
break;
case 12:
snprintf( info, INFO_SIZE, "%s %s, \"Please don't hurt me!\"", m_name,
coinflip() ? "begs" : "pleads");
break;
case 13:
snprintf( info, INFO_SIZE, "%s %s, \"Please, I have a lot of children...\"",
m_name, coinflip() ? "begs" : "pleads");
break;
case 14:
strcat(info, " tries to recover lost courage.");
break;
case 15:
case 16:
case 17:
strcat(info, " gives up.");
break;
case 19:
snprintf( info, INFO_SIZE, "%s looks really %s.", m_name,
coinflip() ? "scared stiff" : "rattled");
break;
}
}
}
else if (mons_friendly(monster))
{
if (mons_holiness( monster->type ) == MH_DEMONIC
&& monster->type != MONS_IMP)
{
return (false);
}
// friendly imps are too common so they speak very very rarely
if ((monster->type == MONS_IMP) && (random2(10)))
return (false);
switch (random2(18))
{
case 0:
strcat(info, " yells, \"Run! I'll cover you!\"");
break;
case 1:
strcat(info, " shouts, \"Die, monster!\"");
break;
case 2:
strcat(info, " says, \"It's nice to have friends.\"");
break;
case 3:
strcat(info, " looks at you.");
break;
case 4:
strcat(info, " smiles at you.");
break;
case 5:
strcat(info, " says, \"");
strcat(info, you.your_name);
strcat(info, ", you are my only friend.\"");
break;
case 6:
strcat(info, " says, \"");
strcat(info, you.your_name);
strcat(info, ", I like you.\"");
break;
case 7:
strcat(info, " waves at you.");
break;
case 8:
strcat(info, " says, \"Be careful!\"");
break;
case 9:
strcat(info, " says, \"Don't worry. I'm here with you.\"");
break;
case 10:
strcat(info, " smiles happily.");
break;
case 11:
strcat(info, " shouts, \"No mercy! Kill them all!");
break;
case 12:
strcat(info, " winks at you.");
break;
case 13:
strcat(info, " says, \"Me and you. It sounds cool.\"");
break;
case 14:
strcat(info, " says, \"I'll never leave you.\"");
break;
case 15:
strcat(info, " says, \"I would die for you.\"");
break;
case 16:
strcat(info, " shouts, \"Beware of monsters!\"");
break;
case 17:
strcat(info, " looks friendly.");
break;
}
}
else
{
switch (monster->type)
{
case MONS_TERENCE: // fighter who likes to kill
switch (random2(15))
{
case 0:
strcat(info, " screams, \"I'm going to kill you! \"");
break;
case 1:
strcat(info, " shouts, \"Now you die.\"");
break;
case 2:
strcat(info, " says, \"Rest in peace.\"");
break;
case 3:
snprintf( info, INFO_SIZE, "%s shouts, \"%s!!!\"",
m_name, coinflip() ? "ATTACK" : "DIE");
break;
case 4:
strcat(info, " says, \"How do you enjoy it?\"");
break;
case 5:
strcat(info, " shouts, \"Get ready for death!\"");
break;
case 6:
strcat(info, " says, \"You are history.\"");
break;
case 7:
strcat(info, " says, \"Do you want it fast or slow?.\"");
break;
case 8:
strcat(info, " says, \"Did you write a testament? You should...\"");
break;
case 9:
strcat(info, " says, \"Time to say good-bye...\"");
break;
case 10:
snprintf( info, INFO_SIZE, "%s says, \"Don't try to defend, it's %s.\"",
m_name, coinflip() ? "pointless" : "senseless");
break;
case 11:
strcat(info, " bares his teeth.");
break;
case 12:
snprintf( info, INFO_SIZE, "%s says, \"I'll show you few %s.\"",
m_name, coinflip() ? "tricks" : "ploys.");
break;
case 13:
strcat(info, " screams, \"I want your blood.\"");
break;
case 14:
strcat(info, " looks scornfully at you.");
break;
}
break; // end Terence
case MONS_EDMUND: // mercenaries guarding dungeon
case MONS_LOUISE:
case MONS_FRANCES:
case MONS_DUANE:
case MONS_ADOLF:
switch (random2(17))
{
case 0:
strcat(info, " screams, \"I'm going to kill you! Now!\"");
break;
case 1:
strcat(info,
" shouts, \"Return immediately or I'll kill you!\"");
break;
case 2:
strcat(info,
" says, \"Now you've reached the end of your journey!\"");
break;
case 3:
strcat(info,
" screams, \"One false step and I'll kill you!\"");
break;
case 4:
strcat(info, " says, \"Drop everything you've found here and return home.\"");
break;
case 5:
strcat(info, " shouts, \"You will never get the Orb.\"");
break;
case 6:
strcat(info, " looks very unfriendly.");
break;
case 7:
strcat(info, " looks very cold.");
break;
case 8:
strcat(info, " shouts, \"It's the end of the party!\"");
break;
case 9:
strcat(info, " says, \"Return every stolen item!\"");
break;
case 10:
strcat(info, " says, \"No trespassing is allowed here.\"");
break;
case 11:
strcat(info, " grins evilly.");
break;
case 12:
strcat(info, " screams, \"You must be punished!\"");
break;
case 13:
strcat(info, " says, \"It's nothing personal...\"");
break;
case 14:
strcat(info, " says, \"A dead adventurer is good adventurer.\"");
break;
case 15:
strcat(info, " says, \"Coming here was your last mistake.\"");
break;
case 16:
strcat(info, " shouts, \"Intruder!\"");
break;
}
break; // end Edmund & Co
case MONS_JOSEPH:
switch (random2(16))
{
case 0:
strcat(info, " smiles happily.");
break;
case 1:
strcat(info, " says, \"I'm happy to see you. And I'll be happy to kill you.\"");
break;
case 2:
strcat(info, " says, \"I've waited for this moment for such a long time.\"");
break;
case 3:
strcat(info,
" says, \"It's nothing personal but I have kill you.\"");
break;
case 5:
strcat(info, " says, \"You will never get the Orb, sorry.\"");
break;
case 9:
strcat(info, " shouts, \"I love to fight! I love killing!\"");
break;
case 10:
strcat(info,
" says, \"I'm here to kill trespassers. I like my job.\"");
break;
case 11:
strcat(info, " tries to grin evilly.");
break;
case 12:
strcat(info,
" says, \"You must be punished! Or... I want to punish you!\"");
break;
case 13:
strcat(info,
" sighs, \"Being guard is usually so boring...\"");
break;
case 14:
strcat(info, " shouts, \"At last some action!\"");
break;
case 15:
strcat(info, " shouts, \"Wow!\"");
break;
}
break; // end Joseph
case MONS_ORC_HIGH_PRIEST: // priest, servants of dark ancient god
case MONS_DEEP_ELF_HIGH_PRIEST:
switch (random2(9))
{
case 0:
case 1:
strcat(info, " prays.");
msg_type = MSGCH_MONSTER_SPELL;
break;
case 2:
strcat(info, " mumbles some strange prayers.");
msg_type = MSGCH_MONSTER_SPELL;
break;
case 3:
strcat(info,
" shouts, \"You are a heretic and must be destroyed.\"");
break;
case 4:
strcat(info, " says, \"All sinners must die.\"");
break;
case 5:
strcat(info, " looks excited.");
break;
case 6:
strcat(info, " says, \"You will make a fine sacrifice.\"");
break;
case 7:
strcat(info, " starts to sing a prayer.");
break;
case 8:
strcat(info, " shouts, \"You must be punished.\"");
break;
}
break; // end priests
case MONS_ORC_SORCERER: // hateful wizards, using strange powers
case MONS_DEEP_ELF_SORCERER:
case MONS_WIZARD:
switch (random2(19))
{
case 0:
case 1:
case 2:
strcat(info, " wildly gestures.");
mpr( info, MSGCH_MONSTER_SPELL );
if (coinflip())
canned_msg( MSG_NOTHING_HAPPENS );
else
canned_msg( MSG_YOU_RESIST );
return (true);
case 3:
case 4:
case 5:
strcat(info, " mumbles some strange words.");
mpr( info, MSGCH_MONSTER_SPELL );
if (coinflip())
canned_msg( MSG_NOTHING_HAPPENS );
else
canned_msg( MSG_YOU_RESIST );
return (true);
case 6:
strcat(info, " shouts, \"You can't withstand my power!\"");
break;
case 7:
strcat(info, " shouts, \"You are history.\"");
break;
case 8:
simple_monster_message( monster, " casts a spell.",
MSGCH_MONSTER_SPELL );
strcat(info, " becomes transparent for a moment.");
msg_type = MSGCH_MONSTER_ENCHANT;
break;
case 9:
strcat(info, " throws some strange powder towards you.");
msg_type = MSGCH_MONSTER_SPELL;
break;
case 10:
simple_monster_message( monster, " casts a spell.",
MSGCH_MONSTER_SPELL );
strcat(info, " glows brightly for a moment.");
msg_type = MSGCH_MONSTER_ENCHANT;
break;
case 11:
strcat(info, " says, \"argatax netranoch dertex\"");
msg_type = MSGCH_MONSTER_SPELL;
break;
case 12:
strcat(info, " says, \"dogrw nutew berg\"");
msg_type = MSGCH_MONSTER_SPELL;
break;
case 13:
strcat(info, " shouts, \"Entram moth deg ulag!\"");
msg_type = MSGCH_MONSTER_SPELL;
break;
case 14:
strcat(info, " casts a spell.");
mpr(info, MSGCH_MONSTER_SPELL);
strcpy(info, m_name);
strcat(info, " becomes larger for a moment.");
msg_type = MSGCH_MONSTER_ENCHANT;
break;
case 15:
strcat(info, " casts a spell.");
mpr(info, MSGCH_MONSTER_SPELL);
strcpy(info, m_name);
strcat(info, "'s fingertips starts to glow.");
msg_type = MSGCH_MONSTER_ENCHANT;
break;
case 16:
strcat(info, "'s eyes starts to glow.");
msg_type = MSGCH_MONSTER_SPELL;
break;
case 17:
strcat(info, " tries to paralyze you with his gaze.");
msg_type = MSGCH_MONSTER_SPELL;
break;
case 18:
strcat(info, " casts a spell.");
mpr(info, MSGCH_MONSTER_SPELL);
canned_msg( MSG_YOU_RESIST );
return (true);
}
break; // end wizards
case MONS_JESSICA: // sorceress disturbed by player
switch (random2(10))
{
case 0:
strcat(info, " grins evilly.");
break;
case 1:
strcat(info, " says, \"I'm really upset.\"");
break;
case 2:
strcat(info, " shouts, \"I don't like beings like you.\"");
break;
case 3:
strcat(info,
" shouts, \"Stop bothering me, or I'll kill you!\"");
break;
case 4:
strcat(info, " very coldly says, \"I hate your company.\"");
break;
case 5:
strcat(info, " mumbles something strange.");
msg_type = MSGCH_MONSTER_SPELL;
break;
case 6:
strcat(info, " looks very angry.");
break;
case 7:
strcat(info,
" shouts, \"You're disturbing me. I'll have kill you.\"");
break;
case 8:
strcat(info, " screams, \"You are a ghastly nuisance!\"");
break;
case 9:
strcat(info, " gestures wildly.");
msg_type = MSGCH_MONSTER_SPELL;
break;
}
break; // end Jessica
case MONS_SIGMUND: // mad old wizard
switch (random2(19))
{
case 0:
case 1:
case 2:
strcat(info, " laughs crazily.");
break;
case 3:
strcat(info, " says, \"Don't worry, I'll kill you fast.\"");
break;
case 4:
strcat(info, " grinds his teeth.");
break;
case 5:
strcat(info, " asks, \"Do you like me?\"");
break;
case 6:
strcat(info, " screams, \"Die, monster!\"");
break;
case 7:
strcat(info, " says, \"You will soon forget everything.\"");
break;
case 8:
strcat(info, " screams, \"You will never... NEVER!\"");
break;
case 9:
simple_monster_message( monster, " casts a spell.",
MSGCH_MONSTER_SPELL );
strcat(info, "'s eyes starts to glow with a red light. ");
msg_type = MSGCH_MONSTER_ENCHANT;
break;
case 10:
strcat(info, " says, \"Look in to my eyes.\"");
break;
case 11:
strcat(info, " says, \"I'm your fate.\"");
break;
case 12:
simple_monster_message( monster, " casts a spell.",
MSGCH_MONSTER_SPELL );
strcat(info, " is suddenly surrounded by pale blue light.");
msg_type = MSGCH_MONSTER_ENCHANT;
break;
case 13:
strcat(info, " tries to bite you.");
break;
case 14:
simple_monster_message( monster, " casts a spell.",
MSGCH_MONSTER_SPELL );
strcat(info, " is suddenly surrounded by pale green light.");
msg_type = MSGCH_MONSTER_ENCHANT;
break;
case 15:
strcat(info, " screams, \"I am the angel of Death!\"");
break;
case 16:
strcat(info, " screams, \"Only death can liberate you!\"");
break;
case 17:
strcat(info, " whispers, \"You'll know eternity soon...\"");
break;
case 18:
strcat(info, " screams, \"Don't try to resist!\"");
break;
}
break; // end Sigmund
case MONS_IMP: // small demon
case MONS_WHITE_IMP:
case MONS_SHADOW_IMP:
if (one_chance_in(3))
{
imp_taunt( monster );
return (true);
}
else
{
switch (random2(11))
{
case 0:
strcat(info, " laughs crazily.");
break;
case 1:
strcat(info, " grins evilly.");
break;
case 2:
strcat(info, " breathes a bit of smoke at you.");
break;
case 3:
strcat(info, " lashes with his tail.");
break;
case 4:
strcat(info, " grinds his teeth.");
break;
case 5:
strcat(info, " sputters.");
break;
case 6:
strcat(info, " breathes some steam toward you.");
break;
case 7:
strcat(info, " spits at you.");
break;
case 8:
strcat(info, " disappears for a moment.");
break;
case 9:
strcat(info, " summons a swarm of flies.");
break;
case 10:
strcat(info, " picks up some beetle and eats it.");
break;
}
}
break; // end imp
case MONS_TORMENTOR: // cruel devil
if (one_chance_in(10))
{
demon_taunt( monster );
return (true);
}
else
{
switch (random2(18))
{
case 0:
strcat(info, " laughs crazily.");
break;
case 1:
strcat(info, " grins evilly.");
break;
case 2:
strcat(info, " says, \"I am all your nightmares come true.\"");
break;
case 3:
strcat(info, " says, \"I will show you what pain is.\"");
break;
case 4:
strcat(info, " shouts, \"I'll tear you apart.\"");
break;
case 5:
strcat(info,
" says, \"You will wish to die when I get to you.\"");
break;
case 6:
strcat(info, " says, \"I will drown you in your own blood.\"");
break;
case 7:
strcat(info,
" screams, \"You will die horribly!\"");
break;
case 8:
strcat(info, " says, \"I will eat your liver.\"");
break;
case 9:
strcat(info, " grins madly.");
break;
case 10:
strcat(info, " shouts, \"Prepare for my thousand needles of pain!\"");
break;
case 11:
strcat(info,
" says, \"I know thousand and one way to kill you.\"");
break;
case 12:
strcat(info,
" says, \"I'll show you my torture chamber!\"");
break;
case 13:
case 14:
strcat(info,
" says, \"I'll crush your bones, one by one.\"");
break;
case 15:
strcat(info, " says, \"I know your fate. It's pain.\"");
break;
case 16:
strcat(info, " says, \"Get ready! Throes await you.\"");
break;
case 17:
strcat(info, " grins malevolently.");
break;
}
}
break; // end tormentor
case MONS_PANDEMONIUM_DEMON: // named demons
case MONS_GERYON:
case MONS_ASMODEUS:
case MONS_DISPATER:
case MONS_ANTAEUS:
case MONS_ERESHKIGAL:
case MONS_MNOLEG:
case MONS_LOM_LOBON:
case MONS_CEREBOV:
case MONS_GLOORX_VLOQ:
demon_taunt( monster );
return (true);
case MONS_PLAYER_GHOST: // ghost of unsuccesful player
switch (random2(24))
{
case 0:
strcat(info, " laughs crazily.");
break;
case 1:
strcat(info, " grins evilly.");
break;
case 2:
strcat(info, " shouts, \"You will never get the ORB!\"");
break;
case 3: // mv: ghosts are usually wailing, aren't ?
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
case 11:
strcat(info, " wails.");
break;
case 12:
strcat(info, " stares at you.");
mpr(info, MSGCH_MONSTER_SPELL);
mpr("You feel cold.", MSGCH_WARN);
return (true);
case 13:
strcat(info, " screams, \"You will join me soon!\"");
break;
case 14:
strcat(info, " wails, \"To die, to sleep, no more.\"");
break; //Hamlet
case 15:
strcat(info,
" screams, \"You must not succeed where I failed.\"");
break;
case 16:
strcat(info,
" screams, \"I'll kill anyone who wants the ORB.\"");
break;
case 17:
strcat(info, " whispers, \"Meet emptiness of death!\"");
break;
case 18:
strcat(info, " whispers, \"Death is liberation.\"");
break;
case 19:
strcat(info,
" whispers, \"Everlasting silence awaits you.\"");
break;
case 20:
strcat(info,
" screams, \"Don't try to defend. You have no chance!\"");
break;
case 21:
strcat(info,
" whispers, \"Death doesn't hurt. What you feel is life.\"");
break;
case 22:
strcat(info, " whispers, \"The ORB doesn't exist.\"");
break;
case 23:
strcat(info, " wails, \"Death is your only future.\"");
break;
}
break; // end players ghost
case MONS_PSYCHE: // insane girl
switch (random2(20))
{
case 0:
strcat(info, " smiles happily.");
break;
case 1:
strcat(info, " giggles crazily.");
break;
case 2:
strcat(info, " cries.");
break;
case 3:
strcat(info, " stares at you for a moment.");
break;
case 4:
strcat(info, " sings.");
break;
case 5:
strcat(info,
" says, \"Please, could you die a little faster?\"");
break;
case 6:
strcat(info,
" says, \"I'm bad girl. But I can't do anything about it.\"");
break;
case 7:
strcat(info,
" screams, \"YOU ARE VIOLATING AREA SECURITY!\"");
break;
case 8:
strcat(info, " cries, \"I hate blood and violence.\"");
break;
case 9:
strcat(info,
" screams, \"Peace! Flowers! Freedom! Dead adventurers!\"");
break;
case 10:
strcat(info,
" says, \"I'm so lonely. Only corpses are my friends.\"");
break;
case 11:
strcat(info, " cries, \"You've killed my pet.\"");
break;
case 12:
strcat(info,
" cries, \"You want to steal my orb collection?!\"");
break;
case 13:
strcat(info, " sings some strange song.");
break;
case 14:
strcat(info, " bursts in tears.");
break;
case 15:
strcat(info, " sucks her thumb.");
break;
case 16:
strcat(info,
" whispers, \"Hold me, thrill me, kiss me, kill me.\"");
break; //(c) U2 ?
case 17:
strcat(info, " says, \"I'll kill you and take you home.\"");
break;
case 18:
strcat(info,
" shouts, \"Well, maybe I'm nutty, but who cares?\"");
break;
case 19:
strcat(info,
" shouts, \"I hope that you are sorry for that.\"");
break;
}
break; // end Psyche
case MONS_DONALD: // adventurers hating competition
case MONS_WAYNE:
switch (random2(11))
{
case 0:
strcat(info, " screams, \"Return home!\"");
break;
case 1:
strcat(info, " screams, \"The Orb is mine!\"");
break;
case 2:
strcat(info, " screams, \"Give me all your treasure!\"");
break;
case 3:
strcat(info, " screams, \"You will never get the Orb!\"");
break;
case 4:
strcat(info, " screams, \"I was here first!\"");
break;
case 5:
strcat(info, " frowns.\"");
break;
case 6:
strcat(info, " looks very upset.");
break;
case 7:
strcat(info, " screams, \"Get away or die!\"");
break;
case 8:
strcat(info, " screams, \"Die!\"");
break;
case 9:
strcat(info, " screams, \"First you have to pass me!\"");
break;
case 10:
strcat(info, " screams, \"I hate you!\"");
break;
}
break; // end Donald
case MONS_MICHAEL: // spellcaster who wanted to be alone
switch (random2(11))
{
case 0:
strcat(info, " looks very angry.");
break;
case 1:
strcat(info, " frowns.");
break;
case 2:
strcat(info, " screams, \"I want to be alone!\"");
break;
case 3:
strcat(info, " says, \"You are really nuisance.\"");
break;
case 4:
strcat(info,
" screams, \"I wanted to be alone. And you...\"");
break;
case 5:
strcat(info, " screams, \"Get away! Or better yet, die!\"");
break;
case 6:
strcat(info, " mumbles some strange words.");
msg_type = MSGCH_MONSTER_SPELL;
break;
case 7:
strcat(info, " points at you.");
mpr(info, MSGCH_MONSTER_SPELL);
canned_msg(MSG_YOU_RESIST);
return (true);
case 8:
strcat(info, " shakes with wrath.");
break;
case 9:
strcat(info, " drinks a potion.");
break;
case 10:
strcat(info, " gestures wildly.");
msg_type = MSGCH_MONSTER_SPELL;
break;
}
break; // end Michael
case MONS_ERICA: // wild tempered adventuress
switch (random2(12))
{
case 0:
strcat(info, " screams, \"Die!\"");
break;
case 1:
strcat(info, " screams, \"Do you want it fast or slow?\"");
break;
case 2:
strcat(info, " looks angry.");
break;
case 3:
strcat(info, " drinks a potion.");
break;
case 4:
strcat(info, " says, \"I'm so much better than you.\"");
break;
case 5:
strcat(info,
" says, \"Fast and perfect. Such is my way of killing.\"");
break;
case 6:
strcat(info, " screams, \"Hurry! Death awaits!\"");
break;
case 7:
strcat(info, " laughs wildly.");
break;
case 8:
strcat(info, " screams, \"I'll never tell where it is!\"");
break;
case 9:
strcat(info, " screams, \"You'll never get it!\"");
break;
case 10:
strcat(info, " screams, \"Coming here was suicide!\"");
break;
case 11:
strcat(info,
" says, \"I love to fight, but killing is better.\"");
break;
}
break; // end Erica
case MONS_JOSEPHINE: // ugly old witch looking for somone to kill
switch (random2(13))
{
case 0:
case 1:
case 2:
strcat(info, " grins evilly.");
break;
case 3:
case 4:
strcat(info, " screams, \"I will kill you!\"");
break;
case 5:
strcat(info, " grinds her teeth.");
break;
case 6:
strcat(info, " grins malevolently.");
break;
case 7:
strcat(info, " laughs insanely.");
break;
case 8:
strcat(info, " screams, \"Die!\"");
break;
case 9:
strcat(info,
" screams, \"I have something special for you!\"");
break;
case 10:
strcat(info,
" screams, \"I'll use your head as decoration in my hut!\"");
break;
case 11:
strcat(info, " says, \"I'll make a rug of your skin.\"");
break;
case 12:
strcat(info, " says, \"How about some decapitation?\"");
break;
}
break; // end Josephine
case MONS_HAROLD: // middle aged man, hired to kill you. He is in a hurry.
switch (random2(11))
{
case 0:
strcat(info, " looks nervous.");
break;
case 1:
strcat(info, " screams, \"Hurry up!\"");
break;
case 2:
strcat(info, " screams, \"Could you die faster?\"");
break;
case 3:
strcat(info,
" says, \"Stand still. I'm trying to kill you.\"");
break;
case 4:
strcat(info, " screams, \"Die!\"");
break;
case 5:
strcat(info, " says, \"I hope you die soon!\"");
break;
case 6:
strcat(info,
" says, \"Only few hits and it's over.\".");
break;
case 7:
strcat(info, " says, \"You know, I'm in a hurry.\"");
break;
case 8:
strcat(info, " screams, \"I'll finish you soon!\"");
break;
case 9:
strcat(info, " screams, \"Don't delay it.\"");
break;
case 11:
strcat(info, " says, \"Mine is not to reason why. Mine's to do, yours to die.\"" );
}
break; // end Harold
// skilled warrior looking for some fame. More deads = more fame
case MONS_NORBERT:
switch (random2(13))
{
case 0:
strcat(info, " smiles happily.");
break;
case 1:
strcat(info, " screams, \"Die, monster!\"");
break;
case 2:
strcat(info, " screams, \"I'm a hero!\"");
break;
case 3:
strcat(info, " shouts, \"YES! Another notch!\"");
break;
case 4:
strcat(info, " says, \"A pity your head will make such an ugly trophy.\"");
break;
case 5:
strcat(info,
" screams, \"Pray, because you'll die soon!\"");
break;
case 6:
strcat(info,
" asks \"Did you write a will? You should.\".");
break;
case 7:
strcat(info,
" says, \"I love killing ugly monsters like you.\"");
break;
case 8:
strcat(info, " screams, \"Blood and destruction!\"");
break;
case 9:
strcat(info, " says, \"You know, it's honour to die by my hand.\"");
break;
case 10:
strcat(info, " shouts, \"Your time has come!\"");
break;
case 11:
strcat(info,
" says, \"I'm sorry but you don't have a chance.\"");
break;
case 12:
strcat(info,
" says, \"Another dead monster... It must be my lucky day!\"");
break;
}
break; // end Norbert
case MONS_JOZEF: // bounty hunter
switch (random2(14))
{
case 0:
strcat(info, " looks satisfied.");
break;
case 1:
strcat(info, " screams, \"Die!\"");
break;
case 2:
strcat(info, " screams, \"At last I found you!\"");
break;
case 3:
strcat(info, " shouts, \"I'll get 500 for your head!\"");
break;
case 4:
strcat(info,
" says, \"You don't look worth for that money.\"");
break;
case 5:
strcat(info,
" says, \"It's nothing personal. I'm paid for it!\"");
break;
case 6:
strcat(info,
" asks \"Did you write a testament? You should.\"");
break;
case 7:
strcat(info, " says, \"You are ");
strcat(info, you.your_name);
strcat(info, ", aren't you?.\"");
break;
case 8:
strcat(info, " says, \"I suppose that you are ");
strcat(info, you.your_name);
strcat(info, ". Sorry, if I'm wrong.\"");
break;
case 9:
strcat(info, " says, \"One dead ");
strcat(info, you.your_name);
strcat(info, ", 500 gold pieces. It's in my contract.\"");
break;
case 10:
strcat(info, " shouts, \"Your time has come!\"");
break;
case 11:
strcat(info,
" says, \"My job is sometimes very exciting. Sometimes...\"");
break;
case 12:
strcat(info, " says, \"I think I deserve my money.\"");
break;
case 13:
strcat(info,
" screams, \"Die! I've got more contracts today.\"");
break;
}
break; // end Jozef
case MONS_AGNES: // she is trying to get money and treasure
switch (random2(10))
{
case 0:
strcat(info, " screams, \"Give me all your money!\"");
break;
case 1:
strcat(info, " screams, \"All treasure is mine!\"");
break;
case 2:
strcat(info, " screams, \"You'll never get my money!\"");
break;
case 3:
strcat(info, " grins evilly.");
break;
case 4:
strcat(info,
" screams, \"Give me everything and get away!\"");
break;
case 5:
strcat(info,
" says, \"I need new robe. I'll buy it from your money.\"");
break;
case 6:
strcat(info,
" screams, \"I want your rings! And amulets! And... EVERYTHING!\"");
break;
case 7:
strcat(info,
" screams, \"I hate dirty adventurers like you.\"");
break;
case 8:
strcat(info, " says, \"How can you wear that ugly dress?\"");
break;
case 9:
strcat(info, " screams, \"Die, beast!\"");
break;
}
break; // end Agnes
case MONS_MAUD: // warrior princess looking for sword "Entarex"
switch (random2(11))
{
case 0:
strcat(info, " screams, \"Submit or die!\"");
break;
case 1:
strcat(info, " screams, \"Give me \"Entarex\"!\"");
break;
case 2:
strcat(info,
" screams, \"If you give me \"Entarex\", I'll let you live!\"");
break;
case 3:
strcat(info, " frowns.");
break;
case 4:
strcat(info, " looks upset.");
break;
case 5:
strcat(info, " screams, \"You can't face my power!\"");
break;
case 6:
strcat(info,
" screams, \"Give me that sword! Immediately!\"");
break;
case 7:
strcat(info,
" screams, \"Your life or \"Entarex\"! You must choose.\"");
break;
case 8:
strcat(info, " screams, \"I want it!\"");
break;
case 9:
strcat(info, " screams, \"Die, you thief!\"");
break;
case 10:
// needed at least one in here to tie to the amnesia
// scroll reference -- bwr
strcat(info, " asks \"Will you think of me as you die?\"");
break;
}
break; // end Maud
// wizard looking for bodyparts as spell components
case MONS_FRANCIS:
switch (random2(15))
{
case 0:
strcat(info,
" says, \"You've nice eyes. I could use them.\"");
break;
case 1:
strcat(info, " says, \"Excuse me, but I need your head.\"");
break;
case 2:
strcat(info, " says, \"I only need a few of your organs!\"");
break;
case 3:
strcat(info, " ponders the situation.");
break;
case 4:
strcat(info, " looks for scalpel.");
break;
case 5:
simple_monster_message( monster, " casts a spell",
MSGCH_MONSTER_SPELL );
strcat(info, "'s hands started to glow with soft light.");
msg_type = MSGCH_MONSTER_ENCHANT;
break;
case 6:
strcat(info, " says, \"This won't hurt a bit.\"");
break;
case 7:
strcat(info, " throws something at you.");
break;
case 8:
strcat(info, " says, \"I want you in my laboratory!\"");
break;
case 9:
strcat(info, " says, \"What about little dissection?\"");
break;
case 10:
strcat(info,
" says, \"I have something special for you.\"");
break;
case 11:
strcat(info,
" screams, \"Don't move! I want to cut your ear!\"");
break;
case 12:
strcat(info,
" says, \"What about your heart? Do you need it?\"");
break;
case 13:
strcat(info,
" says, \"Did you know that corpses are an important natural resource?\"");
break;
case 14:
strcat(info,
" says, \"Don't worry, I'll only take what I need.\"");
break;
}
break; // end Francis
case MONS_RUPERT: // crazy adventurer
switch (random2(11))
{
case 0:
strcat(info, " says, \"You are a monster, aren't you?\"");
break;
case 1:
strcat(info, " screams, \"Die, monster!\"");
break;
case 2:
strcat(info, " screams, \"Give me Holy Grail!\"");
break;
case 3:
strcat(info, " screams, \"Red! No, blue!\"");
break;
case 4:
strcat(info, " looks confused.");
break;
case 5:
strcat(info, " looks excited.");
break;
case 6:
strcat(info, " shouts, \"I'm great and powerful hero!\"");
break;
case 7:
strcat(info,
" screams, \"Get ready! I'll kill you! Or something like it...\"");
break;
case 8:
strcat(info,
" says, \"My Mom always said, kill them all.\"");
break;
case 9:
strcat(info,
" screams, \"You killed all those lovely monsters, you murderer!\"");
break;
case 10:
strcat(info, " screams, \"Hurray!\"");
break;
}
break; // end Rupert
case MONS_NORRIS: // enlighten but crazy man
switch (random2(24))
{
case 0:
strcat(info, " sings \"Hare Rama, Hare Krishna!\"");
break;
case 1:
strcat(info, " smiles at you.");
break;
case 2:
strcat(info,
" says, \"After death you'll find inner peace.\"");
break;
case 3:
strcat(info,
" says, \"Life is just suffering. I'll help you.\"");
break;
case 4:
strcat(info, " is surrounded with aura of peace.");
break;
case 5:
strcat(info, " looks very balanced.");
break;
case 6:
strcat(info, " says, \"Don't resist. I'll do it for you.\"");
break;
case 7:
strcat(info, " screams, \"Enter NIRVANA! Now!\"");
break;
case 8:
strcat(info, " says, \"Death is just a liberation!\"");
break;
case 9:
strcat(info,
" says, \"Feel free to die. It's great thing.\"");
break;
case 10:
strcat(info, " says, \"OHM MANI PADME HUM!\"");
break;
case 11:
strcat(info, " mumbles some mantras.");
msg_type = MSGCH_MONSTER_SPELL;
break;
case 12:
strcat(info, " says, \"Breath deeply.\"");
break;
case 13:
strcat(info, " screams, \"Love! Eternal love!\"");
break;
case 14:
strcat(info,
" screams, \"Peace! I bring you eternal peace!\"");
break;
case 15:
strcat(info,
" sighs \"Enlightenment is such responsibility.\"");
break;
case 16:
strcat(info, " looks relaxed.");
break;
case 17:
strcat(info, " screams, \"Free your soul! Die!\"");
break;
case 18:
strcat(info, " screams, \"Blow your mind!\"");
break;
case 19:
strcat(info,
" says, \"The Orb is only a myth. Forget about it.\"");
break;
case 20:
strcat(info, " says, \"It's all maya.\"");
break;
case 21:
strcat(info, " says, \"Drop out!\"");
break;
case 22:
strcat(info,
" sings, \"Peace now, freedom now! Peace now, freedom now!\"");
break;
case 23:
strcat(info, " says, \"This is called Combat Meditation.\"");
break;
}
break; // end Norris
case MONS_MARGERY: // powerful sorceress, guarding the ORB
switch (random2(22))
{
case 0:
strcat(info, " says, \"You are dead.\"");
break;
case 1:
strcat(info, " looks very self-confident.");
break;
case 2:
strcat(info, " screams, \"You must be punished!\"");
break;
case 3:
strcat(info, " screams, \"You can't withstand my power!\"");
break;
case 4:
simple_monster_message( monster, " casts a spell.",
MSGCH_MONSTER_SPELL );
strcat(info, " is surrounded with aura of power.");
msg_type = MSGCH_MONSTER_ENCHANT;
break;
case 5:
strcat(info, "'s eyes starts to glow with a red light.");
break;
case 6:
strcat(info,
"'s eyes starts to glow with a green light.");
break;
case 7:
strcat(info, "'s eyes starts to glow with a blue light.");
break;
case 8:
strcat(info, " screams, \"All trespassers must die!\"");
break;
case 9:
strcat(info, " says, \"Die!\"");
break;
case 10:
strcat(info, " screams, \"You'll have to get past me!\"");
break;
case 11:
simple_monster_message( monster, " casts a spell.",
MSGCH_MONSTER_SPELL );
strcat(info, " becomes transparent for a moment.");
msg_type = MSGCH_MONSTER_ENCHANT;
break;
case 12:
strcat(info, " gestures.");
msg_type = MSGCH_MONSTER_SPELL;
break;
case 13:
simple_monster_message( monster, " casts a spell.",
MSGCH_MONSTER_SPELL );
strcat(info, "'s hands start to glow.");
msg_type = MSGCH_MONSTER_ENCHANT;
break;
case 14:
strcat(info, " screams, \"Ergichanteg reztahaw!\"");
mpr(info, MSGCH_MONSTER_SPELL);
mpr("You feel really bad.", MSGCH_WARN);
return (true);
case 15:
strcat(info, " screams, \"You are doomed!\"");
break;
case 16:
strcat(info, " screams, \"Nothing can help you.\"");
break;
case 17:
strcat(info, " screams, \"Death is my middle name!\"");
break;
case 18:
strcat(info, " gestures.");
mpr(info, MSGCH_MONSTER_SPELL);
mpr("You feel doomed.", MSGCH_WARN);
return (true);
case 19:
strcat(info, " gestures.");
mpr(info, MSGCH_MONSTER_SPELL);
mpr("You feel weakened.", MSGCH_WARN);
return (true);
case 20:
strcat(info, " throws some purple powder towards you.");
mpr(info, MSGCH_MONSTER_SPELL);
mpr("You feel cursed.", MSGCH_WARN);
return (true);
case 21:
strcat(info,
" screams, \"The ORB is only a tale, but I will kill you anyway!");
break;
}
break; // end Margery
case MONS_IJYB: // twisted goblin
switch (random2(14))
{
case 0:
strcat(info, " screams, \"Die!\"");
break;
case 1:
strcat(info, " screams, \"Me kill you!\"");
break;
case 2:
strcat(info, " screams, \"Me stronger than you!\"");
break;
case 3:
case 4:
strcat(info, " grins evilly.");
break;
case 5:
strcat(info, " screams, \"It's all mine!\"");
break;
case 6:
strcat(info, " screams, \"Get away!\"");
break;
case 7:
strcat(info, " screams, \"Level is mine! All mine!\"");
break;
case 8:
strcat(info, " screams, \"I cut your head off!\"");
break;
case 9:
strcat(info, " screams, \"I dance on your bones!\"");
break;
case 10:
strcat(info, " screams, \"Me very upset!\"");
break;
case 11:
strcat(info, " screams, \"You nasty! Big nasty!\"");
break;
case 12:
strcat(info, " screams, \"No! No, no, no, no!\"");
break;
case 13:
strcat(info, " screams, \"I no like you!\"");
break;
}
break; // end IJYB
case MONS_BLORK_THE_ORC: // unfriendly orc
switch (random2(21))
{
case 0:
strcat(info, " screams, \"I don't like you!\"");
break;
case 1:
strcat(info, " screams, \"I'm going to kill you!\"");
break;
case 2:
strcat(info,
" screams, \"I'm much stronger than you!\"");
break;
case 3:
case 4:
strcat(info, " grins evilly.");
break;
case 5:
strcat(info, " frowns.");
break;
case 6:
case 7:
case 8:
case 9:
strcat(info, " looks angry.");
break;
case 10:
strcat(info,
" screams, \"I'll eat your brain! And then I'll vomit it back up!\"");
break;
case 11:
strcat(info,
" screams, \"You are the ugliest creature I've ever seen!\"");
break;
case 12:
strcat(info, " screams, \"I'll cut your head off!\"");
break;
case 13:
strcat(info, " screams, \"I'll break your legs!\"");
break;
case 14:
strcat(info, " screams, \"I'll break your arms!\"");
break;
case 15:
strcat(info,
" screams, \"I'll crush all your ribs! One by one!\"");
break;
case 16:
strcat(info,
" screams, \"I'll make a cloak from your skin!\"");
break;
case 17:
strcat(info,
" screams, \"I'll decorate my home with your organs!\"");
break;
case 18:
strcat(info, " screams, \"Die!\"");
break;
case 19:
strcat(info,
" screams, \"I'll cover the dungeon with your blood!\"");
break;
case 20:
strcat(info, " screams, \"I'll drink your blood! Soon!\"");
break;
}
break; // end Blork
case MONS_EROLCHA: // ugly ogre
switch (random2(11))
{
case 0:
strcat(info, " tries to grin evilly.");
break;
case 1:
strcat(info, " screams, \"Eat!\"");
break;
case 2:
strcat(info, " screams, \"Stand! Erolcha hit you!\"");
break;
case 3:
strcat(info, " screams, \"Blood!\"");
break;
case 4:
strcat(info, " screams, \"Erolcha kill you!\"");
break;
case 5:
strcat(info,
" screams, \"Erolcha crush your head!\"");
break;
case 6:
strcat(info, " roars.");
break;
case 7:
strcat(info, " growls.");
break;
case 8:
strcat(info, " screams, \"Lunch!\"");
break;
case 9:
strcat(info, " screams, \"Erolcha happy to kill you!\"");
break;
case 10:
strcat(info, " screams, \"Erolcha angry!\"");
break;
}
break; // end Erolcha
case MONS_URUG: // orc hired to kill you
switch (random2(11))
{
case 0:
strcat(info, " grins evilly.");
break;
case 1:
strcat(info, " screams, \"Die!\"");
break;
case 2:
strcat(info, " screams, \"I'm going to kill you! Now!\"");
break;
case 3:
strcat(info, " screams, \"Blood and destruction!\"");
break;
case 4:
strcat(info,
" sneers, \"Innocent? I'll kill you anyway.\"");
break;
case 5:
strcat(info,
" screams, \"I'll get 30 silver pieces for your head!\"");
break;
case 6:
strcat(info, " roars.");
break;
case 7:
strcat(info, " howls with blood-lust.");
break;
case 8:
strcat(info, " screams, \"You are already dead.\"");
break;
case 9:
strcat(info, " says, \"Maybe you aren't ");
strcat(info, you.your_name);
strcat(info, ". It doesn't matter.\"");
break;
case 10:
strcat(info, " screams, \"I love blood!\"");
break;
}
break; // end Urug
case MONS_SNORG: // troll
switch (random2(16))
{
case 0:
strcat(info, " grins.");
break;
case 1:
case 2:
case 3:
strcat(info, " smells terrible.");
break;
case 4:
case 5:
case 6:
strcat(info, " looks very hungry.");
break;
case 7:
strcat(info, " screams, \"Snack!\"");
break;
case 8:
strcat(info, " roars.");
break;
case 9:
strcat(info, " says, \"Food!\"");
break;
case 10:
strcat(info, " screams, \"Snorg hungry!\"");
break;
case 11:
strcat(info, " screams, \"Snorg very, very hungry!\"");
case 12:
strcat(info, " says, \"Snorg eat you.\"");
break;
case 13:
strcat(info, " says, \"You food?\"");
break;
case 14:
strcat(info, " says, \"Yum, yum.\"");
break;
case 15:
strcat(info, " burps.");
break;
}
break; // end Snorg
case MONS_XTAHUA: // ancient dragon
switch (random2(13))
{
case 0:
strcat(info, " roars, \"DIE, PUNY ONE!\"");
break;
case 1:
strcat(info, " growls, \"YOU BORE ME SO.\"");
break;
case 2:
strcat(info, " rumbles, \"YOU'RE BARELY A SNACK.\"");
break;
case 3:
strcat(info, " roars, \"I HATE BEING BOTHERED!\"");
break;
case 4:
strcat(info, " roars, \"I HOPE YOU'RE TASTY!\"");
break;
case 5:
strcat(info, " roars, \"BAH! BLOODY ADVENTURERS.\"");
break;
case 6:
strcat(info, " roars, \"FACE MY WRATH!\"");
break;
case 7:
strcat(info, " glares at you.");
break;
case 8:
strcat(info,
" roars, \"COMING HERE WAS YOUR LAST MISTAKE!\"");
break;
case 9:
strcat(info,
" roars, \"I'VE KILLED HUNDREDS OF ADVENTURERS!\"");
break;
case 10:
case 11:
case 12:
strcat(info, " roars horribly.");
mpr(info, MSGCH_TALK);
mpr("You are afraid.", MSGCH_WARN);
return (true);
}
break; // end Xtahua
case MONS_BORIS: // ancient lich
switch (random2(24))
{
case 0:
strcat(info, " says, \"I didn't invite you.\"");
break;
case 1:
strcat(info, " says, \"You can't imagine my power.\"");
break;
case 2:
strcat(info,
" says, \"Orb? You want the Orb? You'll never get it.\"");
break;
case 3:
strcat(info, " says, \"The world, the flesh, and the devil.\"");
break;
case 4:
strcat(info, " gestures.");
break;
case 5:
strcat(info, " stares at you.");
mpr(info, MSGCH_MONSTER_SPELL);
mpr("You feel drained.", MSGCH_WARN);
return (true);
case 6:
strcat(info, " stares at you.");
mpr(info, MSGCH_MONSTER_SPELL);
mpr("You feel weakened.", MSGCH_WARN);
return (true);
case 7:
strcat(info, " stares at you.");
mpr(info, MSGCH_MONSTER_SPELL);
mpr("You feel troubled.", MSGCH_WARN);
return (true);
case 8:
strcat(info, " says \"Magic. You know nothing about it.\"");
break;
case 9:
strcat(info, " says, \"My power is unlimited.\"");
break;
case 10:
strcat(info, " says, \"You can't kill me. I'm immortal.\"");
break;
case 11:
strcat(info, " casts a spell.");
mpr(info, MSGCH_MONSTER_SPELL);
mpr("Your equipment suddenly seems to weigh more.", MSGCH_WARN);
return (true);
case 12:
strcat(info,
" says, \"I know the secret of eternal life. Do you?\"");
break;
case 13:
strcat(info, " says, \"I'll be back.\"");
break;
case 14:
strcat(info, " casts a spell.");
mpr(info, MSGCH_MONSTER_SPELL);
canned_msg( MSG_YOU_RESIST );
return (true);
case 15:
strcat(info, " casts a spell.");
mpr(info, MSGCH_MONSTER_SPELL);
mpr("Suddenly you are surrounded with pale green light.", MSGCH_WARN);
return (true);
case 16:
strcat(info, " casts a spell.");
mpr(info, MSGCH_MONSTER_SPELL);
mpr("You have terrible head-ache.", MSGCH_WARN);
return (true);
case 17:
strcat(info,
" says, \"I know your future. Your future is death.\"");
break;
case 18:
strcat(info, " says, \"Who wants to live forever? Me.\"");
break;
case 19:
strcat(info, " laughs.");
break;
case 20:
strcat(info, " says, \"Join the legion of my servants.\"");
break;
case 21:
strcat(info, " says, \"There's only one solution for you. To die.\"");
break;
case 22:
strcat(info, " says, \"You can never win.\"");
break;
case 23:
simple_monster_message( monster, " casts a spell.",
MSGCH_MONSTER_SPELL );
strcat( info, " speeds up." );
msg_type = MSGCH_MONSTER_ENCHANT;
break;
}
break; // end BORIS
case MONS_DEATH_COB:
if (one_chance_in(2000))
{
mpr("The death cob makes a corny joke.", MSGCH_TALK);
return (true);
}
return (false);
case MONS_KILLER_KLOWN: // Killer Klown - guess!
switch (random2(10))
{
case 0:
strcat(info, " giggles crazily.");
break;
case 1:
strcat(info, " laughs merrily.");
break;
case 2:
strcat(info, " beckons to you.");
break;
case 3:
strcat(info, " does a flip.");
break;
case 4:
strcat(info, " does a somersault.");
break;
case 5:
strcat(info, " smiles at you.");
break;
case 6:
strcat(info, " grins with merry abandon.");
break;
case 7:
strcat(info, " howls with blood-lust!");
break;
case 8:
strcat(info, " pokes out its tongue.");
break;
case 9:
strcat(info, " says, \"Come and play with me!\"");
break;
}
break; // end Killer Klown
default:
strcat(info,
" says, \"I don't know what to say. It's a bug.\"");
break;
} // end monster->type - monster type switch
} // end default
mpr(info, msg_type);
return true;
} // end mons_speaks = end of routine
|