Exemple #1
0
    public void TalkToNpc()
    {
        if (isPreQuest && questManager.GetQuestResult(npcName))
        {
            isPreQuest = false;
            GivePlayerItem();
        }

        if (isPreQuest)
        {
            dialogueScript.StartDialogue(npcName, CopyListString(preQuestSentences));
        }
        else
        {
            if (!doneTalkingLast)
            {
                dialogueScript.StartDialogue(npcName, CopyListString(postQuestSentences));
                doneTalkingLast = true;
            }
            else
            {
                dialogueScript.StartDialogue(npcName, CopyListString(postQuestEndSentences));
            }
        }
    }
 //MOVEチュートリアル
 void MoveCourse( )
 {
     HealFlag = true;
     Moveing  = false;
     dialpgue_s.StartDialogue(dialogue);
     return;
 }
Exemple #3
0
    // Start is called before the first frame update
    void Start()
    {
        List <string> sentences = new List <string>();

        sentences.Add("Long ago, in a distant island, known as the land of the rising sun, there lived a humble broth maker.");
        sentences.Add("Dedicated to the culinary craft of broth making, the man sought to create the ultimate recipe...");
        sentences.Add("...a masterpiece extending numerous generations, a meal people would forever remember and enjoy - especially the poor with no food.");
        sentences.Add("Unfortunately, a lack of ingredients hindered his bowl of dreams.");
        sentences.Add("The barren island couldn’t support a multitude of livestock, plants, and spices.");
        sentences.Add("UNTIL… the man discovered an anomaly on his island - a time anomaly.");
        sentences.Add("Utilizing the powers of science, he reworked the 4th dimension in order to achieve his real goal - soup cooking.");
        sentences.Add("Equipped with his chronobombs, the chef manipulated time to obtain his ingredients, becoming a CHRONO CHEF.");
        dialogueScript.StartDialogue("Introduction", sentences);
    }
Exemple #4
0
    // Start is called before the first frame update
    void Start()
    {
        score = PlayerPrefs.GetInt("Score");

        List <string> sentences = new List <string>();

        sentences.Add("Welcome back!");
        sentences.Add("Let's see what you made with your ingredients!");
        sentences.Add("Hmm...");
        sentences.Add("I give it a score of " + score.ToString() + ".");
        if (score > threshold)
        {
            sentences.Add("This is higher than the highest score of " + threshold.ToString() + ". Congratulations!");
        }
        else if (score == threshold)
        {
            sentences.Add("This is tied with the highest score of " + threshold.ToString() + ". Good enough, I suppose.");
        }
        else
        {
            sentences.Add("This is lower than the highest score of " + threshold.ToString() + ". Sorry for your loss.");
        }
        sentences.Add("Feel free to come back to the next competition!");
        dialogueScript.StartDialogue("Chef", sentences);
    }
 void Start()
 {
     this.Player = GameObject.FindWithTag("Player");
     Player.GetComponent <plyaer>().CourseFlag = true;
     dialpgue_s = FindObjectOfType <DialogueScript>();
     dialpgue_s.StartDialogue(dialogue);
 }
Exemple #6
0
 // Starts conversation
 public void Interact(InputAction.CallbackContext context)
 {
     SteveController.ActionMap = PlayerActionMap.UI;
     script.StartDialogue();
 }