同为高二打OI竞赛的时候摸鱼用的,优化奇差,内容及其逆天(毕竟那会摸鱼的时候喜欢看SCP),又是一个大大的黑历史。

各位轻喷。

以下内容保存为moshi3.h

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
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
#include<ctime>
#include<conio.h>
#include<cstdio>
#include<string>
#include<iostream>
#include<windows.h>
using namespace std;
//这个头文件很容易内存泄漏,所以请不要乱搞……

#ifndef MODE3_H
#define MODE3_H

//-------------------------------------------------基础函数--------------------------------------------------
int rushu,choose1,choose2,choose3,mode,zhanghu,changjing;
int work_together=0,work_together1=0,light_system=0,door_system=0,zhongli=0,xianshi=0,xianshiyizhi=0;
int tot_jd=0,tot_sc=0,tot_pl=0,tot_ba=0;
int target[20],s049;

struct people{
int atk,ddf,hp,iq,su;
string name;
int zhan,go;
int now_hp,zd;
bool used,dead;
int defen;
int score;
bool atk_used,ddf_used,kong;
int BOSs;
int Tour_Skill,ma_bi;
int scp682_Skill;
int team;
int ji,cd;
}a[1001];

void zhandui(int); //战队系统----- (一)战队&名字绑定
void zhandui_xun(int); //战队系统----- (二)战队&战队名字&战队加成
void zhandui_xun2(int,int); //同上
void zhandui_skill(int); //战队系统----- (三)战队&战队奇术

void pugong(int,int); //普通攻击
void xiaolifeidao(int,int); //奇术:小李飞刀
void huoqiushu(int,int); //奇术:实力秒杀!!
void kuangbao(int); //奇术:狂暴术
void leijishu(int,int); //奇术:雷击术
void tiebishu(int); //奇术:铁壁术
void kongzhishu(int,int); //奇术:控制术----玩家独享
void bingdongshu(int,int); //奇术:冰封万里
void changqiongzhan(int,int); //奇术:苍穹斩
void huifushu(int,int); //奇术:恢复术
void shixueyiji(int,int); //奇术:嗜血一击
void lingxiyizhi(int,int); //奇术:灵犀一指
void xitong(int,int);
void yikoudunai(int,int);
void xianglongzhang(int,int);

void Slowsay(string); //输出优化
void say(char []);
bool check(int);
void clear(void);
void shuaxin(void);
void color(string); //颜色系统-----
bool panduan(void);
void voids(void);

void moshi3(void);
bool special_skills(int,int);

void scp(void);
void scp173(int);
void scp106(int);
void scp096(int);
void scp049(int);
void scp939(int,int);
void scp0351(int,int);
void scp0352(int);
void scp0491(int,int);
void scp0492(int);
void scp127(int,int);
void scp008(int);

void chongfengqiang(int,int);
void jiqiang(int,int);
void buqiang(int,int);
void mp7chongfengqiang(int,int);
void diancipao(int,int);
void shouqiang(int,int);
void shoulei(int,int);
void xiandanqiang(int,int);
void qishushoulei(int,int);
void gaosibuqiang(int,int,int);
void gl6(int,int,int);

void xianshiniuqu(int,int);
void xianshiniuquplus(int,int);
void buwendingxianshi(int);
void xianshiwendingmao();
void xianshiwending();
void buwendingshanghai();

void luochui(int);
void jiuweihu(int);
void achilles(int);
void samsara(int);
void last_hope(int);
void asimov(int);
void hundun(int);
void shezhishou(int);
void goc(int);
void d_class(int);
void science(int);
void doctor(int);
void zombie(int);
void lvxing(int);

void event1(void);
void event2(void);
void event3(void);
void event4(void);
void event5(void);
void event6(void);
void event7(void);
void event8(void);

int getrand(int x,int y)
{
return rand()%(y-x+1)+x;
}
void Slowsay(string s){
for(int i=0;s[i];i++){
cout<<s[i];
Sleep(10);
}
}
void say(char o[])
{
for(int i=0;o[i];i++){
cout<<o[i];
Sleep(10);
}
}
void color(string i){
if(i=="B")SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE);
else if(i=="W")SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE);
else if(i=="R")SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED);
else if(i=="Y")SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
else if(i=="G")SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN);
else if(i=="C")SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
else if(i=="P")SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_BLUE);
else if(i=="O")SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_RED|FOREGROUND_GREEN);
//else if(i=="MAGENTA");SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_R | FOREGROUND_B);
}

void zhandui(int i){
if(a[i].name=="堆"||a[i].name=="小根堆"||a[i].name=="大根堆"){a[i].zd=1;}
else if(a[i].name=="lzh"||a[i].name=="zyf"||a[i].name=="hjt"||a[i].name=="syt"){a[i].zd=2;}
else if(a[i].name=="***"){a[i].zd=3;}
else if(a[i].name=="Proton"||a[i].name=="曾哥") a[i].zd=4;
else if(a[i].name=="SCP-173"||a[i].name=="SCP-049"||a[i].name=="SCP-096"||a[i].name=="SCP-106"||a[i].name=="SCP-079"||a[i].name=="SCP-682"||a[i].name=="SCP-939") a[i].zd=5;
else if(a[i].name=="圣堂科工"||a[i].name=="光圈科技"||a[i].name=="保护伞公司"||a[i].name=="国际基因公司"||a[i].name=="黑山基地") a[i].zd=6;
else if(a[i].name=="O5-3"||a[i].name=="O5-13"||a[i].name=="Nobody") a[i].zd=7;
else if(a[i].name=="混沌分裂者") a[i].zd=9;
else if(a[i].name=="GOC") a[i].zd=10;
else if(a[i].name=="SCP基金会"||a[i].name=="红右手小队"||a[i].name=="九尾狐小队"||a[i].name=="潘多拉之盒小队"||a[i].name=="Clef博士"||a[i].name=="Grass博士"||a[i].name=="O5-1") a[i].zd=8;
}

void zhandui_xun(int i){
color("R");
Sleep(500);
cout<<endl;
cout<<"触发隐藏战队___系统!!!"<<endl;color("W");
Sleep(500);
for(int j=1;j<=100;j++){
if(a[i].zd==j){
zhandui_xun2(j,i);
break;
}
}
}

void zhandui_xun2(int j,int i){
cout<<a[i].name<<" ---- ";
if(j==1){color("R");cout<<"priority_queue_战队";}
else if(j==2){color("BULE");cout<<"Sir_战队";}
else if(j==3){color("Y");cout<<"***";}
else if(j==4){color("R");cout<<"作者联盟_SSRPOWER(BOSS集团)";}
else if(j==5){color("G");cout<<"SCP基金会_SCP联合战队(BOSS集团)";}
else if(j==6){color("C");cout<<"无上神域__圣堂(BOSS集团)";}
else if(j==7){color("Y");cout<<"神王&降临";}
else if(j==8){color("C");cout<<"SCP基金会_NTF机动特遣队";}
else if(j==9){color("G");cout<<"混沌分裂者_混沌小队";}
else if(j==10){color("B");cout<<"全球异常处理组织_GOC小队";}
color("W");
Sleep(500);
cout<<"-----"<<endl;
Sleep(500);
cout<<"战队特殊技能 : ";
if(j==1){color("C");cout<<"先发制人-----效果:优先出手一次"<<endl;a[i].su+=10;a[i].atk+=120;a[i].iq+=120;a[i].now_hp+=2000;a[i].hp+=2000;a[i].ddf+=50;}
else if(j==2){color("B");cout<<"绅士的力量-----效果:开局咸猪手(攻击力增加)"<<endl;a[i].atk+=15;}
else if(j==3){color("B");cout<<"农村的力量-----效果:生命上限增加"<<endl;a[i].hp+=800;a[i].now_hp+=800;}
else if(j==4){color("R");cout<<"BUG_BOSS_无法战胜!!----效果:全属性增加!"<<endl;a[i].now_hp+=5000;a[i].iq+=2500;a[i].atk+=3000;a[i].su+=20;a[i].ddf+=3000;a[i].hp+=5000;}
else if(j==5){color("R");cout<<"异常的力量------效果:攻击力增加,全属性降低"<<endl;a[i].atk=a[i].atk*5;a[i].ddf+=100;a[i].now_hp+=2000;a[i].su+=10;a[i].iq+=100;a[i].hp+=2000;}
else if(j==6){color("B");cout<<"跨国组织-----效果:生命上限增加,防御力增加"<<endl;a[i].hp+=1500;a[i].now_hp+=1500;a[i].ddf+=100;a[i].iq+=20;}
else if(j==7){color("G");cout<<"无";color("R");cout<<"上";color("Y");cout<<"神";color("C");cout<<"域";color("B");cout<<"-----效果:全属性大幅度增强";
a[i].hp+=20000;a[i].now_hp+=20000;a[i].atk+=8000;a[i].iq+=3000;a[i].ddf+=6000;a[i].su+=100;}
else if(j==8){color("B");cout<<"科技的力量-----效果:全属性大幅度增强";
a[i].hp+=1000;a[i].now_hp+=1000;a[i].atk+=200;a[i].iq+=150;a[i].ddf+=150;}
else if(j==9){color("C");cout<<"混乱的力量-----效果:全属性增强";
a[i].hp+=1000;a[i].now_hp+=1000;a[i].atk+=150;a[i].iq+=120;a[i].ddf+=100;}
else if(j==10){color("Y");cout<<"联合的力量-----效果:全属性增强";
a[i].hp+=1000;a[i].now_hp+=1000;a[i].atk+=150;a[i].iq+=120;a[i].ddf+=100;}
color("W");
cout<<endl;
}

void clear(int i)
{
a[i].ji=0;
a[i].zd=0;
a[i].zhan=0;
a[i].hp=0;
a[i].now_hp=0;
a[i].cd=0;
a[i].kong=0;
a[i].dead=0;
}
bool check(int i){
if(i==1) return true;
for(int s=1;s<=i-1;s++){
if(a[s].name == a[i].name)
return false;
}
return true;
}

bool panduan()
{
int f=0,h[50];
memset(h,0,sizeof(h));
for(int i=1;i<=rushu;i++)
if(a[i].now_hp>0&&!a[i].cd)h[a[i].team]++;
for(int i=1;i<50;i++)if(h[i])f++;
// for(int i=1;i<=5;i++)printf("%d ",h[i]);
// printf("\n");
// printf("%d %d %d %d\n",work_together,zhongli,work_together1,f);
if(f==1||(f==2&&h[1]&&h[3]&&(work_together||!zhongli))||(f==2&&h[1]&&h[4]&&work_together1)) return true;
else return false;
}

void voids (){
for(int i=1;i<=rushu+1;i++){
if(a[i].now_hp>=a[i].hp) a[i].now_hp=a[i].hp;
else if(a[i].now_hp<=0) a[i].now_hp=0;
}
}

void out_state(int i)
{
int space=6;
for(int k=1;k<=rushu;k+=2)
{
if(a[k].now_hp<=0&&a[k+1].now_hp<=0)continue;
cout<<endl;
cout<<"玩家"<<k<<"的名字是:"<<a[k].name;
for(int j=1;j<=space;j++)cout<<" ";
cout<<"玩家"<<k+1<<"的名字是:"<<a[k+1].name<<endl;
cout<<"玩家"<<k<<"的阵营是:"<<a[k].team<<" 是";
if(k==i)color("G"),cout<<"玩家 ",color("W");
else if(a[k].team==a[i].team||(mode==3&&a[k].team==3&&a[i].team==1&&work_together)||(mode==3&&a[k].team==3&&a[i].team==1&&!zhongli))color("B"),cout<<"盟友 ",color("W");
else color("R"),cout<<"敌人 ",color("W");
cout<<"玩家"<<k+1<<"的阵营是:"<<a[k+1].team<<" 是";
if(k+1==i)color("G"),cout<<"玩家 \n",color("W");
else if(a[k+1].team==a[i].team||(mode==3&&a[k+1].team==3&&a[i].team==1&&work_together)||(mode==3&&a[k+1].team==3&&a[i].team==1&&!zhongli))color("B"),cout<<"盟友 \n",color("W");
else color("R"),cout<<"敌人"<<endl,color("W");
cout<<"他的状态是";
if(a[k].now_hp>=100000)color("P"),cout<<"无敌 ∞/∞ ",color("W");
else if(a[k].now_hp<=0)
color("R"),cout<<"死亡"<<" ",color("W");
else if(a[k].cd)color("C"),cout<<"准备中"<<" ",color("W");
else if(a[k].now_hp>=a[k].hp)color("G"),cout<<"满血 "<<a[k].now_hp<<"/"<<a[k].hp<<" ",color("W");
else if(a[k].now_hp<a[k].hp/5)color("R"),cout<<"丝血 "<<a[k].now_hp<<"/"<<a[k].hp<<" ",color("W");
else if(a[k].now_hp<a[k].hp)color("Y"),cout<<"残血 "<<a[k].now_hp<<"/"<<a[k].hp<<" ",color("W");
cout<<"他的状态是";
if(a[k+1].now_hp>=100000)color("P"),cout<<"无敌 ∞/∞\n",color("W");
else if(a[k+1].now_hp<=0)
color("R"),cout<<"死亡"<<endl,color("W");
else if(a[k+1].cd)color("C"),cout<<"准备中"<<" "<<endl,color("W");
else if(a[k+1].now_hp==a[k+1].hp)color("G"),cout<<"满血 "<<a[k+1].now_hp<<"/"<<a[k+1].hp<<endl,color("W");
else if(a[k+1].now_hp<a[k+1].hp/5)color("R"),cout<<"丝血 "<<a[k+1].now_hp<<"/"<<a[k+1].hp<<endl,color("W");
else if(a[k+1].now_hp<a[k+1].hp)color("Y"),cout<<"残血 "<<a[k+1].now_hp<<"/"<<a[k+1].hp<<endl,color("W");
}
if(mode==2)
{
int k=rushu+1;
cout<<endl;
cout<<"BOSS:"<<a[k].name<<"的状态是"<<endl;
if(a[k].now_hp<=0)
color("R"),cout<<"死亡"<<endl,color("W");
else if(a[k].now_hp==a[k].hp)color("G"),cout<<"满血 "<<a[k].now_hp<<"/"<<a[k].hp<<endl,color("W");
else if(a[k].now_hp<a[k].hp/5)color("R"),cout<<"丝血 "<<a[k].now_hp<<"/"<<a[k].hp<<endl,color("W");
else if(a[k].now_hp<a[k].hp)color("Y"),cout<<"残血 "<<a[k].now_hp<<"/"<<a[k].hp<<endl,color("W");
}
}
void choice(int i)
{
if(a[i].now_hp<=0) return;
cout<<endl;

cout<<"你的名字是:"<<a[i].name<<endl;Sleep(500);
cout<<"攻击:"<<a[i].atk<<" 护甲:"<<a[i].ddf<<" 体力:"<<a[i].now_hp<<" 速度:"<<a[i].su<<" 智力:"<<a[i].iq<<endl;Sleep(500);
cout<<a[i].name<<"战斗力为:"<<a[i].zhan;
cout<<endl;
cout<<endl<<endl;

printf("请选择你要出攻击的目标(可同时输入多个序号,但系统会根据奇术种类进行筛选):\n\n");
out_state(i);

int j,num=0;
string shuru;
memset(target,0,sizeof(target));
getline(cin,shuru);
while(shuru=="")getline(cin,shuru);
int x=0;
for(int k=0;k<shuru.length();k++)
{
if(shuru[k]>='0'&&shuru[k]<='9')
{x=(x<<3)+(x<<1)+(shuru[k]^48);}
else
{target[++num]=x;x=0;}
}
if(x)target[++num]=x;
j=target[1];
target[0]=num;

if(a[i].ji==0)
{
printf("\n\n请选择你要出的招数:\n");
printf("(0)普通攻击\n");
printf("(1)嗜血一击\n");
printf("(2)实力秒杀\n");
printf("(3)雷击术\n");
printf("(4)狂暴\n");
printf("(5)铁壁术\n");
printf("(6)冰冻术\n");
printf("(7)苍穹斩\n");
printf("(8)恢复术\n");
printf("(9)小李飞刀\n");
printf("(10)降龙十八掌\n");
printf("(11)灵犀一指\n");
if(zhanghu==1)
{
printf("(12)心灵控制\n");
printf("(13)系统裁决\n");
printf("(14)一口毒奶\n");
printf("(15)现实扭曲\n");
printf("(16)精准现实扭曲\n");
printf("(17)制造不稳定现实\n");
printf("(18)自导引蜕化榴弹(GL6)\n");
printf("(19)放逐榴弹(GL6)\n");
printf("(20)高斯步枪\n");
printf("(21)铅锡合金镀银刻茹尼文反奇术破甲弹(高斯步枪)\n");
printf("(22)破咒弹头(高斯步枪)\n");
printf("(23)电磁脉冲弹(高斯步枪)\n");
}
if(changjing==1)
{
printf("(24)P90冲锋枪\n");
printf("(25)AR15自动步枪\n");
printf("(26)M249班用机枪\n");
printf("(27)MP7冲锋枪\n");
printf("(28)M1911手枪\n");
printf("(29)W1200霰弹枪\n");
printf("(30)MK-2型电磁炮\n");
printf("(31)GL6榴弹发射器\n");
printf("(32)高爆手雷\n");
printf("(33)奇术压变手雷\n");
}
printf("\n\n");
int o;
cin>>o;
if(o== 0 ) pugong(i,j);
if(o== 1 ) shixueyiji(i,j);
else if(o== 2 ) huoqiushu(i,j);
else if(o== 3 ) leijishu(i,j);
else if(o== 4 ) kuangbao(i);
else if(o== 5 ) tiebishu(i);
else if(o== 6 ) bingdongshu(i,j);
else if(o== 7 ) changqiongzhan(i,j);
else if(o== 8 ) huifushu(i,j);
else if(o== 9 ) xiaolifeidao(i,j);
else if(o== 10) xianglongzhang(i,j);
else if(o== 11) lingxiyizhi(i,j);
else if(o== 12&&zhanghu==1) kongzhishu(i,j);
else if(o== 13&&zhanghu==1) xitong(i,j);
else if(o== 14&&zhanghu==1) yikoudunai(i,j);
else if(o== 15&&zhanghu==1) xianshiniuqu(i,j);
else if(o== 16&&zhanghu==1) xianshiniuquplus(i,j);
else if(o== 17&&zhanghu==1) buwendingxianshi(i);
else if(o== 18&&zhanghu==1) gl6(i,j,2);
else if(o== 19&&zhanghu==1) gl6(i,j,3);
else if(o== 20&&zhanghu==1) gaosibuqiang(i,j,1);
else if(o== 21&&zhanghu==1) gaosibuqiang(i,j,2);
else if(o== 22&&zhanghu==1) gaosibuqiang(i,j,3);
else if(o== 23&&zhanghu==1) gaosibuqiang(i,j,4);
else if(o== 24&&changjing==1) chongfengqiang(i,j);
else if(o== 25&&changjing==1) buqiang(i,j);
else if(o== 26&&changjing==1) jiqiang(i,j);
else if(o== 27&&changjing==1) mp7chongfengqiang(i,j);
else if(o== 28&&changjing==1) shouqiang(i,j);
else if(o== 29&&changjing==1) xiandanqiang(i,j);
else if(o== 30&&changjing==1) diancipao(i,j);
else if(o== 31&&changjing==1) gl6(i,j,1);
else if(o== 32&&changjing==1) shoulei(i,j);
else if(o== 33&&changjing==1) qishushoulei(i,j);
}
else if(a[i].ji==8)
{
printf("\n\n请选择你要出的招数:\n");
printf("(0)现实扭曲\n");
printf("(1)精准现实扭曲\n");
printf("(2)制造不稳定现实\n");
printf("(3)疗伤奇术\n\n");
int o;
cin>>o;
if(o==0)xianshiniuqu(i,j);
else if(o==1)xianshiniuquplus(i,j);
else if(o==2)buwendingxianshi(i);
else if(o==3)huifushu(i,j);
}
else if(a[i].ji==18)
{
int o;
printf("\n\n请选择你要出的招数:\n");
printf("(0)攻击\n\n");
cin>>o;
if(o== 0 ) scp008(j);
}
else if(a[i].ji==491)
{
int o;
printf("\n\n请选择你要出的招数:\n");
printf("(0)攻击\n\n");
cin>>o;
if(o== 0 ) scp0492(j);
}
else if(a[i].ji==173)
{
int o=rand()%3;
if(o<=1||light_system)
{
printf("\n\n请选择你要出的招数:\n");
printf("(0)颈部按摩\n");
printf("(1)与SCP-079合作\n");
printf("(2)静止回血\n\n");
cin>>o;
if(o==0)scp173(j);
else if(o==1) event4();
else if(o==2)a[i].now_hp+=500;
}
else
{
printf("你现在被许多人盯着,寸步难行...\n");
printf("等下一回合吧...\n\n");
return;
}
}
else if(a[i].ji==96)
{
int o=rand()%3;
if(o<=1)
{
printf("\n\n请选择你要出的招数:\n");
printf("(0)无能狂怒\n");
printf("(1)静止回血\n\n");
cin>>o;
if(o== 0 ) scp096(j);
else if(o==1)a[i].now_hp+=500;
}
else
{
printf("你现在没被看到脸\n");
printf("等下一回合吧...\n\n");
return;
}
}
else if(a[i].ji==106)
{
int o;
printf("\n\n请选择你要出的招数:\n");
printf("(0)抓人\n");
printf("(1)静止回血\n\n");
cin>>o;
if(o== 0 ) scp106(j);
else if(o==1)a[i].now_hp+=500;
}
else if(a[i].ji==49)
{
int o;
printf("\n\n请选择你要出的招数:\n");
printf("(0)击杀目标\n");
printf("(1)复活小僵尸\n");
printf("(2)静止回血\n\n");
cin>>o;
if(o== 0 ) scp049(j);
else if(o==1)scp0491(s049,i);
else if(o==2)a[i].now_hp+=500;
}
memset(target,0,sizeof(target));
}
//-------------------------------------------------管理员技能-------------------------------------------------
void xitong(int i,int j)
{
cout<<a[i].name;
printf("使用了");Sleep(200);
color("R");cout<<"系统裁决";color("W");cout<<"技能!------(管理员技能)\n";
Sleep(500);
cout<<a[j].name<<"遭到了来自系统的无情打击"<<endl;
cout<<"失去了战斗力\n";
Sleep(500);
a[j].now_hp=0;
cout<<"然后就被系统";color("Y");cout<<"强制下线";color("W");cout<<"了\n";
Sleep(500);
}
void yikoudunai(int i,int j)
{
cout<<a[i].name;
printf("使用了");Sleep(200);
color("G");cout<<"一口毒奶";color("W");cout<<"技能!------(管理员技能)\n";
Sleep(500);
cout<<"第"<<a[i].team<<"阵营的血量被系统强制回满了!"<<endl;
for(int v=1;v<=rushu;v++)
if(a[v].team==a[i].team)a[v].now_hp=a[v].hp;
Sleep(500);
}
//-------------------------------------------------普通技能---------------------------------------------------
void shixueyiji(int i,int j){
Sleep(500);
int shanghai=a[i].atk*3/2+rand()%15;
shanghai-=a[j].ddf*2/3;
if(shanghai<=40) shanghai=40+rand()%15;
cout<<a[i].name<<" 使用了-----";color("Y");cout<<"嗜血一击";color("W");cout<<"-----(A级奇术)"<<endl;
a[j].now_hp-=shanghai;
a[i].now_hp+=shanghai/2;
Sleep(500);
cout<<a[j].name<<" 受到攻击,被造成了";color("R");cout<<shanghai<<endl;color("W");
cout<<a[i].name<<" 嗜血! 恢复了";color("G");cout<<shanghai/2<<endl;color("W");
Sleep(450);cout<<"目前两人剩余血量----- ";voids();
color("G");cout<<a[i].now_hp;color("W");cout<<"/"<<" ";color("Y");cout<<a[i].hp;color("W");cout<<" ";
color("G");cout<<a[j].now_hp;color("W");cout<<"/"<<" ";color("Y");cout<<a[j].hp;color("W");
a[i].score+=shanghai*3/2;
a[j].score+=shanghai/3;
cout<<"\n";
}

void huifushu(int i,int j){
Sleep(500);
int shanghai=a[i].iq+a[i].atk/3+a[i].ddf;
cout<<a[i].name<<"对"<<a[j].name<<"使用了-----";color("B");cout<<"恢复术";color("W");cout<<"-----(B级奇术)"<<endl;
a[j].now_hp+=shanghai;
Sleep(900);
cout<<"恢复了";color("G");cout<<shanghai;color("W");cout<<" 点血量!";voids();
cout<<"目前"<<a[j].name<<"剩余血量----- ";color("G");cout<<a[j].now_hp;color("W");cout<<"/";color("Y");cout<<a[j].hp;color("W");
a[i].score+=shanghai;
cout<<"\n";
}

