コード例 #1
0
        public static Quest TutorialLeatherQuest()
        {
            var quest = new Quest()
            {
                Name        = "Get Equipped!",
                Description = "<div class='questColor'><p>Loot the goblin camp, there is 6 pieces of leather armour hidden here that you can use.</p>" +
                              "<ul><li>Leather Helmet</li>" +
                              "<li>Leather vest</li>" +
                              "<li>Leather sleeves</li>" +
                              "<li>Leather gloves</li>" +
                              "<li>Leather leggings</li>" +
                              "<li>Leather boots</li></ul>" +
                              "<p>You will need to look and examine to find all these items.</p></div>",
                RewardXp   = 500,
                RewardGold = 20,
                Type       = Quest.QuestType.FindItem,
                QuestItem  = new List <Item.Item>()
                {
                    LeatherHead.LeatherHelmet(),
                LeatherBody.LeatherVest(),
                LeatherLegs.LeatherLeggings(),
                LeatherArms.LeatherSleeves(),
                LeatherFeet.LeatherBoots(),
                LeatherHands.LeatherGloves()
                },
                RewardDialog = new DialogTree()
                {
                    Message = "A curved dagger appears in your inventory...test"
                },
                RewardItem = DaggerBasic.BronzeCurvedDagger()
            };

            return(quest);
        }
コード例 #2
0
        public static Quest TutorialLeatherQuest()
        {
            var quest = new Quest()
            {
                Name        = "This goblin camp may have some useful items that may help you.",
                Description = "<div class='questColor'>" +
                              "<p>To find them, here are some things that you need to know:</p>" +
                              "<ul><li>Kill &lt;target&gt; - example: kill goblin.</li></ul>" +
                              "<p>After the fight you will want to check the corpse for items:</p>" +
                              "<ul><li>look in &lt;item&gt; - example: look in corpse. To list items on the corpse.</li>" +
                              "<li>get &lt;item&gt; corpse - example: get sword corpse. To get the sword from the corpse.</li></ul>" +
                              "<p>Some items may be inside containers that need opening:</p>" +
                              "<ul><li>open &lt;container&gt; - example: open chest. Will now allow to view items inside the chest when you look in to it.</li></ul>" +
                              "<p>For hidden items you should read the room description carefully and examine objects you see in the description, doing so may reveal a hidden item.</p>" +
                              "<ul><li>examine &lt;keyword&gt; - example: examine desk. May give you a more detailed description of what's on the table that's not shown in the room description.</li></ul>" +
                              "<p>If you need help on commands use the help command to get a list of them. </p>" +
                              "<p>Also you may with to <a href='https://discord.gg/nuf7FVq' target='_blank'>join the discord community</a> and give your feedback. </p>" +
                              "<p>ArchaicQuest is in development and your input and feedback will really help make this game better for everyone.</p>" +
                              "<p>Good luck.</p></div>"
                ,


                RewardXp   = 500,
                RewardGold = 20,
                Type       = Quest.QuestType.FindItem,
                QuestItem  = new List <Item.Item>()
                {
                    LeatherHead.LeatherHelmet(),
                LeatherBody.LeatherVest(),
                LeatherLegs.LeatherLeggings(),
                LeatherArms.LeatherSleeves(),
                LeatherFeet.LeatherBoots(),
                LeatherHands.LeatherGloves()
                },
                RewardDialog = new DialogTree()
                {
                    Message = "Well done, a curved dagger appears in your inventory."
                },
                RewardItem = DaggerBasic.BronzeCurvedDagger()
            };

            return(quest);
        }
コード例 #3
0
        public static Room.Room TutorialGoblinCampTentSouth()
        {
            var room = new Room.Room
            {
                region       = "Tutorial",
                area         = "Tutorial",
                areaId       = 5,
                title        = "A tent in the goblin camp",
                description  = "<p>A small bed and wooden chest has been set up against the side of the tent, filling most of the space. A small cluttered desk sits on the other side leaving just about enough room to enter and leave.</p>",
                InstantRePop = true,
                //Defaults
                exits    = new List <Exit>(),
                items    = new List <Item.Item>(),
                mobs     = new List <PlayerSetup.Player>(),
                terrain  = Room.Room.Terrain.Field,
                keywords = new List <RoomObject>()
                {
                    new RoomObject()
                    {
                        name = "gold coins"
                    },
                    new RoomObject()
                    {
                        name = "paper"
                    },
                    new RoomObject()
                    {
                        name = "small candle"
                    },
                    new RoomObject()
                    {
                        name = "bread crumbs"
                    }
                },
                corpses       = new List <PlayerSetup.Player>(),
                players       = new List <PlayerSetup.Player>(),
                fighting      = new List <string>(),
                clean         = true,
                updateMessage = "A loud screech echos through the forest."
            };


            var west = new Exit
            {
                name     = "North",
                area     = "Tutorial",
                region   = "Tutorial",
                areaId   = 3,
                keywords = new List <string>(),
                hidden   = false,
                locked   = false,
                canLock  = true,
                canOpen  = true,
                open     = true,
                doorName = null
            };


            var chest = new Item.Item
            {
                name          = "Basic looking wooden chest",
                stuck         = true,
                type          = Item.Item.ItemType.Container,
                open          = false,
                canOpen       = true,
                container     = true,
                containerSize = 5,
                location      = Item.Item.ItemLocation.Room,
                description   = new Description()
                {
                    exam =
                        "A small poorly crafted wooden chest sits on the floor at the foot of the bed. There is no visible lock.",
                    look = "A small poorly crafted wooden chest sits on the floor at the foot of the bed."
                },
                keywords = new List <string>()
                {
                    "Chest",
                    "Wooden",
                    "Wooden Chest"
                },
                containerItems = new ItemContainer()
                {
                    LeatherArms.LeatherSleeves()
                }
            };


            var desk = new RoomObject
            {
                name    = "Desk",
                look    = "Pieces of paper, gold coins and bread crumbs lay scattered across the desk. A leather helmet lays next to a small candle which illuminates the tent with an orange glow.",
                examine = "Pieces of paper, gold coins and bread crumbs lay scattered across the desk. A leather helmet lays next to a small candle which illuminates the tent with an orange glow.",
            };


            var deskContainer = new Item.Item
            {
                name           = "desk",
                stuck          = true,
                type           = Item.Item.ItemType.Container,
                open           = true,
                canOpen        = false,
                container      = true,
                containerSize  = 5,
                location       = Item.Item.ItemLocation.Room,
                description    = new Description(),
                keywords       = new List <string>(),
                isHiddenInRoom = true,
                containerItems = new ItemContainer()
                {
                    LeatherHead.LeatherHelmet()
                }
            };

            room.keywords.Add(desk);
            room.items.Add(LeatherFeet.LeatherBoots());
            room.items.Add(deskContainer);
            room.items.Add(chest);

            var goblin = Goblin.WeakGoblin();

            goblin.Recall = new Recall()
            {
                Region = "Tutorial",
                Area   = "Tutorial",
                AreaId = 5
            };

            goblin.Gold = 10;


            room.mobs.Add(goblin);


            room.Emotes.Add("You hear a howl in the distance.");

            room.exits.Add(west);

            return(room);
        }