@hoboayoyo/

RPG FOF 2nd Impact

C#

No description

fork
loading
Files
  • main.cs
  • main.exe
main.cs
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

//everything is ran from here
namespace rpg
{
    public class global
    {
        //all variables and stuff
        //Bartz
        public static double maxHpB = 3000;
        public static double hpB = 3000;
        public static int maxMpB = 20;
        public static int mpB = 20;
        public static int maxSpB = 50;
        public static int spB = 50;
        public static double atkB = 1000; //
        public static double magB = 700;
        public static int defB = 225;
        public static int mdefB = 150;
        public static string statusB = "";// are they stunned?
                                          //public static string buffB = "";// what are there buffs?
        public static int atkBuffB = 0;
        public static double matkBuffB = 0;
        public static int buffCounterB = 0;
        public static char superB = 'f';
        public static double dmgB = 0;
        public static double defActB = 1;
        //public static var bartzDisplay ="";

        //Lele
        public static double maxHpL = 2400;
        public static double hpL = 2400;
        public static int maxMpL = 50;
        public static int mpL = 50;
        public static int maxSpL = 20;
        public static int spL = 20;
        public static double atkL = 600; //
        public static double magL = 1200;
        public static int defL = 150;
        public static int mdefL = 250;
        public static string statusL;// are they stunned?
                                     //public static string buffL ;// what are there buffs?
        public static int defBuffL = 0;
        public static int mdefBuffL = 0;
        public static int buffCounterL = 0;
        public static char superL = 'f';
        public static double dmgL = 0;
        public static double defActL = 1;
        //public static string leleDisplay ="";

        public static char turnB = 'f'; // has this user taken its turn? when the foe has taken its turns then both will be set to Brue.
        public static char turnL = 'f';// has this user taken its turn? when the foe has taken its turns then both will be set to Brue.
        public static string actionB = ""; //what will they do? user input if not a valid option it will try again. 
        public static string actionL = "";
        public static char spregenB = 't';
        public static char spregenL = 't';
        public static string turnState = "bartz";
        public static string[] listB = new string[13];
        public static int totalListB = 12;
        public static string[] listL = new string[13];
        public static int totalListL = 12;
        public static string[] item = new string[5];
        public static int[] itemAmt = new int[5];
        public static int earth = 0;
        public static int fire = 0;
        public static int wind = 0;
        public static int water = 0;
        public static string FOF = "";
        public static string oldFOF = "";
        public static char usedFOF = 'f';
        public static double Ceiling;

        public static double foeMaxHp = 60000;
        public static double foehp = foeMaxHp;
        public static int foeDie = 9;
        public static int foeTarget = 1;
        public static char turnFoe = 'f';
        public static int foeAtk = 0;
        public static int foeDmg = 0;
        public static int foeDmg2 = 0; // variance in team hitting attacks
        public static string foeDebuffs;
        public static int foeSuper = 0;
        //Console.WriteLine("hi hello how are you?");
        public static int x = 0;
        public static int foeAtkUp = 0;
        public static int foeAtkct = 0;
        public static int foeBuff = 0;
        public static int foeStateCheck = 0;
        public static double score = 0;


    }

    public class Game
    {

        public void display()
        {
            // check for status ailment and resets turn vars
            if (global.turnL == 't' && global.turnB == 't')
            {
                Console.WriteLine("enemy turn");
            }

            var bartzDisplay = "-Bartz- " + "Hp:" + rpg.global.hpB + "/" + rpg.global.maxHpB + "  MP:" + rpg.global.mpB + "  SP:" + rpg.global.spB;
            var leleDisplay = "-Lele-  " + "Hp:" + rpg.global.hpL + "/" + rpg.global.maxHpL + "  MP:" + rpg.global.mpL + "  SP:" + rpg.global.spL;
            var elements = "Fire:" + global.fire + " Water:" + global.water + " Wind:" + global.wind + " Earth:" + global.earth;
            //int waitS = 750;
            int waitM = 1000;
            //int waitL = 1500;
            Console.WriteLine(bartzDisplay);
            Console.WriteLine(leleDisplay);
            Console.WriteLine("");
            Console.WriteLine(elements);
            System.Threading.Thread.Sleep(waitM);

            if (global.turnState == "bartz" && global.turnB == 'f')
            {
                Console.WriteLine("");
                Console.WriteLine("Bartz's Turn. Choose an action.");
                for (global.x = 0; global.x != global.totalListB; global.x++)
                {
                    System.Threading.Thread.Sleep(50);
                    Console.WriteLine(global.listB[global.x]);
                }
                if (global.superB == 't')
                {
                    System.Threading.Thread.Sleep(50);
                    Console.WriteLine(global.listB[12]);
                }
            }

            if (global.turnState == "lele" && global.turnL == 'f')
            {
                Console.WriteLine("");
                Console.WriteLine("Lele's Turn. Choose an action.");
                for (global.x = 0; global.x != global.totalListL; global.x++)
                {
                    System.Threading.Thread.Sleep(50);
                    Console.WriteLine(global.listL[global.x]);
                }
                if (global.superL == 't')
                {
                    System.Threading.Thread.Sleep(50);
                    Console.WriteLine(global.listL[12]);
                }
            }
            //System.Threading.Thread.Sleep(waitS);
            move();
        }