void changqiongzhan(int i,int j){
Sleep(500);
cout<<"-----";
color("R");cout<<"神技降临";color("W");cout<<"-----"<<endl;
Sleep(500);
color("Y"); cout<<"-万-"<<endl;Sleep(500);
color("G"); cout<<"-劫-"<<endl;Sleep(500);
color("B"); cout<<"-不-"<<endl;Sleep(500);
color("C") ;cout<<"-复-"<<endl;Sleep(500);
int shanghai=a[i].atk*1.2+a[i].iq*1.2+rand()%20;
cout<<a[i].name<<" 使用了-----";
color("Y");cout<<"苍穹斩!";color("W");cout<<"-----";color("R");cout<<"(神级奇术)";color("W");cout<<"-----\n";
Sleep(800);
color("Y");cout<<"流星赶月,神之一斩,撕裂苍穹!"<<endl;color("W");
Sleep(580);
shanghai-=a[j].ddf;
if(shanghai<=100) shanghai=100+rand()%20;
a[j].now_hp-=shanghai;
cout<<a[j].name<<" 受到了";
color("R");cout<<shanghai;color("W");
cout<<" 点伤害!--------" <<endl;voids();
cout<<"目前 "<<a[j].name<<" 剩余血量-----";cout<<a[j].now_hp;color("W");cout<<"/"<<" ";color("Y");cout<<a[j].hp;color("W");
a[i].score+=shanghai;
a[j].score+=shanghai/3;
cout<<"\n";
}

void bingdongshu(int i,int j){
Sleep(500);
int shanghai=a[i].iq+rand()%10;
shanghai-=a[j].ddf*5/4;
if(shanghai<=20) shanghai=20+rand()%10;
a[j].now_hp-=shanghai;
cout<<a[i].name<<" 使用了----";
color("B");cout<<"冰封万里";color("W");
cout<<"----(A级奇术)"<<endl;
a[j].used=true;
Sleep(500);
cout<<a[j].name<<" 被魔法力量冰冻了,下回合无法行动!"<<endl;
Sleep(500);
cout<<"同时受到了";
color("R"); cout<<shanghai;color("W");
cout<<" 点";voids();
color("G");cout<<"魔法伤害";color("W");cout<<endl;cout<<"目前"<<a[j].name<<"剩余血量----";
cout<<a[j].now_hp;color("W");cout<<"/"<<" ";color("Y");cout<<a[j].hp;color("W");
a[i].score+=shanghai*3/2;
}

void tiebishu(int i){
Sleep(500);
int get_atk=a[i].iq/3+rand()%10;
a[i].ddf+=get_atk;
cout<<a[i].name<<" 使用了----";
color("B");cout<<"铁壁术";color("W");
cout<<"----(B级奇术)"<<endl;
Sleep(500);
cout<<a[i].name<<" 防御力上升";
color("R");cout<<get_atk;color("W");
cout<<" 点!目前防御力:"<<a[i].ddf<<endl;
a[i].score+=get_atk*2;
a[i].ddf_used=true;
}

void kuangbao(int i){
Sleep(500);
int get_atk=a[i].iq/2+rand()%10;
a[i].atk+=get_atk;
a[i].iq+=get_atk/3;
cout<<a[i].name<<" 使用了----";
color("B");cout<<"狂暴术";color("W");
cout<<"----(B级奇术)"<<endl;
cout<<a[i].name<<" 攻击力上升";
color("R");cout<<get_atk;color("W");
cout<<" 点!目前攻击力:"<<a[i].atk<<endl;
a[i].score+=get_atk*2;
a[i].atk_used=true;
}

void leijishu(int i,int j){
Sleep(500);
int shanghai=a[i].iq*3/8;
int nice=rand()%4+3;
int resthp=0;
cout<<a[i].name<<" 使用了----";
color("Y");cout<<"雷击术";color("W");
cout<<"----(A级奇术)!"<<endl;
for(int p=1;p<=nice;p++){
Sleep(500);
for(int f=1;f<=p;f++) cout<<" ";
int lo=shanghai-a[j].ddf/4+rand()%10;
if(lo<=10) lo=10+rand()%10;
a[j].now_hp-=lo;
resthp+=lo;
cout<<a[i].name<<" 对 "<<a[j].name<<" 造成了 ";
color("R");cout<<lo;color("W");
cout<<"点伤害!"<<endl;
if(p==nice){
Sleep(500);
cout<<"共造成";voids();
color("R");cout<<resthp;color("W");
cout<<" 点伤害\n";
cout<<a[j].name<<" 剩余血量-----";cout<<a[j].now_hp;color("W");cout<<"/"<<" ";color("Y");cout<<a[j].hp;color("W");
a[i].score+=resthp*4/3;
a[j].score+=resthp/3;
}
}
printf("\n");
}

void xianglongzhang(int i,int j){
Sleep(500);
cout<<"-----";
color("R");cout<<"神技降临";color("W");cout<<"-----"<<endl;
Sleep(500);
color("Y"); cout<<"-降-"<<endl;Sleep(500);
color("G"); cout<<"-妖-"<<endl;Sleep(500);
color("B"); cout<<"-伏-"<<endl;Sleep(500);
color("C") ;cout<<"-魔-"<<endl;Sleep(500);
int shanghai=a[i].iq*2/5+a[i].atk*3/5;
int nice=rand()%7+4;
int resthp=0;
cout<<a[i].name<<" 使用了----";
color("Y");cout<<"降龙十八掌\n";color("W");
for(int p=1;p<=nice;p++){
Sleep(500);
for(int f=1;f<=p;f++) cout<<" ";
int lo=shanghai-a[j].ddf/4+rand()%10;
if(lo<=10) lo=10+rand()%10;
a[j].now_hp-=lo;
resthp+=lo;
cout<<a[i].name<<" 对 "<<a[j].name<<" 造成了 ";
color("R");cout<<lo;color("W");
cout<<"点伤害!"<<endl;
if(p==nice){
Sleep(500);
cout<<"共造成";voids();
color("R");cout<<resthp;color("W");
cout<<" 点伤害\n";
cout<<a[j].name<<" 剩余血量-----";cout<<a[j].now_hp;color("W");cout<<"/"<<" ";color("Y");cout<<a[j].hp;color("W");
a[i].score+=resthp*4/3;
a[j].score+=resthp/3;
printf("\n");
}
}
}

void kongzhishu(int i,int j)
{
Sleep(500);
cout<<a[i].name<<"使用了 尤里的独门秘技 ";color("P");cout<<"心灵控制";color("W");
cout<<"-----(管理员技能)"<<endl;
cout<<"成功地把"<<a[j].name<<"变成了第"<<a[i].team<<"阵营的人"<<endl;
a[j].team=a[i].team;
a[j].kong=1;
Sleep(500);
}

void huoqiushu(int i,int j){
Sleep(500);
int num=rand()%100+50;
int shanghai=a[i].atk*9/5;
shanghai-=a[j].ddf;
if(shanghai<=40) shanghai=40+rand()%5;
a[j].now_hp-=shanghai;
cout<<a[i].name<<"使用了-----";
color("R");cout<<"实力秒杀!!";color("W");
cout<<"(S级奇术)------"<<endl;
Sleep(500);
cout<<a[j].name<<"受到了";
color("R");cout<<shanghai;color("W");
cout<<"点伤害!\n"<<endl;voids();
cout<<a[j].name<<" 目前剩余血量-----";cout<<a[j].now_hp;color("W");cout<<"/"<<" ";color("Y");cout<<a[j].hp;color("W");
a[i].score+=shanghai;
a[j].score+=shanghai/3;
printf("\n");
}

void lingxiyizhi(int i,int j){
Sleep(500);
int num=rand()%100+50;
int shanghai=a[i].atk*8/3+a[i].iq*8/5;
shanghai-=a[j].ddf;
if(shanghai<=40) shanghai=40+rand()%5;
a[j].now_hp-=shanghai;
cout<<a[i].name<<"使用了 ";color("G");cout<<"陆小凤";color("W");cout<<"的独门绝技----";
color("C");cout<<"灵犀一指!!";color("W");
cout<<"(S级奇术)------"<<endl;
Sleep(500);
cout<<a[j].name<<"受到了";
color("R");cout<<shanghai;color("W");
cout<<"点伤害!\n"<<endl;voids();
cout<<a[j].name<<" 目前剩余血量-----";cout<<a[j].now_hp;color("W");cout<<"/"<<" ";color("Y");cout<<a[j].hp;color("W");
a[i].score+=shanghai;
a[j].score+=shanghai/3;
}
void pugong(int i,int j){
Sleep(500);
int num=rand()%15+5;
int shanghai=num+a[i].atk;
if(shanghai<a[j].ddf+15) shanghai=a[j].ddf+15;
int lose=shanghai-a[j].ddf;
a[j].now_hp-=lose;voids();
cout<<a[j].name<<"受到了来自 玩家"<<a[i].name<<"的攻击!"<<endl;
cout<<"--------------造成了"<<lose<<"点伤害\n目前"<<a[j].name<<"剩余血量-----";cout<<a[j].now_hp;color("W");cout<<"/"<<" ";color("Y");cout<<a[j].hp;color("W");
a[i].score+=lose;
a[j].score+=lose/3;
printf("\n");
}

void xiaolifeidao(int i,int j){
Sleep(500);
int num=rand()%100+65,get;
int shanghai;
shanghai=a[i].atk*3/4-a[j].ddf*5/4+a[i].iq+num/8;
if(shanghai<=20) shanghai=20+rand()%3;
a[j].now_hp-=shanghai;
cout<<a[i].name<<" 摸摸口袋,掏出一把匕首———";
Sleep(500);
cout<<"天下秘籍,--------";
color("G");cout<<"小李飞刀";color("W");
cout<<"---------!!(C级奇术)"<<endl;
Sleep(500);
cout<<a[i].name<<"将匕首朝着 "<<a[j].name<<" 丢了过去,造成了" ;
color("R");cout<<shanghai;color("W");
cout<<"点伤害\n"<<endl;voids();
cout<<"目前 "<<a[j].name<<" 剩余血量-----";cout<<a[j].now_hp;color("W");cout<<"/"<<" ";color("Y");cout<<a[j].hp;color("W");
a[i].score+=shanghai*3/2;
a[j].score+=shanghai/2;
Sleep(500);
if(num%2==1){
cout<<"\n--------还没完! "<<a[i].name<<" 的--小李飞刀--(C级奇术)连击!"<<endl;
a[j].now_hp-=shanghai/2;voids();
cout<<"--------------造成了"<<shanghai/2<<"点伤害\n目前"<<a[j].name<<"剩余血量-----"<< a[j].now_hp<<"/"<< a[j].hp<<endl;
}
printf("\n");
}

//-------------------------------------------------SCP技能----------------------------------------------------
void scp173(int i)
{
cout<<"SCP-173现在没有被看到!"<<endl;
cout<<"只见SCP-173以迅雷不及掩耳之势移到了"<<a[i].name<<"面前"<<endl;
cout<<"对其使用了";color("G");cout<<"颈部按摩";color("W");cout<<"---(A级技能)!"<<endl;
a[i].now_hp-=1000;
if(a[i].ji==8)a[i].now_hp+=800;
Sleep(500);
color("R");cout<<"咔嚓!"<<endl;color("W");
Sleep(500);
cout<<a[i].name<<"的脖子被扭到了一个不可思议的角度"<<endl;
cout<<"好听吗,好听就是好脖子"<<endl;
}
void scp096(int i)
{
Sleep(500);
int cnt=0;
cout<<"SCP-096被看到脸了!"<<endl;
cout<<"SCP-096使用了----";
color("Y");cout<<"无能狂暴";color("W");
cout<<"----(A级技能)!"<<endl;
int nice=rand()%5+1;
Sleep(500);
cout<<"SCP-096 对 "<<a[i].name<<" 造成了 ";
color("R");
if(a[i].ji==8)cout<<"200";
else cout<<"1000";
color("W");cout<<"点伤害!"<<endl;
a[i].now_hp-=1000;
if(a[i].ji==8)a[i].now_hp+=800;
int ren;
for(int p=1;p<=nice;p++){
Sleep(500);
ren=rand()%rushu+1;
if(target[0]>1)
{
ren=target[target[0]];
target[0]--;
}
else while(a[ren].now_hp<=0||a[ren].team==2||a[ren].cd)
{
ren=rand()%rushu+1;
cnt++;
if(cnt>=500)return;
}
cout<<"SCP-096 对 "<<a[ren].name<<" 造成了 ";
color("R");
if(a[ren].ji==8)cout<<"200";
else cout<<"1000";
color("W");cout<<"点伤害!"<<endl;
a[ren].now_hp-=1000;
if(a[ren].ji==8)a[ren].now_hp+=800;
}
memset(target,0,sizeof(target));
}
void scp0351(int i,int j)
{
int shanghai=rand()%(800-400+1)+400-a[i].ddf/2;
cout<<"SCP-035对";color("R");cout<<"物质腐蚀";color("W");cout<<"----(A级技能)!"<<endl;
Sleep(500);
cout<<"SCP-035释放出一种黑色物质\n";
cout<<"并将其抹在了"<<a[j].name<<"的身上!\n";
cout<<"该物质开始腐蚀"<<a[j].name<<"的身体!\n";
Sleep(500);
if(a[j].ji==8)shanghai-=getrand(300,500);
if(shanghai<0)shanghai=0;
cout<<"并对"<<a[j].name<<"造成了";color("R");cout<<shanghai;color("W");cout<<"点伤害!"<<endl;
a[j].now_hp-=shanghai;
if(a[j].now_hp<0)a[j].now_hp=0;
Sleep(500);
}
void scp0352(int i)
{
int cnt=0,shanghai;
Sleep(500);
cout<<"SCP-035再次露出了诡异的笑容!"<<endl;
cout<<"SCP-035使用了----";
color("G");cout<<"模因攻击";color("W");
cout<<"----(A级技能)!"<<endl;
int nice=rand()%4+2;
int ren;
for(int p=1;p<=nice;p++){
Sleep(500);
ren=rand()%rushu+1;
while(a[ren].now_hp<=0||a[ren].team==2||a[ren].cd)
{
ren=rand()%rushu+1;
cnt++;
if(cnt>=500)return;
}
shanghai=getrand(80,160);
if(a[ren].ji==8)shanghai-=getrand(40,80);
if(shanghai<0)shanghai=0;
cout<<"SCP-035 使 "<<a[ren].name<<" 出现了";color("R");cout<<"认知失常";color("W");cout<<",对其造成了 ";
color("Y");cout<<shanghai;color("W");cout<<"点伤害!"<<endl;
a[ren].now_hp-=shanghai;
if(a[ren].now_hp<0)a[ren].now_hp=0;
}
}
void scp049(int i)
{
cout<<"SCP-049来到了"<<a[i].name<<"面前"<<endl;
cout<<"对其使用了";color("B");cout<<"致命触摸";color("W");cout<<"技能"<<endl;
a[i].now_hp-=1000;
Sleep(500);
cout<<a[i].name;color("G");cout<<"死于瘟疫"<<endl;color("W");
Sleep(500);
s049=i;
}
void scp0491(int i,int j)
{
cout<<"SCP-049来到了"<<a[i].name<<"面前"<<endl;
cout<<"对其使用了";color("Y");cout<<"瘟疫拯救";color("W");cout<<"技能"<<endl;
a[i].hp=1000;
a[i].now_hp=1000;
a[i].team=a[j].team;
a[i].ji=491;
Sleep(500);
cout<<a[i].name<<"变成了";color("R");cout<<"SCP-049-2"<<endl;color("W");
a[i].name="SCP-049-2";
Sleep(500);
s049=0;
}
void scp0492(int i)
{
int shanghai=rand()%(200-100+1)+100-a[i].ddf/4;
if(shanghai<0)shanghai=0;
cout<<a[i].name<<"受到了来自SCP-049-2的攻击!"<<endl;
cout<<"--------------造成了"<<shanghai<<"点伤害\n";
a[i].now_hp-=shanghai;
if(a[i].now_hp<=0) a[i].now_hp=0;
cout<<"目前"<<a[i].name<<"剩余血量-----";cout<<a[i].now_hp;color("W");cout<<"/"<<" ";color("Y");cout<<a[i].hp;color("W");
cout<<"\n";
}
void scp106(int i)
{
Sleep(500);
cout<<"SCP-106把"<<a[i].name<<"抓进了";color("G");cout<<"口袋空间\n";color("W");
a[i].now_hp-=a[i].hp/2;
if(a[i].now_hp>0)
{
int s106=rand()%3;
if(s106==1)
{
Sleep(500);
cout<<a[i].name<<"侥幸地从";color("G");cout<<"口袋空间";color("W");cout<<"逃脱了!\n";
Sleep(500);
return;
}
}
cout<<"\n";
a[i].now_hp=0;
Sleep(500);
cout<<a[i].name<<"迷失于";color("G");cout<<"口袋空间\n";color("W");
Sleep(500);
}
void scp939(int j,int i)
{
int shanghai=rand()%101+100-a[i].ddf/4;
if(shanghai<0)shanghai=0;
Sleep(500);
cout<<a[j].name<<"使用了";color("R");cout<<"听声辨位";color("W");
cout<<"---------!!(C级技能)"<<endl;
Sleep(500);
cout<<a[j].name<<"攻击了"<<a[i].name<<",造成了";
color("Y");cout<<shanghai;color("W");
cout<<"点伤害\n"<<endl;
a[i].now_hp-=shanghai;
Sleep(500);
if(a[i].now_hp>0)
{
int num=rand();
if(num%4==1){
cout<<"--------还没完! "<<a[j].name<<"连续攻击!"<<endl;
cout<<"--------------造成了"<<shanghai/2<<"点伤害\n";
a[i].now_hp-=shanghai/2;
}
}
printf("\n");
}
void scp127(int i,int j)
{
int summ=0;
cout<<a[i].name<<"使用";color("R");cout<<"MP5活体枪";color("W");cout<<"对着"<<a[j].name<<"扫射"<<endl;
int shanghai=getrand(50,80)-a[j].ddf/4;
if(shanghai<0)shanghai=0;
int nice=(rand()%(8-4+1))+4;
for(int p=1;p<=nice;p++)
{Sleep(300);
cout<<a[i].name<<"的射击对 "<<a[j].name<<" 造成了 ";
color("R");cout<<shanghai;color("W");cout<<"点伤害!"<<endl;
a[j].now_hp-=shanghai;
summ+=shanghai;
shanghai=rand()%(50-30+1)+30-a[j].ddf/4;
if(shanghai<0)shanghai=0;
if(p==nice)
{
Sleep(500);
cout<<"SCP-127射出的锐利的牙齿状的子弹撕碎皮肉!"<<endl;
Sleep(300);
cout<<"共造成";
color("R");cout<<summ;color("W");
cout<<" 点伤害\n";
if(a[j].now_hp<=0) a[j].now_hp=0;
cout<<a[j].name<<" 剩余血量-----";cout<<a[j].now_hp;color("W");cout<<"/"<<" ";color("Y");cout<<a[j].hp;color("W");
}
}
printf("\n");
}
void scp008(int i)
{
int shanghai=getrand(40,80)-a[i].ddf/4;
Sleep(500);
cout<<a[i].name<<"受到了来自SCP-008-1的攻击!"<<endl;Sleep(500);
int sb=rand()%3;
if(a[i].ji==13){cout<<"但是";color("R");cout<<"SCP-008-1";color("W");cout<<"的攻击对 "<<a[i].name<<" 无效\n";Sleep(500);return;}
if(sb==0||a[i].ji==8||a[i].ji==14){cout<<"但是"<<a[i].name<<" 成功躲过了 ";color("R");cout<<"SCP-008-1";color("W");cout<<"的攻击,并没有受到伤害\n";Sleep(500);return;}
cout<<"--------------造成了"<<shanghai<<"点伤害\n";
a[i].now_hp-=shanghai;Sleep(500);
if(a[i].now_hp<=0){cout<<a[i].name<<" 因SCP-008-1的抓咬而 ";color("R");cout<<"失血过多";color("W");cout<<",最终在昏迷中结束了生命\n";Sleep(500);}
else {cout<<a[i].name<<" 在SCP-008-1的攻击下活了下来 ------不过\n";Sleep(500);}
cout<<"不久后,"<<a[i].name<<" 因感染了SCP-008而逐渐 ";color("R");cout<<"丧尸化";color("W");cout<<",最终变成了另一只SCP-008-1\n";Sleep(500);
a[i].cd=3;
zombie(i);
cout<<"\n";
}
//-----------------------------------------------------武器设定-----------------------------------------
void diancipao(int i,int j)
{
int shanghai=rand()%(1200-800+1)+800-a[j].ddf/4;
if(a[j].ji==8)shanghai-=getrand(800,1100);
if(shanghai<0)shanghai=0;
Sleep(500);
cout<<a[i].name<<"使用了 ";color("R");cout<<"SCP基金会";color("W");cout<<" 的秘密武器----\n";
color("Y");cout<<"MK-2型电磁炮";color("W");
cout<<"(高能武器)------"<<endl;
Sleep(500);
cout<<a[j].name<<"受到了";
color("C");cout<<shanghai;color("W");
cout<<"点伤害!\n"<<endl;
Sleep(500);
a[j].now_hp-=shanghai;
if(a[j].now_hp<0) a[j].now_hp=0;
cout<<a[j].name<<" 目前剩余血量-----";cout<<a[j].now_hp;color("W");cout<<"/"<<" ";color("Y");cout<<a[j].hp;color("W");
a[i].score+=500;
a[j].score+=500/3;
Sleep(500);
printf("\n");
}
void shoulei(int i,int j)
{
int shanghai=rand()%601+300-a[j].ddf/5;
if(a[j].ji==8)shanghai-=getrand(350,450);
if(shanghai<0)shanghai=0;
Sleep(500);
cout<<a[i].name<<"使用了 ";color("Y");cout<<"SCP基金会";color("W");cout<<" 配发的神奇武器----\n";
color("R");cout<<"高爆手雷";color("W");
cout<<"---------Bug武器"<<endl;
Sleep(500);
cout<<a[j].name<<"受到了";
color("C");cout<<shanghai;color("W");
cout<<"点伤害!\n"<<endl;
a[j].now_hp-=shanghai;
Sleep(300);
if(a[j].now_hp<0) a[j].now_hp=0;
cout<<a[j].name<<" 目前剩余血量-----";cout<<a[j].now_hp;color("W");cout<<"/"<<" ";color("Y");cout<<a[j].hp;color("W");
a[i].score+=500;
a[j].score+=500/3;
Sleep(500);
printf("\n");
}
void qishushoulei(int i,int j)
{
int shanghai;
Sleep(500);
cout<<a[i].name<<"使用了 ";color("Y");cout<<"SCP基金会";color("W");cout<<" 配发的奇术武器----";
color("R");cout<<"奇术压变手榴弹";color("W");puts("");
string jineng[6]={"冰棱","紫色电弧","蓝色火焰","毒雾","光柱","念力力场"};
int leixing,num=rand()%3+2;
while(num--)
{
leixing=rand()%6;shanghai=rand()%301+200-a[j].ddf/5;
if(a[j].ji==8)shanghai-=getrand(150,250);
if(a[j].ji==106)shanghai-=getrand(50,80);
a[j].now_hp-=shanghai;
color("P");cout<<jineng[leixing];color("W");
cout<<"对 "<<a[j].name<<" 造成了";
color("R");cout<<shanghai;color("W");
cout<<"点伤害!"<<endl;
Sleep(300);
}
if(a[j].now_hp<0) a[j].now_hp=0;
cout<<a[j].name<<" 目前剩余血量-----";cout<<a[j].now_hp;color("W");cout<<"/"<<" ";color("Y");cout<<a[j].hp;color("W");
a[i].score+=500;
a[j].score+=500/3;
Sleep(500);
printf("\n");
}
void shouqiang(int i,int j)
{
int summ=0,shanghai;
cout<<a[i].name<<"使用";color("Y");
if(a[i].ji==4||a[i].ji==5||a[i].ji==9||a[i].ji==10)cout<<"M9手枪";
else cout<<"M1911手枪";
color("W");cout<<"对着"<<a[j].name<<"射击"<<endl;
int nice=(rand()%3)+3;
for(int p=1;p<=nice;p++)
{
Sleep(300);
shanghai=rand()%(65-40+1)+40-a[j].ddf/4;
if(a[j].ji==8)shanghai-=getrand(20,40);
if(a[j].ji==106)shanghai-=getrand(20,40);
if(shanghai<0)shanghai=0;
cout<<a[i].name<<"的射击对 "<<a[j].name<<" 造成了 ";
color("R");cout<<shanghai;color("W");cout<<"点伤害!"<<endl;
a[j].now_hp-=shanghai;
summ+=shanghai;
if(p==nice)
{
Sleep(500);
cout<<"共造成";
color("R");cout<<summ;color("W");
cout<<" 点伤害\n";
if(a[j].now_hp<=0) a[j].now_hp=0;
cout<<a[j].name<<" 剩余血量-----";cout<<a[j].now_hp;color("W");cout<<"/"<<" ";color("Y");cout<<a[j].hp;color("W");
}
}
printf("\n");
}
void chongfengqiang(int i,int j)
{
int summ=0,shanghai;
cout<<a[i].name<<"使用";color("C");cout<<"P90冲锋枪";color("W");cout<<"对着"<<a[j].name<<"扫射"<<endl;
int nice=(rand()%3)+4;
for(int p=1;p<=nice;p++)
{
Sleep(300);
shanghai=rand()%(65-40+1)+40-a[j].ddf/5;
if(a[j].ji==8)shanghai-=getrand(20,40);
if(a[j].ji==106)shanghai-=getrand(20,40);
if(shanghai<0)shanghai=0;
cout<<a[i].name<<"的射击对 "<<a[j].name<<" 造成了 ";
color("R");cout<<shanghai;color("W");cout<<"点伤害!"<<endl;
a[j].now_hp-=shanghai;
summ+=shanghai;
if(p==nice)
{
Sleep(500);
cout<<"共造成";
color("R");cout<<summ;color("W");
cout<<" 点伤害\n";
if(a[j].now_hp<=0) a[j].now_hp=0;
cout<<a[j].name<<" 剩余血量-----";cout<<a[j].now_hp;color("W");cout<<"/"<<" ";color("Y");cout<<a[j].hp;color("W");
}
}
printf("\n");
}
void buqiang(int i,int j)
{
int summ=0,shanghai;
cout<<a[i].name<<"使用";color("B");cout<<"AR15自动步枪";color("W");cout<<"对着"<<a[j].name<<"扫射"<<endl;
int nice=(rand()%4)+3;
for(int p=1;p<=nice;p++)
{
Sleep(300);
shanghai=rand()%(90-70+1)+70-a[j].ddf/8;
if(a[j].ji==8)shanghai-=getrand(40,70);
if(a[j].ji==106)shanghai-=getrand(30,60);
if(shanghai<0)shanghai=0;
cout<<a[i].name<<"的射击对 "<<a[j].name<<" 造成了 ";
color("R");cout<<shanghai;color("W");cout<<"点伤害!"<<endl;
a[j].now_hp-=shanghai;
summ+=shanghai;
if(p==nice)
{
Sleep(500);
cout<<"共造成";
color("R");cout<<summ;color("W");
cout<<" 点伤害\n";
if(a[j].now_hp<=0) a[j].now_hp=0;
cout<<a[j].name<<" 剩余血量-----";cout<<a[j].now_hp;color("W");cout<<"/"<<" ";color("Y");cout<<a[j].hp;color("W");
}
}
printf("\n");
}
void gaosibuqiang(int i,int j,int k)
{
int summ=0;
cout<<a[i].name<<"使用";color("P");cout<<"高斯步枪";color("W");cout<<"对着"<<a[j].name<<"点射"<<endl;
int shanghai;
int nice=(rand()%4)+3;
for(int p=1;p<=nice;p++)
{Sleep(300);
if(k==1)shanghai=rand()%40+140-a[j].ddf/10;
else if(k==2)shanghai=rand()%80+200-a[j].ddf/10;
else if(k==3)shanghai=rand()%60+170-a[j].ddf/10;
else if(k==4)shanghai=rand()%60+170-a[j].ddf/10;
if(a[j].ji==8)shanghai-=getrand(50,150);
if(a[j].ji==106)shanghai-=getrand(120,140);
if(shanghai<0)shanghai=0;
if(k==1){color("C");cout<<"两倍声速的子弹";color("W");cout<<"击中了 "<<a[j].name<<" 并对 "<<a[j].name<<" 造成了 ";}
else if(k==2){color("P");cout<<"铅锡合金镀银刻茹尼文反奇术破甲弹";color("W");cout<<"击中了 "<<a[j].name<<" 并对 "<<a[j].name<<" 造成了 ";}
else if(k==3){color("B");cout<<"Mk VII型破咒弹头";color("W");cout<<"击中了 "<<a[j].name<<" 并对 "<<a[j].name<<" 造成了 ";}
else if(k==4){color("B");cout<<"电磁脉冲瘫痪弹";color("W");cout<<"击中了 "<<a[j].name<<" 并对 "<<a[j].name<<" 造成了 ";}
color("R");cout<<shanghai;color("W");cout<<"点伤害!"<<endl;
a[j].now_hp-=shanghai;
summ+=shanghai;
if(p==nice)
{
Sleep(500);
cout<<"共造成";
color("R");cout<<summ;color("W");
cout<<" 点伤害\n";
if(a[j].now_hp<=0) a[j].now_hp=0;
cout<<a[j].name<<" 剩余血量-----";cout<<a[j].now_hp;color("W");cout<<"/"<<" ";color("Y");cout<<a[j].hp;color("W");
}
}
printf("\n");
}
void gl6(int i,int j,int k)
{
int summ=0;
cout<<a[i].name<<"使用";color("B");cout<<"GL6榴弹发射器";color("W");cout<<"对着"<<a[j].name<<"开火"<<endl;
int shanghai;
int nice=(rand()%4)+3;
for(int p=1;p<=nice;p++)
{Sleep(300);
if(k==1)shanghai=rand()%101+200-a[j].ddf/5;
else if(k==2)shanghai=rand()%121+250-a[j].ddf/5;
else if(k==3)shanghai=rand()%151+300-a[j].ddf/5;
if(a[j].ji==8)shanghai-=getrand(150,250);
if(a[j].ji==106)shanghai-=getrand(150,250);
if(shanghai<0)shanghai=0;
if(k==1){color("Y");cout<<"高爆冲击榴弹";color("W");cout<<"在"<<a[j].name<<"身边爆炸,对 "<<a[j].name<<" 造成了 ";}
else if(k==2){color("R");cout<<"自导引蜕化榴弹";color("W");cout<<"在"<<a[j].name<<"身边爆炸,其产生的";color("P");cout<<"反机器人蜕化烟雾";color("W");cout<<"对 "<<a[j].name<<" 造成了 "; }
else if(k==3){color("G");cout<<"放逐榴弹";color("W");cout<<"在"<<a[j].name<<"身边爆炸,其产生的";color("P");cout<<"压缩冲击波谐振";color("W");cout<<"扰乱了"<<a[j].name<<"的物理形式并造成了 "; }
color("R");cout<<shanghai;color("W");cout<<"点伤害!"<<endl;
a[j].now_hp-=shanghai;
summ+=shanghai;
if(p==nice)
{
Sleep(500);
cout<<"共造成";
color("R");cout<<summ;color("W");
cout<<" 点伤害\n";
if(a[j].now_hp<=0) a[j].now_hp=0;
cout<<a[j].name<<" 剩余血量-----";cout<<a[j].now_hp;color("W");cout<<"/"<<" ";color("Y");cout<<a[j].hp;color("W");
}
}
printf("\n");
}
void jiqiang(int i,int j)
{
int summ=0,shanghai;
cout<<a[i].name<<"使用";color("G");cout<<"M249班用机枪";color("W");cout<<"对着"<<a[j].name<<"扫射"<<endl;
int nice=(rand()%(10-5+1))+5;
for(int p=1;p<=nice;p++)
{
Sleep(300);
shanghai=rand()%(50-30+1)+30-a[j].ddf/5;
if(shanghai<0)shanghai=0;
cout<<a[i].name<<"的射击对 "<<a[j].name<<" 造成了 ";
color("R");cout<<shanghai;color("W");cout<<"点伤害!"<<endl;
a[j].now_hp-=shanghai;
summ+=shanghai;
if(p==nice)
{
Sleep(500);
cout<<"共造成";
color("R");cout<<summ;color("W");
cout<<" 点伤害\n";
if(a[j].now_hp<=0) a[j].now_hp=0;
cout<<a[j].name<<" 剩余血量-----";cout<<a[j].now_hp;color("W");cout<<"/"<<" ";color("Y");cout<<a[j].hp;color("W");
}
}
printf("\n");
}
void mp7chongfengqiang(int i,int j)
{
int summ=0,shanghai;
cout<<a[i].name<<"使用";color("Y");cout<<"MP7冲锋枪";color("W");cout<<"对着"<<a[j].name<<"扫射"<<endl;
int nice=(rand()%3)+4;
for(int p=1;p<=nice;p++)
{
Sleep(300);
shanghai=rand()%31+35-a[j].ddf/5;
if(a[j].ji==8)shanghai-=getrand(10,30);
if(a[j].ji==106)shanghai-=getrand(10,30);
if(shanghai<0)shanghai=0;
cout<<a[i].name<<"的射击对 "<<a[j].name<<" 造成了 ";
color("R");cout<<shanghai;color("W");cout<<"点伤害!"<<endl;
a[j].now_hp-=shanghai;
summ+=shanghai;
if(p==nice)
{
Sleep(500);
cout<<"共造成";
color("R");cout<<summ;color("W");
cout<<" 点伤害\n";
if(a[j].now_hp<=0) a[j].now_hp=0;
cout<<a[j].name<<" 剩余血量-----";cout<<a[j].now_hp;color("W");cout<<"/"<<" ";color("Y");cout<<a[j].hp;color("W");
}
}
printf("\n");
}
void xiandanqiang(int i,int j)
{
int summ=0,shanghai;
cout<<a[i].name<<"使用";color("C");cout<<"W2000霰弹枪";color("W");cout<<"对着"<<a[j].name<<"射击"<<endl;
int nice=(rand()%4)+3;
for(int p=1;p<=nice;p++)
{Sleep(300);
shanghai=rand()%51+60-a[j].ddf/6;
if(a[j].ji==8)shanghai-=getrand(50,70);
if(a[j].ji==106)shanghai-=getrand(40,60);
if(shanghai<0)shanghai=0;
cout<<a[i].name<<"的射击对 "<<a[j].name<<" 造成了 ";
color("R");cout<<shanghai;color("W");cout<<"点伤害!"<<endl;
a[j].now_hp-=shanghai;
summ+=shanghai;
if(p==nice)
{
Sleep(500);
cout<<"共造成";
color("R");cout<<summ;color("W");
cout<<" 点伤害\n";
if(a[j].now_hp<=0) a[j].now_hp=0;
cout<<a[j].name<<" 剩余血量-----";cout<<a[j].now_hp;color("W");cout<<"/"<<" ";color("Y");cout<<a[j].hp;color("W");
}
}
printf("\n");
}
void xianshiniuqu(int i,int j)
{
string jineng[6]={"失血","钝器损伤","烧伤","爆炸","锐器刺伤","肢体分裂"};
Sleep(500);
int cnt=0;
int shanghai=rand()%200+300-xianshiyizhi*3;
if(a[j].ji==8)shanghai-=getrand(250,350);
if(shanghai<0)shanghai=0;
cout<<a[i].name<<"使用了----";
color("P");cout<<" 现实扭曲 ";color("W");
cout<<"----(S级技能)!"<<endl;
int nice=rand()%4+3;
Sleep(500);
int kin=rand()%6;
cout<<a[i].name<<"利用现实扭曲能力,使"<<a[j].name<<"因";color("R");cout<<jineng[kin];color("W");cout<<"而受到";
color("R");cout<<shanghai;color("W");cout<<"点伤害"<<endl;
a[j].now_hp-=shanghai;
int ren;
for(int p=1;p<=nice;p++){
Sleep(500);
if(target[0]>1)
{
ren=target[target[0]];
target[0]--;
}
else
{
ren=rushu+1;
while(a[ren].now_hp<=0||a[ren].cd||a[ren].team==a[i].team||((work_together||!zhongli)&&a[ren].team==3))
{
ren=rand()%rushu+1;
cnt++;
if(cnt>=500)return;
}
}
shanghai=rand()%200+300-xianshiyizhi*3;
if(a[ren].ji==8)shanghai-=getrand(250,350);
if(shanghai<0)shanghai=0;
kin=rand()%6;
cout<<a[i].name<<"利用现实扭曲能力,使"<<a[ren].name<<"因";color("R");cout<<jineng[kin];color("W");cout<<"而受到";
color("R");cout<<shanghai;color("W");cout<<"点伤害"<<endl;
a[ren].now_hp-=shanghai;
}
memset(target,0,sizeof(target));
printf("\n");
}
void xianshiniuquplus(int i,int j)
{
string jineng[6]={"严重失血","钝器重击","严重烧伤","肢体分裂","锐器刺伤","现实崩溃"};
Sleep(500);
int cnt=0;
int shanghai=rand()%600+1800-xianshiyizhi*6;
if(a[j].ji==8)shanghai-=getrand(1600,1800);
if(shanghai<0)shanghai=0;
cout<<a[i].name<<"使用了----";
color("P");cout<<" 精确的现实扭曲 ";color("W");
cout<<"----(SSR级技能)!"<<endl;
Sleep(500);
int kin=rand()%5;
cout<<a[i].name<<" 利用现实扭曲能力,使"<<a[j].name<<"因";color("R");cout<<jineng[kin];color("W");cout<<"而受到";
color("R");cout<<shanghai;color("W");cout<<"点伤害"<<endl;
a[j].now_hp-=shanghai;
printf("\n");
}
void buwendingxianshi(int i)
{
Sleep(500);
int cnt=0;
cout<<a[i].name<<"利用休谟指数差,制造了";
color("P");cout<<" 不稳定现实 ";color("W");
cout<<"----(S级技能)!"<<endl;
Sleep(500);
xianshi+=50;
buwendingshanghai();
}
void buwendingshanghai()
{
for(int k=1;k<=rushu;k++)
{
if(a[k].now_hp<=0||a[k].ji==8)continue;
int shanghai=rand()%xianshi+xianshi/2;
a[k].now_hp-=shanghai;
color("P");cout<<" 不稳定现实 ";color("W");cout<<"对 "<<a[k].name<<" 造成了 ";
color("R");cout<<shanghai;color("W");cout<<"点伤害!"<<endl;
Sleep(50);
}
printf("\n");
}
void xianshiwendingmao()
{
Sleep(500);
cout<<"警告:检测到站点内休谟指数异常!Area-cn-██的";color("B");cout<<" 站点级斯克林顿现实稳定锚 ";color("W");cout<<"已经启动\n";
Sleep(500);
rushu++;
a[rushu].name="现实稳定锚";
a[rushu].ji=11;
a[rushu].ddf=100;
a[rushu].hp=3000;
a[rushu].now_hp=a[rushu].hp;
a[rushu].team=1;
}
void achilles_arrive()
{
cout<<"警告:检测到绿型个体入侵!已呼叫Area-██的";color("R");cout<<" 机动特遣队Omega-12 “Achilles' Heels”";color("W");cout<<"前来支援\n";
Sleep(2000);
int bbb=rand()%4+3;
tot_jd+=bbb;
for(int i=rushu+1;i<=rushu+bbb;i++)
achilles(i),a[i].cd=2;
rushu+=bbb;
}
void xianshiwending()
{
Sleep(500);
int cnt=0;
color("B");cout<<" 斯克林顿现实稳定锚 ";color("W");cout<<"降低了站点内的休谟指数\n";
cout<<"这导致";color("P");cout<<" 现实扭曲者 ";color("W");cout<<"的能力受到限制\n";
Sleep(500);
cout<<"现在站点内的休谟指数为 ";color("P");cout<<82-xianshi/3;color("W");cout<<" ";
xianshi-=30;
xianshiyizhi+=30;
if(xianshi<0)xianshi=0;
printf("\n");
}

