Ejemplo n.º 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"));
 }
Ejemplo n.º 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"));
 }
Ejemplo n.º 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"));
    }
Ejemplo n.º 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"));
    }
Ejemplo n.º 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);
    }
Ejemplo n.º 7
0
 static public void SetOptions_OutsideShop(Dialogue_Prompt obj)
 {
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_enterShop"));
 }
Ejemplo n.º 8
0
 static public void SetOptions_OfferAccepted(Dialogue_Prompt obj)
 {
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_acknowledge"));
 }
Ejemplo n.º 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"));
 }
Ejemplo n.º 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"));
 }
Ejemplo n.º 11
0
 static public void SetOptions_IntimidatedUnaffected(Dialogue_Prompt obj)
 {
     // TODO: follow ups for intimidate
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_exitShop"));
 }
Ejemplo n.º 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"));
 }
Ejemplo n.º 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"));
 }
Ejemplo n.º 14
0
 static public void SetOptions_GiveDetails(Dialogue_Prompt obj)
 {
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_acknowledge"));
 }
Ejemplo n.º 15
0
 static public void SetOptions_Greeting(Dialogue_Prompt obj)
 {
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_returnGreeting"));
 }
Ejemplo n.º 16
0
 static public void SetOptions_PaymentFull(Dialogue_Prompt obj)
 {
     obj.AddFollowUp(Dialogue_Option.GetOptionByName("dialogue_option_accept"));
 }
Ejemplo n.º 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"));
 }
Ejemplo n.º 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"));
 }
Ejemplo n.º 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"));
 }
Ejemplo n.º 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"));
 }
Ejemplo n.º 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"));
 }
Ejemplo n.º 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"));
 }