        //who's turn is it?
        public void move()
        {
            //Console.WriteLine (global.turnState + " " + global.turnB + " " + global.turnL); //debug
            Random r = new Random();
            // Random rx = new Random();
            //Console.WriteLine("MOVE");

            if (global.turnState == "bartz" && global.turnB == 'f')
            {
                global.actionB = Console.ReadLine();
                //Console.WriteLine(global.actionB); // debug
                global.actionB = global.actionB.ToLower();

                if (global.actionB == "atk")
                {
                    global.dmgB = (global.atkB + global.atkBuffB) + (r.Next(-50, 50));
                    Console.WriteLine("You attack dealing " + global.dmgB);
                    global.turnB = 't'; // for now ill put these at the end of each attack section ...
                    global.turnState = "lele";
                }

                else if (global.actionB == "def")
                {
                    global.defActB = 2;
                    global.dmgB = 0;
                }
                else if (global.actionB == "sw")
                {
                    global.turnState = "lele";
                    display();
                }
                else if (global.actionB == "it")
                {
                    Items();
                }
                //drainblade
                else if (global.actionB == "db")
                {
                    if (global.mpB < 2)
                    {
                        Console.WriteLine("not enough mp.");
                        ElementCheck();
                    }
                    if (global.FOF == "earth")
                    {
                        global.dmgB = (global.magB + global.matkBuffB) * (1.4) + (r.Next(-30, 31));
                        global.dmgB = Math.Ceiling(global.dmgB);
                        Console.WriteLine("SECRET TECH ACTIVATED: Soul Eater");
                        System.Threading.Thread.Sleep(1000); // WAIT
                        Console.WriteLine("A dark aura emanates from Bartz. He uses dark magic to steal a part of the foe's soul, dealing " + global.dmgB + " damage.");
                        System.Threading.Thread.Sleep(1500); // WAIT
                        global.hpB = Math.Ceiling(global.hpB + (global.dmgB / 2));
                        global.hpL = Math.Ceiling(global.hpL + (global.dmgB / 2));
                        if(global.hpB)
                        Console.WriteLine("Bartz recovers " + Math.Ceiling(global.dmgB / 2) + " HP.");
                        Console.WriteLine("Lele recovers " + Math.Ceiling(global.dmgB / 2) + " HP.");
                        global.usedFOF = 't';
                    }
                    else
                    {

                        global.mpB = global.mpB - 2;
                        global.dmgB = (global.magB + global.atkBuffB) * .6 + (r.Next(-10, 11));
                        global.dmgB = Math.Ceiling(global.dmgB);
                        Console.WriteLine("You syphon the foe's life. Draining " + global.dmgB + " points");
                        global.hpB = global.hpB + global.dmgB;
                        global.turnB = 't'; // for now ill put these at the end of each attack section ...
                        global.turnState = "lele";
                        //hp check
                        if (global.hpB > global.maxHpB)
                        {
                            global.hpB = global.maxHpB;
                        }
                    }
                }

                //euruption
                else if (global.actionB == "ep")
                {
                    if (global.mpB < 3)
                    {
                        Console.WriteLine("not enough mp.");
                        ElementCheck();
                    }
                    if (global.FOF == "earth")
                    {
                        global.dmgB = (global.magB + global.matkBuffB) * (2.5) + (r.Next(-30, 31));
                        Console.WriteLine("SECRET TECH ACTIVATED: Comet Domain");
                        System.Threading.Thread.Sleep(1000); // WAIT
                        Console.WriteLine("A Comet flys from above, soaring to its target. Right before it reaches them, it bursts into shards just upon impact, dealing " + global.dmgB + " damage.");
                        global.usedFOF = 't';
                    }
                    else
                    {
                        global.dmgB = (global.magB + global.matkBuffB) * (1.5) + (r.Next(-30, 31));
                        // Console.WriteLine(global.dmgB);

                        Console.WriteLine("Bartz errects a mini volcano dealing " + global.dmgB + " points of damage");
                        global.fire = global.fire + 50;
                    }
                    global.dmgB = Math.Ceiling(global.dmgB);
                    global.mpB = global.mpB - 3;
                    global.turnB = 't'; // for now ill put these at the end of each attack section ...
                    global.turnState = "lele";
                }

                //thunderblade
                else if (global.actionB == "tb")
                {
                    if (global.mpB < 4)
                    {
                        Console.WriteLine("not enough mp.");
                        ElementCheck();
                    }
                    else
                    {
                        global.mpB = global.mpB - 4;
                        global.dmgB = (global.magB + global.matkBuffB) * (2) + (r.Next(-30, 31));
                        //Console.WriteLine(global.dmgB);
                        global.dmgB = Math.Ceiling(global.dmgB);
                        Console.WriteLine("Bartz summons a giant magical blade of lighting to strike the dragon dealing " + global.dmgB + " points of damage");
                        global.wind = global.wind + 50;
                        global.turnB = 't'; // for now ill put these at the end of each attack section ...
                        global.turnState = "lele";
                    }
                }

                //might
                else if (global.actionB == "mt")
                {
                    if (global.mpB < 3)
                    {
                        Console.WriteLine("not enough mp.");
                        ElementCheck();
                    }
                    if (global.FOF == "water")
                    {
                        Console.WriteLine("SECRET TECH ACTIVATED: Elemental Discharge");
                        System.Threading.Thread.Sleep(1000); // WAIT
                        Console.WriteLine("Bartz's body glows with an awesome power, increasing his attack and magic for 5 turns.");
                        global.atkBuffB = 130;
                        global.matkBuffB = 130;
                        global.buffCounterB = 6;
                        global.usedFOF = 't';
                    }
                    else
                    {

                        global.atkBuffB = 100;
                        global.buffCounterB = 6;
                        Console.WriteLine("Bartz sword glows with an awesome power increasing it's attack for 5 turns.");
                        global.turnB = 't'; // for now ill put these at the end of each attack section ...
                        global.turnState = "lele";
                    }
                    global.mpB = global.mpB - 3;
                    global.turnB = 't'; // for now ill put these at the end of each attack section ...
                    global.turnState = "lele";
                }

                //blazing cutter
                else if (global.actionB == "bc")
                {
                    if (global.spB < 5)
                    {
                        Console.WriteLine("not enough sp.");
                        ElementCheck();
                    }
                    if (global.FOF == "wind")
                    {
                        global.dmgB = (global.atkB + global.atkBuffB) * (2) + 30 + (r.Next(-20, 21));
                        Console.WriteLine("SECRET TECH ACTIVATED: Gale Wolf");
                        System.Threading.Thread.Sleep(1000); // WAIT
                        Console.WriteLine("Bartz turn his back twords the enemy, than with in a blink he slashes to the other side of them, repeating this action countless times before a finishing thrust of visable wind tosses the foe back dealing " + global.dmgB + " damage.");
                        System.Threading.Thread.Sleep(3000); // WAIT
                        global.usedFOF = 't';
                    }
                    else
                    {
                        global.fire = global.fire + 25;
                        global.spregenB = 'f';
                        global.dmgB = (global.atkB + global.atkBuffB) * (1.5) + (r.Next(-30, 31));
                        global.dmgB = Math.Ceiling(global.dmgB);
                        //Console.WriteLine(global.dmgB);
                        Console.WriteLine("Bartz sword emmits a flame as he quickly slashes the foe causing " + global.dmgB + " damage");
                    }

                    global.spB = global.spB - 5;
                    global.spregenB = 'f';
                    global.turnB = 't'; // for now ill put these at the end of each attack section ...
                    global.turnState = "lele";
                }

                //lightingblade
                else if (global.actionB == "lb")
                {
                    if (global.spB < 6)
                    {
                        Console.WriteLine("not enough sp.");
                        ElementCheck();
                    }
                    else

                    {
                        global.wind = global.wind + 25;
                        global.spregenB = 'f';
                        global.spB = global.spB - 6;
                        global.dmgB = (global.atkB + global.atkBuffB) * (2) + (r.Next(-30, 31));
                        //Console.WriteLine(global.dmgB);
                        global.dmgB = Math.Ceiling(global.dmgB);
                        Console.WriteLine("Bartz sword radiates lightning as he thrusts into his foe causing " + global.dmgB + " damage");
                        global.turnB = 't'; // for now ill put these at the end of each attack section ...
                        global.turnState = "lele";
                    }
                }

                //dark hold
                else if (global.actionB == "dh")
                {
                    if (global.spB < 6)
                    {
                        Console.WriteLine("not enough sp.");
                        ElementCheck();
                    }
                    else
                    {
                        global.spregenB = 'f';
                        global.spB = global.spB - 6;
                        global.dmgB = (global.atkB + global.atkBuffB) * (2.4) + (r.Next(-30, 70));
                        global.hpB = global.hpB - 250;
                        if (global.hpB < 1)
                        {
                            global.hpB = 1;

                        }
                        //Console.WriteLine(global.dmgB);
                        global.dmgB = Math.Ceiling(global.dmgB);
                        Console.WriteLine("Batrz's stretches out his hand,creating an orb of his own life force to cause " + global.dmgB + " points of damage");
                        Console.WriteLine("Bartz took 250 dmg");
                        global.turnB = 't'; // for now ill put these at the end of each attack section ...
                        global.turnState = "lele";
                    }
                }

                //rising falcon
                else if (global.actionB == "rf")
                {
                    if (global.spB < 8)
                    {
                        Console.WriteLine("not enough sp.");
                        ElementCheck();
                    }
                    if (global.FOF == "fire")
                    {
                        global.dmgB = (global.atkB + global.atkBuffB) * (3.6) + (r.Next(-20, 20));
                        Console.WriteLine("SECRET TECH ACTIVATED: Razing Phoenix");
                        System.Threading.Thread.Sleep(1000); // WAIT
                        global.dmgB = Math.Ceiling(global.dmgB);
                        Console.WriteLine("Bartz jumps back in the air, surounding himself in flames and quickly blazingly spirals through the creature before him, dealing " + global.dmgB + " damage");
                        System.Threading.Thread.Sleep(2000); // WAIT
                        global.usedFOF = 't';
                    }
                    else
                    {
                        global.dmgB = (global.atkB + global.atkBuffB) * (3) + (r.Next(-40, 40));
                        global.dmgB = Math.Ceiling(global.dmgB);
                        Console.WriteLine("Bartz jumps back in the air and quickly spirals down through the monster dealing " + global.dmgB + " damage");
                    }
                    if (global.hpB < global.hpB * (.20))
                    {
                        System.Threading.Thread.Sleep(1000); // WAIT
                        Console.WriteLine("Hidden TECH ACTIVATED: Severed Darkness");
                        System.Threading.Thread.Sleep(1000); // WAIT
                        Console.WriteLine(" Then Bartz, in one fell motion, slashes through the monster once more, ending near Lele's side. Hitting for extra damage.");
                        global.foehp = global.foehp - (global.atkB + global.atkBuffB);
                    }
                    global.spB = global.spB - 8;
                    global.spregenB = 'f';
                }

                else if (global.actionB == "ss" && global.superB == 't')
                {
                    Console.WriteLine("MYSTIC TECH ACTIVATED: ");
                    System.Threading.Thread.Sleep(1250); // WAIT
                    Console.WriteLine("Bartz swiftly charges at the monster, slicing through it and flipping it high into the air.");
                    System.Threading.Thread.Sleep(3000); // WAIT
                    Console.WriteLine("Bartz rise into the air, dealing a flurry of slashes to the creature as the sound of thunder crackles through the air.");
                    System.Threading.Thread.Sleep(3000); // WAIT
                                                         //Console.WriteLine("a final Axe kick is delivered and the creature quickly falls to the ground.");
                                                         //System.Threading.Thread.Sleep(3000); // WAIT
                    Console.WriteLine("before the creature touches the ground bartz is there, his blade radiates with electricity.");
                    System.Threading.Thread.Sleep(3000); // WAIT
                    Console.WriteLine("he makes one final slash through the creature causing a massive, thunderous explosion of lightning.");
                    System.Threading.Thread.Sleep(3000); // WAIT
                    Console.WriteLine("SHINING SPARK!!!");
                    global.dmgB = ((global.atkB + global.atkBuffB) + (global.magB + global.matkBuffB) + 50) * 2.5 + (r.Next(-30, 31));
                    Console.WriteLine("The Dargon takes a whopping " + global.dmgB + " damage.");
                    System.Threading.Thread.Sleep(2000); // WAIT
                    global.score = global.score + 5;
                }

                else if (global.actionB == "help")
                {
                    Help();
                }
                //applies damage
                else
                {
                    Console.WriteLine("THATS NOT A COMMAND!!!");
                    move();
                }
                global.turnB = 't'; // for now ill put these at the end of each attack section ...
                global.turnState = "lele";
                global.dmgB = Math.Ceiling(global.dmgB);
                global.foehp = global.foehp - global.dmgB;
                //Console.WriteLine("dargon has" + global.foehp + " hp left");
                //Console.WriteLine("bartz turn use is " + global.turnB + ", and the turn state is "+ global.turnState); // degbug
                //display next characters commands if possible
                if (global.turnL == 't')
                {
                    global.turnState = "dragon";
                }
                System.Threading.Thread.Sleep(1000); //debug
                ElementCheck();
            }




            if (global.turnState == "lele" && global.turnL == 'f')
            {
                global.actionL = Console.ReadLine();
                // Console.WriteLine(global.actionL);// debug
                global.actionL = global.actionL.ToLower();

                if (global.actionL == "atk")
                {
                    global.dmgL = (global.atkL) + (r.Next(-30, 31));
                    Console.WriteLine("You attack dealing " + global.dmgL);
                }
                else if (global.actionL == "def")
                {
                    global.defActL = 2;
                    global.dmgL = 0;
                }
                else if (global.actionL == "sw")
                {
                    global.turnState = "bartz";
                    ElementCheck();
                }
                else if (global.actionL == "it")
                {
                    Items();
                }

                //rocklside
                else if (global.actionL == "ro")
                {
                    if (global.mpL < 3)
                    {
                        Console.WriteLine("not enough mp.");
                        ElementCheck();
                    }
                    if (global.FOF == "water")
                    {
                        global.dmgL = (global.magL) * (2) + (r.Next(-20, 23));
                        Console.WriteLine("SECRET TECH ACTIVATED: Sluri Fury");
                        System.Threading.Thread.Sleep(1000); // WAIT
                        global.dmgL = Math.Ceiling(global.dmgL);
                        Console.WriteLine("Lele summons a storms of water and rocks, engulfing the foe for " + global.dmgL + " damage");
                        System.Threading.Thread.Sleep(2000); // WAIT
                        global.usedFOF = 't';
                    }
                    else
                    {
                        global.earth = global.earth + 50;
                        global.dmgL = (global.magL) * (1.5) + (r.Next(-30, 31));
                        //Console.WriteLine(global.dmgL);
                        global.dmgL = Math.Ceiling(global.dmgL);
                        Console.WriteLine("Lele cause a rainstorm of rocks, pelting the monster for " + global.dmgL + " damage");
                    }
                    global.mpL = global.mpL - 3;
                    global.turnL = 't'; // for now ill put these at the end of each attack section ...
                }

                //rushing tsunami
                else if (global.actionL == "rt")
                {
                    if (global.mpL < 4)
                    {
                        Console.WriteLine("not enough mp.");
                        ElementCheck();
                    }
                    else
                    {
                        global.water = global.water + 50;
                        global.dmgL = (global.magL) * (1.9) + (r.Next(-30, 31));
                        //Console.WriteLine(global.dmgL);
                        global.dmgL = Math.Ceiling(global.dmgL);
                        Console.WriteLine("A wave of water crashes into the monster slamming it.");
                        System.Threading.Thread.Sleep(500); // WAIT
                        Console.WriteLine("Dragon takes" + global.dmgL + " damage");
                    }
                    global.mpL = global.mpL - 4;
                }

                //flarestorm
                else if (global.actionL == "fs")
                {
                    if (global.mpL < 6)
                    {
                        Console.WriteLine("not enough mp.");
                        ElementCheck();
                    }
                    if (global.FOF == "earth")
                    {
                        global.dmgL = (global.magL) * (3) + (r.Next(-60, 61));
                        Console.WriteLine("SECRET TECH ACTIVATED: Meteor Storm");
                        System.Threading.Thread.Sleep(750); // WAIT
                        Math.Ceiling(global.dmgL);
                        Console.WriteLine("Meteors fall from the sky, hitting everybody.");
                        System.Threading.Thread.Sleep(1000); // WAIT
                        Console.WriteLine("The Dragon takes" + global.dmgL + " damage");
                        global.hpB = global.hpB - ((global.dmgL / 8) - global.mdefB);
                        global.hpL = global.hpL - ((global.dmgL / 8) - global.mdefL + global.mdefBuffL);
                        global.hpB = Math.Ceiling(global.hpB);
                        global.hpL = Math.Ceiling(global.hpL);
                        if (global.hpB < 1)
                        {
                            global.hpB = 1;
                        }
                        if (global.hpL < 1)
                        {
                            global.hpL = 1;
                        }
                        //Console.WriteLine("Bartz takes " + global.hpB - ((global.dmgL / 8) - global.mdefB ) + "damage"); //debug
                        //Console.WriteLine("lele takes" + global.hpL - ((global.dmgL /8) - global.mdefL + global.mdefBuffL) + "damage");
                        System.Threading.Thread.Sleep(750); // WAIT
                        global.usedFOF = 't';
                    }
                    else
                    {
                        global.fire = global.fire + 50;
                        global.dmgL = (global.magL) * (2.5) + (r.Next(-30, 30));
                        //Console.WriteLine(global.dmgL);
                        Math.Ceiling(global.dmgL);
                        Console.WriteLine("A raging inferno engulfs the foe.");
                        System.Threading.Thread.Sleep(750); // WAIT
                        Console.WriteLine("Dragon takes " + global.dmgL + " damage");
                        System.Threading.Thread.Sleep(750); // WAIT
                    }
                    global.mpL = global.mpL - 6;
                }


                //heal
                else if (global.actionL == "he")
                {
                    if (global.mpL < 4)
                    {
                        Console.WriteLine("not enough mp.");
                        ElementCheck();
                    }
                    if (global.hpB < global.hpL && global.hpB > 0)
                    {
                        global.dmgL = (global.maxHpB * .2) + (global.magL / 2) + (global.matkBuffB) + (r.Next(-30, 31)); //570-630

                        global.hpB = global.hpB + global.dmgL;
                        Console.WriteLine("Lele Heals Bartz for " + global.dmgL + "HP");
                        Math.Ceiling(global.hpB);
                        if (global.hpB > global.maxHpB)
                        {
                            global.hpB = global.maxHpB;
                        }
                    }
                    else if (global.hpB > global.hpL)
                    {
                        global.dmgL = (global.maxHpL * .2) + (global.magL / 2) + (r.Next(-30, 31));
                        global.hpL = global.hpL + global.dmgL;
                        Console.WriteLine("Lele Heals herself for " + global.dmgL + "HP");
                        Math.Ceiling(global.hpL);
                        if (global.hpL > global.maxHpL)
                        {
                            global.hpL = global.maxHpL;
                        }
                    }
                    global.mpL = global.mpL - 4;
                }


                //party heal
                else if (global.actionL == "gr")
                {
                    if (global.mpL < 6)
                    {
                        Console.WriteLine("not enough mp.");
                        ElementCheck();
                    }
                    else
                    {
                        Console.WriteLine("Lele Creates a healing glyph around the party.");
                        System.Threading.Thread.Sleep(1000); // WAIT
                        global.dmgL = (global.maxHpB * .15) + (global.magL / 3) + (r.Next(-50, 51)); //375-475
                        global.hpB = global.hpB + global.dmgL;
                        Console.WriteLine("Bartz is healed for " + global.dmgL + "HP");
                        System.Threading.Thread.Sleep(750); // WAIT
                        global.dmgL = (global.maxHpL * .15) + (global.magL / 3) + (r.Next(-50, 51));
                        global.hpL = global.hpL + global.dmgL;
                        Console.WriteLine("Lele is healed for " + global.dmgL + "HP");
                        System.Threading.Thread.Sleep(750); // WAIT
                    }
                    global.mpL = global.mpL - 6;
                }
                else if (global.actionL == "help")
                {
                    Help();
                }

                //rayshot
                else if (global.actionL == "rs")
                {
                    if (global.spL < 3)
                    {
                        Console.WriteLine("not enough sp.");
                        ElementCheck();
                    }
                    if (global.FOF == "wind")
                    {
                        global.dmgL = (global.magL) * (2.4) + (r.Next(-20, 21));
                        Console.WriteLine("SECRET TECH ACTIVATED: Ray Snipe");
                        System.Threading.Thread.Sleep(1000); // WAIT
                        Math.Ceiling(global.dmgL);
                        Console.WriteLine("A myriad of light arrows dance back and forth through the enemy causing " + global.dmgL + " damage");
                        System.Threading.Thread.Sleep(1500); // WAIT
                        Console.WriteLine("The arrows drain MP from the foe, recovering mp for the party.");
                        global.usedFOF = 't';
                    }
                    else
                    {
                        global.dmgL = (global.atkL) * (2.1) + (r.Next(-30, 31));
                        //Console.WriteLine(global.dmgL);
                        Math.Ceiling(global.dmgL);
                        Console.WriteLine("Lele fires an arrow of light hitting for " + global.dmgL + " damage");
                        System.Threading.Thread.Sleep(1000); // WAIT
                        Console.WriteLine("The arrows drain MP from the foe.");
                        System.Threading.Thread.Sleep(1500); // WAIT
                    }

                    global.mpL = global.mpL + 5;
                    if (global.mpL > global.maxMpL)
                    {
                        global.mpL = global.maxMpL;
                    }

                    if (global.FOF == "wind")
                    {
                        global.mpB = global.mpB + 5;
                        if (global.mpB > global.maxMpB)
                        {
                            global.mpB = global.maxMpB;
                        }
                    }
                    global.spregenL = 'f';
                    global.spL = global.spL - 3;
                }

                //barrier
                else if (global.actionL == "ba")
                {
                    if (global.spL < 4)
                    {
                        Console.WriteLine("not enough sp.");
                        ElementCheck();
                    }
                    if (global.FOF == "water")
                    {
                        Console.WriteLine("SECRET TECH ACTIVATED: Sheild of Hope");
                        System.Threading.Thread.Sleep(1000); // WAIT
                        Console.WriteLine("A mystical ray of light surrounds Lele. Def and Magic defense raised for 5 turns.");
                        global.mdefBuffL = 75;
                        global.defBuffL = 75;
                        global.usedFOF = 't';
                        global.buffCounterL = 6;
                    }
                    else
                    {
                        Console.WriteLine("A magical barrier surrounds Lele, raising her defense for 5 turns.");
                        System.Threading.Thread.Sleep(1000); // WAIT
                    }
                    global.defBuffL = 50;
                    global.buffCounterL = 6;
                    global.spregenL = 'f';
                    global.spL = global.spL - 4;
                }
                //ghost plight
                else if (global.actionL == "gp")
                {
                    if (global.mpL < 5)
                    {
                        Console.WriteLine("not enough sp.");
                        ElementCheck();
                    }
                    else
                    {
                        global.dmgL = (global.atkL) * (3.5) + (r.Next(-30, 31));
                        //Console.WriteLine(global.dmgL);
                        Math.Ceiling(global.dmgL);
                        Console.WriteLine("A phantom wraith appears and slashes through the foe dealing " + global.dmgL + " damage");
                        System.Threading.Thread.Sleep(1500); // WAIT
                    }
                    global.mpL = global.mpL - 5;
                }

                //super duper
                else if (global.actionL == "pr" && global.superL == 't')
                {
                    Console.WriteLine("MYSTIC TECH ACTIVATED: ");
                    System.Threading.Thread.Sleep(1500); // WAIT
                    Console.WriteLine("Lele concentrates, slowly rising from the ground.");
                    System.Threading.Thread.Sleep(2000); // WAIT
                    Console.WriteLine("Before your eyes, the Dargon also starts to float.");
                    System.Threading.Thread.Sleep(2000); // WAIT
                    Console.WriteLine("in an instant sabers of light peirce the Dargon.");
                    System.Threading.Thread.Sleep(2000); // WAIT
                    Console.WriteLine("After the foe has been skewered the light quickly fades, almost corrode to black.");
                    System.Threading.Thread.Sleep(3000); // WAIT
                    Console.WriteLine("The energy starts to shake as it explodes into a dark nightmare, shakeing everybody to there very core.");
                    System.Threading.Thread.Sleep(3000); // WAIT
                    Console.WriteLine("PROVIDENCE REVOKE!!!");
                    global.hpL = global.hpL + 200;
                    System.Threading.Thread.Sleep(1500); // WAIT
                    global.score = global.score + 5;
                    global.dmgL = (global.atkL + global.magL) * (2.5) + (r.Next(-30, 31));
                    Console.WriteLine("The Dargon takes a collosal " + global.dmgL + " damage");
                }
                else
                {
                    Console.WriteLine("THATS NOT A COMMAND!!!");
                    move();
                }

                //end action tree
                global.dmgL = Math.Ceiling(global.dmgL);
                global.turnL = 't';
                global.turnState = "bartz";
                global.foehp = global.foehp - global.dmgL;
                //Console.WriteLine("dargon has" + global.foehp + " hp left");
                //Console.WriteLine("Lele turn use is " + global.turnL + ", and the turn state is "+ global.turnState); //debug
                System.Threading.Thread.Sleep(1000); //debug
                ElementCheck();
            }

            EndTurn();
        }