//---------------------------------------------人物设定-------------------------------------------------
void putong(int i)
{
a[i].ji=0;
a[i].atk=rand()%50+100;
a[i].ddf=rand()%30+36;
a[i].hp=rand()%200+500;
a[i].su=rand()%10+3;
a[i].iq=rand()%40+60;
a[i].zhan=a[i].atk*16+a[i].ddf*18+a[i].hp*3+a[i].su*5+a[i].iq*15;
a[i].now_hp=a[i].hp;
a[i].team=1;
}
void jiuweihu(int i)
{
a[i].name="九尾狐小队队员";
a[i].ji=2;
a[i].atk=300;
a[i].ddf=70;
a[i].hp=100;
a[i].su=10;
a[i].iq=150;
a[i].zhan=a[i].atk*16+a[i].ddf*18+a[i].hp*3+a[i].su*5+a[i].iq*15;
a[i].now_hp=a[i].hp;
a[i].team=1;
}
void luochui(int i)
{
a[i].name="落锤小队队员";
a[i].ji=3;
a[i].atk=400;
a[i].ddf=80;
a[i].hp=150;
a[i].su=12;
a[i].iq=200;
a[i].zhan=a[i].atk*16+a[i].ddf*18+a[i].hp*3+a[i].su*5+a[i].iq*15;
a[i].now_hp=a[i].hp;
a[i].team=1;
}
void achilles(int i)
{
a[i].name="阿喀琉斯之踵小队队员";
a[i].ji=8;
a[i].atk=500;
a[i].ddf=225;
a[i].hp=1000;
a[i].su=12;
a[i].iq=200;
a[i].zhan=a[i].atk*16+a[i].ddf*18+a[i].hp*3+a[i].su*5+a[i].iq*15;
a[i].now_hp=a[i].hp;
a[i].team=1;
}
void last_hope(int i)
{
a[i].name="最后希望小队队员";
a[i].ji=14;
a[i].atk=300;
a[i].ddf=175;
a[i].hp=750;
a[i].su=14;
a[i].iq=200;
a[i].zhan=a[i].atk*16+a[i].ddf*18+a[i].hp*3+a[i].su*5+a[i].iq*15;
a[i].now_hp=a[i].hp;
a[i].team=1;
}
void samsara(int i)
{
a[i].name="轮回小队队员";
a[i].ji=13;
a[i].atk=300;
a[i].ddf=125;
a[i].hp=750;
a[i].su=14;
a[i].iq=200;
a[i].zhan=a[i].atk*16+a[i].ddf*18+a[i].hp*3+a[i].su*5+a[i].iq*15;
a[i].now_hp=a[i].hp;
a[i].team=1;
}
void asimov(int i)
{
a[i].name="Asimov执法队小队队员";
a[i].ji=12;
a[i].atk=400;
a[i].ddf=100;
a[i].hp=200;
a[i].su=12;
a[i].iq=200;
a[i].zhan=a[i].atk*16+a[i].ddf*18+a[i].hp*3+a[i].su*5+a[i].iq*15;
a[i].now_hp=a[i].hp;
a[i].team=1;
}
void hundun(int i)
{
a[i].name="混沌分裂者队员";
a[i].ji=4;
a[i].atk=350;
a[i].ddf=80;
a[i].hp=120;
a[i].su=10;
a[i].iq=150;
a[i].zhan=a[i].atk*16+a[i].ddf*18+a[i].hp*3+a[i].su*5+a[i].iq*15;
a[i].now_hp=a[i].hp;
a[i].team=3;
}
void shezhishou(int i)
{
a[i].name="蛇之手先遣队队员";
a[i].ji=9;
a[i].atk=300;
a[i].ddf=80;
a[i].hp=100;
a[i].su=10;
a[i].iq=150;
a[i].zhan=a[i].atk*16+a[i].ddf*18+a[i].hp*3+a[i].su*5+a[i].iq*15;
a[i].now_hp=a[i].hp;
a[i].team=2;
}
void goc(int i)
{
a[i].name="GOC先遣队队员";
a[i].ji=10;
a[i].atk=300;
a[i].ddf=100;
a[i].hp=200;
a[i].su=10;
a[i].iq=150;
a[i].zhan=a[i].atk*16+a[i].ddf*18+a[i].hp*3+a[i].su*5+a[i].iq*15;
a[i].now_hp=a[i].hp;
a[i].team=4;
}
void baoan(int i)
{
a[i].name="设施警卫";
a[i].ji=1;
a[i].atk=200;
a[i].ddf=60;
a[i].hp=100;
a[i].su=10;
a[i].iq=150;
a[i].zhan=a[i].atk*16+a[i].ddf*18+a[i].hp*3+a[i].su*5+a[i].iq*15;
a[i].now_hp=a[i].hp;
a[i].team=1;
}
void d_class(int i)
{
int nae=rand()%5000+2000;char ct[5];
string cm="D-";
sprintf(ct,"%d",nae);
a[i].name=cm+ct;
a[i].ji=5;
a[i].atk=150;
a[i].ddf=35;
a[i].hp=100;
a[i].su=10;
a[i].iq=100;
a[i].zhan=a[i].atk*16+a[i].ddf*18+a[i].hp*3+a[i].su*5+a[i].iq*15;
a[i].now_hp=a[i].hp;
a[i].team=3;
}
void science(int i)
{
a[i].name="研究员";
a[i].ji=6;
a[i].atk=100;
a[i].ddf=35;
a[i].hp=100;
a[i].su=10;
a[i].iq=250;
a[i].zhan=a[i].atk*16+a[i].ddf*18+a[i].hp*3+a[i].su*5+a[i].iq*15;
a[i].now_hp=a[i].hp;
a[i].team=1;
}
void doctor(int i)
{
int r=rand()&1;
if(r)a[i].name="Dr.Bright",a[i].ji=7;
else a[i].name="Dr.Clef",a[i].ji=8;
a[i].atk=350;
a[i].ddf=50;
a[i].hp=1200;
a[i].su=10;
a[i].iq=250;
a[i].zhan=a[i].atk*16+a[i].ddf*18+a[i].hp*3+a[i].su*5+a[i].iq*15;
a[i].now_hp=a[i].hp;
a[i].team=1;
}
void zombie(int i)
{
a[i].name="SCP-008-1";
a[i].ji=18;
a[i].atk=100;
a[i].ddf=30;
a[i].hp=600;
a[i].su=10;
a[i].iq=100;
a[i].zhan=a[i].atk*16+a[i].ddf*18+a[i].hp*3+a[i].su*5+a[i].iq*15;
a[i].now_hp=a[i].hp;
a[i].team=2;
}
void lvxing(int i)
{
a[i].name="现实扭曲者";
a[i].ji=8;
a[i].atk=100;
a[i].ddf=200;
a[i].hp=1500;
a[i].su=10;
a[i].iq=200;
a[i].zhan=a[i].atk*16+a[i].ddf*18+a[i].hp*3+a[i].su*5+a[i].iq*15;
a[i].now_hp=a[i].hp;
a[i].team=5;
}
//---------------------------------------------------场景事件---------------------------------------------
void event1()
{
printf("\n");
bool ju[4]={0,0,0,0};
for(int i=1;i<=rushu;i++)
{
if(a[i].ji==2&&a[i].now_hp>0)ju[0]=1;
if(a[i].ji==4&&a[i].now_hp>0)ju[1]=1;
if(a[i].ji==9&&a[i].now_hp>0)ju[2]=1;
if(a[i].ji==10&&a[i].now_hp>0)ju[3]=1;
}
if(!ju[0]&&!ju[1]&&!ju[2]&&!ju[3])return;
int ram1=rand()%4,ram2=rand()%4,ki1=0,ki2=0;
while(!ju[ram1]){ram1=rand()%4;};
while(!ju[ram2]){ram2=rand()%4;};
if(!ram1)ki1=2;else if(ram1==1)ki1=4;else if(ram1==2)ki1=9;else if(ram1==3)ki1=10;
if(!ram2)ki2=2;else if(ram2==1)ki2=4;else if(ram2==2)ki2=9;else if(ram2==3)ki2=10;
if(ki1==ki2)return;
if(ki1==2&&ki2==4&&work_together)return;
if(ki1==4&&ki2==2&&work_together)return;
Sleep(500);
printf("\n正当一支");
switch(ram1)
{
case 0:{color("C");printf(" 九尾狐小队 ");color("W");printf("进入B门电梯并准备进入设施时\n");ki1=2;};break;
case 1:{color("G");printf(" 混沌分裂者小队 ");color("W");printf("进入A门电梯并准备进入设施时\n");ki1=4;};break;
case 2:{color("R");printf(" 蛇之手先遣队 ");color("W");printf("进入A门电梯并准备进入设施时\n");ki1=9;};break;
case 3:{color("B");printf(" GOC先遣队 ");color("W");printf("进入B门电梯并准备进入设施时\n");ki1=10;};break;
};
Sleep(500);
printf("一颗");color("B");cout<<" 高爆手雷 ";color("W");cout<<"(Bug武器)滚了进来\n";
Sleep(500);
color("R");printf("-------------咚!!!\n");color("W");
int num=rand()%3+3,cnt=0;
for(int i=1;i<=rushu;i++)
{
if(a[i].ji==ki1&&a[i].now_hp>0)
{
a[i].now_hp=0;
cnt++;
}
if(cnt==num)break;
}
Sleep(500);
printf("共有%d名队员被",cnt);color("Y");cout<<" 电梯雷 ";color("W");cout<<"炸死\n";
Sleep(500);
printf("真是出师未捷身先死啊!\n");
Sleep(500);
printf("\n");
}
void event2()
{
printf("\n");
bool ju[2]={0,0};
for(int i=1;i<=rushu;i++)
{
if(a[i].ji==5&&a[i].now_hp>0)ju[0]=1;
if(a[i].ji==6&&a[i].now_hp>0)ju[1]=1;
}
if(!ju[0]&&!ju[1])return;
int ram=1,ki=0;
while(!ju[ram]){ram=rand()&1;};
if(!ram)ki=5;
else ki=6;
int num=rand()%3+2,cnt=0;
for(int i=1;i<=rushu;i++)
{
if(a[i].ji==ki&&a[i].now_hp>0)
{
if(ki==5)jiuweihu(i);
else luochui(i);
a[i].cd=2;
cnt++;
}
if(cnt==num)break;
}
Sleep(500);
printf("\n终于,%d名",cnt);
tot_jd+=cnt;
switch(ki)
{
case 5:{color("Y");printf(" D级人员 ");color("W");cout<<"在";color("Y");printf(" 设施警卫 ");color("W");cout<<"的押解下";printf("逃离了设施\n由于游戏设定,他们变成了");color("C");printf(" 九尾狐小队队员 ");color("W");};break;
case 6:{color("W");printf(" 研究员 ");color("W");printf("逃离了设施\n由于游戏设定,他们变成了");color("B");printf(" 落锤小队队员 ");color("W");};break;
};
Sleep(500);
printf("并重新进入了设施\n");
Sleep(500);
printf("\n");
}
void event3()
{
printf("\n");
bool ju1=0,ju2=0;
for(int i=1;i<=rushu;i++)
{
if(a[i].ji==4&&a[i].now_hp>0)ju2=1;
if((a[i].ji==1||a[i].ji==2||a[i].ji==3)&&a[i].now_hp>0)ju1=1;
}
if(!ju1||!ju2)return;
Sleep(500);
int cnt=0;
cout<<"在一间灯光昏暗的走廊内,";color("R");cout<<" SCP基金会 ";color("W");cout<<"的武装人员和";color("G");cout<<" 混沌分裂者 ";color("W");cout<<"相遇了"<<endl;
Sleep(500);
cout<<"但是这一次他们没有互相开枪\n";
Sleep(500);
cout<<"因为他们达成了共识,如果";color("Y");cout<<" SCP突破收容 ";color("W");cout<<",这将会造成";color("P");cout<<" XK级世界末日 ";color("W");cout<<endl;
Sleep(500);
cout<<"于是,他们决定";color("C");cout<<" 暂时合作收容SCP ";color("W");
cout<<"(持续三回合)"<<endl;
Sleep(500);
work_together+=3;
printf("\n");
}
void event4()
{
printf("\n");
bool ju1=0,ju2=0;
for(int i=1;i<=rushu;i++)
{
if(a[i].team!=2&&a[i].now_hp>0)ju2=1;
if(a[i].ji==173&&a[i].now_hp>0)ju1=1;
}
if(!ju1||!ju2)return;
Sleep(500);
int cnt=0,num=rand()%3+3;
cout<<"一队武装人员进入了重收容区的一段走廊\n";
Sleep(500);
cout<<"但他们却不知道";color("R");cout<<" SCP-079 ";color("W");cout<<"正通过安保摄像机看着他们"<<endl;
Sleep(500);
cout<<"突然,";color("R");cout<<" SCP-079 ";color("W");cout<<"骇入了门禁系统和灯光系统"<<endl;
Sleep(500);
cout<<"在";color("R");cout<<" SCP-079 ";color("W");cout<<"锁门前的一刹那,";color("G");cout<<" SCP-173 ";color("W");cout<<"高速移动进了走廊里\n";
Sleep(500);
color("R");cout<<" SCP-079 ";color("P");cout<<" 关闭了走廊的光源 \n";color("W");
Sleep(500);
color("Y");cout<<"几声清脆的颈骨折断的声音传出……"<<endl;color("W");
for(int i=1;i<=num;i++)
{
int j=rand()%rushu+1,bug=0;
if(target[0]>1)
{
j=target[target[0]];
target[0]--;
}
else while(a[j].team==2||a[j].now_hp<=0||a[j].cd)
{
j=rand()%rushu+1;
bug++;
if(bug>=200)break;
}
if(bug>=200)break;
a[j].now_hp-=1000;
cout<<a[j].name<<" ";
if(a[j].ji==8)a[j].now_hp+=800;
cnt++;
}
cout<<"被";color("R");cout<<" SCP-173 ";color("W");cout<<"绞杀\n";
Sleep(500);
cout<<"共有";color("R");cout<<cnt;color("R");cout<<"人";color("W");cout<<"在黑暗中被";color("R");cout<<" SCP-173 ";color("W");cout<<"绞杀"<<endl;
Sleep(500);
printf("\n");
memset(target,0,sizeof(target));
}
void event5()
{
printf("\n");
bool ju1=0;
for(int i=1;i<=rushu;i++)
{
if(a[i].ji==173&&a[i].now_hp>0)ju1=1;
}
if(!ju1)return;
Sleep(500);
color("R");cout<<" SCP-079 ";color("W");cout<<"骇入了";color("C");cout<<" 灯光系统 ";color("W");cout<<endl;
Sleep(500);
cout<<"重收容区的灯光全部熄灭了,";color("G");cout<<" SCP-173 ";color("W");cout<<"不会被看到,可以自由行动";cout<<endl;
Sleep(500);
cout<<"影响:";color("R");cout<<" SCP-173每回合都一定会行动 && SCP-173每回合可以行动两次";color("W");
cout<<"(持续三回合)"<<endl;
light_system+=3;
printf("\n");
}
void event6()
{
printf("\n");
bool ju1=0;
for(int i=1;i<=rushu;i++)
{
if((a[i].ji==5||a[i].ji==6)&&a[i].now_hp>0)ju1=1;
}
if(!ju1)return;
Sleep(500);
color("R");cout<<" SCP基金会 ";color("W");cout<<"的不那么靠谱的";color("C");cout<<" 门禁系统 ";color("W");cout<<"失效了"<<endl;
Sleep(500);
cout<<"现在";color("R");cout<<" SCP基金会 ";color("W");cout<<"所有的门都无需通行卡就能打开\n";
Sleep(500);
cout<<"影响:";color("G");cout<<" D级人员和研究员的逃生几率增加40% ";color("W");
cout<<"(持续三回合)"<<endl;
door_system+=3;
printf("\n");
}
void event7()
{
printf("\n");
bool ju[2]={0,0};
for(int i=1;i<=rushu;i++)
{
if(a[i].ji==5&&a[i].now_hp>0)ju[0]=1;
if(a[i].ji==4&&a[i].now_hp>0)ju[1]=1;
}
if(!ju[0]||!ju[1])return;
Sleep(500);
int num=rand()%3+2,cnt=0;
for(int i=1;i<=rushu;i++)
{
if(a[i].ji==5&&a[i].now_hp>0)
{
hundun(i);
a[i].cd=2;
cnt++;
}
if(cnt==num)break;
}
printf("\n");cout<<"在";color("G");printf(" 混沌分裂者 ");color("W");cout<<"的协助下,"<<cnt<<"名";color("Y");printf(" D级人员 ");color("W");
printf("逃离了设施\n由于游戏设定,他们变成了");color("G");printf(" 混沌分裂者 ");color("W");
Sleep(500);
printf("并重新进入了设施\n");
Sleep(500);
printf("\n");
}
void event8()
{
printf("\n");
bool ju1=0,ju2=0;
for(int i=1;i<=rushu;i++)
{
if(a[i].ji==10&&a[i].now_hp>0)ju2=1;
if((a[i].ji==1||a[i].ji==2||a[i].ji==3)&&a[i].now_hp>0)ju1=1;
}
if(!ju1||!ju2)return;
Sleep(500);
int cnt=0;
cout<<"在一间灯光昏暗的走廊内,";color("R");cout<<" SCP基金会 ";color("W");cout<<"的武装人员和";color("B");cout<<" GOC ";color("W");cout<<"相遇了"<<endl;
Sleep(500);
cout<<"但是这一次他们没有互相开枪\n";
Sleep(500);
cout<<"因为基金会高层和GOC高层达成了协议,应尽一切努力阻止";color("Y");cout<<" SCP突破收容 ";color("W");cout<<endl;
Sleep(500);
cout<<"于是,他们决定";color("C");cout<<" 暂时合作收容SCP ";color("W");
cout<<"(持续三回合)"<<endl;
Sleep(500);
work_together1+=3;
printf("\n");
}
void contain()
{
for(int i=1;i<=rushu;i++)
{
if(!a[i].dead&&a[i].now_hp<=0&&a[i].team==2&&a[i].ji!=9)
{
cout<<"\n";
color("R");cout<<a[i].name;cout<<" 收容成功!\n";color("W");
a[i].dead=1;
cout<<"\n";
}
}
}
//-----------------------------------------------特殊技能使用-----------------------------------------------
bool special_skills(int i,int j)
{
if(a[i].ji==96)
{
int posb=rand()%3;
if(posb>=1) scp096(j);
else cout<<"SCP-096没被看到脸,十分的温顺\n";
if(a[i].now_hp<=a[i].hp>>2){cout<<a[i].name<<"使用了";color("G");cout<<" 静止回血 ";color("W");cout<<"技能\n";cout<<"生命值恢复200点,现在"<<a[i].name<<"的生命值是:";a[i].now_hp+=200;color("Y");cout<<a[i].now_hp<<"/"<<a[i].hp<<endl;color("W");}
Sleep(500);
return 1;
}
if(a[i].ji==127){scp127(i,j);Sleep(500);return 1;}
if(a[i].ji==106){scp106(j);Sleep(500);if(a[i].now_hp<=a[i].hp>>2){cout<<a[i].name<<"使用了";color("G");cout<<" 静止回血 ";color("W");cout<<"技能\n";cout<<"生命值恢复200点,现在"<<a[i].name<<"的生命值是:";a[i].now_hp+=200;color("Y");cout<<a[i].now_hp<<"/"<<a[i].hp<<endl;color("W");}return 1;}
if(a[i].ji==49)
{if(s049==0)scp049(j);
else if(s049&&a[s049].ji!=8)scp0491(s049,i);Sleep(500);
if(a[i].now_hp<=a[i].hp>>2){cout<<a[i].name<<"使用了";color("G");cout<<" 静止回血 ";color("W");cout<<"技能\n";cout<<"生命值恢复200点,现在"<<a[i].name<<"的生命值是:";a[i].now_hp+=200;color("Y");cout<<a[i].now_hp<<"/"<<a[i].hp<<endl;color("W");}
return 1;}
if(a[i].ji==939)
{scp939(i,j);
if(a[i].now_hp<=a[i].hp>>2){cout<<a[i].name<<"使用了";color("G");cout<<" 静止回血 ";color("W");cout<<"技能\n";cout<<"生命值恢复200点,现在"<<a[i].name<<"的生命值是:";a[i].now_hp+=200;color("Y");cout<<a[i].now_hp<<"/"<<a[i].hp<<endl;color("W");}
Sleep(500);return 1;}
if(a[i].ji==35)
{int uuu=rand()%2;if(uuu)scp0351(i,j);else scp0352(j);return 1;}
if(a[i].ji==491)
{scp0492(j);Sleep(500);return 1;}
if(a[i].ji==18){scp008(j);return 1;}
if(a[i].ji==1)
{
int dc=rand()%10;
if(dc==3){diancipao(i,j);return 1;}
else if(dc==4){shoulei(i,j);return 1;}
else if(dc<3)shouqiang(i,j);
else mp7chongfengqiang(i,j);
Sleep(500);
return 1;
}
if(a[i].ji==2)
{
int dc=rand()%10;
if(dc==2){diancipao(i,j);return 1;}
else if(dc==3){shoulei(i,j);return 1;}
else if(dc<2)shouqiang(i,j);
else if(dc<=7)chongfengqiang(i,j);
else buqiang(i,j);
Sleep(500);
return 1;
}
if(a[i].ji==3)
{
int dc=rand()%8;
if(dc==3){diancipao(i,j);return 1;}
else if(dc==4){shoulei(i,j);return 1;}
else if(dc==2)gl6(i,j,1);
else if(dc<2)gaosibuqiang(i,j,1);
else buqiang(i,j);
Sleep(500);
return 1;
}
if(a[i].ji==4||a[i].ji==9)
{
int dc=rand()%10;
if(dc<=2)shouqiang(i,j);
else jiqiang(i,j);
Sleep(500);
return 1;
}
if(a[i].ji==5)
{
int dc=rand()%10;
if(dc<=4){shouqiang(i,j);return 1;}
if(a[i].now_hp<=a[i].hp*0.3) huifushu(i,i);
else pugong(i,j);
return 1;
}
if(a[i].ji==6)
{
int dc=rand()%8;
if(dc==1)
{
diancipao(i,j);
return 1;
}
else if(dc<=3)mp7chongfengqiang(i,j);
else shouqiang(i,j);
Sleep(500);
return 1;
}
if(a[i].ji==7)
{
if(a[i].now_hp<a[i].hp/4)huifushu(i,i);
int dc=rand()%6;
if(dc<=4)diancipao(i,j);
else buqiang(i,j);
Sleep(500);
return 1;
}
if(a[i].ji==8&&a[i].team==1&&changjing==1)
{
if(a[i].now_hp<a[i].hp/4)huifushu(i,i);
int dc=rand()%8;
if(dc<=2)diancipao(i,j);
else if(dc<=6)xianshiniuqu(i,j);
else if(dc==7)xianshiniuquplus(i,j);
Sleep(500);
return 1;
}
if(a[i].ji==8)
{
int dc=rand()%6;
if(a[i].now_hp<a[i].hp/4)huifushu(i,i);
if(dc==1){xianshiniuquplus(i,j);return 1;}
else if(dc<=4){xianshiniuqu(i,j);return 1;}
else {buwendingxianshi(i);return 1;}
}
if(a[i].ji==10)
{
int dc=rand()%10;
if(dc==3)
{
diancipao(i,j);
return 1;
}
else if(dc==4)gl6(i,j,1);
else xiandanqiang(i,j);
return 1;
}
if(a[i].ji==11){xianshiwending();return 1;}
if(a[i].ji==12)
{
int dc=rand()%8;
if(dc<=2){diancipao(i,j);return 1;}
else if(dc<=4){gl6(i,j,2);return 1;}
else gaosibuqiang(i,j,4);
return 1;
}
if(a[i].ji==13)
{
int dc=rand()%8;
if(dc==0){diancipao(i,j);return 1;}
else if(dc<=2){qishushoulei(i,j);return 1;}
else if(dc<=4){gl6(i,j,3);return 1;}
else gaosibuqiang(i,j,3);
return 1;
}
if(a[i].ji==14)
{
int dc=rand()%9;
if(dc==0){diancipao(i,j);return 1;}
else if(dc<=2){xianglongzhang(i,j);return 1;}
else if(dc<=4){lingxiyizhi(i,j);return 1;}
else gaosibuqiang(i,j,2);
return 1;
}
return 0;
}
//----------------------------------------------------场景模式主函数------------------------------------------
int cnt=0,cur=0;
void scp()
{
srand(time(0));
int numb=0;bool yyy=0;tot_jd=0,tot_sc=0,tot_pl=0,tot_ba=0;bool double173=0;
bool first=0,hidden=0;
system("cls");
Slowsay("已进入场景:SCP Secret Laboratory\n");
Slowsay("请输入挑战者人数(2~101)\n");
cin>>rushu;
tot_pl=rushu;
if(rushu==19260817)
{
rushu=6;yyy=1;tot_pl=6;
a[1].name="ETO";a[2].name="zjr";a[3].name="wwz";a[4].name="lyj";a[5].name="zmy";a[6].name="tym";
for(int i=1;i<=rushu;i++)
putong(i);
}
else if(rushu==255)
{
rushu=rand()%5+4;yyy=1;tot_pl=6;hidden=1;
for(int i=1;i<=rushu;i++)
lvxing(i),a[i].zhan=a[i].atk*16+a[i].ddf*18+a[i].hp*3+a[i].su*5+a[i].iq*15;
}
else if(rushu==173)
{
rushu=1;yyy=1;first=1;tot_pl=4;
a[1].name="SCP-173";a[1].ji=173;a[1].atk=300;a[1].ddf=100;a[1].hp=5000;a[1].su=30;a[1].iq=150;a[1].now_hp=a[1].hp;a[1].team=2;
rushu++;
a[rushu].name="SCP-096";a[rushu].atk=500;a[rushu].ji=96;a[rushu].ddf=50;a[rushu].hp=3000;a[rushu].su=15;a[rushu].iq=100;a[rushu].now_hp=a[rushu].hp;a[rushu].team=2;
rushu++;
a[rushu].name="SCP-106";a[rushu].atk=100;a[rushu].ddf=180;a[rushu].ji=106;a[rushu].hp=2000;a[rushu].su=8;a[rushu].iq=100;a[rushu].now_hp=a[rushu].hp;a[rushu].team=2;
rushu++;
a[rushu].name="SCP-049";a[rushu].atk=500;a[rushu].ddf=60;a[rushu].ji=49;a[rushu].hp=2000;a[rushu].su=10;a[rushu].iq=100;a[rushu].now_hp=a[rushu].hp;a[rushu].team=2;
}
if(!yyy)for(int i=1;i<=rushu;i++)
{
if(numb!=0)
{
numb--;
continue;
}
Slowsay("请输入玩家");cout<<i;Slowsay("的名字!\n");
cin>>a[i].name;
if(check(i)==false){
while(true){Slowsay("名字重复!请重新输入玩家");cout<<i;Slowsay("的名字!\n");cin>>a[i].name;if(check(i)==true) break;else continue;}
}
putong(i);
}
if(!first)
{
for(int i=1;i<=rushu;i++)
{
zhandui(i);
if(a[i].zd==0) continue;
else zhandui_xun(i);
}
}
for(int i=1;i<=rushu;i++)
{
Sleep(500);
cout<<endl;
cout<<"玩家"<<i<<"的名字是:"<<a[i].name<<endl;Sleep(100);
cout<<"他属于第"<<a[i].team<<"阵营"<<endl;
cout<<"攻击:"<<a[i].atk<<" 护甲:"<<a[i].ddf<<" 体力:"<<a[i].hp<<" 速度:"<<a[i].su<<" 智力:"<<a[i].iq<<endl;Sleep(100);
cout<<a[i].name<<"战斗力为:"<<a[i].zhan;
cout<<endl;
}
cout<<"\n\n";
Slowsay("请选择你要操控的人物,若想观战请输入0(输入序号)\n");
int baga;
cin>>baga;
if(baga>rushu){printf("再见");exit(0);}
Slowsay("输入1继续,输入0退出\n");
cin>>choose1;
if(choose1==0){cout<<"结束!!"<<endl;scp();return;}
system("cls");

color("W");
Sleep(500);
if(hidden)
{
Slowsay("你和你的朋友是现实扭曲者\n");Sleep(500);
Slowsay("你们通常被叫做绿型\n");Sleep(500);
Slowsay("你们能提高自身的休谟指数并降低周围环境的休谟指数,制造休谟指数差\n");Sleep(500);
Slowsay("这也是你们现实扭曲能力的来源\n");Sleep(500);
Slowsay("你们入侵了SCP基金会██分部的收容站点Area-CN-█\n");Sleep(500);
Slowsay("但是现在,似乎是███博士故意使SCP-079掌控了这个站点安保系统并导致了严重的收容失效\n");Sleep(500);
Slowsay("你要想办法消灭所有事物\n");Sleep(500);
}
else if(!first)
{
Slowsay("你和你的朋友是SCP基金会工作人员\n");Sleep(500);
Slowsay("但你们同时也是蓝型,所以会一些奇术\n");Sleep(500);
Slowsay("你们在SCP基金会██分部的收容站点Area-CN-█里工作\n");Sleep(500);
Slowsay("但是现在,似乎是███博士故意使SCP-079掌控了这个站点安保系统并导致了严重的收容失效\n");Sleep(500);
Slowsay("你要想办法用你的能力和你的朋友一起活下去\n");Sleep(500);
}
else if(first)
{
cout<<"你是"<<a[baga].name<<"\n";Sleep(500);
Slowsay("你和其他的SCP不愿意被SCP基金会收容和研究\n");Sleep(500);
Slowsay("所以你们想逃离收容站点Area-CN-█\n");Sleep(500);
Slowsay("现在,███博士不知出于何种目的,使SCP-079掌控了这个站点安保系统\n");Sleep(500);
Slowsay("整个站点发生了收容失效\n");Sleep(500);
Slowsay("你要与SCP-079以及其他的SCP合作,共同逃离基金会的掌控\n");Sleep(500);
int pc=rand()%6+6;
for(int k=rushu+1;k<=rushu+pc;k++)
a[k].name="蓝型基金会职员",putong(k);
rushu+=pc;
}
int pko=0;
cnt=0;cur=0;

cout<<"\n\n";

if(!first){
color("R");Slowsay("SCP-173突破收容!\n");color("W");
rushu++;
a[rushu].name="SCP-173";a[rushu].atk=500;a[rushu].ddf=100;a[rushu].hp=5000;a[rushu].su=15;a[rushu].iq=100;a[rushu].ji=173;a[rushu].now_hp=a[rushu].hp;a[rushu].team=2;
Sleep(800);
color("R");Slowsay("SCP-096突破收容!\n");color("W");
rushu++;
Sleep(800);
a[rushu].name="SCP-096";a[rushu].atk=500;a[rushu].ji=96;a[rushu].ddf=50;a[rushu].hp=3000;a[rushu].su=15;a[rushu].iq=100;a[rushu].now_hp=a[rushu].hp;a[rushu].team=2;
color("R");Slowsay("SCP-106突破收容!\n");color("W");
rushu++;
Sleep(800);
a[rushu].name="SCP-106";a[rushu].atk=100;a[rushu].ddf=180;a[rushu].ji=106;a[rushu].hp=2000;a[rushu].su=8;a[rushu].iq=100;a[rushu].now_hp=a[rushu].hp;a[rushu].team=2;
color("R");Slowsay("SCP-049突破收容!\n");color("W");
rushu++;
Sleep(800);
a[rushu].name="SCP-049";a[rushu].atk=500;a[rushu].ddf=60;a[rushu].ji=49;a[rushu].hp=2000;a[rushu].su=10;a[rushu].iq=100;a[rushu].now_hp=a[rushu].hp;a[rushu].team=2;
}

color("Y");Slowsay("保安人员警戒!\n");color("W");
int bbb=rand()%4+3;
tot_ba=bbb;
for(int i=rushu+1;i<=rushu+bbb;i++)
baoan(i);
rushu+=bbb;
Sleep(800);

work_together=0;work_together1=0;light_system=0;door_system=0;xianshi=0;xianshiyizhi=0;
while(!panduan())
{
if(cnt==0)
{
zhongli=0;
color("O");Slowsay("D级人员已出逃!\n");color("W");
bbb=rand()%6+8;
for(int i=rushu+1;i<=rushu+bbb;i++)
d_class(i);
rushu+=bbb;
Sleep(800);

color("W");Slowsay("科学家撤离!\n");color("W");
bbb=rand()%5+3;
tot_sc=bbb;
for(int i=rushu+1;i<=rushu+bbb;i++)
science(i);
rushu+=bbb;
Sleep(800);
}
else if(cnt==1)
{
color("R");Slowsay("SCP-939-89突破收容!\n");color("W");
rushu++;
Sleep(800);
a[rushu].name="SCP-939-89";a[rushu].atk=200;a[rushu].ddf=70;a[rushu].ji=939;a[rushu].hp=3000;a[rushu].su=10;a[rushu].iq=100;a[rushu].now_hp=a[rushu].hp;a[rushu].team=2;
color("R");Slowsay("SCP-939-56突破收容!\n");color("W");
rushu++;
Sleep(800);
a[rushu].name="SCP-939-56";a[rushu].atk=200;a[rushu].ddf=70;a[rushu].ji=939;a[rushu].hp=3000;a[rushu].su=10;a[rushu].iq=100;a[rushu].now_hp=a[rushu].hp;a[rushu].team=2;
}
else if(cnt==2)
{
color("R");Slowsay("SCP-035突破收容!\n");color("W");
rushu++;
a[rushu].name="SCP-035";a[rushu].atk=200;a[rushu].ddf=50;a[rushu].ji=35;a[rushu].hp=2000;a[rushu].su=10;a[rushu].iq=100;a[rushu].now_hp=a[rushu].hp;a[rushu].team=2;
Sleep(800);
color("R");Slowsay("SCP-127突破收容!\n");color("W");
rushu++;
Sleep(800);
a[rushu].name="SCP-127";a[rushu].atk=200;a[rushu].ddf=60;a[rushu].ji=127;a[rushu].hp=2000;a[rushu].su=10;a[rushu].iq=100;a[rushu].now_hp=a[rushu].hp;a[rushu].team=2;

}
else if(cnt==3)
{
color("R");Slowsay("SCP-1360-1突破收容!\n");color("W");
rushu++;
Sleep(800);
a[rushu].name="SCP-1360-1";a[rushu].atk=200;a[rushu].ddf=80;a[rushu].hp=2000;a[rushu].su=10;a[rushu].iq=100;a[rushu].now_hp=a[rushu].hp;a[rushu].team=2;
color("R");Slowsay("SCP-1360-2突破收容!\n");color("W");
rushu++;
Sleep(800);
a[rushu].name="SCP-1360-2";a[rushu].atk=200;a[rushu].ddf=80;a[rushu].hp=2000;a[rushu].su=10;a[rushu].iq=100;a[rushu].now_hp=a[rushu].hp;a[rushu].team=2;
}
else if(cnt==4)
{
color("R");Slowsay("SCP-008突破收容!\n");color("W");
int bbb=rand()%3+2;
for(int i=rushu+1;i<=rushu+bbb;i++)
zombie(i);
rushu+=bbb;
}
cnt++;
if(cur==3||cur==9||cur==15)
{
cout<<"Attention,all personnel.\n";
Sleep(2000);
cout<<"The containt zone decontainmination process will occur in T-Minus ";cout<<18-cur;cout<<" minutes\n";
Sleep(2000);
cout<<"All biological substances must be removed to avoid destruction."<<endl;
Sleep(2000);
}
else if(cur==18)
{
cout<<"The light containt zone decontainmination process has been occured.\n";
Sleep(2000);
for(int i=1;i<=rushu;i++)
{
int sur=rand()%4;
if(sur!=2)continue;
else
{
if(a[i].now_hp)cout<<a[i].name<<" ";
a[i].now_hp=0;
}
}
printf("has been killed.\n");
Sleep(3000);
}
else if(cur==21)
{
cout<<"Attention,all personnel.\n";
Sleep(2000);
cout<<"Alpha warhead emergency detonation procedure engaged.\n";
Sleep(2000);
cout<<"The underground section of facility will be detonated in T-Minus 90 seconds.\n";
Sleep(2000);
cout<<"All biological substances must be removed to avoid destruction."<<endl;
Sleep(2000);
color("Y");cout<<"机动特遣队Gamma-13 “Asimov's Lawbringers” had arrived the facility.\n";color("W");
Sleep(2000);
int bbb=rand()%5+6;
tot_jd+=bbb;
for(int i=rushu+1;i<=rushu+bbb;i++)
asimov(i);
rushu+=bbb;
}
else if(cur==24)
{
cout<<"The underground section of facility has benn detonated.\n";
Sleep(2000);
for(int i=1;i<=rushu;i++)
{
int sur=rand()%3;
if(sur!=2)continue;
else
{
if(a[i].now_hp)cout<<a[i].name<<" ";
a[i].now_hp=0;
}
}
printf("has been killed.\n");
Sleep(2000);
color("G");cout<<"机动特遣队Tau-5 “Samsara” had arrived the facility.\n";color("W");
Sleep(2000);
int bbb=rand()%4+3;
tot_jd+=bbb;
for(int i=rushu+1;i<=rushu+bbb;i++)
samsara(i);
rushu+=bbb;
}
else if(cur==27)
{
color("B");cout<<"机动特遣队Alpha-9 “Last Hope” had arrived the facility.\n";color("W");
Sleep(2000);
int bbb=rand()%4+3;
tot_jd+=bbb;
for(int i=rushu+1;i<=rushu+bbb;i++)
last_hope(i);
rushu+=bbb;
}
else if(cur==30)
{
color("R");cout<<"机动特遣队Omega-12 “Achilles' Heels” had arrived the facility.\n";color("W");
Sleep(2000);
int bbb=rand()%4+3;
tot_jd+=bbb;
for(int i=rushu+1;i<=rushu+bbb;i++)
achilles(i);
rushu+=bbb;
}
cur+=3;

if(cnt!=1) shuaxin();
if(a[baga].now_hp<=0&&zhanghu==1&&baga)
{
cout<<"系统检测到您已死亡,是否使用管理员权限复活?(复活请输入1,否则按任意键跳过)"<<endl;
char o=_getch();
if(o=='1')a[baga].now_hp=a[baga].hp,a[baga].ddf+=50;
}
if(a[baga].now_hp<=0) out_state(baga),Sleep(4000);

if(door_system)door_system--;
if(light_system)light_system--;
if(work_together)work_together--;
if(xianshi){xianshi-=25;if(xianshi<0)xianshi=0;else buwendingshanghai();cout<<"现在站点内的休谟指数为 ";color("P");cout<<82-xianshi/3;color("W");cout<<" \n";cout<<"基准休谟指数为 ";color("P");cout<<82;color("W");cout<<" \n";}
if(xianshiyizhi){xianshiyizhi-=15;if(xianshiyizhi<0)xianshiyizhi=0;cout<<"现在站点内EVE粒子扰动程度为 ";color("P");cout<<xianshiyizhi;color("W");cout<<" \n";}
if(xianshi&&xianshiyizhi<15&&cur<24) xianshiwendingmao();
if(xianshi&&(cur==6||cur==18))achilles_arrive();

for(int i=1;i<=rushu;i++)
{
if(double173)i--;
contain();
// printf("test1:%d\n",panduan());
if(panduan())
{
Sleep(500);
cout<<"\n\n";
cout<<"战斗结束!"<<endl;
int kol,sum=0;
for(int f=rushu;f>=1;f--)
{
if(a[f].now_hp<=0||a[f].cd)sum++;
if(a[f].now_hp>0&&!a[f].cd)
{
kol=a[f].team;//1*2 3*6
if(a[f].ji==2||a[f].ji==3||a[f].ji==12||a[f].ji==13||a[f].ji==14)tot_jd--;
if(a[f].ji==1)tot_ba--;
if(a[f].ji==5)tot_sc--;
}
}
int uuu=tot_pl;
for(int f=1;f<=uuu;f++)
if(a[f].now_hp>0)tot_pl--;
for(int f=1;f<=rushu;f++)
clear(i);
if(kol==1&&!first)
{
Slowsay("------------------结局1-------------------\n");
Slowsay("最终,在基金会的不懈努力下,这场严重的收容失效事故终于被解决了!\n");Sleep(500);
printf("但是基金会自身也损失惨重,据统计,本次事故共造成了%d名人员死亡,以及%d亿美元的损失\n",sum,rand()%200);Sleep(1000);
printf("一共有%d名机动特遣队队员殉职,%d名警卫殉职,%d名研究员死亡,%d名玩家死亡\n",tot_jd,tot_ba,tot_sc,tot_pl);Sleep(1000);
Slowsay("他们的光荣事迹将永垂不朽!\n");Sleep(1500);
}
else if(kol==1&&first)
{
Slowsay("------------------结局6-------------------\n");
Slowsay("很遗憾,你突破收容的尝试被基金会阻止了\n");Sleep(500);
printf("但是你也给基金会带来了惨重的损失,据统计,本次事故共造成了%d名人员死亡,以及%d亿美元的损失\n",sum,rand()%200);Sleep(1000);
printf("一共有%d名机动特遣队队员殉职,%d名警卫殉职,%d名研究员死亡\n",tot_jd,tot_ba,tot_sc);Sleep(1000);
Slowsay("你需要等到下次收容失效时才有机会逃脱\n");Sleep(1500);
}
else if(kol==2&&!first)
{
Slowsay("------------------结局2-------------------\n");
Slowsay("很遗憾,虽然基金会已经竭尽全力,但是仍有数个高度危险的SCP项目在蛇之手先遣队的协助下逃离了设施\n");Sleep(500);
printf("基金会损失惨重,据统计,本次事故共造成了%d名人员死亡,以及%d亿美元的损失\n",sum,rand()%200);Sleep(1000);
printf("一共有%d名机动特遣队队员殉职,%d名警卫殉职,%d名研究员死亡,%d名玩家死亡\n",tot_jd,tot_ba,tot_sc,tot_pl);Sleep(1000);
Slowsay("目前基金会正在追查这些SCP项目的去向\n");Sleep(1500);
}
else if(kol==2&&first)
{
Slowsay("------------------结局5-------------------\n");
printf("你身为");cout<<a[baga].name<<",终于突破了基金会的收容\n";Sleep(500);
printf("你使基金会损失惨重,据统计,本次事故共造成了%d名人员死亡,以及%d亿美元的损失\n",sum,rand()%200);Sleep(1000);
printf("一共有%d名机动特遣队队员殉职,%d名警卫殉职,%d名研究员死亡\n",tot_jd,tot_ba,tot_sc);Sleep(1000);
Slowsay("你终于获得了自由!\n");Sleep(1500);
}
else if(kol==3)
{
Slowsay("------------------结局3-------------------\n");
Slowsay("混沌分裂者成功潜入了设施并救出了部分D级人员,基金会的情报资料遭到严重损失!\n");Sleep(500);
printf("同时,基金会在人员和设施上也损失惨重,据统计,本次事故共造成了%d名人员死亡,以及%d亿美元的损失\n",sum,rand()%200);Sleep(1000);
printf("一共有%d名机动特遣队队员殉职,%d名警卫殉职,%d名研究员死亡,%d名玩家死亡\n",tot_jd,tot_ba,tot_sc,tot_pl);Sleep(1000);
Slowsay("目前基金会正在追查这些混沌分裂者的去向\n");Sleep(1500);
}
else if(kol==4)
{
Slowsay("------------------结局4-------------------\n");
Slowsay("全球异常处理组织GOC成功潜入并消灭了所有SCP项目,这将导致不可预料的后果\n");Sleep(500);
Slowsay("基金会对GOC的入侵行动表示严厉谴责,并加强了所有site和area的安保措施\n");Sleep(500);
printf("在本次收容失效中,基金会损失惨重,据统计,本次事故共造成了%d名人员死亡,以及%d亿美元的损失\n",sum,rand()%200);Sleep(1000);
printf("一共有%d名机动特遣队队员殉职,%d名警卫殉职,%d名研究员死亡,%d名玩家死亡\n",tot_jd,tot_ba,tot_sc,tot_pl);Sleep(1000);
Slowsay("目前基金会正在和GOC进行交涉\n");Sleep(1500);
}
else if(kol==5)
{
Slowsay("------------------结局7(隐藏结局)-------------------\n");
Slowsay("在收容失效事件中,你和你的现实扭曲者朋友们潜入并消灭了所有SCP\n");Sleep(500);
Slowsay("参与各方都没有想到你们的加入,也都收到了不同程度的损失\n");Sleep(500);
printf("在本次收容失效中,基金会损失最为惨重,据统计,本次事故共造成了%d名人员死亡,以及%d亿美元的损失\n",sum,rand()%200);Sleep(1000);
printf("一共有%d名机动特遣队队员殉职,%d名警卫殉职,%d名研究员死亡,%d名玩家死亡\n",tot_jd,tot_ba,tot_sc,tot_pl);Sleep(1000);
Slowsay("目前基金会正在追查你们的去向\n");Sleep(1500);
}
rushu=0;
Slowsay("\n输入1继续。。。");int pop;cin>>pop;
system("cls");
return moshi3();
}
if(a[i].now_hp<=0) continue;

int eve=rand()%150,even=rand()%10;
if(eve==9)event1();
else if(eve>=130&&door_system)event2();
else if(eve>=95&&eve<=100)event2();
else if(eve>=90&&eve<=100)event7();
else if(eve==6)event3();
else if(eve==7)event8();
else if(eve==10&&even<=4)event4();
else if(eve==4)event5();
else if(eve==5)event6();

if(a[i].cd==1)a[i].cd=0,a[i].now_hp=a[i].hp;
else if(a[i].cd>=2){a[i].cd--;continue;}
int fff=rand(),j;
while(!panduan())
{
if(fff%16==4&&a[i].atk_used==true) fff=rand()%12000;
else if(fff%16==5&&a[i].ddf_used==true) fff=rand()%12000;
else if((fff%16==8||fff%16==9)&&a[i].now_hp==a[i].hp) fff=rand()%12000;
else break;
}
// printf("test2:%d\n",panduan());
cout<<endl;
if(i==baga||a[i].kong==1)
{
choice(i);
if(a[i].ji==173&&first&&light_system)choice(i);
continue;
}
while(!panduan())
{
j=rand()%(rushu)+1;
if(j!=i&&a[j].now_hp>0)
{
if(a[j].cd)continue;
if(a[i].team==1&&work_together&&a[j].team==3)continue;
if(a[i].team==3&&work_together&&a[j].team==1)continue;
if(a[i].team==1&&work_together1&&a[j].team==4)continue;
if(a[i].team==4&&work_together1&&a[j].team==1)continue;
if(a[i].team==1&&!zhongli&&a[j].team==3)continue;
if(a[i].team==3&&!zhongli&&a[j].team==1)continue;
if(a[j].team!=a[i].team)break;
}
}
if(a[i].ji==173)
{
int posb=rand()%3;
if(light_system){scp173(j);!double173?double173=1:double173=0;continue;}
if(posb<=1)scp173(j);
else cout<<"SCP-173一直被看着,寸步难行……\n";
if(a[i].now_hp<=a[i].hp>>2){cout<<a[i].name<<"使用了";color("G");cout<<" 静止回血 ";color("W");cout<<"技能\n";cout<<"生命值恢复200点,现在"<<a[i].name<<"的生命值是:";a[i].now_hp+=200;color("Y");cout<<a[i].now_hp<<"/"<<a[i].hp<<endl;color("W");}
Sleep(500);
continue;
}
if(special_skills(i,j)){puts("");continue;}
if(a[i].now_hp<=a[i].hp*0.3)huifushu(i,i);
else if(fff%17==0) xiaolifeidao(i,j);
else if(fff%17==1) pugong(i,j);
else if(fff%17==2) huoqiushu(i,j);
else if(fff%17==3) leijishu(i,j);
else if(fff%17==4) kuangbao(i);
else if(fff%17==5) tiebishu(i);
else if(fff%17==6) bingdongshu(i,j);
else if(fff%17==7) changqiongzhan(i,j);
else if(fff%17==8) shoulei(i,j);
else if(fff%17==9) shixueyiji(i,j);
else if(fff%17==10) xianglongzhang(i,j);
else if(fff%17==11) lingxiyizhi(i,j);
else if(fff%17==12) buqiang(i,j);
else if(fff%17==13) jiqiang(i,j);
else if(fff%17==14) chongfengqiang(i,j);
else if(fff%17==15) diancipao(i,j);
else if(fff%17==16) mp7chongfengqiang(i,j);
cout<<endl;
Sleep(1000);
}
}
Slowsay("\n输入1继续。。。");int pop;cin>>pop;
for(int i=1;i<=rushu;i++)
clear(i);
rushu=0;
system("cls");
moshi3();
}
void shuaxin()
{
int shuaxin=rand()%100;
if(shuaxin<35)
{
int sdf=rand()%8;int qwq=rand()%4;
if(qwq<2){rushu++;doctor(rushu);}
if(sdf<5)
{
color("C");Slowsay("机动特遣队Epsilon-11 “Nine-Tailed Fox”抵达!\n");color("W");
int bbb=rand()%4+5;tot_jd+=bbb;
for(int i=rushu+1;i<=rushu+bbb;i++)
jiuweihu(i);
rushu+=bbb;
}
else
{
color("B");Slowsay("机动特遣队Nu-7 “Hammer Down”抵达!\n");color("W");
int bbb=rand()%3+4;tot_jd+=bbb;
for(int i=rushu+1;i<=rushu+bbb;i++)
luochui(i);
rushu+=bbb;
}
}
else if(shuaxin<56)
{
zhongli=1;
color("G");Slowsay("混沌分裂者已潜入设施!\n");color("W");
int bbb=rand()%4+6;
for(int i=rushu+1;i<=rushu+bbb;i++)
hundun(i);
rushu+=bbb;
}
else if(shuaxin<71)
{
color("R");Slowsay("蛇之手先遣队已潜入设施!\n");color("W");
int bbb=rand()%4+6;
for(int i=rushu+1;i<=rushu+bbb;i++)
shezhishou(i);
rushu+=bbb;
}
else if(shuaxin<91)
{
color("B");Slowsay("GOC先遣队已潜入设施!\n");color("W");
int bbb=rand()%4+6;
for(int i=rushu+1;i<=rushu+bbb;i++)
goc(i);
rushu+=bbb;
}
else if(shuaxin<100&&cur<21)
{
color("Y");Slowsay("设施内人员已从轻收容区逃至重收容区!\n");color("W");
int bbb=rand()%4+6;
for(int i=rushu+1;i<=rushu+bbb;i++)
d_class(i);
rushu+=bbb;

bbb=rand()%2+1;
for(int i=rushu+1;i<=rushu+bbb;i++)
baoan(i);
tot_ba+=bbb;
rushu+=bbb;

bbb=rand()%3+3;
for(int i=rushu+1;i<=rushu+bbb;i++)
science(i);
tot_sc+=bbb;
rushu+=bbb;

bbb=rand()%2+1;
for(int i=rushu+1;i<=rushu+bbb;i++)
putong(i),a[i].name="蓝型基金会职员";
rushu+=bbb;
}
}
class scpcb
{
private:
FILE* name;
char word[200];
int ch,nuclear;char o;bool bishaji;
int sub[12];
int i5,i173,i939,i106,i96,i49,ibaoan,plotcnt,s79;
//0-电磁炮 1-m9 2-mp7 3-ar15 4-p90 5-m249 6-w1200 7-手雷 8-通行卡等级 9-医疗包
int site[25][25],posx,posy;
int vis[25][25];
bool s35;
void place(int x)
{
if(x==1){color("W");printf(" 厕所 ");color("W");}
if(x==2){color("Y");printf(" 研究员办公室 ");color("W");}
if(x==3){color("B");printf(" 高级职员办公室 ");color("W");}
if(x==4){color("C");printf(" 保安值班室 ");color("W");}
if(x==5){color("R");printf(" 武器库 ");color("W");}
if(x==6){color("G");printf(" 医务室 ");color("W");}
if(x==7){color("Y");printf(" 储物间 ");color("W");}
if(x==8){color("C");printf(" 咖啡厅 ");color("W");}
if(x==173){color("R");printf(" SCP-173的收容间 ");color("W");}
if(x==96){color("R");printf(" SCP-096的收容间 ");color("W");}
if(x==939){color("R");printf(" SCP-939的收容间 ");color("W");}
if(x==49){color("R");printf(" SCP-049的收容间 ");color("W");}
if(x==106){color("R");printf(" SCP-106的收容间 ");color("W");}
if(x==914){color("R");printf(" SCP-914的收容间 ");color("W");}
if(x==80){color("R");printf(" SCP-008的收容间 ");color("W");}
if(x==79){color("R");printf(" SCP-079的收容间 ");color("W");}
if(x==35){color("R");printf(" SCP-035的收容间 ");color("W");}
if(x==50){color("R");printf(" SCP-005的收容间 ");color("W");}
if(x==12){color("R");printf(" SCP-012的收容间 ");color("W");}
if(x==999){color("P");printf(" B大门 ");color("W");}
if(x==998){color("P");printf(" A大门 ");color("W");}
if(x==997){color("R");printf(" 核弹室 ");color("W");}
if(x==25){color("B");printf(" 控制室 ");color("W");}
}
void subtan(int x,int y)
{
if(x==0){color("C");printf(" MK-2型电磁炮 ");color("W");if(y==1)sub[0]++;}
if(x==1){color("Y");printf(" M1911手枪 ");color("W");if(y==1)sub[1]++;}
if(x==2){color("Y");printf(" MP7冲锋枪 ");color("W");if(y==1)sub[2]++;}
if(x==3){color("B");printf(" AR15自动步枪 ");color("W");if(y==1)sub[3]++;}
if(x==4){color("C");printf(" P90冲锋枪 ");color("W");if(y==1)sub[4]++;}
if(x==5){color("G");printf(" 一级通行卡 ");color("W");if(y==1)sub[5]++;}
if(x==6){color("C");printf(" 二级通行卡 ");color("W");if(y==1)sub[6]++;}
if(x==7){color("B");printf(" 三级通行卡 ");color("W");if(y==1)sub[7]++;}
if(x==8){color("R");printf(" 四级通行卡 ");color("W");if(y==1)sub[8]++;}
if(x==9){color("P");printf(" 五级通行卡 ");color("W");if(y==1)sub[9]++;}
if(x==10){color("G");printf(" 医疗包 ");color("W");if(y==1)sub[10]++;}
}
void death()
{
color("R");printf("You died!\n");color("W");
printf("(1)Play again\n(2)Exit to menu\n");
cin>>ch;
while(ch!=1&&ch!=2){printf("请重新输入\n");cin>>ch;}
fclose(name);
if(ch==1)scp_cb();
else moshi3();
}
void skip(int k)
{
for(int i=1;i<=k;i++)
fgets(word,sizeof word,name);
}
void read(int k)
{
for(int i=1;i<=k;i++)
{
fgets(word,sizeof word,name);
if(word[0]=='S'&&word[1]=='C'&&word[2]=='P')color("R");
say(word);
if(word[0]=='S')color("W");
Sleep(500);
}
}
void check()
{
system("cls");
int k=1;
cout<<"你是"<<a[k].name<<"\n";

cout<<"你现在在";place(site[posx][posy]);cout<<"\n";
printf("坐标是:(%d,%d) %d\n",posx,posy,vis[posx][posy]);

cout<<"你的状态是:"<<endl;
if(a[k].now_hp<a[k].hp/5)color("R"),cout<<"生命垂危 "<<a[k].now_hp<<"/"<<a[k].hp<<endl,color("W");
else if(a[k].now_hp<((a[k].hp/3)*2))color("Y"),cout<<"伤痕累累 "<<a[k].now_hp<<"/"<<a[k].hp<<endl,color("W");
else color("G"),cout<<"十分健康 "<<a[k].now_hp<<"/"<<a[k].hp<<endl,color("W");

cout<<"你现在有:\n";
for(int i=0;i<=10;i++)
{
subtan(i,0);cout<<"x"<<sub[i]<<"\n";
if(i<=9&&i>=5&&sub[i])sub[11]=max(sub[11],i-4);
}
if(i5)color("R"),cout<<"SCP-005\n",color("W");
cout<<endl;

cout<<"按q键返回\n";
cout<<"输入w,s,d,a来移动,输入z留在原地\n";
cout<<"输入e使用医疗包,输入q来搜索房间\n";
return;
}
void end(int x)
{
color("W");
system("cls");
if(x==1)
{
color("G");
cout<<"获得成就:被混沌抓去充军\n";
cout<<"True End:被混沌分裂者救走\n";
}
else if(x==2)
{
color("B");
cout<<"获得成就:怂包一个\n";
cout<<"Bad End:被基金会抓获,继续做D级\n";
}
else if(x==3)
{
color("C");
cout<<"获得成就:硬刚到底\n";
cout<<"Good End:你逃离了基金会,在深山老林里过起了隐居生活\n";
}
else if(x==4)
{
color("R");
cout<<"获得成就:非酋一枚\n";
cout<<"Bad End:被核弹炸死\n";
}
else if(x==5)
{
color("R");
cout<<"获得成就:直接处决\n";
cout<<"Bad End:被九尾狐处决炸死\n";
}
else if(x==6)
{
color("Y");
cout<<"获得成就:非酋一枚\n";
cout<<"Bad End:被基金会抓获,继续做D级\n";
}
color("W");
printf("(1)Play again\n(2)Exit to menu\n");
cin>>ch;
while(ch!=1&&ch!=2){printf("请重新输入\n");cin>>ch;}
fclose(name);
if(ch==1)scp_cb();
else moshi3();
}
void shengcheng(int x)
{
int nk=rand()%10+2;
if(x==1)
{
if(nk<=3){cout<<"这里似乎什么都没有\n";return;}
cout<<"经过一番搜索,你找到了";
if(nk>=7)subtan(5,1);
if(nk>=5&&nk<7)subtan(6,1);
if(nk==4)subtan(1,1);
cout<<"\n";
}
if(x==2)
{
cout<<"经过一番搜索,你找到了";
if(nk<=4)subtan(10,1);
if(nk>=7)subtan(6,1);
if(nk==6)subtan(7,1);
if(nk==5)subtan(1,1);
cout<<"\n";
}
if(x==3)
{
cout<<"经过一番搜索,你找到了";
if(nk<=2)subtan(10,1);
if(nk>=7)subtan(10,1);
if(nk>=5&&nk<7)subtan(6,1);
if(nk==4)subtan(7,1);
if(nk==3)subtan(8,1);
cout<<"\n";
}
if(x==4)
{
cout<<"经过一番搜索,你找到了";
if(nk<=2)subtan(1,1);
if(nk>=8)subtan(2,1);
if(nk>=6&&nk<=7)subtan(6,1);
if(nk==4||nk==5)subtan(7,1);
if(nk==3)subtan(10,1);
cout<<"\n";
}
if(x==5)
{
cout<<"经过一番搜索,你找到了";
if(nk<=3)subtan(2,1);
if(nk==9)subtan(0,1);
if(nk>=7&&nk<=8)subtan(3,1);
if(nk>=4&&nk<=6)subtan(4,1);
cout<<"\n";
}
if(x==6)
{
cout<<"经过一番搜索,你找到了";
if(nk>7)subtan(6,1);
if(nk<7)subtan(10,1);
if(nk==7)subtan(7,1);
cout<<"\n";
}
if(x==7)
{
cout<<"经过一番搜索,你找到了";
if(nk>7)subtan(6,1);
if(nk<7)subtan(5,1);
if(nk==7)subtan(1,1);
cout<<"\n";
}
if(x==8)
{
cout<<"经过一番搜索,你找到了";
if(nk>7)subtan(5,1);
if(nk<7)subtan(10,1);
if(nk==7)subtan(6,1);
cout<<"\n";
}
if(x==173)
{
cout<<"经过一番搜索,你找到了SCP-173的档案\n";
ShellExecute(NULL, "open", "explorer.exe", "http://scp-wiki-cn.wikidot.com/scp-173", NULL, SW_SHOW);
}
if(x==96)
{
cout<<"经过一番搜索,你找到了SCP-096的档案\n";
ShellExecute(NULL, "open", "explorer.exe", "http://scp-wiki-cn.wikidot.com/scp-096", NULL, SW_SHOW);
}
if(x==49)
{
cout<<"经过一番搜索,你找到了SCP-049的档案\n";
ShellExecute(NULL, "open", "explorer.exe", "http://scp-wiki-cn.wikidot.com/scp-049", NULL, SW_SHOW);
}
if(x==939)
{
cout<<"经过一番搜索,你找到了SCP-939的档案\n";
ShellExecute(NULL, "open", "explorer.exe", "http://scp-wiki-cn.wikidot.com/scp-939", NULL, SW_SHOW);
}
if(x==50)
{
cout<<"你拿到了SCP-005 万能钥匙!\n";
i5=1;
}
Sleep(500);
}
int quanxian(int x)
{
switch(x)
{
case 1:return 0;break;
case 2:return 2;break;
case 3:return 3;break;
case 4:return 2;break;
case 5:return 3;break;
case 6:return 2;break;
case 7:return 2;break;
case 8:return 1;break;
case 173:return 2;break;
case 96:return 2;break;
case 914:return 2;break;
case 106:return 4;break;
case 49:return 2;break;
case 35:return 3;break;
case 50:return 3;break;
case 79:return 4;break;
case 997:return 5;break;
case 998:return 4;break;
case 999:return 4;break;
case 25:return 3;break;
case 12:return 3;break;
case 80:return 4;break;
};
}
void search()
{
system("cls");int num=0;
int nk=site[posx][posy];
if(sub[11]<quanxian(nk)&&!i5)
{
color("R");cout<<"通行卡权限不够!\n";color("W");
Sleep(600);
return;
}
if(nk==914)scp914();
if(nk==35&&!vis[posx][posy])scp035(),vis[posx][posy]=1;
if(nk==79&&s79<=2)scp079();
if(nk==106)
{
Slowsay("SCP-106的收容室里一片狼藉\n");
Slowsay("地上有很多黑色的痕迹,似乎是SCP-106留下的\n");
Slowsay("几具尸体躺在地面上,身上有许多腐蚀的痕迹\n");
Slowsay("墙边的一个类似容器的东西已经关闭了\n");
Slowsay("对面墙上的一颗红色按钮已经亮了起来\n");
Slowsay("要按下去吗?\n(1)按\n(2)不按\n");
cin>>num;
if(num==1)
{
i106=0;
color("R");Slowsay("SCP-106被献祭了\n");color("W");Sleep(1000);
check();
return;
}
else
{
check();
return;
}
}
if(nk==12)
{
system("cls");
printf("这是SCP-012\n");
if(s35)printf("SCP-035说这里写着逃生路线\n");
printf("要不要看一看上面写着什么?\n");
cout<<"你决定:\n(1)看一看\n(2)离开\n";
cin>>num;
if(num==1)
{
system("cls");
cout<<"你看了看SCP-012 无尽乐章,你的精神受到了影响\n你决定用自己的血写完这个乐章\n最终,你死于失血过多\n";
cout<<"获得成就:好奇害死猫\n";
death();
}
else {check();return;}
}
if(nk==25)
{
system("cls");
printf("这里是控制室\n");
printf("墙上有一个控制大门权限的拉杆\n");
cout<<"你决定:\n(1)拉下拉杆\n(2)离开\n";
cin>>num;
if(num==1)
{
if(s79<1){
system("cls");
color("R");cout<<"广播:SCP-079收容室已解锁\n";color("W");Sleep(1000);
s79=1;
check();
return;}
else
{
system("cls");
color("R");cout<<"广播:A,B大门已解锁\n";color("W");Sleep(1000);
s79=2;
check();
return;
}
}
else {check();return;}
}
if(nk==998&&s79==2)
{
system("cls");
cout<<"A大门打开了!\n";Sleep(1000);
read(3);Sleep(1000);system("cls");
if(i106)
{
read(5);Sleep(1000);system("cls");
color("G");read(4);Sleep(1000);system("cls");
end(1);
}
else
{
skip(9);
read(3);Sleep(1000);system("cls");
cin>>num;
if(num==1){read(2);end(2);}
else
{
fight(12);
end(3);
}
}
return;
}
if(nk==999&&s79==2)
{
system("cls");
cout<<"B大门打开了!\n";Sleep(1000);
skip(17);
read(5);Sleep(1000);system("cls");
color("B");read(3);Sleep(1000);system("cls");
color("R");read(3);Sleep(1000);system("cls");
color("B");read(3);Sleep(1000);system("cls");
if(!nuclear)
{
skip(3);
read(7);
if(rand()&1)read(1),end(5);
else skip(1),read(1),end(6);
color("W");
}
else
{
color("R");
read(3);
skip(7);
color("W");
end(4);
}
return;
}
if((nk==999||nk==998)&&s79<2)
{
system("cls");
cout<<"我的通行卡似乎打不开这扇门\n";Sleep(1000);
check();
return;
}
if(nk==997)
{
system("cls");
printf("这里是核弹室\n");
printf("墙上有一个控制远程引爆核弹的拉杆\n");
cout<<"你决定:\n(1)关闭核弹\n(2)离开\n";
cin>>num;
if(num==1)
{
system("cls");
nuclear=0;
color("R");cout<<"广播:核弹远程引爆已关闭\n";color("W");Sleep(1000);
check();
return;
}
check();return;
}
int p=rand()%3;
if(p==1&&!vis[posx][posy])
{
vis[posx][posy]=1;
shengcheng(nk);
Sleep(600);
check();
}
else
{
vis[posx][posy]=1;
printf("你在四周找了找,什么都没有找到\n\n");
Sleep(300);
check();
}
}
void move(int x)
{
if(x==1)if(posy>0)posy--;
if(x==2)if(posy<24)posy++;
if(x==3)if(posx>0)posx--;
if(x==4)if(posx<24)posx++;
if(!site[posx][posy])site[posx][posy]=(rand()%8+1);
}
void use(int x)
{
if(!sub[10])return;
system("cls");
cout<<"你使用了";subtan(10,0);cout<<"并回复了200点生命值\n";
a[1].now_hp+=200;
if(a[1].now_hp>a[1].hp)a[1].now_hp=a[1].hp;
sub[10]--;
if(x)check();
}
void fight(int x)
{
system("cls");
int num=0,ch,tar;
if(x==173){num=1;rushu+=num;i173-=1;a[rushu].name="SCP-173";a[rushu].now_hp=a[rushu].hp=2147483640;a[rushu].ji=173;a[rushu].team=2;}
if(x==49){num=1;rushu+=num;i49-=1;a[rushu].name="SCP-049";a[rushu].now_hp=a[rushu].hp=1000;a[rushu].ji=49;a[rushu].team=2;}
if(x==106){num=1;rushu+=num;i106-=1;a[rushu].name="SCP-106";a[rushu].now_hp=a[rushu].hp=1000;a[rushu].ji=106;a[rushu].team=2;}
if(x==96){num=1;rushu+=num;i96-=1;a[rushu].name="SCP-096";a[rushu].now_hp=a[rushu].hp=2147483640;a[rushu].ji=96;a[rushu].team=2;}
if(x==939){num=rand()%3+1;i939-=num;for(int i=rushu+1;i<=rushu+num;i++)a[i].name="SCP-939",a[i].now_hp=a[i].hp=300,a[i].ji=939,a[i].team=2;rushu+=num;}
if(x==11){num=rand()%2+1;ibaoan-=num;for(int i=rushu+1;i<=rushu+num;i++)a[i].name="设施警卫",a[i].now_hp=a[i].hp=100,a[i].ji=1,a[i].team=1;rushu+=num;}
if(x==12){num=rand()%3+2;ibaoan-=num;for(int i=rushu+1;i<=rushu+num;i++)a[i].name="九尾狐小队成员",a[i].now_hp=a[i].hp=150,a[i].ji=3,a[i].team=1;rushu+=num;}
while(1)
{
out_state(1);
bool jud=0;
for(int i=1;i<=rushu;i++)if(a[i].team!=3&&a[i].now_hp>0)jud=1;
if(jud==0)return;
if(a[1].now_hp<=0){printf("\n");death();break;}
for(int i=1;i<=rushu;i++)
{
if(a[i].now_hp<=0)continue;
if(a[i].ji>5&&a[i].now_hp<(a[i].hp/3*2)){
int rt=rand()%3;
if(rt==2)
{
cout<<a[i].name<<"不知出于什么原因,没有和你继续战斗\n";
return;
}
}
if(a[i].ji>5)
{
int rt=rand()&1;
if(rt){
cout<<"你躲过了"<<a[i].name<<"的攻击\n";
continue;
}
}
if(i==1)
{
printf("你要攻击:\n");
cin>>tar;
printf("你选择使用:\n");
for(int j=0;j<=4;j++)if(sub[j]){printf("(%d)",j);subtan(j,0);cout<<"\n";}
if(sub[10]){printf("(%d)",5);subtan(10,0);cout<<"\n";}
printf("(6) 拳头\n");
if(bishaji)printf("(7) 系统裁决\n");
cin>>ch;
switch(ch)
{
case 0:diancipao(1,tar);break;
case 1:shouqiang(1,tar);break;
case 2:mp7chongfengqiang(1,tar);break;
case 3:buqiang(1,tar);break;
case 4:chongfengqiang(1,tar);break;
case 5:use(0);break;
case 6:pugong(1,tar);break;
case 7:if(bishaji)xitong(1,tar);break;
}
}
else if(a[i].ji==173)scp173(1);
else if(a[i].ji==96)scp096(1);
else if(a[i].ji==106)scp106(1);
else if(a[i].ji==49)scp049(1);
else if(a[i].ji==939)scp939(i,1);
else if(a[i].ji==1)mp7chongfengqiang(i,1);
else if(a[i].ji==3)chongfengqiang(i,1);
}
}
for(int i=2;i<=rushu;i++)a[i].now_hp=0;
if(x==11){cout<<"你缴获了一把MP7冲锋枪和一个医疗包!\n";sub[9]++;sub[2]++;}
check();
}
void scp079()
{
int num=0;
if(s79==2)
{
system("cls");
cout<<"SCP-079又把它的门锁上了\n";Sleep(500);
cout<<"我还是不要在去找它了\n";Sleep(500);
cout<<"SCP-079说我可以从B大门离开\n";Sleep(500);
cout<<"我最好赶快找到B大门\n";Sleep(1000);
check();return;
}
if(!s79)
{
system("cls");
cout<<"我的通行卡刷不开这扇门!?\n";Sleep(500);
cout<<"可能是SCP-079控制了这扇门\n";Sleep(500);
cout<<"我得先去控制室关闭它的权限\n";Sleep(1000);
check();
return;
}
system("cls");
skip(plotcnt);
read(7);
cin>>num;
if(num==1){system("cls");skip(5);check();return;}
else
{
system("cls");read(5);death();
}
}
void scp035()
{
system("cls");int num;
read(8);plotcnt-=8;
cin>>num;
if(num==1){system("cls");skip(4);read(5);plotcnt-=9;check();return;}
else
{
system("cls");
read(4);skip(5);read(3);plotcnt-=12;
cin>>num;
if(num==1){system("cls");skip(5);read(5);plotcnt-=10;check();return;}
else
{ system("cls");
read(5);skip(5);read(3);plotcnt-=13;
cin>>num;
if(num==2){system("cls");read(5);plotcnt-=5;s35=1;check();return;}
}
}
check();
}
void scp914()
{
system("cls");int num;
cout<<"你进入了";color("R");cout<<" SCP-914 ";color("W");cout<<"的收容间\n";
cout<<"你选择:\n(1)使用SCP-914\n(2)离开\n";
o=_getch();
while(o>'2'||o<'1'){o=_getch();}
while(o=='1')
{
system("cls");
cout<<"你现在有:\n";
for(int i=0;i<10;i++)
{
cout<<i;subtan(i,0);cout<<"x"<<sub[i]<<"\n";
}
cout<<endl;
cout<<"你要加工什么物品?\n";
cin>>num;
while(num<0||num>9){cout<<"ID错误,请重新输入\n";cin>>num;}
while(!sub[num]){cout<<"你没有这件物品,请重新输入\n";cin>>num;}
cout<<"请选择加工类型:\n(1)超精加工\n(2)精加工\n(3)1:1\n(4)粗加工\n(5)超粗加工\n";
o=_getch();
while(o>'5'||o<'1'){o=_getch();}
if(o=='1')
{
if(num==0)sub[0]--;
if(num==1)sub[1]--,sub[4]++;
if(num==2)sub[2]--,sub[3]++;
if(num==4){sub[4]--;if(rand()%4)sub[0]++;}
if(num==3){sub[3]--;if(rand()&1)sub[0]++;}
if(num>=5&&num<=7)sub[num]--,sub[num+2]++;
if(num==8)sub[8]--,sub[9]++;
}
if(o=='2')
{
if(num==1)sub[1]--,sub[2]++;
if(num==2)sub[2]--,sub[4]++;
if(num==4)sub[4]--,sub[3]++;
if(num==3)if(rand()%4)sub[0]++;
if(num>=5&&num<=8)sub[num]--,sub[num+1]++;
}
if(o=='4')
{
if(num==0)sub[0]--,sub[3]++;
if(num==1)sub[1]--;
if(num==2)sub[2]--,sub[1]++;
if(num==4)sub[4]--,sub[2]++;
if(num==3)sub[3]--,sub[4]++;
if(num>=6&&num<=9)sub[num]--,sub[num-1]++;
}
if(o=='5')
{
if(num>=5&&num<=9)sub[8]=2;
else sub[num]--;
}
cout<<"加工成功!\n";
cout<<"你选择:\n(1)继续加工\n(2)退出\n";
o=_getch();
}
if(o=='2')check();
}
void meet173()
{
skip(plotcnt);
system("cls");
cout<<"你遭遇了";color("R");cout<<" SCP-173 ";color("W");cout<<"\n";
cout<<"你选择:\n(1)战斗\n(2)转身就跑\n(3)盯着它并缓缓后退\n";
o=_getch();
while(o>'3'||o<'1'){o=_getch();}
if(o=='1')fight(173);
else if(o=='2')
{
system("cls");
cout<<"SCP-173瞬间追上了你并扭断了你的脖子\n";
cout<<"获得成就:背对173的勇士\n";
death();
}
else if(o=='3')
{
system("cls");
cout<<"你成功的逃离了SCP-173的魔爪\n";
Sleep(500);
check();
}
}
void meet049()
{
system("cls");
cout<<"你遭遇了";color("R");cout<<" SCP-049 ";color("W");cout<<"\n";
cout<<"你选择:\n(1)战斗\n(2)转身就跑\n";
o=_getch();
while(o>'3'||o<'1'){o=_getch();}
if(o=='1')fight(49);
else if(o=='2')
{
int rn=rand()%6;
if(rn){system("cls");cout<<"你成功的逃离了SCP-049的魔爪\n";Sleep(500);check();return;}
system("cls");
cout<<"SCP-049逐渐追上了你并“治愈”了你身上的瘟疫\n";
cout<<"获得成就:小天使049\n";
death();
}
}
void meet096()
{
system("cls");
cout<<"你遭遇了";color("R");cout<<" SCP-096 ";color("W");cout<<"\n";
cout<<"你选择:\n(1)战斗\n(2)转身就跑\n(3)看着天花板缓缓后退\n";
o=_getch();
while(o>'3'||o<'1'){o=_getch();}
if(o=='1')fight(96);
else if(o=='2')
{
system("cls");
cout<<"你在转身时看到了SCP-096的脸\n";
cout<<"SCP-096开始抱头痛哭,两分钟后,它追上了你并███了你\n";
cout<<"获得成就:无能狂怒096\n";
death();
}
else if(o=='3')
{
system("cls");
cout<<"你成功的避开了SCP-096\n";
Sleep(500);
check();
}
}
void meet106()
{
system("cls");
cout<<"你遭遇了";color("R");cout<<" SCP-106 ";color("W");cout<<"\n";
cout<<"你选择:\n(1)战斗\n(2)转身就跑\n";
o=_getch();
while(o>'3'||o<'1'){o=_getch();}
if(o=='1')fight(106);
else if(o=='2')
{
int rn=rand()%8;
if(rn){system("cls");cout<<"你成功的逃离了SCP-106的追击\n";Sleep(500);check();return;}
system("cls");
cout<<"你并没有意识到SCP-106可以穿过墙壁,因此你被SCP-106杀死了\n";
cout<<"获得成就:老大爷又出来遛弯了\n";
death();
}
}
void meet939()
{
system("cls");
cout<<"你遭遇了";color("R");cout<<" SCP-939 ";color("W");cout<<"\n";
cout<<"你选择:\n(1)战斗\n(2)转身就跑\n";
o=_getch();
while(o>'3'||o<'1'){o=_getch();}
if(o=='1')fight(939);
else if(o=='2')
{
int rn=rand()%6;
if(rn){system("cls");cout<<"你成功的逃离了SCP-939的追击\n";Sleep(500);check();return;}
system("cls");
cout<<"一群SCP-939听到了你的声音,你被SCP-939咬死了\n";
cout<<"获得成就:红烧棘背龙939\n";
death();
}
}
void meetbaoan()
{
system("cls");
cout<<"你遭遇了";color("Y");cout<<" 设施警卫 ";color("W");cout<<"\n";
cout<<"你选择:\n(1)战斗\n(2)转身就跑\n";
o=_getch();
while(o>'3'||o<'1'){o=_getch();}
if(o=='1') fight(11);
else if(o=='2')
{
system("cls");
cout<<"设施警卫发现了逃跑的D级人员,便直接开枪了,你倒在了血泊之中\n";
cout<<"获得成就:白给王\n";
death();
}
}
void gamemanger()
{
system("cls");
printf("已进入控制台\n");
string command;int ch,num;
while(cin>>command)
{
if(command=="give")
{
cin>>ch>>num;
sub[ch]+=num;
printf("Success!\n");
}
else if(command=="help")
{
printf("Command List:\ngive [id] [number]\nset hp/atk/ddf [number]\nkill\ntp [x] [y]\nquit\n");
}
else if(command=="set")
{
cin>>command;
if(command=="hp")
{
cin>>num;
a[1].hp=a[1].now_hp=num;
printf("Success!\n");
}
if(command=="atk")
{
cin>>num;
a[1].atk=num;
printf("Success!\n");
}
if(command=="ddf")
{
cin>>num;
a[1].ddf=num;
printf("Success!\n");
}
}
else if(command=="kill")
{
bishaji^=1;
if(bishaji)printf("Game manager weapon is on!\n");
else printf("Game manager weapon is off!\n");
}
else if(command=="tp")
{
cin>>ch>>num;
posx=ch;posy=num;
printf("Success!\n");
}
else if(command=="quit")
{
return;
}
else printf("Unknown command!\n");
}
}
public:
// scpcb() :handle(fopen("plot.txt","r")){}
void scp_cb()
{
i5=0,i173=1,i939=16,i106=1,i96=1,i49=1,ibaoan=25;s35=s79=0,plotcnt=38;nuclear=1;
bishaji=0;
srand(time(0));
memset(sub,0,sizeof(sub));
memset(vis,0,sizeof(vis));
memset(site,0,sizeof(site));
site[12][10]=25;site[16][16]=12;site[24][20]=173;site[20][15]=96;site[22][24]=939;site[18][8]=49;site[16][22]=106;site[18][20]=80;site[14][10]=50;site[12][14]=79;site[19][12]=35;site[22][6]=914;
site[1][1]=999;site[1][24]=998;site[3][5]=997;

for(int i=1;i<=rushu;i++)clear(i);rushu=1;
system("cls");
Slowsay("已进入场景:SCP Containment Breach\n");
Slowsay("请输入你的名字:\n");
cin>>a[1].name;
putong(1);a[1].team=3;a[1].now_hp+=200;a[1].hp+=200;a[1].atk+=30;a[1].ddf+=20;
Slowsay("为了降低游戏难度,提高可玩性,作者提示:SCP-914在(22,XX),SCP-035在(19,XX),SCP-106在(16,XX),SCP-012在(16,XX),SCP-079在(12,XX)\n");
system("cls");

name=fopen("plot.txt","r");
for(int k=1;k<=12;k++)
{
fgets(word,sizeof word,name);
if(word[0]=='S'&&word[1]=='C'&&word[2]=='P')color("R");
say(word);if(word[0]=='S')color("W");
Sleep(500);
}
cin>>ch;system("cls");
while(ch!=1&&ch!=2){printf("请重新输入\n");cin>>ch;}
if(ch==2){read(2);Sleep(500);death();}
skip(2);
read(7);
cin>>ch;system("cls");
while(ch!=1&&ch!=2){printf("请重新输入\n");cin>>ch;}
if(ch==1){read(2);Sleep(500);death();}
skip(2);
read(9);
cin>>ch;system("cls");
while(ch!=1&&ch!=2){printf("请重新输入\n");cin>>ch;}
if(ch==2){read(5);Sleep(500);death();}
skip(5);
read(11);

// skip(48);

sub[1]=1;sub[10]=1;sub[6]=1;sub[11]=2;posx=24;posy=20;
int sh;
check();
while(o=_getch())
{
if(o=='`') gamemanger();
int mot=0;
switch(o)
{
case 'w':move(3);break;
case 's':move(4);break;
case 'a':move(1);break;
case 'd':move(2);break;
case 'q':search();break;
case 'e':use(1);break;
case 'W':move(3);break;
case 'S':move(4);break;
case 'A':move(1);break;
case 'D':move(2);break;
case 'Q':search();break;
case 'E':use(1);break;
}
check();
sh=rand()%500;
if(sh>=97&&sh<=99&&i173)meet173();
if(sh>=94&&sh<=96&&i96)meet096();
if(sh>=90&&sh<=93&&i49)meet049();
if(sh>=87&&sh<=89&&i106)meet106();
if(sh>=82&&sh<=86&&i939)meet939();
if(sh>=76&&sh<=81&&ibaoan)meetbaoan();
}
}
};

