IsComplete() public method

public IsComplete ( string name ) : bool
name string
return bool
Example #1
0
    public override bool checkIfCompleted()
    {
        Badgebook badgebook = GameObject.Find("Badgebook").GetComponent <Badgebook>();

        if (Levitated != null && !badgebook.IsComplete("helping_others_reaching_up_high"))
        {
            Levitated();
        }

        if (badgebook.IsComplete("helping_others_putting_something_high"))
        {
            if (UnlockedStaff != null)
            {
                UnlockedStaff();
            }
            return(true);
        }
        return(false);
    }
Example #2
0
    public override bool checkIfCompleted()
    {
        Badgebook badgebook = GameObject.Find("Badgebook").GetComponent <Badgebook>();

        return(badgebook.IsComplete("unlevitate"));
    }
Example #3
0
    string[] nextQuests()
    {
        Badgebook badgebook = GameObject.Find("Badgebook").GetComponent <Badgebook>();

        if (!badgebook.IsComplete("helping_others_picking_up_item"))
        {
            return new string[] { "intro", "helping_others_picking_up_item" }
        }
        ;
        if (!badgebook.IsComplete("helping_others_cross_river"))
        {
            return new string[] { "helping_others_cross_river" }
        }
        ;
        if (!badgebook.IsComplete("helping_others_reaching_up_high"))
        {
            return new string[] { "helping_others_reaching_up_high" }
        }
        ;
        if (!badgebook.IsComplete("helping_others_putting_out_fire"))
        {
            return new string[] { "helping_others_putting_out_fire" }
        }
        ;
        if (!badgebook.IsComplete("helping_others_light_fire"))
        {
            return new string[] { "helping_others_light_fire" }
        }
        ;
        if (!badgebook.IsComplete("helping_others_summonObject"))
        {
            return new string[] { "helping_others_summonObject" }
        }
        ;
        if (!badgebook.IsComplete("helping_others_unlevitate"))
        {
            return new string[] { "helping_others_unlevitate" }
        }
        ;
        if (!badgebook.IsComplete("square_dance"))
        {
            return new string[] { "square_dance" }
        }
        ;
        if (!badgebook.IsComplete("creative_dance"))
        {
            return new string[] { "creative_dance" }
        }
        ;
        if (!badgebook.IsComplete("massive_levitate"))
        {
            return new string[] { "massive_levitate" }
        }
        ;
        if (!badgebook.IsComplete("massive_unlevitate"))
        {
            return new string[] { "massive_unlevitate" }
        }
        ;
        if (!badgebook.IsComplete("massive_dance"))
        {
            return new string[] { "massive_dance" }
        }
        ;
        if (!badgebook.IsComplete("follow_the_leader"))
        {
            return new string[] { "follow_the_leader" }
        }
        ;
        if (!badgebook.IsComplete("portal"))
        {
            return new string[] { "portal" }
        }
        ;
        if (!badgebook.IsComplete("umbrella"))
        {
            return new string[] { "umbrella" }
        }
        ;

        return(new string[] {});
    }

    string objectNameForQuest(string questName)
    {
        switch (questName)
        {
        case "intro": return("IntroGnome");

        case "helping_others_picking_up_item": return("RiverQuest");

        case "helping_others_cross_river": return("RiverQuest");

        case "helping_others_reaching_up_high": return("FlyingQuest");

        case "helping_others_putting_out_fire": return("SummonQuest");

        //case "light fire": return "SummonQuest";
        case "helping_others_light_fire": return("FireQuest");

        case "helping_others_summonObject": return("SummonObjectQuest");

        case "helping_others_unlevitate": return("UnlevitationQuest");

        case "square_dance": return("DanceQuest");

        case "creative_dance": return("DanceQuest");

        case "massive_levitate": return("MassiveLevitationQuest");

        case "massive_unlevitate": return("MassiveLevitationQuest");

        //case "massive creative dance": return "";
        case "follow_the_leader": return("FollowTheLeaderQuest");

        case "portal": return("PortalQuest");

        case "umbrella": return("UmbrellaQuest");
        }
        return("");
    }
Example #4
0
    public override bool checkIfCompleted()
    {
        Badgebook badgebook = GameObject.Find("Badgebook").GetComponent <Badgebook>();

        return(badgebook.IsComplete("helping_others_light_fire"));
    }
Example #5
0
    public override bool checkIfCompleted()
    {
        Badgebook badgebook = GameObject.Find("Badgebook").GetComponent <Badgebook>();

        return(badgebook.IsComplete("collecting_objects_staff"));
    }