        public void Items()
        {
            //display all items
            for (global.x = 0; global.x != 5; global.x++)
            {
                System.Threading.Thread.Sleep(50);
                Console.Write(global.item[global.x]);
                Console.WriteLine(":" + global.itemAmt[global.x]);
            }
            global.actionB = Console.ReadLine(); //it dosent matter who is used for read line
            global.actionB = global.actionB.ToLower();
            if (global.actionB == "pot" && global.itemAmt[0] != 0)
            {
                Console.WriteLine("who will you use the potion on? (b) , (l) or (x) to cancel");
                global.actionB = Console.ReadLine(); //it dosent matter who is used for read line
                global.actionB = global.actionB.ToLower();
                if (global.actionB == "b" && global.hpB > 0)
                {
                    global.itemAmt[0]--;
                    Console.WriteLine("Bartz healed 1000 hp");
                    global.hpB = global.hpB + 1000;
                    if (global.hpB > global.maxHpB)
                    {
                        global.hpB = global.maxHpB;
                    }
                }
                else if (global.actionB == "b" && global.hpB < 1)
                {
                    global.itemAmt[0]--;
                    Console.Write("You splash a healing potion on Bart's face ");
                    System.Threading.Thread.Sleep(750); // WAIT
                    Console.Write(".");
                    System.Threading.Thread.Sleep(1000); // WAIT
                    Console.Write(".");
                    System.Threading.Thread.Sleep(1000); // WAIT
                    Console.Write(".");
                    System.Threading.Thread.Sleep(1000); // WAIT
                    Console.Write(" nothing  happens, they're still dead. ");
                }

                else if (global.actionB == "l" && global.hpL > 0)
                {
                    global.itemAmt[0]--;
                    Console.WriteLine("Lele healed 1000 hp");
                    global.hpL = global.hpL + 1000;
                    if (global.hpL > global.maxHpL)
                    {
                        global.hpL = global.maxHpL;
                    }
                }
                else if (global.actionB == "l" && global.hpL < 1)
                {
                    global.itemAmt[0]--;
                    Console.Write("You splash a healing potion on Lele's face ");
                    System.Threading.Thread.Sleep(750); // WAIT
                    Console.Write(".");
                    System.Threading.Thread.Sleep(1000); // WAIT
                    Console.Write(".");
                    System.Threading.Thread.Sleep(1000); // WAIT
                    Console.Write(".");
                    System.Threading.Thread.Sleep(1000); // WAIT
                    Console.Write(" nothing  happens, they're still dead. ");
                }
                else
                {
                    Items();
                }

            }

            else if (global.actionB == "hi" && global.itemAmt[1] != 0)
            {
                Console.WriteLine("who will you use the hi-potion on? (b) , (l) or (x) to cancel");
                global.actionB = Console.ReadLine(); //it dosent matter who is used for read line
                global.actionB = global.actionB.ToLower();
                if (global.actionB == "b" && global.hpB > 0)
                {
                    global.itemAmt[1]--;
                    Console.WriteLine("Bartz healed 2000 hp");
                    global.hpB = global.hpB + 2000;
                    if (global.hpB > global.maxHpB)
                    {
                        global.hpB = global.maxHpB;
                    }
                }

                else if (global.actionB == "l" && global.hpL > 0)
                {
                    global.itemAmt[1]--;
                    Console.WriteLine("Lele healed 2000 hp");
                    global.hpL = global.hpL + 2000;
                    if (global.hpL > global.maxHpL)
                    {
                        global.hpL = global.maxHpL;
                    }
                }

                else
                {
                    Items();
                }

            }

            else if (global.actionB == "fl" && global.itemAmt[2] != 0)
            {
                Console.WriteLine("who will you use the flask on? (b) , (l) or (x) to cancel");
                global.actionB = Console.ReadLine(); //it dosent matter who is used for read line
                global.actionB = global.actionB.ToLower();
                if (global.actionB == "b" && global.hpB > 0)
                {
                    global.itemAmt[2]--;
                    Console.WriteLine("Bartz healed 30 mp");
                    global.mpB = global.mpB + 30;
                    if (global.mpB > global.maxMpB)
                    {
                        global.mpB = global.maxMpB;
                    }
                }

                else if (global.actionB == "l" && global.hpL > 0)
                {
                    global.itemAmt[2]--;
                    Console.WriteLine("Lele healed 30 mp");
                    global.mpL = global.mpL + 30;
                    if (global.mpL > global.maxMpL)
                    {
                        global.mpL = global.maxMpL;
                    }
                }

                else
                {
                    Items();
                }

            }
            else if (global.actionB == "sg" && global.itemAmt[3] != 0)
            {
                Console.WriteLine("who will you use the spirit gel on? (b) , (l) or (x) to cancel");
                global.actionB = Console.ReadLine(); //it dosent matter who is used for read line
                global.actionB = global.actionB.ToLower();
                if (global.actionB == "b" && global.hpB > 0)
                {
                    global.itemAmt[3]--;
                    Console.WriteLine("Bartz healed 30 sp");
                    global.spB = global.spB + 30;
                    if (global.spB > global.maxSpB)
                    {
                        global.spB = global.maxSpB;
                    }
                }

                else if (global.actionB == "l" && global.hpL > 0)
                {
                    global.itemAmt[2]--;
                    Console.WriteLine("Lele healed 30 sp");
                    global.spL = global.spL + 30;
                    if (global.spL > global.maxSpL)
                    {
                        global.spL = global.maxSpL;
                    }
                }

                else
                {
                    Items();
                }

            }
            else if (global.actionB == "gp" && global.itemAmt[4] != 0)
            {

                if (global.hpB < 1)
                {
                    global.itemAmt[4]--;
                    Console.WriteLine("Bartz is brought back from the abyss of death");
                    global.hpB = global.maxHpB / 2;
                }

                else if (global.hpL < 1)
                {
                    global.itemAmt[4]--;
                    Console.WriteLine("Lele is brought back from the abyss of death");
                    global.hpL = global.maxHpL / 2;
                }

                else
                {
                    Items();
                }

            }
            else
            {
                Console.WriteLine("incorrect slection / no more of that item");
                Items();
            }


            System.Threading.Thread.Sleep(1250); // WAIT   
        }