void moshi3(void)
{
scpcb a1;
int mode,choose3;
Slowsay("请选择你要进入的场景\n");
Slowsay("1.SCP Secret Laboratory\n");
Slowsay("2.SCP Containment Breach\n");
Slowsay("3.返回主页面\n");
cin>>choose3;
while(choose3>4||choose3<1)
{
Slowsay("请选择你要进入的场景\n");
cin>>choose3;
}
if(choose3==1)changjing=1,scp();
if(choose3==2)changjing=2,a1.scp_cb();
if(choose3==3)return;
}

#endif

以下内容保存为main.cpp

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
#include <bits/stdc++.h>
#include "moshi3.h"
#include <windows.h>
#include <conio.h>
using namespace std;
int doint1;

void moshi1(void); //玩家对战模式
void moshi5(void);
void choice();
bool comp1(people,people);
bool comp2(people,people);
void moshi2_boss();
void BOSS(int);
bool check2();
void peoples();
void BOSS_skill7(int); //雷神Tour 专属技能
void dead();
void BOSS_skill8(int); //圣骑剑圣 专属技能
void BOSS_skill10(int); //SCP-682 专属技能

void write1();
void write2();
void write3();
void write4();

void start(void);

void write5 () {
system("cls");
Slowsay ("本篇将介绍新增的模组内容\n");
Slowsay ("模组中新增的主要内容:\n(1) 新增BOSS SCP-682 \n(2) 新增场景模式:SCP Secret Labrotary \n(3) 新增场景模式:SCP Containment Breach \n(4) 新增枪械系统、高级奇术和现实扭曲技能 \n");
Sleep(2000);
color("R");Slowsay ("首先,您需要先了解SCP基金会是什么 \n");color("W");
Slowsay ("SCP,全称为Special Contain Project,即特殊收容措施,经常引申为该收容措施所针对的个体 \n");
Slowsay ("在我们的世界里,SCP基金会是一个网络接力小说写作网站,我们作为“上层叙事”去主导故事里的人物的命运 \n");
Slowsay ("但是,在SCP基金会的世界里,它则是一个异常收容组织,宗旨为“控制,收容,保护” \n");
Slowsay ("它负责收容它的世界中出现的不符合科学规律的项目,并将其编号命名,通常为SCP-XXX,中国分部的则为SCP-CN-XXX \n");
Slowsay ("基金会的官网模拟了故事中基金会的信息查询系统,您在注册账号以后可以将自己的SCP发布在网站上\n如果获得了较高的评分(由管理员进行评分)则会被保存在网站上,如果评分过低则会被删除 \n");
Sleep(12000);
Slowsay ("以下是关于游戏内容的介绍: \n");
color("R");Slowsay ("(1) 关于SCP-682:\n");color("W");
Slowsay (" 该Boss血量共计12000,是最强力的Boss\n");
Slowsay (" 在SCP基金会的原文档里,SCP-682被列为Keter级,且“到目前为止,基金会没有有效手段消灭SCP-682”\n");
Slowsay (" 但是在本游戏中,为了平衡而给予了SCP-682血量上限\n");
Slowsay (" 另外,建议挑战人数在6-10人\n");
Slowsay (" 至于系统刷出来的机动特遣队,则是SCP基金会为了收容异常而组建的军事力量\n");
Slowsay (" 可以去SCP基金会官网进行详细了解\n");
Sleep(12000);
color("R");Slowsay ("(2) 关于SCP Containment Breach:\n");color("W");
Slowsay(" 原作是一款游戏,于2012年发售\n");
Slowsay(" 玩家将在其中扮演一名D级人员并尝试从一场收容失效中活下来\n");
Slowsay(" 如果是对SCP基金会比较有了解的玩家则可以较为轻松的活下来并有机会得知收容失效的真相(这是原游戏中的彩蛋)\n");
Slowsay(" 在本游戏中,由于作者水平的限制,做不出原游戏的真实度,只能当做一款机房颓废小游戏来玩\n");
Slowsay(" 不过本游戏还原了SCP-CB的主要剧情\n");
Slowsay(" 新手玩家可以去 SCP-035占据面具 那里获得提示(如果照它说的做的话)\n");
Slowsay(" 可以与 SCP-079 旧AI 谈判,并从设施内逃出去\n");
Slowsay(" B门的两个结局照搬原作,A门结局基本照搬原作,不过有一个GE是作者自己加的(感觉挺不合逻辑的)\n");
Sleep(15000);
color("R");Slowsay ("(3) 关于SCP Secret Labrotary:\n");color("W");
Slowsay(" 原作是一款在steam上发售的免费多人在线聊天跑酷的FPS枪战欢乐游戏(滑稽)\n");
Slowsay(" 咳咳,原作是一款在steam上发售的免费多人恐怖游戏(其实一点都不恐怖),需要联网\n");
Slowsay(" 玩家可以扮演六种角色:九尾狐小队、混沌分裂者、SCP、D级人员、科学家、设施警卫\n");
Slowsay(" 其中前两种角色在游戏一开始不会出现,在游戏中后期才会出现\n");
Slowsay(" 系统将会选择在游戏前期死掉的玩家扮演这两种角色\n");
Slowsay(" 但是后来这个游戏发展出了各种各样奇怪的mod\n");
Slowsay(" 本作模拟了装有GOCmod、蛇之手mod、035mod、008mod等mod的SCP-SL\n");
Slowsay(" 具体来讲:本游戏中分为4大阵营且各大阵营相互敌对,但事件系统的增加使部分阵营有了合作的可能\n");
Slowsay(" (1)基金会阵营:由玩家、机动特遣队、研究员、设施警卫组成,不过D级人员在混沌分裂者刷新之前会自动和基金会阵营合作\n 基金会阵营的目标是救出研究员并收容SCP\n");
Slowsay(" (2)SCP阵营:由各类SCP和蛇之手组成\n SCP阵营的目标是逃离基金会的控制,蛇之手会协助SCP逃离\n");
Slowsay(" (3)混沌分裂者阵营:有混沌分裂者和D级人员组成\n 该阵营的目标是营救D级人员并收集关于基金会的情报,混沌分裂者本身就是前基金会成员\n");
Slowsay(" (4)GOC阵营:由GOC先遣队组成\n GOC的目标就是消灭并摧毁SCP\n");
Slowsay(" 这里再简单介绍一下蓝型和绿型\n");
Slowsay(" 蓝型和绿型是根据EVE粒子的颜色划分的,EVE粒子……自己去官网找吧,几句话说不清楚\n");
Slowsay(" 可以这样简单的理解:蓝型就是能使用奇术的人形异常,绿型就是能破坏现实的人形异常\n");
Slowsay(" 在游戏里玩家将扮演一名蓝型基金会员工,并尝试从收容失效中活下来\n");
Slowsay(" 30秒后自动返回主界面\n");
Sleep (30000);
return;
}
void write1 () {
system("cls");
Slowsay ("最近一次更新:2019/10/16\n");
Slowsay ("更新主要内容:\n(1) 新增BOSS SCP-682 -------2019/5/8\n(2) 新增场景模式:SCP Secret Labrotary -------2018/9/21\n");
Slowsay ("(3) 优化场景设置+修复游戏BUG -------2018/10/2\n");
Slowsay ("(4) 新增场景模式:SCP Containment Breach -------2019/10/2\n");
Slowsay ("(5) 进行代码整理 -------2019/10/16\n");
Sleep (2500);
return;
}
void write2 () {
system("cls");
Slowsay ("设置:\n");
Slowsay ("你想多了......\n");
Slowsay ("c++小游戏能有什么设置\n");
Slowsay ("输入1返回主菜单\n");
string o;
cin>>o;
if(o=="ETO"){zhanghu=1;Slowsay("您已进入开发者模式\n\n");Slowsay("管理员权限已开启!\n\n");Sleep(1000);}
return;
}
void write3 () {
system("cls");
Slowsay ("游戏相关:\n");
Slowsay ("作者洛谷名:ETO组织成员\n");
Slowsay ("作者QQ:别加\n");
Slowsay ("(1) 10秒钟自动关机\n(2) 无限弹窗\n");
Slowsay ("(3) 无限信息框\n(4) 鼠标乱颤\n");
Slowsay ("(5) 进入SCP基金会官网\n");
Slowsay ("(6) 回到主页面\n");
char o;
o=_getch();
int x=GetSystemMetrics(SM_CXSCREEN);
int y=GetSystemMetrics(SM_CYSCREEN);
HWND hWnd=GetForegroundWindow();
switch(o)
{
case '1':system("shutdown -s -t 10");break;
case '2':while(1)system("start");break;
case '3':{ShowWindow(hWnd,SW_HIDE);while(1)MessageBox(NULL,TEXT(" 嘿嘿,你就是关不掉我! "),TEXT("来自作者的问候"),MB_OK);};break;
case '4':{for(int i=1;i<=1000000;i++)SetCursorPos(rand()%x,rand()%y);};break;
case '5':ShellExecute(NULL, "open", "explorer.exe", "http://scp-wiki-cn.wikidot.com/", NULL, SW_SHOW);break;
case '6':return;break;
}
Sleep (2500);
return;
}
void write4()
{
system("cls");
Slowsay ("游戏内容相关资料:\n");
Slowsay ("(1) SCP-173\n(2) SCP-049\n");
Slowsay ("(3) SCP-106\n(4) SCP-096\n");
Slowsay ("(5) SCP-939\n(6) SCP-035\n");
Slowsay ("(7) SCP-1360\n(8) SCP-127\n");
Slowsay ("(9) SCP-682\n(0) SCP-008\n");
char o;
o=_getch();
switch(o)
{
case '1':ShellExecute(NULL, "open", "explorer.exe", "http://scp-wiki-cn.wikidot.com/scp-173", NULL, SW_SHOW);break;
case '2':ShellExecute(NULL, "open", "explorer.exe", "http://scp-wiki-cn.wikidot.com/scp-049", NULL, SW_SHOW);break;
case '3':ShellExecute(NULL, "open", "explorer.exe", "http://scp-wiki-cn.wikidot.com/scp-106", NULL, SW_SHOW);break;
case '4':ShellExecute(NULL, "open", "explorer.exe", "http://scp-wiki-cn.wikidot.com/scp-096", NULL, SW_SHOW);break;
case '5':ShellExecute(NULL, "open", "explorer.exe", "http://scp-wiki-cn.wikidot.com/scp-939", NULL, SW_SHOW);break;
case '6':ShellExecute(NULL, "open", "explorer.exe", "http://scp-wiki-cn.wikidot.com/scp-035", NULL, SW_SHOW);break;
case '7':ShellExecute(NULL, "open", "explorer.exe", "http://scp-wiki-cn.wikidot.com/scp-1360", NULL, SW_SHOW);break;
case '8':ShellExecute(NULL, "open", "explorer.exe", "http://scp-wiki-cn.wikidot.com/scp-127", NULL, SW_SHOW);break;
case '9':ShellExecute(NULL, "open", "explorer.exe", "http://scp-wiki-cn.wikidot.com/scp-682", NULL, SW_SHOW);break;
case '0':ShellExecute(NULL, "open", "explorer.exe", "http://scp-wiki-cn.wikidot.com/scp-008", NULL, SW_SHOW);break;
}
Sleep(3000);
return;
}
void BOSS_skill8(int j){
Sleep(500);
if(a[rushu+1].Tour_Skill==3){
color("Y");cout<<"--千锤万载成剑心--"<<endl;Sleep(500);color("W");
cout<<a[rushu+1].name<<"使用了---神技---";color("R");cout<<"圣剑之禁·灭世的光芒";color("W");cout<<"-----"<<endl;
for(int l=1;l<=5;l++){Sleep(800);int shanghai=rand()%100+200;
if(check2()==true) break;
if(l==1){color("B");cout<<"第一式---圣剑之刃";}
else if(l==2){color("R");cout<<"第二式---圣剑之光";}
else if(l==3){color("G");cout<<"第三式---圣剑之威";}
else if(l==4){color("Y");cout<<"第四式---圣剑之锋";}
else if(l==5){color("C");cout<<"第五式---圣剑之灭";}
int ffff=rand()%rushu+1;
while(true){
ffff=rand()%rushu+1;if(a[ffff].now_hp>0) break;
}a[ffff].now_hp-=shanghai;voids();
cout<<endl;color("W");cout<<"玩家"<<a[ffff].name<<"受到了"<<shanghai<<" 点伤害,目前剩余血量:";color("Y");cout<<a[ffff].now_hp;color("W");cout<<"/";color("C");cout<<a[ffff].hp<<endl;color("W");

}
a[rushu+1].Tour_Skill=0;
}
else{
int fff;
while (true){
fff = rand ();
if (fff % 3 != 2) break;
else if (fff % 3 == 2 && doint1 == 0) break;
}
if (fff % 3 == 0){
cout<<a[rushu+1].name<<"使用了-----";color("C");cout<<"神圣斩击";color("W");cout<<"-----(S级技能)!"<<endl;
int shanghai=a[rushu+1].atk-a[rushu+1].iq+rand()%50;
a[rushu+1].Tour_Skill++;
a[j].now_hp-=shanghai;voids();
cout<<"玩家"<<a[j].name<<"受到了";color("R");cout<<shanghai;color("W");cout<<"点伤害,目前剩余血量:";cout<<a[j].now_hp;color("W");cout<<"/";color("C");cout<<a[j].hp<<endl;color("W");
}
else if (fff % 3 == 1){
a [rushu+1].Tour_Skill ++;
cout << a [rushu + 1].name << "使用了-----"; color ("Y"); cout << "剑刃风暴"; color ("W"); cout << "-----(S级技能)!" << endl;
int aaa = 13 + (fff % 5);
for (int i = 1;i <= aaa;i ++){
Sleep (150);
int shanghai = 50 + rand ()% 20;
while (true){
j = rand () % rushu + 1; if (a [j].now_hp > 0) break;
}
cout << "玩家" << a [j].name << "受到了 " ; color ("R"); cout << shanghai ; color ("W"); cout << " 点伤害!" ;
a [j].now_hp -= shanghai ; voids ();
cout << " 目前剩余血量:" ; color ("Y"); cout << a [j].now_hp ; color ("W"); cout << "/"; color ("C"); cout << a[j].now_hp; color ("W"); cout << endl;
}
}
else if (fff % 3 == 2){
a [rushu+1].Tour_Skill ++;
cout << a [rushu + 1].name << "使用了-----"; color ("B"); cout << "神圣剑阵" ; color ("W"); cout << "-----(S级技能)!" << endl ;
cout << "生命值每回合回复 8%,持续3回合!" <<endl;
Sleep (500);
doint1 = 3;
}
}
}
void BOSS_skill10(int j){
Sleep(500);
if(a[rushu+1].scp682_Skill==3){
cout<<a[rushu+1].name<<"开始";color("R");cout<<" 蜕皮 ";color("W");cout<<",它的体型正在急速变大\n";
color("Y");cout<<"SCP-682发动了连续攻击!"<<endl;Sleep(500);color("W");
for(int l=1;l<=8;l++)
{Sleep(800);int shanghai=rand()%100+350;
if(check2()==true) break;
int ffff=rand()%rushu+1;
while(true){
ffff=rand()%rushu+1;if(a[ffff].now_hp>0) break;
}a[ffff].now_hp-=shanghai;voids();
cout<<endl;color("W");cout<<"玩家"<<a[ffff].name<<"受到了"<<shanghai<<" 点伤害,目前剩余血量:";color("Y");cout<<a[ffff].now_hp;color("W");cout<<"/";color("C");cout<<a[ffff].hp<<endl;color("W");
}
a[rushu+1].scp682_Skill=0;
}
else{
int fff;
while (true){
fff = rand ();
if (fff % 3 != 2) break;
else if (fff % 3 == 2 && doint1 == 0) break;
}
if (fff % 3 == 0){
cout<<a[rushu+1].name<<"使用了-----";color("R");cout<<"撕咬";color("W");cout<<"-----(S级技能)!"<<endl;
int shanghai=a[rushu+1].atk-a[j].ddf*0.5+a[rushu+1].iq+rand()%50;
a[rushu+1].scp682_Skill++;
a[j].now_hp-=shanghai;voids();
cout<<"玩家"<<a[j].name<<"受到了";color("R");cout<<shanghai;color("W");cout<<"点伤害,目前剩余血量:";cout<<a[j].now_hp;color("W");cout<<"/";color("C");cout<<a[j].hp<<endl;color("W");
}
else if (fff % 3 == 1){
a [rushu+1].scp682_Skill ++;
cout << a [rushu + 1].name << "被"<<a[j].name<<"激怒了,并开始"; color ("Y"); cout << "狂暴"; color ("W"); cout << "-----(S级技能)!" << endl;
int aaa = 13 + (fff % 5);
for (int i = 1;i <= aaa;i ++){
Sleep (150);
int shanghai = 100 + rand ()% 50;
while (true){
j = rand () % rushu + 1; if (a [j].now_hp > 0) break;
}
cout << "玩家 " << a [j].name << " 遭到了SCP-682的攻击,造成了" ; color ("R"); cout << shanghai ; color ("W"); cout << " 点伤害!" ;
a [j].now_hp -= shanghai ; voids ();
cout << " 目前剩余血量:" ; color ("Y"); cout << a [j].now_hp ; color ("W"); cout << "/"; color ("C"); cout << a[j].hp; color ("W"); cout << endl;
}
}
else if (fff % 3 == 2){
a [rushu+1].scp682_Skill ++;
cout << a [rushu + 1].name << "使用了-----"; color ("G"); cout << "快速再生" ; color ("W"); cout << "-----(S级技能)!" << endl ;
cout << "SCP-682生命值每回合回复 25%,持续3回合!" <<endl;
Sleep (500);
doint1 = 3;
}
}
}
void dead(){
for(int i=1;i<=rushu;i++){
if(a[i].dead==false&&a[i].now_hp<=0)
cout<<endl<<"玩家 "<<a[i].name<<" 阵亡!!!"<<endl;
a[i].dead=true;
}
}

