=5) { 公共静态int extraATK=1; } } } } },c#,C#" /> =5) { 公共静态int extraATK=1; } } } } },c#,C#" />

c#中的多个错误无法解决 使用系统; 命名空间VSCode { 班级计划 { 静态void Main() { //终端设置 Console.Title=“地下城爬虫”; 控制台高度=40; Console.WindowWidth=150; //瓦尔斯 int playerHP=10; string armorType=“皮革束腰外衣”; 整数armorValue=1; 字符串weaponType=“木剑”; int weaponDMG=2; int gold=100; 字符串灌肠型; int-enemyHP; 内特灌肠甲; int-enemyDMG; Console.WriteLine(“键入“开始”开始游戏”); if(Console.ReadLine()=“开始”) { 地下城爬虫中心(); } 虚空地牢爬虫中心() { //介绍 控制台。WriteLine(“欢迎来到地牢爬虫!”); Console.WriteLine(“---按任意键以获取下一行---”); Console.ReadKey(true); Console.WriteLine(“地下城爬虫”是由YaLocalJesterBoi AKA Addi-O制作的游戏); Console.ReadKey(true); WriteLine(“---这是一个简单的纯文本RPG,我正在独自工作,只需要很少的yt帮助之类的东西。我只是为了好玩而做这个东西----”; Console.ReadKey(true); Console.WriteLine(“---无论如何,享受吧!”); Console.ReadKey(true); 控制台。WriteLine(“---你是一个冒险家,从很远的地方来,为了打败众神的地牢,'马拉基斯'”); Console.ReadKey(true); 像大多数其他冒险家一样,你想要的只是金钱和战利品。成为他们中最强大的一员; Console.ReadKey(true); Console.WriteLine(“--目前你有“+玩家P+”HP“+盔甲类型+”护甲类型,提供“+盔甲价值+”护甲和“+黄金+”黄金以及“+武器类型+”造成“+武器MG+”攻击伤害-”); Console.ReadKey(true); Console.WriteLine(“---地下城马拉基斯非常有名,有一个从“F”级冒险家冒险到S级冒险家来彻底击败地下城的所有人——”; Console.ReadKey(true); WriteLine(“---你,就像许多其他雄心勃勃的冒险家一样,只是想要一些钱和战利品来过奢侈的生活----”; Console.ReadKey(true); 控制台写入线("---地牢本身非常受欢迎,吸引了来自世界各地的人来探索它,但卖点不仅仅是地牢本身,而是它周围建立的城市。众所周知,马拉基斯城是买卖任何获得的或用于冒险的东西的最佳地方,从一把神剑到一把简单的剑每个小贩卖的保健药水----”; Console.ReadKey(true); Console.WriteLine(“----键入'/dungeon'转到地牢---”; WriteLine(“---如果你不遵守,游戏将简单地关闭---”); if(Console.ReadLine()==“/dungeon”) { 地牢(); } 其他的 { Console.WriteLine(“---因为你胡闹,你被抢劫并杀害了----”; Console.ReadKey(); playerHP=playerHP-10; 如果(playerHP3) { 地精战(); } 其他的 { slimeFight(); } } void goblinFight() { enemyType=“地精”; enemyHP=5; 灌肠护甲=0; enemyDMG=4; WriteLine(“---这个来战斗的居民是一个“+enemyType+”--”; Console.ReadKey(true); Console.WriteLine(“它有“+enemyHP+”HP”); Console.ReadKey(true); 攻击(); } void slimeFight() { enemyType=“粘液”; enemyHP=3; 灌肠护甲=0; enemyDMG=2; WriteLine(“---这个来战斗的居民是一个“+enemyType+”--”; Console.ReadKey(true); Console.WriteLine(“它有“+enemyHP+”HP”); Console.ReadKey(true); } 无效攻击() { enemyHP=(enemyHP+armorValue)-(武器装备管理+外部攻击); } void AddAttack() { 随机添加攻击=新随机(); int extraATKRoll=0; extratkroll=addAttack.Next(1,10); while(extraATKRoll>=5) { 公共静态int extraATK=1; } } } } }