        // checks fof, if a new one reach 100 then the current one becomes the old one
        //and the new one is the current one.
        public void ElementCheck()
        {
            if (global.hpB < 1 && global.hpL < 1)
            {
                Console.WriteLine("Your party has fallen...");
                System.Threading.Thread.Sleep(2000);
                Console.WriteLine("And no one ever heard from them again...");
                System.Threading.Thread.Sleep(3000);
                global.score = global.score + (global.itemAmt[4] * 10) + (global.itemAmt[3] * 5) + (global.itemAmt[2] * 5) + (global.itemAmt[1] * 5) + (global.itemAmt[0] * 2);
                Console.WriteLine(global.score - 50 + " /100");
                global.actionB = Console.ReadLine();
                global.actionB = Console.ReadLine();
                global.actionB = Console.ReadLine();

            }

            // victory  check
            if (global.foehp < 1)
            {
                Console.WriteLine("After a long audacious battle, the dargon lets out one final roar and it falls to the ground.");
                System.Threading.Thread.Sleep(2000);
                Console.WriteLine("Your long battle comes to an end.");
                System.Threading.Thread.Sleep(2000);
                Console.WriteLine("YOU WIN!!!");
                System.Threading.Thread.Sleep(1000);
                Console.Write("You're score is...");
                global.score = global.score + (global.itemAmt[4] * 10) + (global.itemAmt[3] * 5) + (global.itemAmt[2] * 5) + (global.itemAmt[1] * 5) + (global.itemAmt[0] * 2) + 4;
                Console.WriteLine(global.score + " /100");
                Console.WriteLine("For a harder challange go to the help menu type in 'hard' ");
                global.actionB = Console.ReadLine();
                global.actionB = Console.ReadLine();
                global.actionB = Console.ReadLine();
            }

            global.hpB = Math.Ceiling(global.hpB);
            global.hpL = Math.Ceiling(global.hpL);
            if (global.fire >= 100 && global.FOF != "fire")
            {
                global.fire = 100;
                global.oldFOF = global.FOF;
                global.FOF = "fire";
            }
            else if (global.water >= 100 && global.FOF != "water")
            {
                global.water = 100;
                global.oldFOF = global.FOF;
                global.FOF = "water";
            }
            else if (global.wind >= 100 && global.FOF != "wind")
            {
                global.wind = 100;
                global.oldFOF = global.FOF;
                global.FOF = "wind";
            }
            else if (global.earth >= 100 && global.FOF != "earth")
            {
                global.earth = 100;
                global.oldFOF = global.FOF;
                global.FOF = "earth";
            }

            if (global.fire > 100)
            {
                global.fire = 100;
            }

            if (global.water > 100)
            {
                global.water = 100;
            }
            if (global.wind > 100)
            {
                global.wind = 100;
            }
            if (global.earth > 100)
            {
                global.earth = 100;
            }
            if (global.fire == 100 && global.oldFOF == "fire")
            {
                global.fire = 0;
            }
            else if (global.water == 100 && global.oldFOF == "water")
            {
                global.water = 0;
            }
            else if (global.wind == 100 && global.oldFOF == "wind")
            {
                global.wind = 0;
            }
            else if (global.earth == 100 && global.oldFOF == "earth")
            {
                global.earth = 0;
            }

            if (global.FOF == "fire" && global.usedFOF == 't')
            {
                global.fire = 0;
                global.usedFOF = 'f';
                global.FOF = "";
                global.score = global.score + 2;
            }
            if (global.FOF == "water" && global.usedFOF == 't')
            {
                global.water = 0;
                global.usedFOF = 'f';
                global.FOF = "";
                global.score = global.score + 2;
            }
            if (global.FOF == "earth" && global.usedFOF == 't')
            {
                global.earth = 0;
                global.usedFOF = 'f';
                global.FOF = "";
                global.score = global.score + 2;
            }
            if (global.FOF == "wind" && global.usedFOF == 't')
            {
                global.wind = 0;
                global.usedFOF = 'f';
                global.FOF = "";
                global.score = global.score + 2;
            }
            if (global.turnState == "end2")
            {
                EndTurn();
            }

            if (global.turnState == "end")
            {
                Dragon();
            }
            //System.Threading.Thread.Sleep(1500); // WAIT
            if (global.turnB == 'f' || global.turnL == 'f')
            {
                display();
            }
            else if (global.turnB == 't' && global.turnL == 't')
            {
                Dragon();
            }
            else
                Console.WriteLine("error at line 513...738-ish...965...1040");
            EndTurn();
        }




