- 好友
- 1
- 在线时间
- 0 小时
- 最后登录
- 2024-3-13
扈从
- UID
- 3096100
- 第纳尔
- 937
- 精华
- 0
- 互助
- 6
- 荣誉
- 2
- 贡献
- 10
- 魅力
- 249
- 注册时间
- 2019-8-16
鲜花( 25) 鸡蛋( 0)
|
楼主 |
发表于 2021-1-10 11:27:53
|
显示全部楼层
本帖最后由 gamemi 于 2021-1-10 11:58 编辑
1. 我觉得start应该是没问题的,因为实际上是对话过的,而且对话的内容是我自己预设的,没作用主要是条件判断语句的问题,我觉得应该是这样。
[trp_officials_caravan,"start", [(quest_slot_eq, "qst_escort_officials_caravan", slot_quest_current_state, 1),],
" Thanks.", "close_window",[]],
因为这段语句就好好的实现功能了,如果是start的问题,这句应该也出不来才对的。
2. 我就是复制的带商队的那个代码块,然后自己修改的来着。
(quest_get_slot, ":quest_target_center", "qst_escort_merchant_caravan", slot_quest_target_center),
(set_spawn_radius, 1),
(spawn_around_party,"$g_encountered_party","pt_merchant_caravan"),
(assign, ":quest_target_party", reg0),
(party_set_ai_behavior, ":quest_target_party", ai_bhvr_track_party),
(party_set_ai_object, ":quest_target_party", "p_main_party"),
(party_set_flags, ":quest_target_party", pf_default_behavior, 0),
(quest_set_slot, "qst_escort_merchant_caravan", slot_quest_target_party, ":quest_target_party"),
(quest_set_slot, "qst_escort_merchant_caravan", slot_quest_current_state, 1),
(str_store_party_name_link, s8, ":quest_target_center"),
(setup_quest_text, "qst_escort_merchant_caravan"),
(str_store_string, s2, "@Escort the merchant caravan to the town of {s8}."),
(call_script, "script_start_quest", "qst_escort_merchant_caravan", "$g_talk_troop"),
(quest_get_slot, ":quest_target_party", "qst_escort_merchant_caravan", slot_quest_target_party),
(eq,"$g_encountered_party",":quest_target_party"),
(quest_get_slot, ":quest_target_center", "qst_escort_merchant_caravan", slot_quest_target_center),
(store_distance_to_party_from_party, ":dist", ":quest_target_center",":quest_target_party"),
(lt,":dist",4),
(quest_slot_eq, "qst_escort_merchant_caravan", slot_quest_current_state, 0),
这一段原始的代码应该是这样的。然后我修改了一下
(set_spawn_radius, 1), (spawn_around_party,"$g_encountered_party","pt_officials_caravan"),##呼叫跟随者
(assign, ":quest_target_party", reg0),
(party_set_ai_behavior, ":quest_target_party", ai_bhvr_track_party),
(party_set_ai_object, ":quest_target_party", "p_main_party"),
(party_set_flags, ":quest_target_party", pf_default_behavior, 0),
(quest_set_slot, "qst_escort_officials_caravan", slot_quest_target_party, "pt_officials_caravan"),
(quest_set_slot, "qst_escort_officials_caravan", slot_quest_current_state, 1),
(str_store_party_name_link, s8, "p_town_4"),
(setup_quest_text, "qst_escort_officials_caravan"),
(str_store_string, s2, "@Escort the merchant caravan to the town of {s8}."),
(call_script, "script_start_quest", "qst_escort_officials_caravan", "$g_talk_troop"),
[trp_officials_caravan,"start", [(quest_slot_eq, "qst_escort_officials_caravan", slot_quest_current_state, 1),],
" Thanks.", "close_window",[]],
[trp_officials_caravan,"start", [
(quest_slot_eq, "qst_escort_officials_caravan", slot_quest_current_state,1),
(eq,"$g_encountered_party","p_town_4"),
(store_distance_to_party_from_party, ":dist","p_town_4" ,"pt_officials_caravan"),
(lt,":dist",200),
],
"We can cover the rest of the way ourselves. Thanks.", "close_window",[(assign, "$g_leave_encounter", 1)]],
改成这样,不过我发现任务书上没问题,真到了执行时,一个是到了目的地也不会对话,而且也无法判断到达地方,永远只会说Thanks。可是我想让他说We can cover the rest of the way ourselves. Thanks.这句,因此我觉得可能是条件判断语句出错。
当然水平有限。
|
|