Divergent/mods/Redone Limansk and Hospital/gamedata/scripts/modxml_greh_desc_dxml.script

40 lines
1.5 KiB
Plaintext

function on_xml_read()
RegisterScriptCallback("on_xml_read", function(xml_file_name, xml_obj)
local xml_to_change = [[gameplay\character_desc_red_forest.xml]]
if xml_file_name == xml_to_change then
local greh_guide_profile = [[
<specific_character id="red_greh_guide" team_default="1">
<name>red_greh_guide_name</name>
<icon>ui_inGame2_bandit_6d</icon>
<map_icon x="1" y="0"></map_icon>
<bio>Детальная No information is available.</bio>
<class>red_greh_guide</class>
<community>greh</community><terrain_sect>stalker_terrain</terrain_sect>
<rank>8008</rank>
<money min="10000" max="20000" infinitive="1"/>
<reputation>666</reputation>
<snd_config>characters_voice\human\greh_1\</snd_config>
<visual>actors\stalker_greh\stalker_greh_1b_face_06</visual>
<supplies>
[spawn] \n
wpn_vintorez_1pn93 = 1 \n
ammo_9x39_pab9 = 2 \n
wpn_gsh18 = 1 \n
ammo_9x19_fmj = 2 \n
#include "gameplay\supplies\character_items.xml"
#include "gameplay\supplies\character_food.xml"
#include "gameplay\supplies\character_drugs.xml"
</supplies>
#include "gameplay\character_criticals.xml"
<start_dialog>red_greh_guide_start</start_dialog>
<actor_dialog>meet_red_greh_guide</actor_dialog>
<actor_dialog>travel_red_greh_guide</actor_dialog>
<actor_dialog>meet_red_greh_guide_list</actor_dialog>
<actor_dialog>red_greh_guide_background</actor_dialog>
<actor_dialog>actor_break_dialog</actor_dialog>
</specific_character>
]]
xml_obj:insertFromXMLString(greh_guide_profile)
end
end)
end