        public void EndTurn()
        {
            Console.Clear(); // IDK why this does not work.
                             // global,foeStateCheck. 
                             //dargon States

            if (global.foehp > global.foeMaxHp * .75 && global.foeStateCheck == 0)
            {
                Console.WriteLine("Dargon state: Perfect");
                global.foeStateCheck++;
            }
            else if (global.foehp > global.foeMaxHp * .50 && global.foeStateCheck == 1)
            {
                Console.WriteLine("Dargon state: good");
                global.foeStateCheck++;
            }
            else if (global.foehp > global.foeMaxHp * .25 && global.foeStateCheck == 2)
            {
                global.foeStateCheck++;
                Console.WriteLine("Dargon state: weak");
            }
            else if (global.foehp > global.foeMaxHp * .01 && global.foeStateCheck == 3)
            {
                global.foeBuff = global.foeBuff + 125;
                global.foeStateCheck++;
                Console.WriteLine("Dargon state: hurt");
            }


            global.turnB = 'f';
            global.turnL = 'f';
            global.turnState = "bartz";

            if (global.statusB == "stun")
            {
                global.statusB = "";
                global.turnState = "lele";
                global.turnB = 't';
            }

            if (global.statusL == "stun")
            {
                global.statusL = "";
                global.turnL = 't';
            }
            if (global.hpB < 1)
            {
                global.turnState = "lele";
                global.turnB = 't';
            }

            if (global.hpL < 1)
            {
                global.turnL = 't';
            }

            if (global.spregenB == 't')
            {
                global.spB = global.spB + 2;
            }
            if (global.spB > global.maxSpB)
            {
                global.spB = global.maxSpB;
            }

            if (global.spregenL == 't')
            {
                global.spL = global.spL + 1;
            }
            if (global.spL > global.maxSpL)
            {
                global.spL = global.maxSpL;
            }


            if (global.buffCounterB > 0)
            {
                global.buffCounterB = global.buffCounterB - 1;
                if (global.buffCounterB == 0)
                {
                    global.atkBuffB = 0;
                    global.matkBuffB = 0;
                    Console.WriteLine("Bartz atk has returned to normal");
                    System.Threading.Thread.Sleep(1000);
                }
            }
            if (global.buffCounterL > 0)
            {
                global.buffCounterL = global.buffCounterL - 1;
                if (global.buffCounterL == 0)
                {
                    Console.WriteLine("Lele defenses has returned to normal");
                    System.Threading.Thread.Sleep(1000);
                    global.defBuffL = 0;
                    global.mdefBuffL = 0;
                }
            }

            if (global.foeAtkct > 1)
            {
                global.foeAtkct = global.foeAtkct - 1;
                if(global.foeAtkct == 0)
                {
                    global.foeAtkUp = 0;
                    Console.WriteLine("The Dargon's power has returned to normal.");
                }
            }
            //supers check
            Random r = new Random();
            double rand = (r.Next(1, 101)); //can be 1 to 15
            if (rand <= ((global.maxHpB - (global.hpB * 2)) / (global.maxHpB * 1.5)) * 100)
            {
                global.superB = 't';
                Console.WriteLine("Bartz Go");
            }
            else
            {
                global.superB = 'f';
            }
            // Console.WriteLine("Bartz super :" + (((global.maxHpB - (global.hpB *2)) / (global.maxHpB*1.5) )*100)); //debug
            //Console.WriteLine(rand);


            rand = (r.Next(1, 101)); //can be 1 to 15
            if (rand <= ((global.maxHpL - (global.hpL * 2)) / (global.maxHpL * 1.5)) * 100)
            {
                global.superL = 't';
                Console.WriteLine("Lele Go.");
            }
            else
            {
                global.superL = 'f';
            }
            // Console.WriteLine("Lele super :" + (((global.maxHpL - (global.hpL *2)) / (global.maxHpL*1.5) )*100)); //debug
            // Console.WriteLine(rand);


            global.defActB = 1;
            global.defActL = 1;
            global.spregenB = 't';
            global.spregenL = 't';


            if (global.foehp < global.foeMaxHp / 2 && global.foeSuper == 0)
            {
                global.foeSuper++;
            }

            if (global.foehp < global.foeMaxHp / 4 && global.foeSuper == 4)
            {
                global.foeSuper++;
            }
            //Console.WriteLine("dargon super: "+global.foeSuper); // debug
            display();

        }



