Exemplo n.º 1
0
 private static void InitDialogueActions()
 {
     _actions.Add("dialogue.id.childgroup_one", () =>
     {
         QuestController.StartQuest("quest.id.gettovault");
     });
 }
Exemplo n.º 2
0
        private static void InitDialogueActions()
        {
            _actions.Add("dialogue.id.childgroup_one", () =>
            {
                GameObject.Find("ChildrenPolilogue").GetComponentInChildren <DialogTrigger>().AutoStart = false;
                QuestController.StartQuest("quest.id.gettovault");
                SwapNPCPosition("ChildrenPolilogue", "ChildrenPolilogueFinished");
            });

            _actions.Add("dialogue.id.genny", () =>
            {
                SwapNPCPosition("GennyTalk", "GennyTrade");
            });

            _actions.Add("dialogue.id.kidstart", () =>
            {
                QuestController.StartQuest("quest.id.getbear");
            });

            _actions.Add("dialogue.id.kidend", () =>
            {
                SwapNPCPosition("ScholarMad", "Scholar");
            });

            _actions.Add("dialogue.id.scholar", () =>
            {
                QuestController.StartQuest("quest.id.getnails");
            });

            _actions.Add("dialogue.id.lockpickteach", () =>
            {
                SwapNPCPosition("GennyStart", "GennyTalk");
                QuestController.StartQuest("quest.id.getlock");
            });

            _actions.Add("dialogue.id.scholarend", () =>
            {
                PlayerInventory.Instance.TryAddItemToInventory(ItemsData.GetItemById("genericitem.id.lockpick"));
                //var girlposition = GameObject.Find("GirlPosition");
                //var girl = GameObject.Find("LostGirl");

                SwapNPCPosition("Picker", "PickerTeacher");

                //girl.transform.position = girlposition.transform.position;
            });

            _actions.Add("dialogue.id.madscholar", () =>
            {
                SwapNPCPosition("KidBusy", "Kid");
            });

            _actions.Add("dialogue.id.lockpicktought", () =>
            {
                PlayerQuirks.ModifySkill(EPlayerSkills.Lockpicking, 20);
            });
        }
Exemplo n.º 3
0
        void OnEnable()
        {
            _instance = this;
            var quests = QuestStorage.GetQuests();

            foreach (var quest in quests)
            {
                quest.QuestCompleted += QuestCompleted;
            }
        }
Exemplo n.º 4
0
 void OnDisable()
 {
     _instance = null;
 }