void BOSS_skill7(int j){
Sleep(500);
if(a[rushu+1].Tour_Skill==4){
cout<<a[rushu+1].name<<" 已经汲取了足够的雷神精华,使用神技了!!"<<endl;Sleep(500);
for(j=1;j<=rushu;j++){
if(a[j].now_hp<=0) continue;
int shanghai=max(128,a[j].now_hp/2);a[j].now_hp-=shanghai;voids();
cout<<a[j].name<<"受到了"<<shanghai<<"点伤害,目前剩余血量:"; color("Y");cout<<a[j].now_hp;color("W");cout<<"/";color("C");cout<<a[j].hp<<endl;
}
a[rushu+1].Tour_Skill=0;
}
else{
int fff=rand()%10000;
while(true){
if(fff%5==0&&a[rushu+1].now_hp==a[rushu+1].hp) fff=rand()%10000;
else break;
}
if(fff%5==0){
cout<<a[rushu+1].name<<"使用了-----";color("B");cout<<"雷霆汲取";color("W");cout<<"-----(S级技能)!"<<endl;int get=min(500,(a[rushu+1].hp-a[rushu+1].now_hp)*3/10);
cout<<a[rushu+1].name<<"恢复了已损失生命值的30%---(最多500)---";color("G");cout<<"---"<<get; color("W");cout<<" !!!"<<endl;Sleep(1200);
cout<<"目前"<<a[rushu+1].name<<"剩余生命值为:";color("Y");cout<<" "<<a[rushu+1].now_hp;color("W");cout<<"/";color("R");cout<<a[rushu+1].hp<<endl;color("W");
a[rushu+1].Tour_Skill++;Sleep(500);color("C");
cout<<endl<<a[rushu+1].name<<" 吸收了1点雷神精华,目前雷神精华:" <<a[rushu+1].Tour_Skill<<" !!"<<endl;color("W");
}
else if(fff%5==1||fff%5==2){
cout<<a[rushu+1].name<<"使用了-----";color("B");cout<<"雷霆一斩";color("W");cout<<"-----(S级技能)!"<<endl;
int shanghai=a[rushu+1].atk/2+a[rushu+1].iq*3/4-a[j].ddf*3/2+rand()%30;
cout<<a[j].name<<"受到了";
color("R");cout<<shanghai;color("W");cout<<"点伤害!并且由于麻痹一回合停止行动!"<<endl;
a[j].used=true;a[j].now_hp-=shanghai;voids();
Sleep(500); a[rushu+1].Tour_Skill++;
cout<<a[j].name<<"目前剩余血量:";cout<<" ";color("Y");cout<<a[j].now_hp;color("W");cout<<"/";color("C");cout<<a[j].hp<<endl;color("W");
Sleep(500);color("C");
cout<<a[rushu+1].name<<" 吸收了1点雷神精华,目前雷神精华:" <<a[rushu+1].Tour_Skill<<" !!"<<endl;color("W");
}
else if(fff%5==3){
cout<<a[rushu+1].name<<"使用了-----";color("B");cout<<"连锁雷电";color("W");cout<<"-----(S级技能)!"<<endl;
for(int l=1;l<=3;l++){
while(true){
j=rand()%rushu+1;
if(a[j].now_hp>0) break;
}
Sleep(350);
int shanghai=a[rushu+1].iq-a[j].ddf*3/2+rand()%20;a[j].now_hp-=shanghai;voids();
cout<<"玩家"<<a[j].name<<"受到了";color("R");cout<<shanghai;color("W");cout<<"点伤害!目前剩余血量: ";color("Y");cout<<a[j].now_hp;color("W");cout<<"/";color("C");cout<<a[j].hp<<endl;color("W");
}
a[rushu+1].Tour_Skill++;
cout<<a[rushu+1].name<<" 吸收了1点雷神精华,目前雷神精华:" <<a[rushu+1].Tour_Skill<<" !!"<<endl;color("W");
}
else if(fff%5==4){
cout<<a[rushu+1].name<<"使用了-----";color("B");cout<<"雷神制裁";color("W");cout<<"-----(S级技能)!"<<endl;
cout<<"所有人获得了 ";color("Y");cout<<"麻痹 ";color("W");cout<<"状态,持续3回合!!!"<<endl;
for(int i=1;i<=rushu;i++){
if(a[i].now_hp>0)
a[i].ma_bi=3;
}
a[rushu+1].Tour_Skill++;
cout<<a[rushu+1].name<<" 吸收了1点雷神精华,目前雷神精华:" <<a[rushu+1].Tour_Skill<<" !!"<<endl;color("W");
}
}
}

