[party_tpl|pt_refugees,"start", [(eq,"$talk_context",tc_party_encounter), (check_quest_active, "qst_escort_refugees")], "What is it?", "playerRefugeeOrders", []],
[party_tpl|pt_refugees|plyr,"playerRefugeeOrders", [], "Nothing, lets keep moving.", "close_window", [(assign, "$g_leave_encounter",1),(party_set_ai_behavior, "$g_encountered_party", ai_bhvr_escort_party),
(party_set_ai_object, "$g_encountered_party", "p_main_party"),
(party_set_flags, "$g_encountered_party", pf_default_behavior, 0)]],
[party_tpl|pt_refugees|plyr,"playerRefugeeOrders", [], "Wait here, I will check that the path is safe", "waitRefugeeResponse", []],
[party_tpl|pt_refugees,"waitRefugeeResponse", [], "Right then, we will wait here for your instructions",[(set_ai_behavr, "$g_encountered_party", ai_bhvr_hold)]],
[party_tpl|pt_refugees, "start", [(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", "$refugeeLocation",":quest_target_party"),
(lt,":dist",4)]], "Thank you so much for your help, here is what little we can pay. We are sorry but as you could imagine we do not have much left.", "refugeeQuestDecison",
[(call_script, "script_end_quest","qst_escort_refugees")]],
# [party_tpl|pt_refugees|plyr,"refugeeQuestDecison", [], "No, I can't take your money, not after what you've been through, best of luck in your new lives" , "refugeeQuestDecisionThankYouNeutral", []],
[party_tpl|pt_refugees|plyr,"refugeeTalk", [], "Very well, you best be on your way", "close_window", [(assign, "$g_leave_encounter",1)]],
[party_tpl|pt_refugees|plyr,"refugeeTalk", [], "You'd move a lot faster if you weren't carrying all that weight i'll just take it off your hands(Attack!).", "refugeeIsAttacked", []],
[party_tpl|pt_refugees,"refugeeIsAttacked", [], "You bastard! We are defensless people, you will be punished for your actions one day!", "close_window",
[(store_relation,":rel", "$g_encountered_party_faction","fac_player_supporters_faction"),
(val_sub, ":rel", 20),
(call_script, "script_set_player_relation_with_faction", "$g_encountered_party_faction", ":rel"),
(call_script, "script_diplomacy_party_attacks_neutral", "p_main_party", "$g_encountered_party"),
(encounter_attack)]],