c#中的多个错误无法解决 使用系统; 命名空间VSCode { 班级计划 { 静态void Main() { //终端设置 Console.Title=“地下城爬虫”; 控制台高度=40; Console.WindowWidth=150; //瓦尔斯 int playerHP=10; string armorType=“皮革束腰外衣”; 整数armorValue=1; 字符串weaponType=“木剑”; int weaponDMG=2; int gold=100; 字符串灌肠型; int-enemyHP; 内特灌肠甲; int-enemyDMG; Console.WriteLine(“键入“开始”开始游戏”); if(Console.ReadLine()=“开始”) { 地下城爬虫中心(); } 虚空地牢爬虫中心() { //介绍 控制台。WriteLine(“欢迎来到地牢爬虫!”); Console.WriteLine(“---按任意键以获取下一行---”); Console.ReadKey(true); Console.WriteLine(“地下城爬虫”是由YaLocalJesterBoi AKA Addi-O制作的游戏); Console.ReadKey(true); WriteLine(“---这是一个简单的纯文本RPG,我正在独自工作,只需要很少的yt帮助之类的东西。我只是为了好玩而做这个东西----”; Console.ReadKey(true); Console.WriteLine(“---无论如何,享受吧!”); Console.ReadKey(true); 控制台。WriteLine(“---你是一个冒险家,从很远的地方来,为了打败众神的地牢,'马拉基斯'”); Console.ReadKey(true); 像大多数其他冒险家一样,你想要的只是金钱和战利品。成为他们中最强大的一员; Console.ReadKey(true); Console.WriteLine(“--目前你有“+玩家P+”HP“+盔甲类型+”护甲类型,提供“+盔甲价值+”护甲和“+黄金+”黄金以及“+武器类型+”造成“+武器MG+”攻击伤害-”); Console.ReadKey(true); Console.WriteLine(“---地下城马拉基斯非常有名,有一个从“F”级冒险家冒险到S级冒险家来彻底击败地下城的所有人——”; Console.ReadKey(true); WriteLine(“---你,就像许多其他雄心勃勃的冒险家一样,只是想要一些钱和战利品来过奢侈的生活----”; Console.ReadKey(true); 控制台写入线("---地牢本身非常受欢迎,吸引了来自世界各地的人来探索它,但卖点不仅仅是地牢本身,而是它周围建立的城市。众所周知,马拉基斯城是买卖任何获得的或用于冒险的东西的最佳地方,从一把神剑到一把简单的剑每个小贩卖的保健药水----”; Console.ReadKey(true); Console.WriteLine(“----键入'/dungeon'转到地牢---”; WriteLine(“---如果你不遵守,游戏将简单地关闭---”); if(Console.ReadLine()==“/dungeon”) { 地牢(); } 其他的 { Console.WriteLine(“---因为你胡闹,你被抢劫并杀害了----”; Console.ReadKey(); playerHP=playerHP-10; 如果(playerHP3) { 地精战(); } 其他的 { slimeFight(); } } void goblinFight() { enemyType=“地精”; enemyHP=5; 灌肠护甲=0; enemyDMG=4; WriteLine(“---这个来战斗的居民是一个“+enemyType+”--”; Console.ReadKey(true); Console.WriteLine(“它有“+enemyHP+”HP”); Console.ReadKey(true); 攻击(); } void slimeFight() { enemyType=“粘液”; enemyHP=3; 灌肠护甲=0; enemyDMG=2; WriteLine(“---这个来战斗的居民是一个“+enemyType+”--”; Console.ReadKey(true); Console.WriteLine(“它有“+enemyHP+”HP”); Console.ReadKey(true); } 无效攻击() { enemyHP=(enemyHP+armorValue)-(武器装备管理+外部攻击); } void AddAttack() { 随机添加攻击=新随机(); int extraATKRoll=0; extratkroll=addAttack.Next(1,10); while(extraATKRoll>=5) { 公共静态int extraATK=1; } } } } },c#,C#,大约一百美元 using System; namespace VSCode { class Program { static void Main() { //Terminal Settings Console.Title = "Dungeon Crawler"; Console.WindowHeight = 40; Console.WindowWidth = 150; //

大约一百美元
using System;

