function on_xml_read() RegisterScriptCallback("on_xml_read", function(xml_file_name, xml_obj) local xml_to_change = [[gameplay\dialogs_redforest.xml]] if xml_file_name == xml_to_change then local greh_guide_dialogs = [[ red_greh_guide_start_dialog_1 meet_red_greh_guide_over meet_red_greh_guide_0 1 meet_red_greh_guide_1 meet_red_greh_guide_over meet_red_greh_guide_over meet_red_greh_guide_list_0 1 meet_red_greh_guide_list_1 greh_dialogs_mlr_redone.have_money_to_redforest_guid_redforest meet_red_greh_guide_over travel_red_greh_guide_0 1 travel_red_greh_guide_1 2 3 4 5 travel_red_greh_guide_2 greh_dialogs_mlr_redone.have_money_to_redforest_guid_redforest greh_dialogs_mlr_redone.sell_money_to_redforest_guid_redforest greh_dialogs_mlr_redone.redforest_guid_redforest dialogs.break_dialog travel_red_greh_guide_3 greh_dialogs_mlr_redone.have_money_to_pripyat_guid_redforest greh_dialogs_mlr_redone.sell_money_to_pripyat_guid_redforest greh_dialogs_mlr_redone.pripyat_guid_redforest dialogs.break_dialog travel_red_greh_guide_4 greh_dialogs_mlr_redone.have_money_to_outskirts_guid_redforest greh_dialogs_mlr_redone.sell_money_to_outskirts_guid_redforest greh_dialogs_mlr_redone.outskirts_guid_redforest dialogs.break_dialog travel_red_greh_guide_5 dm_dialog_character_history 1 red_greh_guide_background_1 2 red_greh_guide_background_2 3 red_greh_guide_background_3 4 red_greh_guide_background_4 greh_guide_st ]] xml_obj:insertFromXMLString(greh_guide_dialogs) end end) end