Пример #1
0
        public Llatext.Instructions.Instruction Introduction()
        {
            InevitableGUI.Output("You wake up the next morning. You grab some of your previous inventory items and take them with you");
            InevitableGUI.Output("Your next mission is to obtain some breakfast from the Supermarket: cerial and milk.");


            //Bit dirty - but this means it doesn't come from a savegame
            if (InventoryHandling.InventoryCount() != 0)
            {
                //clear the inventory
                InventoryHandling.RemoveAll();

                InventoryHandling.AddItem(new InventoryItem("money", "Enough cash to buy yourself some cerial and milk"));
                InventoryHandling.AddItem(new InventoryItem("hammerdriver", "Your faithful multi-tool companion"));

                return(new Instruction(InstructionType.SAVE, "1")); //save day 1
            }
            else
            {
                //comes from a savegame
                InventoryHandling.AddItem(new InventoryItem("money", "Enough cash to buy yourself some cerial and milk"));
                InventoryHandling.AddItem(new InventoryItem("hammerdriver", "Your faithful multi-tool companion"));

                return(new Instruction());
            }
        }
Пример #2
0
        public Llatext.Instructions.Instruction Use(string parameter)
        {
            if (parameter.Equals("ATM"))
            {
                if (InventoryHandling.HasItem("paycheck"))
                {
                    InevitableGUI.Output("You insert the paycheck into the ATM. You get some cash in return. Hooray");

                    InventoryHandling.RemoveItem("banknote");
                    InventoryHandling.RemoveItem("paycheck");
                    InventoryHandling.AddItem(new InventoryItem("cash", "Money Money Money"));

                    return(new Instruction());
                }
                else
                {
                    InevitableGUI.Output("You don't have your paycheck");
                    return(new Instruction());
                }
            }
            else
            {
                InevitableGUI.Output("You can't use that");
                return(new Instruction());
            }
        }
Пример #3
0
        public Llatext.Instructions.Instruction Use(string[] items)
        {
            if (items.Contains("ATM"))
            {
                if (items.Contains("HAMMERDRIVER") && InventoryHandling.HasItem("hammerdriver"))
                {
                    InevitableGUI.Output("You raise your hammerdriver, but then think better of it");
                }
                else if (items.Contains("PAYCHECK") && InventoryHandling.HasItem("paycheck"))
                {
                    InevitableGUI.Output("You insert the paycheck into the ATM. You get some cash in return. Hooray");
                    InventoryHandling.RemoveItem("banknote");
                    InventoryHandling.RemoveItem("paycheck");
                    InventoryHandling.AddItem(new InventoryItem("cash", "Money Money Money"));
                }
                else
                {
                    InevitableGUI.Output("That won't work");
                }
            }
            else if (items.Contains("RECEPTIONIST"))
            {
                if (items.Contains("BANKNOTE") && InventoryHandling.HasItem("banknote"))
                {
                    InevitableGUI.Output("He sneers at you 'That's not nearly enough'");
                }
                else if (items.Contains("CASH") && InventoryHandling.HasItem("cash"))
                {
                    if (hasKey)
                    {
                        InevitableGUI.Output("You've already paid him");
                    }
                    else
                    {
                        InevitableGUI.Output("He takes some of your money, handing you the rest and opens a room for you.");
                        InevitableGUI.Output("You can go North now");
                        hasKey = true;
                    }
                }
                else if (items.Contains("HAMMERDRIVER") && InventoryHandling.HasItem("hammerdriver"))
                {
                    InevitableGUI.Output("You raise the hammerdriver threatiningly. The receptionist fears for his life and pulls out a shotgun from his desk");
                    InevitableGUI.Output("You are shot. You die");
                    return(new Instruction(InstructionType.DEATH, "Had too much lead in his diet. Survived till day 0.6"));
                }
                else
                {
                    InevitableGUI.Output("That won't work");
                }
            }
            else
            {
                InevitableGUI.Output("That won't work");
            }

            return(new Instruction());
        }
Пример #4
0
        public Llatext.Instructions.Instruction Use(string parameter)
        {
            if (parameter.Contains("ATM"))
            {
                InevitableGUI.Output("The ATM isn't working, its powered off");
                return(new Instruction());
            }
            else if (parameter.Contains("FLAP"))
            {
                InevitableGUI.Output("You push your hand through the flap and grab around. You pick up a mysterious tube and put it in your pocket");
                InevitableGUI.Output("You examine the tube and discover it to be a tube of PSpray - a commerical Pepper Spray solution");

                InventoryHandling.AddItem(new InventoryItem("pspray", "A bottle of pepper spray"));
            }
            return(new Instruction());
        }
Пример #5
0
        public Llatext.Instructions.Instruction Take(string parameter)
        {
            if (parameter.EqualsCaseless("register"))
            {
                InevitableGUI.Output("That's illegal! As a law-abiding citizen you shouldn't harbour such thoughts");
            }
            else if (parameter.EqualsCaseless("cashier"))
            {
                InevitableGUI.Output("You're not touching him. He's ginger!");
            }
            else if (parameter.EqualsCaseless("sweets") || parameter.EqualsCaseless("jar"))
            {
                InevitableGUI.Output("You wait till the guy isn't looking and then nick a few. You add sweets to your inventory");
                InventoryHandling.AddItem(new InventoryItem("sweets", "Some mint flavoured sweets"));
            }
            else
            {
                InevitableGUI.Output("You can't take that");
            }

            return(new Instruction());
        }