        public void Dragon()
        {
            Console.WriteLine(); // spaceing
            Random r = new Random();
            Random rx = new Random();
            Random dmg = new Random();
            int stun;
            char type = ' ';
            int wait = 750;
            // double dmgcalc ;
            //if at half helf, stop doing weak atks
            global.foeDie = (r.Next(1, 10));
            if (global.foeSuper > 0)
            {
                global.foeDie = (r.Next(3, 10));
            } 
            // target	  
            global.foeTarget = (rx.Next(1, 3));
            //States to activate super move
            if (global.foeSuper > 0 && global.foeSuper < 4)
            {
                global.foeDie = 12;
            }

            // if victor boost is active while it is also chosen as a move, try another move
            if (global.foeDie == 9 || global.foeAtkct > 0)
            {
                if (global.foeSuper > 0)
                {
                    global.foeDie = (r.Next(1, 10));
                }
                else
                { global.foeDie = (r.Next(3, 10)); }

                if (global.foeDie == 9)
                { global.foeDie = 8;
                    Console.WriteLine("double roll exception");
                }
            }
            //	if (global.foeSuper > 4 && global.foeSuper < 8)
            //{
            // global.foeDie =12;
            //}
            //global.foeDie = 7 ;
            //basic attack
            if (global.foeDie == 1)
            {
                type = 'p';
                global.foeDmg = 400 + (dmg.Next(-20, 21) + global.foeBuff);
                Console.WriteLine("The Dargon swipes its claws.");
                System.Threading.Thread.Sleep(wait); // WAIT
            }
            //breath weapon
            if (global.foeDie == 2)
            {
                //basic attack
                type = 'm';
                global.foeDmg = 450 + (dmg.Next(-20, 21) + global.foeBuff);
                Console.WriteLine("The Dargon fires an icy breath.");
                global.water = global.water + 50;
                System.Threading.Thread.Sleep(wait);
            }
            //dragon salvo 
            if (global.foeDie == 3)
            {
                type = 'p';
                if (global.FOF == "wind")
                {
                    Console.WriteLine("SECRET TECH ACTIVATED: Dragon Salvo");
                    global.foeDmg = 825 + (dmg.Next(-21, 21) + global.foeBuff + global.foeAtkUp);
                    System.Threading.Thread.Sleep(1000); // WAIT
                    Console.WriteLine("Quicker than quick. Before you notice that the Dargon has vanished from your sight you feel that you are tossed high in the air. Then promply slam into the ground.");
                    System.Threading.Thread.Sleep(3000); // WAIT
                    global.usedFOF = 't';
                }
                else
                {
                    global.foeDmg = 650 + (dmg.Next(-30, 31) + global.foeBuff + global.foeAtkUp);
                    Console.WriteLine("The Dargon quickly moves and blindsides you, unleasing a flurry of claw slashes ending with a bite.");
                    System.Threading.Thread.Sleep(wait * 2);
                }
            }

            //Tectonic Tear
            if (global.foeDie == 4)
            {
                type = 'm';
                global.foeTarget = 3;
                global.foeDmg = 525 + (dmg.Next(-30, 31) + global.foeBuff + global.foeAtkUp);
                global.foeDmg2 = 525 + (dmg.Next(-30, 31) + global.foeBuff + global.foeAtkUp);
                global.earth = global.earth + 50;
                Console.WriteLine("Spell: Tectonic Tear");
                System.Threading.Thread.Sleep(wait);
                Console.WriteLine("The ground shakes violently and rocks raze from the ground assaulting you.");
                System.Threading.Thread.Sleep(wait * 2);
            }

            //Flare storm
            if (global.foeDie == 5)
            {
                type = 'm';
                global.foeTarget = 3;

                if (global.FOF == "earth")
                {
                    Console.WriteLine("SECRET TECH ACTIVATED: Meteor Swarm");
                    global.foeDmg = 825 + (dmg.Next(-30, 31) + global.foeBuff + global.foeAtkUp);
                    global.foeDmg2 = 825 + (dmg.Next(-30, 31) + global.foeBuff + global.foeAtkUp);
                    System.Threading.Thread.Sleep(1000); // WAIT
                    Console.WriteLine("Grand Meteors fall from the sky, eurupting and destorying the land wherever they land harming everybody.");
                    System.Threading.Thread.Sleep(3000); // WAIT
                    global.usedFOF = 't';
                    global.foehp = global.foehp - (global.foeDmg + global.foeDmg2) / 2;
                    Console.WriteLine("Dargon takes " + (global.foeDmg + global.foeDmg2) / 2 + " backlash damage");
                }
                else
                {
                    global.foeDmg = 625 + (dmg.Next(-30, 31) + global.foeBuff + global.foeAtkUp);
                    global.foeDmg2 = 625 + (dmg.Next(-30, 31) + global.foeBuff + global.foeAtkUp);
                    Console.WriteLine("Spell: Flare Storm");
                    global.fire = global.fire + 50;
                    System.Threading.Thread.Sleep(wait);
                    Console.WriteLine("The Dargon errects a wall of flame, englfing your party in crimson hell fire.");
                    System.Threading.Thread.Sleep(wait * 2);
                }
            }


            //Shout
            if (global.foeDie == 6)
            {
                global.foeDmg = 375 + (dmg.Next(-30, 31) + global.foeBuff + global.foeAtkUp);
                Console.WriteLine("The Dargon lets out a horendus shout.");
                System.Threading.Thread.Sleep(wait);
                stun = (r.Next(1, 11));
                //Console.WriteLine("stun = " + stun); //debug
                if (stun > 4)
                {
                    if (global.foeTarget == 1 && global.hpB > 0)
                    {
                        global.statusB = "stun";
                        Console.WriteLine("bartz is Stunned");
                    }
                    else
                    {
                        global.statusL = "stun";
                        Console.WriteLine("Lele is Stunned");
                    }

                    if (global.foeTarget == 2 && global.hpL > 0)
                    {
                        global.statusL = "stun";
                        Console.WriteLine("Lele is Stunned");
                    }
                    else
                    {
                        global.statusB = "stun";
                        Console.WriteLine("Bartz is Stunned");
                    }
                    System.Threading.Thread.Sleep(wait);
                }
                type = 'p';
                System.Threading.Thread.Sleep(wait);
            }

            // Dive flip
            if (global.foeDie == 7)
            {
                global.foeTarget = 3;
                global.foeDmg = 475 + (dmg.Next(-30, 31) + global.foeBuff + global.foeAtkUp);
                global.foeDmg2 = 475 + (dmg.Next(-30, 31) + global.foeBuff + global.foeAtkUp);
                Console.WriteLine("The Dargon spiral Drive through your party.");
                type = 'p';
                System.Threading.Thread.Sleep(wait);
            }


            //light crusher
            if (global.foeDie == 8)
            {
                if (global.FOF == "fire")
                {
                    global.foeDmg = 775 + (dmg.Next(-30, 31) + global.foeBuff + global.foeAtkUp);
                    Console.WriteLine("SECRET TECH ACTIVATED: Light Crusher");
                    System.Threading.Thread.Sleep(800); // WAIT
                    Console.WriteLine("The Dargon creates a slicing beacon of light.");
                    System.Threading.Thread.Sleep(1000); // WAIT
                    global.usedFOF = 't';
                    stun = (r.Next(1, 11));
                    if (stun > 2)
                    {
                        if (global.foeTarget == 1)
                        {
                            global.statusB = "stun";
                            Console.WriteLine("bartz is Stunned");
                        }

                        if (global.foeTarget == 2)
                        {
                            global.statusL = "stun";
                            Console.WriteLine("Lele is Stunned");
                        }
                        System.Threading.Thread.Sleep(wait);
                    }
                }
                else
                {
                    global.foeDmg = 750 + (dmg.Next(-30, 31) + global.foeBuff);
                    Console.WriteLine("The Dargon creates a slicing beacon of light.");
                }
                System.Threading.Thread.Sleep(wait);
                type = 'm';
            }

            if (global.foeDie == 9)
            {
                Console.WriteLine("The Dargon invigorates itself, increasing it's strength");
                global.foeAtkUp = 100;
                global.foeAtkct = 4;
                global.foeTarget = 0;
            }

            if (global.foeDie == 12)
            {
                if (global.foeSuper == 3 || global.foeSuper == 7)
                {
                    Console.WriteLine("Mystic Tech activated : STAR DESTROYER");
                    global.foeSuper++;
                    System.Threading.Thread.Sleep(wait);
                    Console.WriteLine("In the sky, the Dargon glows red it begins to get closer and closer.");
                    System.Threading.Thread.Sleep(wait * 2);
                    Console.WriteLine("It picks up more and more speed as he falls to your location, glowing white hot.");
                    System.Threading.Thread.Sleep(wait * 2);
                    Console.WriteLine("The resounding Impact tears the very ground you stand on, massive shakes and an impact so huge it could be seen from miles away.");
                    System.Threading.Thread.Sleep(wait * 3);
                    Console.WriteLine("Only with cunning and luck could you of survived such an attack...");
                    System.Threading.Thread.Sleep(wait * 3);
                    if (global.foeSuper == 7)
                    {

                    }
                    global.foeTarget = 4;
                    global.foeDmg = 2190 + (dmg.Next(-30, 60)) + global.foeBuff + (global.foeBuff + global.foeAtkUp *2);
                    global.foeDmg2 = 2190 + (dmg.Next(-30, 60)) + global.foeBuff + global.foeBuff + global.foeAtkUp + (global.foeBuff + global.foeAtkUp*2);
                }
                if (global.foeSuper == 2 || global.foeSuper == 6)
                {
                    Console.WriteLine("The Dargon Launches itself into the air, storeing energy.");
                    global.foeSuper++;
                    System.Threading.Thread.Sleep(wait);
                    global.turnState = "end2";
                    ElementCheck();
                }

                if (global.foeSuper == 1 || global.foeSuper == 5)
                {
                    Console.WriteLine("The Dargon preps itself for flight.");
                    global.foeSuper++;
                    System.Threading.Thread.Sleep(wait);
                    global.turnState = "end2";
                    ElementCheck();
                }


            }


            //targeting
            if (global.hpB < 1 && global.foeTarget == 1)
            {
                global.foeTarget = 2;
            }
            if (global.hpL < 1 && global.foeTarget == 2)
            {
                global.foeTarget = 1;
            }

            //targeting 1 is bartz 2 is lele 3 is both. damage calculations for magical and phys are also in there.
            if (global.foeTarget == 1)
            {
                if (type == 'p')
                {
                    global.hpB = (global.hpB - (global.foeDmg - global.defB) / global.defActB);
                    Console.WriteLine("Bartz is hit and takes " + ((global.foeDmg - global.defB) / global.defActB) + " damage.");
                }
                else
                {
                    global.hpB = (global.hpB - (global.foeDmg - global.mdefB) / global.defActB);
                    Console.WriteLine("Bartz is hit and takes " + (global.foeDmg - global.mdefB) / global.defActB);
                }
            }

            //target is lele
            if (global.foeTarget == 2)
            {
                if (type == 'p')
                {
                    global.hpL = global.hpL - (global.foeDmg - global.defL - global.defBuffL) / global.defActL;
                    Console.WriteLine("Lele is hit for " + (global.foeDmg - global.defL - global.defBuffL) / global.defActL + " damage.");
                }
                else
                {
                    global.hpL = (global.hpL - (global.foeDmg - global.defL - global.mdefBuffL) / global.defActB);
                    Console.WriteLine("Lele is hit for " + (global.foeDmg - global.mdefL - global.mdefBuffL) / global.defActL + " damage.");
                }
            }

            //all
            if (global.foeTarget == 3)
            {
                if (type == 'p' && global.hpB > 0 && global.hpL > 0)
                {
                    global.hpB = (global.hpB - (global.foeDmg - global.defB) / global.defActB);
                    Console.WriteLine("Bartz is hit for " + ((global.foeDmg - global.defB) / global.defActB) + " damage.");
                    System.Threading.Thread.Sleep(wait);
                    global.hpL = global.hpL - (global.foeDmg2 - global.defL - global.defBuffL) / global.defActL;
                    Console.WriteLine("Lele is hit for " + (global.foeDmg2 - global.defL - global.defBuffL) / global.defActL + " damage.");
                }
                else if (type == 'p')
                {
                    if (global.hpB > 0)
                    {
                        global.hpB = (global.hpB - (global.foeDmg - global.defB) / global.defActB);
                        Console.WriteLine("Bartz is hit for " + ((global.foeDmg - global.defB) / global.defActB) + " damage.");
                    }
                    else
                    {
                        global.hpL = global.hpL - (global.foeDmg2 - global.defL - global.defBuffL) / global.defActL;
                        Console.WriteLine("Lele is hit for " + (global.foeDmg2 - global.defL - global.defBuffL) / global.defActL + " damage.");
                    }
                }


                else if (type == 'm' && global.hpB > 0 && global.hpL > 0)
                {
                    global.hpB = (global.hpB - (global.foeDmg - global.mdefB) / global.defActB);
                    Console.WriteLine("Bartz is hit and takes " + (global.foeDmg - global.mdefB) / global.defActB);
                    System.Threading.Thread.Sleep(wait);
                    global.hpL = (global.hpL - (global.foeDmg2 - global.defL - global.mdefBuffL) / global.defActB);
                    Console.WriteLine("Lele is hit for " + (global.foeDmg2 - global.mdefL - global.mdefBuffL) / global.defActL + " damage.");
                }
                else if (type == 'm')
                {
                    if (global.hpB > 0)
                    {
                        global.hpB = (global.hpB - (global.foeDmg - global.mdefB) / global.defActB);
                        Console.WriteLine("Bartz is hit and takes " + (global.foeDmg - global.mdefB) / global.defActB);
                    }
                    else
                    {
                        global.hpL = (global.hpL - (global.foeDmg2 - global.defL - global.mdefBuffL) / global.defActB);
                        Console.WriteLine("Lele is hit for " + (global.foeDmg2 - global.mdefL - global.mdefBuffL) / global.defActL + " damage.");
                    }
                }
            }
            if (global.foeTarget == 4)
            {
                global.hpB = (global.hpB - (global.foeDmg - global.defB - global.mdefB) / global.defActB);
                Console.WriteLine("Bartz takes a collosal " + ((global.foeDmg - global.defB - global.mdefB) / global.defActB) + " points of damage damage.");
                System.Threading.Thread.Sleep(wait);
                global.hpL = global.hpL - (global.foeDmg2 - global.defL - global.defBuffL - global.mdefL - global.mdefBuffL) / global.defActL;
                Console.WriteLine("Lele is hit for " + (global.foeDmg2 - global.mdefL - global.mdefBuffL - global.mdefBuffL) / global.defActL + " damage.");
            }
            System.Threading.Thread.Sleep(wait * 2);
            //Console.WriteLine("test dmg" + global.foeDmg);

            if (global.turnState == "end")
            {
                global.turnState = "end2";
            }
            else
            {
                global.turnState = "end";
            }
            ElementCheck();
        }

