Beispiel #1
0
 static public void SetOptions_Intimidate(Dialogue_Prompt obj)
 {
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_intimidate_2_imply"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_intimidate_2_threaten"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_intimidate_2_act"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_neverMind"));
 }
Beispiel #2
0
 static public void SetOptions_Intimidate_Action(Dialogue_Prompt obj)
 {
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_intimidate_3_informBoss"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_intimidate_3_breakMerchandise"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_intimidate_3_attackShopkeeper"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_intimidate_3_burnShopDown"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_neverMind"));
 }
Beispiel #3
0
    static public void SetOptions_ShopInventory(Dialogue_Prompt obj)
    {
        obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_shopProduct"));
        obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_shopProduct"));
        obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_shopProduct"));
        obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_shopProduct"));

        obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_neverMind"));
    }
Beispiel #4
0
    static public void SetOptions_AssaultSecondary(Dialogue_Prompt obj)
    {
        obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_placate"));
        obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_getDetails"));
        obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_ignore"));

        obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_placate"));
        obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_getDetails"));
        obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_ignore"));
    }
Beispiel #5
0
 static public void SetOptions_Root(Dialogue_Prompt obj)
 {
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_requestPayment"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_earlyPayment"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_renegotiate"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_offerProtection"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_intimidate"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_goShopping"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_chitChat"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_exitShop"));
 }
    private void SetOptions()
    {
        UnityEngine.Events.UnityAction[] actions = GetButtonActionFromDict((Dialogue_Prompt_Logic.FilterKeys(currentDialoguePrompt, shopkeeperRef)).ToArray());

        for (int i = 0; i < actions.Length; ++i)
        {
            SetBtnActions(i + 1, actions [i]);
        }

        List <string> buttonKeys = Dialogue_Prompt_Logic.FilterKeys(currentDialoguePrompt, shopkeeperRef);

        string[] choicesString = new string[6];
        for (int i = 0; i < buttonKeys.Count; ++i)
        {
            string buttonTextKey = Dialogue_Option.GetOptionByName(buttonKeys[i]).buttonTextKey;

            List <string> parameters = new List <string>();
            switch (buttonKeys[i])
            {
            case "dialogue_option_shopProduct": {
                if (i < shopkeeperRef.home.inventory.items.Count && shopkeeperRef.home.inventory.items[i] != null)
                {
                    string parameter = Localization.LocalizeText(shopkeeperRef.home.inventory.items[i].id);
                    parameters.Add(parameter);
                    choicesString[i] = Localization.LocalizeText(buttonTextKey, parameters);
                }
                else
                {
                    choicesString[i] = "DISABLE ME!";
                }
                break;
            }

            //case "dialogue_option_confirmPurchase": {
            //parameters.Add ();
            //break; }
            default: {
                choicesString[i] = Localization.LocalizeText(buttonTextKey);
                break;
            }
            }
        }

        choicesText.Clear();
        choicesText = choicesString.ToList();

        SetChoices(choicesString);
    }
Beispiel #7
0
 static public void SetOptions_OutsideShop(Dialogue_Prompt obj)
 {
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_enterShop"));
 }
Beispiel #8
0
 static public void SetOptions_OfferAccepted(Dialogue_Prompt obj)
 {
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_acknowledge"));
 }
Beispiel #9
0
 static public void SetOptions_OfferRefused(Dialogue_Prompt obj)
 {
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_intimidate"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_tryAnotherOffer"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_neverMind"));
 }
Beispiel #10
0
 static public void SetOptions_AidingBusiness(Dialogue_Prompt obj)
 {
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_donate"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_cutProtectionCost"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_neverMind"));
 }
Beispiel #11
0
 static public void SetOptions_IntimidatedUnaffected(Dialogue_Prompt obj)
 {
     // TODO: follow ups for intimidate
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_exitShop"));
 }
Beispiel #12
0
 static public void SetOptions_ProblemWithPayment(Dialogue_Prompt obj)
 {
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_hearProposition"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_offerToAidBusiness"));
 }
Beispiel #13
0
 static public void SetOptions_PaymentNone(Dialogue_Prompt obj)
 {
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_intimidate"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_checkTheRegister"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_accept"));
 }
Beispiel #14
0
 static public void SetOptions_GiveDetails(Dialogue_Prompt obj)
 {
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_acknowledge"));
 }
Beispiel #15
0
 static public void SetOptions_Greeting(Dialogue_Prompt obj)
 {
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_returnGreeting"));
 }
Beispiel #16
0
 static public void SetOptions_PaymentFull(Dialogue_Prompt obj)
 {
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_accept"));
 }
Beispiel #17
0
 static public void SetOptions_ConfirmPurchase(Dialogue_Prompt obj)
 {
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_confirmPurchase"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_neverMind"));
 }
Beispiel #18
0
 static public void SetOptions_RegisterTakeOrLeaveMoney(Dialogue_Prompt obj)
 {
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_accept"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_intimidate"));
 }
Beispiel #19
0
 static public void SetOptions_RegisterHiddenMoney(Dialogue_Prompt obj)
 {
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_accept"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_takeRegisterMoney"));
 }
Beispiel #20
0
 static public void SetOptions_RegisterEmpty(Dialogue_Prompt obj)
 {
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_accept"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_offerToAidBusiness"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_exitShop"));
 }
Beispiel #21
0
 static public void SetOptions_AskToLowerPayment(Dialogue_Prompt obj)
 {
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_accept"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_reject"));
 }
Beispiel #22
0
 static public void SetOptions_PurchaseSuccessful(Dialogue_Prompt obj)
 {
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_neverMind"));
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_exitShop"));
 }