namespace VSCode
{
 class Program
 {
    static void Main()
    {
        //Terminal Settings
        Console.Title = "Dungeon Crawler";
        Console.WindowHeight = 40;
        Console.WindowWidth = 150;

        //vars
        int playerHP = 10;
        string armorType = "Leather Tunic";
        int armorValue = 1;
        string weaponType = "Wooden sword";
        int weaponDMG = 2;
        int gold = 100;
        string enemyType;
        int enemyHP;
        int enemyArmor;
        int enemyDMG;

        Console.WriteLine("Type 'start' to start the game");

        if(Console.ReadLine() == "start")
        {
            DungeonCrawlersIntro();
        }

        void DungeonCrawlersIntro()
        {
            //intro
            Console.WriteLine("---Welcome To Dungeon Crawler!");
            Console.WriteLine("---Press Any Key to get the next line---");
            Console.ReadKey(true);
            Console.WriteLine("---Dungeon Crawler is a game made by YaLocalJesterBoi AKA Addi-O---");
            Console.ReadKey(true);
            Console.WriteLine("---It is a simple pure text RPG that I am working on alone with minimal yt help and the like. its just me making this thing for fun---");
            Console.ReadKey(true);
            Console.WriteLine("---Anyways, enjoy!");
            Console.ReadKey(true);
            Console.WriteLine("---You are an adventurer who has come from far away in order defeat the dungeon of the gods, 'Malakeith'---");
            Console.ReadKey(true);
            Console.WriteLine("--Like most other adventurers, all you want is money and loot. To be the strongest of them all---");
            Console.ReadKey(true);
            Console.WriteLine("---Currently you have " + playerHP + " HP " + armorType + " armor type that gives " + armorValue + " armor and " + gold + " Gold along with a " + weaponType + " that deals " + weaponDMG + " Attack damage---");                
            Console.ReadKey(true);
            Console.WriteLine("---The dungeon Malakeith is quite famous and has a dfficulty all the from 'F' rank adventurers adventuring, to S class adventurers comeing to beat the dungeon entirely---");
            Console.ReadKey(true);
            Console.WriteLine("---You, just like many other ambitious adventurers just want some money and loot to live your life lavishly---");
            Console.ReadKey(true);
            Console.WriteLine("---The Dungeon itself is extremely popular, garnering people from all pver the world to explore it, but the selling point isn't just the dungeon itself, but the city that has been created around it. Malakeith city is well known as the best place to buy and sell anything obtained, or used in adventuring, all the way from a godly sword, to a simple health potion sold by every peddler---");
            Console.ReadKey(true);
            Console.WriteLine("---Type '/dungeon' to go to the dungeon---");
            Console.WriteLine("---If you dont comply the game will simply shut down---");

            if(Console.ReadLine() == "/dungeon")
            {
                Dungeon();
            }

            else
            {
                Console.WriteLine("---Since you were messing around, you got mugged and killed---");
                Console.ReadKey();
                playerHP = playerHP - 10;
            
                if(playerHP < 1)
                {
                    return;
                }
            }   
        }

        void Dungeon()
        {
            Console.WriteLine("---You have entered the very first floor of the Malakeith dungeon!---");
            Console.ReadKey(true);
            Console.WriteLine("As you enter, you get transported into an iteration of the dungeon, totally randomized each time for every adventurer or party---");
            Console.ReadKey(true);
            Console.WriteLine("---The inside seem to be meadows, stretching on beyond the horizon---");
            Console.ReadKey(true);
            Console.WriteLine("---The only residents of this area are slimes and some other petty creatures such as goblins and the occasional goblin leader---");
            Console.ReadKey(true);
            Console.WriteLine("---One such resident of this area has decided to have a shit at killing you---");
            Console.ReadKey(true);
            enemyRoll();
        }

        void enemyRoll()
        {
            Random enemyRollValue = new Random();

            int roll = 0;
            roll = enemyRollValue.Next(1,7);

            while(roll > 3)
            {
                goblinFight();
            }

            else
            {
                slimeFight();
            }
        }
        
        void goblinFight()
        {
            enemyType = "goblin";
            enemyHP = 5;
            enemyArmor = 0;
            enemyDMG = 4;

            Console.WriteLine("---This resident that has come to fight is a " + enemyType + "---");
            Console.ReadKey(true);
            Console.WriteLine("It has " + enemyHP + " HP");
            Console.ReadKey(true);
            Attack();
        }

        void slimeFight()
        {
            enemyType = "slime";
            enemyHP = 3;
            enemyArmor = 0;
            enemyDMG = 2;

            Console.WriteLine("---This resident that has come to fight is a " + enemyType + "---");
            Console.ReadKey(true);
            Console.WriteLine("It has " + enemyHP + " HP");
            Console.ReadKey(true);
        }

        void Attack()
        {
            enemyHP = (enemyHP + armorValue) - (weaponDMG + extraATK);
        }

        void AddAttack()
        {
            Random addAttack = new Random();

            int extraATKRoll = 0;
            extraATKRoll = addAttack.Next(1,10);

            while(extraATKRoll >= 5)
            {
                public static int extraATK = 1;
            }
        }
    }
}
}
while(roll > 3)
{
    goblinFight();
}

//Comment out this mess, or do something else with it
//else
//{
//    slimeFight();
//}
while(extraATKRoll >= 5)
{
   // this doesn't make sense, comment it out
   //public static int extraATK = 1;
}
class Program
{
   public static int extraATK = 1;
void enemyRoll()
{
    Random enemyRollValue = new Random();

    int roll = 0;
    roll = enemyRollValue.Next(1,7);

    while(roll > 3)
    {
        goblinFight();
    }

    else
    {
        slimeFight();
    }
}
void enemyRoll()
{
    Random enemyRollValue = new Random();

    int roll = 0;
    roll = enemyRollValue.Next(1,7);

    if(roll > 3)
    {
        goblinFight();
    }
    else
    {
        slimeFight();
    }
}
void AddAttack()
{
    Random addAttack = new Random();

    int extraATKRoll = 0;
    extraATKRoll = addAttack.Next(1,10);

    while(extraATKRoll >= 5)
    {
        public static int extraATK = 1;
    }
}
void AddAttack()
{
    Random addAttack = new Random();

    int extraATKRoll = 0;
    extraATKRoll = addAttack.Next(1,10);

    if(extraATKRoll >= 5)
    {
        extraATK = 1;
    }
}