        public void Help()
        {
            Console.WriteLine("ok... so in this game you want to beat the dargon (yes,thats how it's spelled.");
            System.Threading.Thread.Sleep(250); // WAIT
            Console.WriteLine("to use attacks, type in a command from the choices above, the commands are between the parentheses 'atk' 'def' ect");
            System.Threading.Thread.Sleep(250); // WAIT
            Console.WriteLine("Bartz excells in skill based moves (sp) and Lele is great at magic (mp)");
            System.Threading.Thread.Sleep(250); // WAIT
            Console.WriteLine("Healing spells target the lowest health characer");
            System.Threading.Thread.Sleep(250); // WAIT
            Console.WriteLine("also elemental attacks will build up the elemental guage, when one is at 100 try using a move and see what happens.");
            System.Threading.Thread.Sleep(250); // WAIT
            Console.WriteLine("Press enter whenever your ready and send spelling / grammer issues to 'www.ilikeasianssoibuythem.com'.");
            global.actionB = Console.ReadLine();
            if (global.actionB == "hard")
            {
                Console.WriteLine("ok... you asked for it.");
                System.Threading.Thread.Sleep(1000); // WAIT
                Console.WriteLine("Max Health DOWN");
                System.Threading.Thread.Sleep(1000); // WAIT
                Console.WriteLine("Dargon atk UP");
                System.Threading.Thread.Sleep(1000); // WAIT
                Console.WriteLine("No regrets yeah?");
                global.maxHpB = 2400;
                global.maxHpL = 1600;
                global.foeBuff = 125;
                if (global.hpB > global.maxHpB)
                {
                    global.hpB = global.maxHpB;
                }

                if (global.hpL > global.maxHpL)
                {
                    global.hpL = global.maxHpL;
                }
            }
            display();
        }



