Exemple #1
0
        private INonPlayerCharacter GoblinChief()
        {
            INonPlayerCharacter npc = CreateNonplayerCharacter(MobType.Humanoid, 25);

            npc.ExamineDescription  = "Goblin Chief";
            npc.LookDescription     = "Goblin Chief";
            npc.ShortDescription    = "The camps chief.";
            npc.SentenceDescription = "goblin";
            npc.KeyWords.Add("goblin");
            npc.KeyWords.Add("chief");
            IItem focusingCrystal = FocusingCrystal();

            npc.Items.Add(focusingCrystal);

            npc.Personalities.Add(new ChiefDaughterPresent());
            npc.Personalities.Add(new ChiefReceiveDaughterItem());

            IResponder            responder         = new Responder();
            List <IOptionalWords> listOptionalWords = new List <IOptionalWords>();
            IOptionalWords        optionalWords     = new OptionalWords();

            optionalWords.TriggerWords.Add("daughter");
            responder.Responses.Add(new Response()
            {
                RequiredWordSets = listOptionalWords, Message = "The evil enchanter that lives at the top of the mountain has taken my daughter hostage.  If you should retrieve her for me there would be a reward for you."
            });
            npc.Personalities.Add(responder);

            return(npc);
        }
Exemple #2
0
        public void OptionalWords_TriggerWords_Set()
        {
            OptionalWords optionalWords = new OptionalWords();

            Assert.IsNotNull(optionalWords.TriggerWords);
        }