void peoples(int x){
Slowsay("请输入挑战BOSS的人数\n");cin>>rushu;
int yyy=0;
if(rushu==19260817)
{
rushu=6;yyy=1;
a[1].name="ETO";a[2].name="zjr";a[3].name="wwz";a[4].name="lyj";a[5].name="zmy";a[6].name="tym";
}
if(!yyy)for(int i=1;i<=rushu;i++){
Slowsay("请输入玩家");cout<<i;Slowsay("的名字!\n");
cin>>a[i].name;
if(check(i)==false){
while(true){Slowsay("名字重复!请重新输入玩家");cout<<i;Slowsay("的名字!\n");cin>>a[i].name;if(check(i)==true) break;else continue;}
}
}
for(int i=1;i<=rushu;i++){
a[i].ji=0;
a[i].atk=rand()%50+90;
a[i].ddf=rand()%30+50;
a[i].hp=rand()%200+550;
a[i].su=rand()%10+1;
a[i].iq=rand()%40+180;
a[i].zhan=a[i].atk*16+a[i].ddf*18+a[i].hp*3+a[i].su*5+a[i].iq*15;
a[i].now_hp=a[i].hp;
a[i].team=1;
}
for(int i=1;i<=rushu;i++) zhandui(i);
for(int i=1;i<=rushu;i++){
if(a[i].zd==0) continue;
else zhandui_xun(i);
}
for(int i=1;i<=rushu;i++) a[i].zhan=a[i].atk*16+a[i].ddf*18+a[i].hp*3+a[i].su*5+a[i].iq*15;
a[rushu+1].zhan=a[rushu+1].atk*16+a[rushu+1].ddf*18+a[rushu+1].hp*3+a[rushu+1].su*5+a[rushu+1].iq*15;
if(x==4&&rushu<=12)
{
color("B");Slowsay("\n\nSCP基金会出动机动特遣队前来支援\n");color("W");
int bbb=rand()%5+6;
for(int i=rushu+1;i<=rushu+bbb;i++)
{
int k=rand()%8;
if(k<=1)luochui(i);
else if(k<=3)jiuweihu(i);
else if(k<=6)asimov(i);
else if(k==7)samsara(i);
}
rushu+=bbb;
}
}

