Beispiel #1
0
    void Awake()
    {
        dictRef             = mainScriptMan.GetComponent <dictInitialize>();
        mainCharacterVars   = mainCharacter.GetComponent <mainCharacterVars>();
        interact            = GetComponent <interact>();
        npcConversation     = GetComponent <npcConversation>();
        interactWithMarket  = market.GetComponent <interactWith>();
        interactWithMailman = mailman.GetComponent <interactWith>();
        interactWithBank    = bank.GetComponent <interactWith>();
        interactWithPizza   = pizza.GetComponent <interactWith>();
        interactWithMayor   = mayor.GetComponent <interactWith>();
        interactWithShady   = shadyCharacter.GetComponent <interactWith>();
        friendship          = GetComponent <npcfriendship>();

        easyTaskPrompts[0].construct(new List <string> {
            "bring", " ", "this", " ", "mail", " ", "to", " ", "the", " ", "post office"
        }, "post office", "mail");
        easyTaskPrompts[1].construct(new List <string> {
            "bring", " ", "this", " ", "money", " ", "to", " ", "the", " ", "bank"
        }, "bank", "money");
        easyTaskPrompts[2].construct(new List <string> {
            "bring", " ", "this", " ", "document", " ", "to", " ", "the", " ", "town hall"
        }, "town hall", "document");
        easyTaskPrompts[3].construct(new List <string> {
            "bring", " ", "these", " ", "good", "s", " ", "to", " ", "the", " ", "alley"
        }, "alley", "good");

        //mediTaskPrompts[0].construct(new List<string> { "tell", " ", "me", " ", "where", " ", "you", " ", "are", " ", "from" }, "currentNPC", "whereFrom");
        hardTaskPrompts[0].construct(new List <string> {
            "I", " ", "need", " ", "meat", " ", "from", " ", "the", " ", "market"
        }, "market", "meat");
        hardTaskPrompts[1].construct(new List <string> {
            "I", " ", "need", " ", "bread", " ", "from", " ", "the", " ", "market"
        }, "market", "bread");
        hardTaskPrompts[2].construct(new List <string> {
            "I", " ", "need", " ", "grape", "s", " ", "from", " ", "the", " ", "market"
        }, "market", "grape");
        hardTaskPrompts[3].construct(new List <string> {
            "get", " ", "me", " ", "a", " ", "pizza", " ", "with", " ", "meat"
        }, "pizza", "meat");
        hardTaskPrompts[4].construct(new List <string> {
            "get", " ", "me", " ", "a", " ", "pizza", " ", "with", " ", "tomato"
        }, "pizza", "tomato");
        hardTaskPrompts[5].construct(new List <string> {
            "get", " ", "me", " ", "a", " ", "pizza", " ", "with", " ", "olive", "s"
        }, "pizza", "olive");

        //hardTaskPrompts[0].construct(new List<string> { "tell", " ", "him", " ", "to", " ", "come", " ", "over", " ", "here" }, "otherNPC", "come");
        taskavailable.SetActive(false);
        taskwiththisNPC = false;
        taskinprog.SetActive(false);
        completed = false;
        almostdonestar.SetActive(false);
    }
 void Start()
 {
     dictInitialize    = mainScriptMan.GetComponent <dictInitialize>();
     mainCharacterVars = mainCharacter.GetComponent <mainCharacterVars>();
     npcConversation   = GetComponent <npcConversation>();
     interactable      = false;
     taskmode          = false;
     whatYouNeed       = "";
     selected          = "";
     meatbutton.SetActive(false); breadbutton.SetActive(false); grapesbutton.SetActive(false); olivebutton.SetActive(false); tomatobutton.SetActive(false); confusedemote.SetActive(false);
 }