Beispiel #1
0
        public static void Dan(PictureBox pic, Label des, Button right, Button Left, Characters player)
        {
            Location synagogue = new TransLoc(globalVar.locations[9], globalVar.transports[3], true, globalVar.enemies[2], 50, 10, 0.5f, globalVar.npcs[3]);
            string   desc      = Logic.description.describeObj(0, 9, 10, 2, 3);

            playerChoices.addToList(desc);

            pic.Image     = Image.FromFile("Stan2.jpg");
            des.Text      = "Behind you, you notice the lady in the painting \n is alive and wants to eat you. What do you do?";
            right.Text    = "Escape";
            Left.Text     = "Attack with a weapon";
            right.Visible = true;
            Left.Visible  = true;
            right.Click  += (sender, args) =>
            {
                Stanley3.Run(pic, des, right, Left, player);
            };
            Left.Click += (sender, args) =>
            {
                globalVar.courage += 1;
                player.attack(synagogue.getEnemy(), player.ownedWeapons[0]);
                Inventory.removeItem(player.ownedWeapons[0], player);
                Stanley3.Stan(pic, des, right, Left);
            };
        }
Beispiel #2
0
        public static void Ask(PictureBox pic, Label des, Button right, Button Left, Characters player)
        {
            Location billBasement = new TransLoc(globalVar.locations[4], globalVar.transports[1], true, globalVar.enemies[0], 200, 30, 1, globalVar.npcs[4]);

            Inventory.addItem(billBasement.getItem(), player);
            string desc = Logic.description.describeObj(4, 4, 7, 0, 4);

            playerChoices.addToList(desc);

            pic.Image     = Image.FromFile("Bill2.jpg");
            des.Text      = desc + "While interrogating Georgie, he \n morphs into Pennywise and tries to attack you. What do you do?";
            right.Text    = "Attack with a weapon";
            Left.Text     = "Escape";
            right.Visible = true;
            Left.Visible  = true;
            right.Click  += (sender, args) =>
            {
                //coraje++
                globalVar.courage += 1;
                player.attack(billBasement.getEnemy(), player.ownedWeapons[0]);
                Inventory.removeItem(player.ownedWeapons[0], player);
                playerChoices.addToList("You attacked Pennywise.");
                Bill3.Atack(pic, des, right, Left);
            };
            Left.Click += (sender, args) =>
            {
                Bill3.Huir(pic, des, right, Left, player);
                playerChoices.addToList("You escaped from Pennywise.");
            };
        }