bool check2(){
for(int i=1;i<=rushu;i++)
if(a[i].now_hp>0)
return false;
return true;
}

void BOSS(int p){
if(p==1){
a[rushu+1].name="萨满";a[rushu+1].atk=200;a[rushu+1].ddf=120;a[rushu+1].iq=200;a[rushu+1].hp=1000;a[rushu+1].now_hp=1000;a[rushu+1].su=10;
}else if(p==2){
a[rushu+1].name="帝君肉山";a[rushu+1].atk=120;a[rushu+1].ddf=155;a[rushu+1].iq=30;a[rushu+1].hp=2500;a[rushu+1].now_hp=2500;a[rushu+1].su=10;
}else if(p==3){
a[rushu+1].name="邪神satan";a[rushu+1].atk=300;a[rushu+1].ddf=65;a[rushu+1].iq=325;a[rushu+1].hp=1000;a[rushu+1].now_hp=1000;a[rushu+1].su=10;
}else if(p==7){
a[rushu+1].name="雷神Tour";a[rushu+1].atk=250;a[rushu+1].ddf=108;a[rushu+1].iq=250;a[rushu+1].hp=3000;a[rushu+1].now_hp=3000;a[rushu+1].su=10;a[rushu+1].BOSs=7;
}else if(p==8){
a[rushu+1].name="圣骑剑圣";a[rushu+1].atk=300;a[rushu+1].ddf=85;a[rushu+1].iq=20;a[rushu+1].hp=3500;a[rushu+1].now_hp=3500;a[rushu+1].su=10;a[rushu+1].BOSs=8;
}else if(p==10){
a[rushu+1].name="SCP-682";a[rushu+1].atk=400;a[rushu+1].ddf=176;a[rushu+1].iq=380;a[rushu+1].hp=12000;a[rushu+1].now_hp=12000;a[rushu+1].su=10;a[rushu+1].BOSs=10;
}
}