        class Program
        {
            // sets up command list
            static void Main(string[] args)
            {
                global.listB[0] = "(atk) Attack";
                global.listB[1] = "(db) Drain Blade (2mp)";
                global.listB[2] = "(ep) Euruption (3mp)";
                global.listB[3] = "(tb) Thunderblade (4mp)";
                global.listB[4] = "(mt) Might (3mp)";
                global.listB[5] = "(bc) Blazing cutter (5sp)";
                global.listB[6] = "(lb) Lightning blade (6sp)";
                global.listB[7] = "(dh) Dark hold (6sp)";
                global.listB[8] = "(rf) Rising falcon(8sp)";
                global.listB[9] = "(def) Defend";
                global.listB[10] = "(it) Item";
                global.listB[11] = "(sw) Switch";
                global.listB[12] = "(ss) SHINING SPARK";

                global.listL[0] = "(atk) Attack";
                global.listL[1] = "(ro) Rockslide (3mp)";
                global.listL[2] = "(rt) Rushing Tsunami (4mp)";
                global.listL[3] = "(fs) Fire Storm (6mp)";
                global.listL[4] = "(he) Heal (4mp)";
                global.listL[5] = "(gr) Graceful Respite (6mp)";
                global.listL[6] = "(rs) Rayshot (3sp)";
                global.listL[7] = "(ba) Barrier (4sp)";
                global.listL[8] = "(gp) Ghost Plight (5sp)";
                global.listL[9] = "(def) Defend";
                global.listL[10] = "(it) Item";
                global.listL[11] = "(sw) Switch";
                global.listL[12] = "(pr) PROVIDENCE REVOKE";

                global.item[0] = "(pot) Potion (1000hp)";
                global.itemAmt[0] = 5;
                global.item[1] = "(hi) Hi-Potion (2000hp)";
                global.itemAmt[1] = 2;
                global.item[2] = "(fl) Flask (30mp)";
                global.itemAmt[2] = 3;
                global.item[3] = "(sg) Spirit Gel (30sp)";
                global.itemAmt[3] = 3;
                global.item[4] = "(gp) God Plume (revive)";
                global.itemAmt[4] = 4;

                var d = new Game();
                //var dr= new Game(); //debug
                Console.WriteLine("Welcome to the final battle, type in 'help' at anytime for assistance");
                System.Threading.Thread.Sleep(1000); // WAIT
                                                     //dr.Dragon(); //debug to skip player's turn
                d.display();
            }
        }
    }
}

/*
Xenoblade 2 does not value the player at all.
The game is cool and has some neat ideas but some of this design is inexcusible and is clearly padding.
Almost every single quest ive done ends up being a fest quest. Every time i do a side quest i end up
having to run around a giant feild to glowing farm spots to try to get a random drop of 10 or so items
to complete a part of a quest to only have to run around again and find more misalanious items.
Even plot story beats are not imunue to stopping to a grinding halt for you to take an asinine quck trip to point b
only to return to point A and still not able to advance. 
There was a point where i was about to hop on a boat to go to another continent when a kid steals my Core and runs to another titan with it...
I then spent 2 hours on this part to only then get to go on my bloody boat trip.
*/