潘德骑兵第五中队...吧 关注:24贴子:787
  • 70回复贴,共1

勾引?还是应该算别的啥

只看楼主收藏回复

@holywingangel
说老实话,在下真的不喜欢用qq、微信之类的,所以,如果可以,还是请阁下把要问的问题,想说的事情发到这个贴吧里来。这里算是在下的个人贴吧了。之前那位,虽然在下留了qq号,但一个问题在下拖了将近一星期才看到……
而这里,在下基本上每天都要来签到的,最多断一两天。
当然,直接在中文站发东西也是可以的,而且更有可能被真的大神看到并回答。


IP属地:河南1楼2018-09-29 11:24回复
    了解,谢谢前辈指点


    IP属地:陕西来自iPhone客户端2楼2018-09-29 11:25
    回复
      2025-08-15 00:45:57
      广告
      不感兴趣
      开通SVIP免广告
      唔,好的


      IP属地:重庆来自iPhone客户端3楼2018-09-29 12:11
      回复
        又有地方需要请教您了,我想问一下,ms里,类似于troop_get_upgrade_troop这种,ms自有的变量取值、定值、定义语句句式,是不是可以随便放在任何一个module的前边,因为个人觉得虽然ms有自己的格式,但是本质还是变量赋值操作,一行就能搞定,只要在前面就行了,不需要非得出现在对话条件块里。


        IP属地:陕西来自iPhone客户端4楼2018-09-30 11:26
        回复(8)
          请教,这个
          val_min = 2110#dest, operand :: dest = min(dest, operand)
          # (val_min,<destination>,<value>),
          value 只有 一个, 那么是谁和谁比较, 最小值取出来后又放在哪里了?


          IP属地:陕西5楼2018-09-30 14:03
          回复(6)
            突然有了疑惑,如果前一段 对话的 条件块里 设置了 X大于零, 下一段对话的 条件块里 是不是 不用输入条件 就 直接可以 默认为 设定 的是 X小于等于零的 情况?
            也就是对话实际上自己就在做 try begin,else try 这种 逻辑判断 ?
            写宠物系统1 的 时候 还没注意过这里的 问题, 直接 照搬 的 别人的 对话, 现在突然觉得 这里 的 逻辑关系 还是要 明确下。


            IP属地:陕西6楼2018-10-01 11:52
            回复(22)
              # pet_is_already_the_best_form_member_chat
              [anyone, "member_chat",
              [
              (is_between, "$g_talk_troop", pet_begin, pet_end),
              (troop_get_upgrade_troop, ":pet_upgraded_1", "$g_talk_troop", 0 ),
              (troop_get_upgrade_troop, ":pet_upgraded_2", "$g_talk_troop", 1 ),
              (le, ":pet_upgraded_1", 0 ),
              (le, ":pet_upgraded_2", 0 )
              ],
              "Your pet can not be evolved more, the current form is the best one it can be evolved to.",
              "pet_is_already_the_best_form_0",
              [
              ] ],
              [anyone, "pet_is_already_the_best_form_0",
              [
              ],
              "Now you can check the data and the equipments of your pet.",
              "pet_is_already_the_best_form_1",
              [
              ] ],
              [anyone|plyr, "pet_is_already_the_best_form_1",
              [
              ],
              "Check the data of the pet.",
              "pet_is_already_the_best_form_0",
              [
              (change_screen_view_character)
              ] ],
              [anyone|plyr, "pet_is_already_the_best_form_1",
              [
              ],
              "Check the equipments of the pet.",
              "pet_is_already_the_best_form_0",
              [
              (change_screen_equip_other)
              ] ],
              [anyone|plyr, "pet_is_already_the_best_form_1",
              [
              ],
              "No, I want to check others.",
              "pet_is_already_the_best_form_2",
              [
              ] ],
              [anyone, "pet_is_already_the_best_form_2",
              [
              ],
              "As you wish.",
              "close_window",
              [
              ] ],


              IP属地:陕西7楼2018-10-01 21:05
              回复(19)
                # pet_can_not_upgrade_member_chat
                [anyone, "member_chat",
                [
                (is_between, "$g_talk_troop", pet_begin, pet_end),
                (troop_get_xp, ":g_talk_troop_xp", "$g_talk_troop" ),
                (lt, ":g_talk_troop_xp", 10000 )
                ],
                "Your pet can not evolve yet, unless it can grow more larger.",
                "pet_can_not_upgrade_introduce_0",
                [
                ] ],
                [anyone, "pet_can_not_upgrade_introduce_0",
                [
                ],
                "Now you can check the data and the equipments of your pet.",
                "pet_can_not_upgrade_introduce_1",
                [
                ] ],
                [anyone|plyr, "pet_can_not_upgrade_introduce_1",
                [
                ],
                "Check the data of the pet.",
                "pet_can_not_upgrade_introduce_0",
                [
                (change_screen_view_character)
                ] ],
                [anyone|plyr, "pet_can_not_upgrade_introduce_1",
                [
                ],
                "Check the equipments of the pet.",
                "pet_can_not_upgrade_introduce_0",
                [
                (change_screen_equip_other)
                ] ],
                [anyone|plyr, "pet_can_not_upgrade_introduce_1",
                [
                ],
                "No, I want to check others.",
                "pet_can_not_upgrade_introduce_2",
                [
                ] ],
                [anyone, "pet_can_not_upgrade_introduce_2",
                [
                ],
                "You can come back later when your pet is ready to evolve",
                "close_window",
                [
                ] ],


                IP属地:陕西8楼2018-10-01 21:05
                回复
                  2025-08-15 00:39:57
                  广告
                  不感兴趣
                  开通SVIP免广告
                  # pet_can_upgrade_member_chat
                  [anyone, "member_chat",
                  [
                  (is_between, "$g_talk_troop", pet_begin, pet_end),
                  (troop_get_xp, ":g_talk_troop_xp", "$g_talk_troop" ),
                  (ge, ":g_talk_troop_xp", 10000 )
                  ],
                  "Now, the pet you are talking to can be evolved to an advanced form.",
                  "pet_upgrade_introduce_1",
                  [
                  ] ],
                  # [anyone|plyr, "pet_upgrade_introduce_1", [ ],
                  # "Yes, I wanna it to be evolved now.", "pet_upgrade_introduce_2",
                  # [ ] ],
                  [anyone, "pet_upgrade_introduce_1",
                  [
                  ],
                  "To continue you need to take away all equiments you want to keep from your pet, otherwise, they will be destroyed.",
                  "pet_upgrade_introduce_3",
                  [
                  (change_screen_equip_other)
                  ] ],
                  [anyone, "pet_upgrade_introduce_3",
                  [
                  ],
                  "Now, you can choose which advanced form you want your pet be evolved to.",
                  "pet_upgrade_1",
                  [
                  ] ],
                  [anyone|plyr|repeat_for_troops,"pet_upgrade_1",
                  [
                  (store_repeat_object, ":pet_evolve_to" ),
                  (troop_get_upgrade_troop, ":pet_evolve_target_upper_limit", "$g_talk_troop", 0 ),
                  (troop_get_upgrade_troop, ":pet_evolve_target_lower_limit", "$g_talk_troop", 1 ),
                  (is_between, ":pet_evolve_to", ":pet_evolve_target_upper_limit", ":pet_evolve_target_lower_limit"),
                  (str_store_troop_name, s70, ":pet_evolve_to" ),
                  ],
                  "{s70}",
                  "pet_upgrade_2",
                  [
                  (store_repeat_object, ":pet_evolved" ),
                  (party_add_members, "p_main_party", ":pet_evolved", 1),
                  (party_remove_members, "p_main_party", "$g_talk_troop", 1)
                  ] ],
                  [anyone, "pet_upgrade_2",
                  [
                  ],
                  "Your pet is evolved to your chosen form.",
                  "close_window",
                  [
                  ] ],
                  # [anyone|plyr, "pet_upgrade_introduce_1", [ ],
                  # "No, I would rather let it to be evolved later.", "close_window",
                  # [ ] ],


                  IP属地:陕西9楼2018-10-01 21:05
                  回复
                    @holywingangel 久等了。
                    首先道歉,因为在下懒的关系,鸽了这么多天才回复。
                    然后,不幸的消息是,在下还是不能理解阁下会观察到那样的结果的原因。因为,在下把阁下的代码整理成txt然后带进游戏里以后,根本没有发现阁下上面说的问题……
                    以下是实际情况:
                    代码:
                    dlga_member_chat:pet_is_already_the_best_form_0 4095 13 5 33 3 144115188075855987 35 41 1561 3 1224979098644774912 144115188075855987 0 1561 3 1224979098644774913 144115188075855987 1 2147483680 2 1224979098644774912 0 2147483680 2 1224979098644774913 0 Your_pet_can_not_be_evolved_more,_the_current_form_is_the_best_one_it_can_be_evolved_to. 6666 0 NO_VOICEOVER
                    dlga_pet_is_already_the_best_form_0:pet_is_already_the_best_form_1 4095 6666 0 Your_pet_can_not_be_evolved_more,_the_current_form_is_the_best_one_it_can_be_evolved_to. 6667 0 NO_VOICEOVER
                    dlga_pet_is_already_the_best_form_1:pet_is_already_the_best_form_0 69631 6667 0 Check_the_data_of_the_pet. 6666 1 2046 0 NO_VOICEOVER
                    dlga_pet_is_already_the_best_form_1:pet_is_already_the_best_form_0 69631 6667 0 Check_the_equipments_of_the_pet. 6666 1 2051 0 NO_VOICEOVER
                    dlga_pet_is_already_the_best_form_1:pet_is_already_the_best_form_2 69631 6667 0 No,_I_want_to_check_others. 6668 0 NO_VOICEOVER
                    dlga_pet_is_already_the_best_form_2:close_window 4095 6668 0 As_you_wish. 6 0 NO_VOICEOVER
                    dlga_member_chat:pet_can_not_upgrade_introduce_0 4095 13 3 33 3 144115188075855987 35 41 2171 2 1224979098644774912 144115188075855987 2147483678 2 1224979098644774912 20 Your_pet_can_not_evolve_yet,_unless_it_can_grow_more_larger. 6669 0 NO_VOICEOVER
                    dlga_pet_can_not_upgrade_introduce_0:pet_can_not_upgrade_introduce_1 4095 6669 0 Now_you_can_check_the_data_and_the_equipments_of_your_pet. 6670 0 NO_VOICEOVER
                    dlga_pet_can_not_upgrade_introduce_1:pet_can_not_upgrade_introduce_0 69631 6670 0 Check_the_data_of_the_pet. 6669 1 2046 0 NO_VOICEOVER
                    dlga_pet_can_not_upgrade_introduce_1:pet_can_not_upgrade_introduce_0 69631 6670 0 Check_the_equipments_of_the_pet. 6669 1 2051 0 NO_VOICEOVER
                    dlga_pet_can_not_upgrade_introduce_1:pet_can_not_upgrade_introduce_2 69631 6670 0 No,_I_want_to_check_others. 6671 0 NO_VOICEOVER
                    dlga_pet_can_not_upgrade_introduce_2:close_window 4095 6671 0 You_can_come_back_later_when_your_pet_is_ready_to_evolve. 6 0 NO_VOICEOVER
                    dlga_member_chat:pet_upgrade_introduce_1 4095 13 3 33 3 144115188075855987 35 41 2171 2 1224979098644774912 144115188075855987 30 2 1224979098644774912 20 Now,_the_pet_you_are_talking_to_can_be_evolved_to_an_advanced_form. 6672 0 NO_VOICEOVER
                    dlga_pet_upgrade_introduce_1:pet_upgrade_introduce_3 4095 6672 0 To_continue_you_need_to_take_away_all_equiments_you_want_to_keep_from_your_pet,_otherwise,_they_will_be_destroyed. 6673 1 2051 0 NO_VOICEOVER
                    dlga_pet_upgrade_introduce_3:pet_upgrade_1 69631 6673 0 Now,_you_can_choose_which_advanced_form_you_want_your_pet_be_evolved_to. 6674 0 NO_VOICEOVER
                    dlga_pet_upgrade_1:pet_upgrade_2 81919 6674 5 50 1 1224979098644774912 1561 3 1224979098644774913 144115188075855987 0 1561 3 1224979098644774914 144115188075855987 1 33 3 1224979098644774912 1224979098644774913 1224979098644774914 2322 2 1 1224979098644774912 {s1} 6675 3 50 1 1224979098644774912 1610 3 648518346341351424 1224979098644774912 1 1615 3 648518346341351424 144115188075855987 1 NO_VOICEOVER
                    dlga_pet_upgrade_2:close_window 4095 6675 0 Your_pet_is_evolved_to_your_chosen_form. 6 0 NO_VOICEOVER
                    正好是对应上面三段的。
                    把它们放在了部队→兵种对话的前面,范围是35到41,也就是丝袜新兵到游击射手(40),没有用经验分层,而是用等级,分层等级是20级。
                    也就是说,只有那个范围内的兵种,与其对话时才会发生这些对话。并且,因为是在原来的对话上面,所以会把原先的【你 有 什 么 吩 咐 , {先 生 /夫 人 }? 】覆盖掉,因为这是兵种对玩家说话,优先执行最前面的。
                    然后,根据等级的划分,丝袜步兵是恰好可以触发第三段对话的,而无视上面两段,丝袜军士因为等级过高,而且没有升级线路,所以只能执行第一段。丝袜新兵有升级线,但是等级低,所以执行第二段。
                    基本上与阁下的预计一致。
                    要说有啥问题,第三段的逻辑是不通的,如果一个兵种可以升级,那就会直接进行下一句对话,而不会打开装备界面。
                    以及那个
                    [anyone|plyr|repeat_for_troops,"pet_upgrade_1",
                    [
                    (store_repeat_object, ":pet_evolve_to" ),
                    (troop_get_upgrade_troop, ":pet_evolve_target_upper_limit", "$g_talk_troop", 0 ),
                    (troop_get_upgrade_troop, ":pet_evolve_target_lower_limit", "$g_talk_troop", 1 ),
                    (is_between, ":pet_evolve_to", ":pet_evolve_target_upper_limit", ":pet_evolve_target_lower_limit"),
                    (str_store_troop_name, s70, ":pet_evolve_to" ),
                    ],
                    "{s70}",
                    "pet_upgrade_2",
                    [
                    (store_repeat_object, ":pet_evolved" ),
                    (party_add_members, "p_main_party", ":pet_evolved", 1),
                    (party_remove_members, "p_main_party", "$g_talk_troop", 1)
                    ] ],
                    这里的逻辑不通。在下通过丝袜步兵的试验,发现对话会在这里中断并且无法向下进行。是因为不满足is_between
                    的条件,而上面的对话又没有别的出路(装备界面没有打开,如上所述)。
                    而如果删掉is_between的操作的话,一大堆迭代出现的结果姑且不论,这个范围本身也有问题,因为不知道这个兵种的两条升级线,那个有哪个没有,所以会出现类似(is_between, ":pet_evolve_to", 36, -1),这样的情况。
                    顺带一提,在下用反编译器无法使用s70,所以改用了s1。
                    大概这就是在下的结论:阁下有哪里操作失误,或者ms编译问题,或者对话的位置或者触发有问题。
                    不然,阁下可以把在下这堆东西丢进conversation.txt文件(开头行数加17),实际试一下。
                    另外,如果可以,阁下可以重开一贴,这样,阁下发贴在下肯定能看到,在下发贴阁下也可以直接看到,而不用在下这样再艾特。


                    IP属地:河南10楼2018-10-09 18:28
                    回复(5)
                      链接 http://bbs.mountblade.com.cn/forum.php?mod=viewthread&tid=532165&mobile=no&cfrom=1099a&from=1099a&network=1_0&osbranch=i0&osname=baiduboxapp&puid=_u-qtguxviq6C&service=bdbox&sid=1075_2316-947_1998-489_1014-570_1171-695_1443-856_1781-774_1608-1535_3601-972_2059-1024_2182-1059_2275-1073_2309-1573_3703-1582_3732-1156_2487-1166_2513-1175_2538-1209_2628-1288_2830-1338_3035-1438_3339-1446_3368-1511_3529-1526_3563-1527_3565-1530_3571-1007550_23035-1008054_2-1008093_3-1008104_1-1008041_3-1008111_2-1008165_1-1008195_3-1008198_2-1008218_4-1008223_2-1008270_2-1008280_1-1008290_4-1008292_3-1008308_2-1008309_2-1008312_2-1008323_3-1008321_2-1008326_1-1008358_3&ua=640_1136_iphone_10.13.5.11_0&uid=BFC807CD074F95F097E367BDA2FC31989C091DD2FOMETHTCCFQ&ut=iPhone8%2C4_9.3.1&zid=hwGtJLTh1zUgfPRPa9418k2kSJntdCkddTc6nQDZQ8pHmhekUWKQjqV8Dlc48qLMy9I_mp09apamCBobOU_dzlA


                      IP属地:陕西来自iPhone客户端11楼2018-10-09 18:36
                      回复