Exemplo n.º 1
0
    // Functions to begin and end UnMars
    public void QuestUnMars(int day)
    {
        if (day == 1)
        {
            mQuest = new Quest("UnMars Day 1");
            mQuest.SetTimer(UnMars1Time, true);
            mQuest.AddDialogue("Well met Apprentice, I see you've collected everything required of you in the forest. Well done.");
            mQuest.AddDialogue("My meeting with the King went… unfavorably…");
            mQuest.AddDialogue("Some people just can’t handle criticism...");
            mQuest.AddDialogue("I might have overdone it when I called him a 'thoroughly incompetent fool.'");
            mQuest.AddDialogue("Anyway, long story short the Royal Guard is after me and consequently you as well.");
            mQuest.AddDialogue("Never fear, however, for I have a plan.");
            mQuest.AddDialogue("You’ll just have to move from planet to planet quickly until we can reunite.");
            mQuest.AddDialogue("Now then, make haste to Unmars! You should be safe there for a day or so.");
            mQuest.AddDialogue("Oh! And while you’re there I need you to collect some things for me.");
            mQuest.AddDialogue("One fruit of the Dargrad tree and if you can find them, some Unmartian gems.");
            mQuest.AddMainObjective(new Objective("Gem", 0, 1, "GemResourceSprite001"));
            mQuest.AddMainObjective(new Objective("Fruit", 0, 2, "DargradFruit001"));
            // TS Objectives
            mQuest.AddTSObjective(new Objective("Gem", 0, 1, "GemResourceSprite001"));
            mQuest.AddTSObjective(new Objective("Fruit", 0, 1, "DargradFruit001"));
            // AA Objectives
            mQuest.AddAAObjective(new Objective("Gem", 0, 0, "GemResourceSprite001"));
            mQuest.AddAAObjective(new Objective("Fruit", 0, 1, "DargradFruit001"));

            mQuest.SetCampfireSprite(UnMarsCampfireImage);
        }
        else if (day == 2)
        {
            mQuest = new Quest("UnMars Day 2");
            mQuest.SetTimer(UnMars2Time, true); // Temporary to skip UnMars2
            mQuest.AddDialogue("The techno sorceress has asked you to Scan 3 resources total. You will have 100 seconds (1 min 40 seconds)");
        }
    }
Exemplo n.º 2
0
 // Functions to begin and end Friendly Forest
 public void QuestFriendlyForest()
 {
     // Quest creation. Maybe read from file in the future
     mQuest = new Quest("Friendly Forest");                                                   // Create a new quest w/ title parameter
     mQuest.SetTimer(0, false);                                                               // There is no timer for this quest
     mQuest.AddDialogue("Apprentice, I need you to go out and scan objects by pressing 'Z'"); // Read from text file in future
     mQuest.AddDialogue("I've given you magic missiles (X) and slashes (C)");                 // Read from text file in future
     mQuest.AddDialogue("You'll have all the time you need. ");                               // Read from text file in future
     mQuest.AddDialogue("I'm going to go meet with the King.");                               // Read from text file in future
     mQuest.AddMainObjective(new Objective("Mushroom", 0, 1, "FairyCircleMushroom001"));      // Set objectives or ways to complete quest
     mQuest.AddMainObjective(new Objective("Flower", 0, 3, "JuniperFlowerOne001"));           // Set objectives or ways to complete quest
     // TS Goals in allocation
     mQuest.AddTSObjective(new Objective("Mushroom", 0, 1, "FairyCircleMushroom001"));
     mQuest.AddTSObjective(new Objective("Flower", 0, 1, "JuniperFlowerOne001"));
     // AA Goals in allocation
     mQuest.AddAAObjective(new Objective("Mushroom", 0, 0, "FairyCircleMushroom001"));
     mQuest.AddAAObjective(new Objective("Flower", 0, 2, "JuniperFlowerOne001"));
     // Set campfire
     mQuest.SetCampfireSprite(FFCampfireImage);
 }
Exemplo n.º 3
0
    /// <summary>
    /// Loads quests from the inspector and assigns them to all the quest givers in the game.
    /// </summary>
    private void LoadQuests()
    {
        // Get All quest canvas objects
        Object[] questCanvases = Resources.LoadAll("QuestCanvas", typeof(QuestNodeCanvas));

        // for each quest, parse the dialogue FSM and update the quest's dialogue.
        foreach (QuestNodeCanvas questCanvas in questCanvases)
        {
            Quest newQuest = new Quest(questCanvas);
            newQuest.AddDialogue(ParseDialogueFromQuest(questCanvas, false, false));
            newQuest.AddTurnInDialogue(ParseDialogueFromQuest(questCanvas, true, false));
            newQuest.AddInProgressDialogue(ParseDialogueFromQuest(questCanvas, false, true));
            AssignQuestToGiver(newQuest);
        }
    }
Exemplo n.º 4
0
    public void QuestIndustrial()
    {
        mQuest = new Quest("Industrial Planet");
        mQuest.SetTimer(IndustrialTime, true);
        mQuest.AddDialogue("Alright then, you can’t afford to tarry there any longer, I fear the Royal Guard have picked up your trail.");
        mQuest.AddDialogue("I’m sending you on to one more location before we rendezvous. Your next destination is an abandoned mining facility on Praxa 4.");
        mQuest.AddDialogue("The facility has been defunct for years, but there are some remains that are worth salvaging.");
        mQuest.AddDialogue("Particularly, the processors the company used in their robots have a dynamic metal in them that is exceedingly useful.");
        mQuest.AddDialogue("According to my information, there should also be some blueprints in the facility to a very intriguing machine called a Slipway Generator.");
        mQuest.AddDialogue("Bring me these blueprints and about 4 of the processors.");
        // Quest objective setting
        mQuest.AddMainObjective(new Objective("Processor", 0, 4, "PraxaProcessor001"));
        mQuest.AddMainObjective(new Objective("Blueprint", 0, 1, "SlipwayBlueprintSprite001"));
        // TS Objectives
        mQuest.AddTSObjective(new Objective("Processor", 0, 4, "PraxaProcessor001"));
        mQuest.AddTSObjective(new Objective("Blueprint", 0, 1, "SlipwayBlueprintSprite001"));
        // AA Objectives
        mQuest.AddAAObjective(new Objective("Processor", 0, 2, "PraxaProcessor001"));
        mQuest.AddAAObjective(new Objective("Blueprint", 0, 0, "SlipwayBlueprintSprite001"));

        mQuest.SetCampfireSprite(MFCampfireImage);
    }