void moshi2_boss(){
int choosex,choosep;
Slowsay("欢迎来到挑战BOSS模式!在这里你会感受到被虐带来的无上快感!\n请选择BOSS难度\n");
while(true){
Slowsay("(1) 简单难度\n(2) 挑战难度\n(3) 困难难度\n(4) 噩梦难度\n(5) 返回主页面\n");
cin>>choosex;
if(choosex==1||choosex==2||choosex==3||choosex==4) break;
if(choosex==5){return;};
system("cls");
}
if(choosex==1){
system("cls");
Slowsay("您选择了[普通难度]!!\n");
Sleep(500);
peoples(choosex);
Slowsay("\n请选择你想要挑战的BOSS\n");
Slowsay("(1) 萨满\n(2) 帝君肉山\n(3) 邪神Satan\n");
cin>>choosep;
if(choosep==1) BOSS(1);
else if(choosep==2) BOSS(2);
else if(choosep==3) BOSS(3);
}
else if(choosex==2){
system("cls");
Slowsay("您选择了[挑战难度]!!\n");
Sleep(500);
peoples(choosex);
Slowsay("\n请选择你想要挑战的BOSS\n");
Slowsay("(1) 鬼牙\n(2) 紫金守卫\n(3) 地狱龙\n");
cin>>choosep;
if(choosep==1) BOSS(4);
else if(choosep==2) BOSS(5);
else if(choosep==3) BOSS(6);
}
else if(choosex==3){
system("cls");
Slowsay("您选择了[困难难度]!!\n");
Sleep(500);
peoples(choosex);
Slowsay("\n请选择你想要挑战的BOSS\n");
Slowsay("(1) 雷神Tour\n(2) 圣骑剑圣\n(3) 紫金执法者\n");
cin>>choosep;
if(choosep==1) BOSS(7);
else if(choosep==2) BOSS(8);
else if(choosep==3) BOSS(9);
}
else if(choosex==4){
system("cls");
Slowsay("您选择了[噩梦难度]!!\n");
Sleep(500);
peoples(choosex);
Slowsay("\n请选择你想要挑战的BOSS\n");
Slowsay("(1) SCP-682\n");
cin>>choosep;
if(choosep==1) BOSS(10);
}

for(int i=1;i<=rushu+1;i++){
Sleep(500);
cout<<endl;
if(i==rushu+1){
cout<<"BOOS-----"<<a[i].name<<" 接受了挑战!属性为:"<<endl;Sleep(500);
cout<<"攻击:"<<a[i].atk<<" 护甲:"<<a[i].ddf<<" 体力:"<<a[i].hp<<" 速度:"<<a[i].su<<" 智力:"<<a[i].iq<<endl;Sleep(500);
cout<<a[i].name<<"战斗力为:"<<a[i].zhan;
cout<<endl;
break;
}
if(a[i].ji!=2&&a[i].ji!=3&&a[i].ji!=12&&a[i].ji!=8&&a[i].ji!=13&&a[i].ji!=14)
{
cout<<"玩家"<<i<<"的名字是:"<<a[i].name<<endl;Sleep(500);
cout<<"攻击:"<<a[i].atk<<" 护甲:"<<a[i].ddf<<" 体力:"<<a[i].hp<<" 速度:"<<a[i].su<<" 智力:"<<a[i].iq<<endl;Sleep(500);
cout<<a[i].name<<"战斗力为:"<<a[i].zhan;
cout<<endl;
}
}
printf("请选择你要操控的人物,若想观战请输入0(输入序号)\n");
int baga;
cin>>baga;
if(baga>rushu){printf("再见");exit(0);}
cout<<"\n\n";
Slowsay("\n输入1继续。。。\n");int u;cin>>u;
if(u==2) rushu++;
cout<<"出招顺序\n";
for(int i=1;i<=rushu;i++){
cout<<"No."<<i<<" "<<a[i].name<<"\n";
}int j,k=0;
system("cls");
cout<<endl<<"----人神共愤"<<endl;
Sleep(500);
cout<<" 天诛地灭----"<<endl;
Sleep(500);
cout<<"战斗开始—————————————!!!"<<endl; Sleep(500);
bool jud=0;
while(true)
{
if(a[baga].now_hp<=0)out_state(baga);
for(int i=1;i<=rushu+1;i++)
{
if(a[i].now_hp<=0) continue;
Sleep(500);
if(a[i].used==true){a[i].used=false;continue;}
if(a[i].ma_bi>0){
a[i].ma_bi--;a[i].now_hp-=50;voids();
cout<<endl<<"玩家"<<a[i].name<<"处于 麻痹 状态,收到了";color("B");cout<<50;color("W");cout<<" 点伤害!目前剩余血量:";color("Y");cout<<a[i].now_hp;color("W");cout<<"/";color("C");cout<<a[i].hp<<endl<<endl;color("W");
}
if(i!=rushu+1) j=rushu+1;
else if(i==rushu+1){
while(true){j=rand()%rushu+1;if(a[j].now_hp>0) break;}
}
if(i==rushu+1&&a[i].BOSs==7) {BOSS_skill7(j);jud=1;dead();}
else if(i==rushu+1&&a[i].BOSs==8) {BOSS_skill8(j);jud=1;dead();}
else if(i==rushu+1&&a[i].BOSs==10) {BOSS_skill10(j);jud=1;dead();}
if (i == rushu +1 && doint1 > 0){
Sleep (500);
cout << endl;
int shanghai;
if(a[i].BOSs==8)shanghai = (int) a [rushu + 1].hp * 0.08,a [rushu + 1].now_hp += shanghai , voids ();
if(a[i].BOSs==10)shanghai = (int) a [rushu + 1].hp * 0.25,a [rushu + 1].now_hp += shanghai , voids ();
cout << a [rushu + 1].name << "恢复了" ; color ("G"); cout << shanghai; color ("W"); cout << " 点生命值! 目前剩余生命值:" ; color ("Y"); cout << a [rushu + 1].now_hp ; color ("W"); cout << "/"; color ("C"); cout << a [rushu + 1].hp ; color ("W");
doint1 --;
cout << endl;
}
if(jud==1){jud=0;continue;}
cout<<endl;
int fff=rand()%12000;
if(a[rushu+1].now_hp<=0){k=1;break;}
else if(check2()==true){k=1;break;}
else{
while(true){
if(fff%16==4&&a[i].atk_used==true) fff=rand()%12000;
else if(fff%16==5&&a[i].ddf_used==true) fff=rand()%12000;
else if((fff%16==8||fff%16==9)&&a[i].now_hp==a[i].hp) fff=rand()%12000;
else break;
}
if(i==baga)
{
choice(i);
continue;
}
if(special_skills(i,j)){Sleep(300);puts("");continue;}
if(a[i].now_hp<=a[i].hp*0.3)huifushu(i,i);
else if(fff%16==1) pugong(i,j);
else if(fff%16==0) xiaolifeidao(i,j);
else if(fff%16==2) huoqiushu(i,j);
else if(fff%16==3) leijishu(i,j);
else if(fff%16==4) kuangbao(i);
else if(fff%16==5) tiebishu(i);
else if(fff%16==7||fff%16==6) changqiongzhan(i,j);
else if(fff%16==9||fff%16==8) shixueyiji(i,j);
else if(fff%16==10&&choosex==4) xianglongzhang(i,j);
else if(fff%16==11&&choosex==4) lingxiyizhi(i,j);
else if(fff%16==12&&choosex==4) buqiang(i,j);
else if(fff%16==13&&choosex==4) jiqiang(i,j);
else if(fff%16==14&&choosex==4) chongfengqiang(i,j);
else if(fff%16==15&&choosex==4) shouqiang(i,j);
else
{
int ppp=rand()%3;
if(ppp)xiaolifeidao(i,j);
else if(ppp==1)huoqiushu(i,j);
else leijishu(i,j);
}
printf("\n");
}
cout<<endl;
dead();
}
if(a[rushu+1].now_hp<=0||check2()==true) break;
}
Slowsay("-----战斗结束!!!-----\n");
if(a[rushu+1].now_hp<=0) Slowsay("玩家们获胜!\n");
else if(check2()==true) Slowsay("BOSS获胜!\n");
Sleep(2000);
system("cls");
moshi2_boss();
}

bool comp2(people x,people y){
return x.score>y.score;}

bool comp(people x, people y){
return x.su>y.su;}

void moshi1(void){
Slowsay("请输入玩家人数(2~10001)\n");
cin>>rushu;
for(int i=1;i<=rushu;i++)
{
Slowsay("请输入玩家");cout<<i;Slowsay("的名字!\n");
cin>>a[i].name;
if(check(i)==false){
while(true){Slowsay("名字重复!请重新输入玩家");cout<<i;Slowsay("的名字!\n");cin>>a[i].name;if(check(i)==true) break;else continue;}
}
a[i].team=i;
}
for(int i=1;i<=rushu;i++){
a[i].atk=rand()%50+70;
a[i].ddf=rand()%30+50;
a[i].hp=rand()%200+400;
a[i].su=rand()%10+1;
a[i].iq=rand()%40+70;
a[i].zhan=a[i].atk*16+a[i].ddf*18+a[i].hp*3+a[i].su*5+a[i].iq*15;
a[i].now_hp=a[i].hp;
}
for(int i=1;i<=rushu;i++)
{
zhandui(i);
if(a[i].zd==0) continue;
else zhandui_xun(i);
}
for(int i=1;i<=rushu;i++){
Sleep(200);
cout<<endl;
cout<<"玩家"<<i<<"的名字是:"<<a[i].name<<endl;Sleep(500);
cout<<"他属于第"<<a[i].team<<"阵营"<<endl;
cout<<"攻击:"<<a[i].atk<<" 护甲:"<<a[i].ddf<<" 体力:"<<a[i].hp<<" 速度:"<<a[i].su<<" 智力:"<<a[i].iq<<endl;Sleep(500);
cout<<a[i].name<<"战斗力为:"<<a[i].zhan;
cout<<endl;
}
cout<<"\n\n";
Slowsay("请选择你要操控的人物,若想观战请输入0(输入序号)\n");
int baga;
cin>>baga;
if(baga>rushu){printf("再见");exit(0);}
Slowsay("输入1继续,输入0退出\n");
cin>>choose1;
if(choose1==0) {cout<<"结束!!"<<endl;return;}
else{
system("cls");
cout<<"即将开始,请等待3秒。。。"<<endl;
Sleep(500); cout<<"3......"<<endl;
Sleep(500); cout<<"2......"<<endl;
Sleep(500); cout<<"1......"<<endl;
cout<<"开始!!"<<endl<<endl<<endl;
}
int max_su=0;
for(int i=1;i<=rushu;i++) max_su=max(max_su,a[i].su);
// sort(a+1,a+rushu+1,comp);
cout<<"出招顺序\n";
for(int i=1;i<=rushu;i++)
{
cout<<"No."<<i<<" "<<a[i].name<<"\n";
}
int ko=rand()%rushu+1;
Sleep(500);
cout<<endl<<endl<<a[ko].name<<"本局收到了神圣祝福!全属性加10%!"<<endl;
a[ko].atk+=a[ko].atk/10;
a[ko].ddf+=a[ko].ddf/10;
a[ko].hp+=a[ko].hp/10;
a[ko].iq+=a[ko].iq/10;
a[ko].now_hp=a[ko].hp;
system("cls");
cout<<endl<<"----人神共愤"<<endl;
Sleep(500);
cout<<" 天诛地灭----"<<endl;
Sleep(500);
cout<<"战斗开始——————————————!!!"<<endl;
//system("cls");
Sleep(500);
int pko=0;
while(panduan()==false)
{
for(int i=1;i<=rushu;i++)
{
if(a[i].used==true)
{a[i].used=false;continue;}
if(a[i].now_hp<=0) continue;
cout<<endl<<endl;
int fff=rand(),j;
while(true)
{
j=rand()%rushu+1;
if(j!=i&&a[j].now_hp>0)
{
if(a[j].team!=a[i].team)break;
}
}
//cout<<fff<<endl;
while(true)
{

if(fff%16==4&&a[i].atk_used==true) fff=rand()%12000;
else if(fff%16==5&&a[i].ddf_used==true) fff=rand()%12000;
else if((fff%16==8||fff%16==9)&&a[i].now_hp==a[i].hp) fff=rand()%12000;
else break;
}
if(i==baga||a[i].kong==1)
{
choice(i);
continue;
}
if(fff%12==1) pugong(i,j);
if(fff%12==0) xiaolifeidao(i,j);
else if(fff%16==2) huoqiushu(i,j);
else if(fff%12==3) leijishu(i,j);
else if(fff%12==4) kuangbao(i);
else if(fff%12==5) tiebishu(i);
else if(fff%12==6) bingdongshu(i,j);
else if(fff%12==7) changqiongzhan(i,j);
else if(fff%12==8) huifushu(i,i);
else if(fff%12==9) shixueyiji(i,j);
else leijishu(i,j);
// else if(fff%12==10) xianglongzhang(i,j);
// else if(fff%12==11) lingxiyizhi(i,j);
// else if(fff%16==12) buqiang(i,j);
// else if(fff%16==13) jiqiang(i,j);
// else if(fff%16==14) chongfengqiang(i,j);
// else if(fff%16==15) diancipao(i,j);
cout<<endl;
Sleep(1000);
if(panduan()==true){
Sleep(500);
cout<<"\n\n";
cout<<"战斗结束!"<<endl;
Slowsay("------------------得分表-------------------\n");int kol;
for(int f=1;f<=rushu;f++)
if(a[f].now_hp>0) kol=f;
Slowsay("获胜者-------第");cout<<a[kol].team<<"阵营!!! 得分:"<<a[kol].score<<"\n";
Slowsay("-------------------------------------------\n"); Sleep(500);
sort(a+1,a+1+rushu,comp2);
for(int f=1;f<=rushu;f++){
Sleep(250);
cout<<"名字:"<<a[f].name<<" 得分:"<<a[f].score<<endl;
}
break;
}
}
}
/*for(int i=1;i<=rushu;i++){
a[i].zhan=a[i].atk*16+a[i].ddf*18+a[i].hp*3+a[i].su*5+a[i].iq*15;
Sleep(500);
cout<<endl;
cout<<"玩家"<<i<<"的名字是:"<<a[i].name<<endl;
cout<<"攻击:"<<a[i].atk<<" 护甲:"<<a[i].ddf<<" 体力:"<<a[i].hp<<" 速度:"<<a[i].su<<" 智力:"<<a[i].iq<<endl;
cout<<a[i].name<<"战斗力为:"<<a[i].zhan;
cout<<endl;
}*/
Slowsay("\n输入1继续。。。");int pop;cin>>pop;
system("cls");
moshi1();
}

void zidingyi(int i)
{
Slowsay("\n请输入角色名字\n");cin>>a[i].name;
Slowsay("请输入角色生命值\n");cin>>a[i].hp;a[i].now_hp=a[i].hp;
Slowsay("请输入角色攻击力\n");cin>>a[i].atk;
Slowsay("请输入角色物理抗性\n");cin>>a[i].ddf;
Slowsay("请输入角色奇术抗性\n");cin>>a[i].su;
Slowsay("请输入角色技能特征值(建议为0)\n");cin>>a[i].ji;
Slowsay("请输入角色速度\n");cin>>a[i].su;
}
void control_desk()
{
system("cls");
printf("已进入控制台\n");
string command;int ch,num,id;
while(cin>>command)
{
if(command=="help")
{
printf("Command List:\nset [角色编号] hp/atk/ddf [数值]\nkill [角色编号]\nadd [角色类型] [角色队伍]\nquit\ninspect_kind_list\nclear\ncheck\n");
}
else if(command=="inspect_kind_list")
{
printf("(1)蛇之手 (2)MTF-Epsilion-9 (3)MTF-Nu-7\n(4)GOC (5)混沌 (6)D级人员\n(7)研究员 (8)设施警卫 (9)普通蓝型\n(10)绿型 (11)自定义 (12)MTF-Omega-12\n(13)MTF-Alpha-9 (14)MTF-Tau-5 (15)MTF-Gamma-13\n");
}
else if(command=="clear") {system("cls");printf("已进入控制台\n");}
else if(command=="check") out_state(0);
else if(command=="set")
{
cin>>id;
cin>>command;
if(command=="hp")
{
cin>>num;
a[id].hp=a[id].now_hp=num;
printf("Success!\n");
}
if(command=="atk")
{
cin>>num;
a[id].atk=num;
printf("Success!\n");
}
if(command=="ddf")
{
cin>>num;
a[id].ddf=num;
printf("Success!\n");
}
}
else if(command=="kill")
{
cin>>id;
a[id].now_hp=0;
printf("Success!\n");
}
else if(command=="add")
{
cin>>num>>id;
while(num<1||num>15)cin>>num>>id;
rushu++;
switch(num)
{
case 1:shezhishou(rushu);break;
case 2:jiuweihu(rushu);break;
case 3:luochui(rushu);break;
case 4:goc(rushu);break;
case 5:hundun(rushu);break;
case 6:d_class(rushu);break;
case 7:science(rushu);break;
case 8:baoan(rushu);break;
case 9:{a[rushu].name="普通蓝型";putong(rushu);}break;
case 10:lvxing(rushu);break;
case 11:zidingyi(rushu);break;
case 12:achilles(rushu);break;
case 13:last_hope(rushu);break;
case 14:samsara(rushu);break;
case 15:asimov(rushu);break;
}
a[rushu].team=id;
printf("Success!\n");
}
else if(command=="quit")
{
system("cls");
return;
}
else printf("Unknown command!\n");
}
}
void moshi5(void)
{
srand(time(0));
int num_team;char o;bool model=0;
Slowsay("欢迎来到自定义模式\n在这里你可以自定义战斗\n");
color("R");Slowsay("注意,本模式支持非回合制,即所有角色随机打斗&可使用控制台\n");color("W");
color("Y");Slowsay("现在,请按顺序完成预设:\n");color("W");
Slowsay("(1) 你想要设置几个阵营:(2-8)\n");cin>>num_team;while(num_team<2||num_team>8)cin>>num_team;
Slowsay("(2) 你想要使用回合制战斗模式吗?(输入1为同意,其他输入为否定):\n");o=_getch();if(o=='1')model=1;
Slowsay("(3) 请完成各阵营预设:\n");
rushu=1;
for(int i=1;i<=num_team;i++)
{
system("cls");
int num=0,cho=0;
printf("请完成第%d阵营的预设:\n",i);
Slowsay("请输入阵营人数:(1-20)\n");cin>>num;while(num<1||num>20)cin>>num;
num=rushu+num-1;
for(rushu;rushu<=num;rushu++)
{
system("cls");
printf("请选择第%d个人物的设定:\n",rushu);
printf("(1)蛇之手 (2)MTF-Epsilion-9 (3)MTF-Nu-7\n(4)GOC (5)混沌 (6)D级人员\n(7)研究员 (8)设施警卫 (9)普通蓝型\n(10)绿型 (11)自定义 (12)MTF-Omega-12\n(13)MTF-Alpha-9 (14)MTF-Tau-5 (15)MTF-Gamma-13\n");
cin>>cho;while(cho<1||cho>15)cin>>cho;
switch(cho)
{
case 1:shezhishou(rushu);break;
case 2:jiuweihu(rushu);break;
case 3:luochui(rushu);break;
case 4:goc(rushu);break;
case 5:hundun(rushu);break;
case 6:d_class(rushu);break;
case 7:science(rushu);break;
case 8:baoan(rushu);break;
case 9:{a[rushu].name="普通蓝型";putong(rushu);}break;
case 10:lvxing(rushu);break;
case 11:zidingyi(rushu);break;
case 12:achilles(rushu);break;
case 13:last_hope(rushu);break;
case 14:samsara(rushu);break;
case 15:asimov(rushu);break;
}
a[rushu].team=i;
}
}
Slowsay("(4) 预设完成,按任意键开始\n");o=_getch();
if(!model)Slowsay("最后说一句,按`键打开控制台\n");Sleep(500);
system("cls");
if(model)
{
while(!panduan())
for(int i=1;i<=rushu;i++)
{
if(panduan())break;
if(a[i].now_hp<=0) continue;
cout<<endl;
int fff=rand(),j;
while(!panduan())
{
if(fff%16==4&&a[i].atk_used==true) fff=rand()%12000;
else if(fff%16==5&&a[i].ddf_used==true) fff=rand()%12000;
else if((fff%16==8||fff%16==9)&&a[i].now_hp==a[i].hp) fff=rand()%12000;
else break;
}
while(1)
{
j=rand()%(rushu-1)+1;
if(j!=i&&a[j].now_hp>0)
{
if(a[j].team!=a[i].team)break;
}
}
if(special_skills(i,j)){cout<<"\n";Sleep(1000);continue;}
if(a[i].now_hp<=a[i].hp*0.3)huifushu(i,i);
else if(fff%17==0) xiaolifeidao(i,j);
else if(fff%17==1) pugong(i,j);
else if(fff%17==2) huoqiushu(i,j);
else if(fff%17==3) leijishu(i,j);
else if(fff%17==4) kuangbao(i);
else if(fff%17==5) tiebishu(i);
else if(fff%17==6) bingdongshu(i,j);
else if(fff%17==7) changqiongzhan(i,j);
else if(fff%17==8) shoulei(i,j);
else if(fff%17==9) shixueyiji(i,j);
else if(fff%17==10) xianglongzhang(i,j);
else if(fff%17==11) lingxiyizhi(i,j);
else if(fff%17==12) buqiang(i,j);
else if(fff%17==13) jiqiang(i,j);
else if(fff%17==14) chongfengqiang(i,j);
else if(fff%17==15) diancipao(i,j);
else if(fff%17==16) mp7chongfengqiang(i,j);
cout<<endl;
Sleep(1000);
}
system("cls");
printf("战斗结束\n");int team=0;
for(int i=1;i<=rushu;i++)if(a[i].now_hp>0&&!a[i].cd)team=a[i].team;
printf("第%d阵营胜利!\n",team);
printf("按1回到自定义模式\n");
o=_getch();
if(o=='1')moshi5();
else start();
return;
}
int i,j,fff;
while(1)
{
if(panduan())break;
if(_kbhit()){o=_getch();if(o=='`')control_desk();}
i=rand()%rushu+1;
while(a[i].now_hp<=0)i=rand()%rushu+1;
while(1)
{
j=rand()%rushu+1;
if(j!=i&&a[j].now_hp>0)
{
if(a[j].team!=a[i].team)break;
}
}
while(!panduan())
{
if(fff%16==4&&a[i].atk_used==true) fff=rand()%12000;
else if(fff%16==5&&a[i].ddf_used==true) fff=rand()%12000;
else if((fff%16==8||fff%16==9)&&a[i].now_hp==a[i].hp) fff=rand()%12000;
else break;
}
if(special_skills(i,j)){cout<<"\n";Sleep(500);continue;}
if(a[i].now_hp<=a[i].hp*0.3)huifushu(i,i);
else if(fff%17==0) xiaolifeidao(i,j);
else if(fff%17==1) pugong(i,j);
else if(fff%17==2) huoqiushu(i,j);
else if(fff%17==3) leijishu(i,j);
else if(fff%17==4) kuangbao(i);
else if(fff%17==5) tiebishu(i);
else if(fff%17==6) bingdongshu(i,j);
else if(fff%17==7) changqiongzhan(i,j);
else if(fff%17==8) shoulei(i,j);
else if(fff%17==9) shixueyiji(i,j);
else if(fff%17==10) xianglongzhang(i,j);
else if(fff%17==11) lingxiyizhi(i,j);
else if(fff%17==12) buqiang(i,j);
else if(fff%17==13) jiqiang(i,j);
else if(fff%17==14) chongfengqiang(i,j);
else if(fff%17==15) diancipao(i,j);
else if(fff%17==16) mp7chongfengqiang(i,j);
cout<<endl;
Sleep(500);
}
system("cls");
printf("战斗结束\n");int team=0;
for(i=1;i<=rushu;i++)if(a[i].now_hp>0&&!a[i].cd)team=a[i].team;
printf("第%d阵营胜利!\n",team);
printf("按1回到自定义模式\n");
cin>>o;
if(o=='1')moshi5();
else start();
return;
}
void start()
{
while(true){
na:;
system("cls");
color("W");
Slowsay("欢迎来到名字大作战——SCP特供版! -----原作者:曾哥 作者:ETO组织成员\n");
Slowsay("请选择......\n");
Slowsay("(1) 开始游戏\n(2) 查看更新日志\n(3) 设置\n(4) 游戏相关\n(5) 场景模式:SCP资料库\n(6) 游戏介绍\n");
cin>>choose1;
if(choose1==1||choose1==2||choose1==3||choose1==4||choose1==5||choose1==6) break;
else system("cls");
}
if(choose1==1){
system("cls");
Slowsay("----------请选择游戏模式----------\n");
while(true){
Slowsay("(1) 玩家对战模式\n(2) 挑战BOSS模式 \n(3) 场景模式 \n(4) 闯关模式(开发中) \n(5) 自定义战斗 \n(6) 返回主界面\n");
cin>>choose2;if(choose2>=1&&choose2<=6) break;else system("cls");
}
if(choose2==6){system("cls");goto na;}
else if(choose2==1){system("cls");mode=1;moshi1();}
else if(choose2==2){system("cls");mode=2;moshi2_boss();}
else if(choose2==3){system("cls");mode=3;moshi3();}
else if(choose2==5){system("cls");mode=5;moshi5();}
}
else if (choose1 == 2){
write1 ();
}
else if (choose1 == 3){
write2 ();
}
else if (choose1 == 4){
write3 ();
}
else if (choose1 == 5){
write4 ();
}
else if (choose1 == 6){
write5 ();
}
system("cls");goto na;
}
int main()
{
system("cls");
// printf("正在检查网络...\n0");
// Sleep(500);
// system("cls");
// printf("正在连接服务器...\n▎15");
// Sleep(700);
// system("cls");
// printf("加载资源中...\n█▎25");
// Sleep(600);
// system("cls");
// printf("加载资源中...\n██▊55");
// Sleep(400);
// system("cls");
// printf("加载资源中...\n███▌70");
// Sleep(300);
// system("cls");
// printf("加载资源中...\n███▊75");
// Sleep(1200);
// system("cls");
// printf("正在加载场景...\n████▌90");
// Sleep(800);
// system("cls");
// printf("正在加载开始界面...\n█████100");
// Sleep(1000);
// system("cls");
// printf("正在进入游戏...\n█████100");
// Sleep(1000);
// system("cls");
// zhanghu=1;
srand(time(0));
start();
// moshi3();
// a[1].name="SCP-XXX";a[1].now_hp=a[1].hp=6355;a[1].team=2;a[1].ji=35;
// hundun(2);hundun(3);hundun(4);hundun(5);
//// jiuweihu(4);
// rushu+=5;
// while(!panduan())
// {
// work_together=1;
// work_together1=1;
// zhongli=0;
// int j;
// for(int i=1;i<=rushu;i++)
// {
// if(a[i].now_hp<=0)continue;
// while(!panduan())
// {
// j=rand()%rushu+1;
// if(j!=i&&a[j].now_hp>0)
// {
// if(a[j].cd)continue;
// if(a[i].team==1&&work_together&&a[j].team==3)continue;
// if(a[i].team==3&&work_together&&a[j].team==1)continue;
// if(a[i].team==1&&work_together1&&a[j].team==4)continue;
// if(a[i].team==4&&work_together1&&a[j].team==1)continue;
// if(a[i].team==1&&!zhongli&&a[j].team==3)continue;
// if(a[i].team==3&&!zhongli&&a[j].team==1)continue;
// if(a[j].team!=a[i].team)break;
// }
// }
// printf("test1:%d\n",panduan());
// special_skills(i,j);
// printf("\n");
// }
// }
}