TOTAL WAR WIKI

Total War: ATTILA KIT - Example Battle Definition XML

Example Battle Definition XML

24 April 2015

13:56

 

The following example xml is from the battle of Adrianople.

 

<?xml version="1.0"?>

 

<battle>                

<alliance>

<army>

<faction>att_fact_visigothi</faction>

 

<deployment_area>

<position x='-280' y='200'/>

<position x='120' y='200'/>

<position x='120' y='-200'/>

<position x='-280' y='-200'/>

<orientation radians="0.00"/>

</deployment_area>

 

<unit script_name="Vgt_01">

<unit_type type="att_ger_germanic_nobles"/>

<position x="-86.59" y="76.97"/>

<orientation radians="2.93"/>

<width metres="23.61"/>

<unit_experience level="3"/>

<general>

<name>2147350412</name>

<star_rating level="5"/>

</general>

<unit_capabilities>

<firing_drill>fire_volley</firing_drill>

<special_ability>

com_shock_and_awe

</special_ability>

<special_ability>

att_gen_war_03

</special_ability>

</unit_capabilities>

</unit>

<unit script_name="Vgt_02">

<unit_type type="att_ger_germanic_spearmen"/>

<position x="-0.07" y="47.19"/>

<orientation radians="3.40"/>

<width metres="17.80"/>

<unit_experience level="2"/>

</unit>

<unit script_name="Vgt_03">

<unit_type type="att_ger_germanic_pikes"/>

<position x="-20.07" y="52.53"/>

<orientation radians="3.40"/>

<width metres="17.60"/>

<unit_experience level="1"/>

</unit>

<unit script_name="Vgt_04">

<unit_type type="att_ger_germanic_warband"/>

<position x="-39.97" y="57.84"/>

<orientation radians="3.40"/>

<width metres="17.60"/>

<unit_experience level="1"/>

</unit>

<unit script_name="Vgt_05">

<unit_type type="att_ger_germanic_warband"/>

<position x="-59.88" y="63.16"/>

<orientation radians="3.40"/>

<width metres="17.60"/>

<unit_experience level="1"/>

</unit>

<unit script_name="Vgt_06">

<unit_type type="att_ger_gothic_warband"/>

<position x="11.80" y="62.56"/>

<orientation radians="3.39"/>

<width metres="18.80"/>

<unit_experience level="1"/>

</unit>

<unit script_name="Vgt_07">

<unit_type type="att_ger_gothic_warband"/>

<position x="-8.74" y="67.81"/>

<orientation radians="3.39"/>

<width metres="17.60"/>

<unit_experience level="1"/>

</unit>

<unit script_name="Vgt_08">

<unit_type type="att_ger_thracian_warriors"/>

<position x="-28.69" y="72.91"/>

<orientation radians="3.39"/>

<width metres="17.60"/>

<unit_experience level="2"/>

</unit>

<unit script_name="Vgt_09">

<unit_type type="att_ger_thracian_warriors"/>

<position x="-48.65" y="78.01"/>

<orientation radians="3.39"/>

<width metres="17.60"/>

<unit_experience level="1"/>

</unit>

 

 

<!-- ranged -->

<unit script_name="Vgt_20">

<unit_type type="att_ger_germanic_hunters"/>

<position x="-149.56" y="39.68"/>

<orientation radians="2.92"/>

<width metres="29.60"/>

<unit_experience level="1"/>

</unit>

<unit script_name="Vgt_21">

<unit_type type="att_ger_germanic_hunters"/>

<position x="-182.35" y="32.36"/>

<orientation radians="2.92"/>

<width metres="29.60"/>

<unit_experience level="1"/>

</unit>

<unit script_name="Vgt_22">

<unit_type type="att_ger_visigothic_slingers"/>

<position x="16.58" y="-55.61"/>

<orientation radians="4.34"/>

<width metres="26.00"/>

<unit_experience level="1"/>

</unit>

<unit script_name="Vgt_23">

<unit_type type="att_ger_germanic_hurlers"/>

<position x="6.05" y="-28.58"/>

<orientation radians="4.34"/>

<width metres="26.00"/>

<unit_experience level="1"/>

</unit>

<unit script_name="Vgt_24">

<unit_type type="att_ger_germanic_hurlers"/>

<position x="-34.68" y="18.06"/>

<orientation radians="-2.99"/>

<width metres="54.8"/>

<unit_experience level="1"/>

</unit>

<unit script_name="Vgt_25">

<unit_type type="att_ger_germanic_brigands"/>

<position x="-92.82" y="26.86"/>

<orientation radians="3.39"/>

<width metres="53.00"/>

<unit_experience level="1"/>

</unit>

 

 

<!-- cavalry -->

<unit script_name="Vgt_30" hide_prebattle="true">

<unit_type type="att_ger_germanic_horsemen"/>

<position x="-136.03" y="147.83"/>

<orientation radians="3.14"/>

<width metres="18.91"/>

<unit_experience level="0"/>

</unit>

<unit script_name="Vgt_31" hide_prebattle="true">

<unit_type type="att_ger_germanic_horsemen"/>

<position x="-157.94" y="147.83"/>

<orientation radians="3.14"/>

<width metres="18.91"/>

<unit_experience level="0"/>

</unit>

<unit script_name="Vgt_32" hide_prebattle="true">

<unit_type type="att_ger_germanic_mounted_warband"/>

<position x="-179.85" y="147.84"/>

<orientation radians="3.14"/>

<width metres="18.91"/>

<unit_experience level="0"/>

</unit>

<unit script_name="Vgt_33" hide_prebattle="true">

<unit_type type="att_ger_germanic_lancers"/>

<position x="-201.76" y="147.84"/>

<orientation radians="3.14"/>

<width metres="18.91"/>

<unit_experience level="0"/>

</unit>

<unit script_name="Vgt_34" hide_prebattle="true">

<unit_type type="att_ger_gothic_lancers"/>

<position x="-223.67" y="147.84"/>

<orientation radians="3.14"/>

<width metres="18.91"/>

<unit_experience level="0"/>

</unit>

<unit script_name="Vgt_35" hide_prebattle="true">

<unit_type type="att_ger_germanic_raiders"/>

<position x="-245.33" y="147.84"/>

<orientation radians="3.14"/>

<width metres="18.41"/>

<unit_experience level="0"/>

</unit>

<unit script_name="Vgt_36" hide_prebattle="true">

<unit_type type="att_ger_germanic_mounted_brigands"/>

<position x="-266.74" y="147.84"/>

<orientation radians="3.14"/>

<width metres="18.41"/>

<unit_experience level="0"/>

</unit>

</army>

 

<victory_condition>

<kill_or_rout_enemy></kill_or_rout_enemy>

</victory_condition>

<rout_position x="-800.00" y="1200.00"/>        

</alliance>

 

 

<alliance>

<army>

<faction>att_fact_eastern_roman_empire</faction>

 

<deployment_area>

<boundary type="standard additive">

<position x="-900.0" y="-900.0"/>

<position x="-900.0" y="900.0"/>

<position x="900.0" y="900.0"/>

<position x="900.0" y="-900.0"/>

</boundary>

 

<boundary type="standard subtractive">

<position x='-380' y='300'/>

<position x='220' y='300'/>

<position x='220' y='-300'/>

<position x='-380' y='-300'/>

</boundary>

<orientation radians="0.00"/>

</deployment_area>

 

<unit script_name="Rom_01">

<unit_type type="att_rom_excubitores_cavalry_guard"/>

<position x="-168.06" y="-486.19"/>

<orientation radians="0.34"/>

<width metres="19.68"/>

<unit_experience level="0"/>

<general>

<name>2147350410</name>

<star_rating level="5"/>

</general>

</unit>

<unit script_name="Rom_02">

<unit_type type="att_rom_equites_dalmatae"/>

<position x="-215.35" y="-480.55"/>

<orientation radians="0.35"/>

<width metres="20.71"/>

<unit_experience level="0"/>

</unit>

<unit script_name="Rom_03">

<unit_type type="att_rom_scout_equites"/>

<position x="-193.06" y="-488.63"/>

<orientation radians="0.35"/>

<width metres="20.71"/>

<unit_experience level="0"/>

</unit>        

<unit script_name="Rom_04">

<unit_type type="att_rom_scout_equites"/>

<position x="-149.37" y="-503.00"/>

<orientation radians="0.33"/>

<width metres="20.71"/>

<unit_experience level="0"/>

</unit>

<unit script_name="Rom_05">

<unit_type type="att_rom_scout_equites"/>

<position x="-126.98" y="-510.79"/>

<orientation radians="0.33"/>

<width metres="20.71"/>

<unit_experience level="0"/>

</unit>

 

 

<!-- infantry -->

<unit script_name="Rom_10">

<unit_type type="att_rom_comitatensis_spears"/>

<position x="-192.38" y="-518.18"/>

<orientation radians="0.33"/>

<width metres="23.80"/>

<unit_experience level="1"/>

</unit>

<unit script_name="Rom_11">

<unit_type type="att_merc_rom_comitatensis_spears"/>

<position x="-225.25" y="-443.38"/>

<orientation radians="0.33"/>

<width metres="22.80"/>

<unit_experience level="0"/>

</unit>

<unit script_name="Rom_12">

<unit_type type="att_rom_exploratores"/>

<position x="-217.54" y="-508.75"/>

<orientation radians="0.32"/>

<width metres="23.01"/>

<unit_experience level="0"/>

</unit>

<unit script_name="Rom_13">

<unit_type type="att_rom_legio"/>

<position x="-201.77" y="-451.37"/>

<orientation radians="0.33"/>

<width metres="22.80"/>

<unit_experience level="1"/>

</unit>

<unit script_name="Rom_14">

<unit_type type="att_rom_cohors"/>

<position x="-178.81" y="-459.18"/>

<orientation radians="0.33"/>

<width metres="21.70"/>

<unit_experience level="1"/>

</unit>

<unit script_name="Rom_15">

<unit_type type="att_rom_protectores_domestici"/>

<position x="-156.38" y="-466.81"/>

<orientation radians="0.33"/>

<width metres="21.70"/>

<unit_experience level="1"/>

</unit>

<unit script_name="Rom_16">

<unit_type type="att_rom_cohors"/>

<position x="-133.94" y="-474.45"/>

<orientation radians="0.33"/>

<width metres="21.70"/>

<unit_experience level="0"/>

</unit>

<unit script_name="Rom_17">

<unit_type type="att_rom_limitanei_borderguards"/>

<position x="-111.45" y="-482.09"/>

<orientation radians="0.33"/>

<width metres="21.80"/>

<unit_experience level="1"/>

</unit>

<unit script_name="Rom_18">

<unit_type type="att_rom_praeventores"/>

<position x="-88.97" y="-489.74"/>

<orientation radians="0.33"/>

<width metres="21.70"/>

<unit_experience level="0"/>

</unit>

<unit script_name="Rom_19">

<unit_type type="att_rom_praeventores"/>

<position x="-140.07" y="-534.06"/>

<orientation radians="0.30"/>

<width metres="26.26"/>

<unit_experience level="0"/>

</unit>

<unit script_name="Rom_20">

<unit_type type="att_rom_comitatensis_spears"/>

<position x="-167.02" y="-526.85"/>

<orientation radians="0.33"/>

<width metres="23.80"/>

<unit_experience level="0"/>

</unit>

<unit script_name="Rom_21">

<unit_type type="att_rom_menaulatoi"/>

<position x="-66.77" y="-497.29"/>

<orientation radians="0.33"/>

<width metres="21.20"/>

<unit_experience level="1"/>

</unit>

<unit script_name="Rom_22">

<unit_type type="att_rom_legio"/>

<position x="-220.72" y="-519.81"/>

<orientation radians="0.33"/>

<width metres="25.0"/>

<unit_experience level="0"/>

</unit>

<unit script_name="Rom_23">

<unit_type type="att_rom_cohors"/>

<position x="-143.27" y="-544.54"/>

<orientation radians="0.31"/>

<width metres="25.0"/>

<unit_experience level="0"/>

</unit>

<unit script_name="Rom_24">

<unit_type type="att_rom_eastern_auxilia_palatina"/>

<position x="-117.57" y="-552.78"/>

<orientation radians="0.31"/>

<width metres="25.0"/>

<unit_experience level="0"/>

</unit>

<unit script_name="Rom_25">

<unit_type type="att_rom_legio"/>

<position x="-246.43" y="-511.57"/>

<orientation radians="0.33"/>

<width metres="25.0"/>

<unit_experience level="0"/>

</unit>

<unit script_name="Rom_26">

<unit_type type="att_rom_eastern_auxilia_palatina"/>

<position x="-193.84" y="-530.34"/>

<orientation radians="0.30"/>

<width metres="22.8"/>

<unit_experience level="0"/>

</unit>

<unit script_name="Rom_27">

<unit_type type="att_rom_cohors"/>

<position x="-170.14" y="-537.65"/>

<orientation radians="0.30"/>

<width metres="22.8"/>

<unit_experience level="0"/>

</unit>

 

<!-- ranged -->

<unit script_name="Rom_30">

<unit_type type="att_rom_sagittarii"/>

<position x="-202.13" y="-429.25"/>

<orientation radians="0.33"/>

<width metres="42.20"/>

<unit_experience level="0"/>

</unit>

<unit script_name="Rom_31">

<unit_type type="att_rom_funditores"/>

<position x="-160.25" y="-443.38"/>

<orientation radians="0.33"/>

<width metres="42.20"/>

<unit_experience level="0"/>

</unit>

<unit script_name="Rom_32">

<unit_type type="att_rom_levis_armaturae"/>

<position x="-118.37" y="-457.51"/>

<orientation radians="0.33"/>

<width metres="42.20"/>

<unit_experience level="0"/>

</unit>

<unit script_name="Rom_33">

<unit_type type="att_rom_sagittarii"/>

<position x="-76.49" y="-471.63"/>

<orientation radians="0.33"/>

<width metres="42.20"/>

<unit_experience level="0"/>

</unit>

 

<!-- additional ranged -->

<unit script_name="Rom_34">

<unit_type type="att_rom_sagittarii"/>

<position x="-135.8" y="-561.2"/>

<orientation radians="0.33"/>

<width metres="42.20"/>

<unit_experience level="0"/>

</unit>

<unit script_name="Rom_35">

<unit_type type="att_rom_sagittarii"/>

<position x="-236.97" y="-528.7"/>

<orientation radians="0.33"/>

<width metres="42.20"/>

<unit_experience level="0"/>

</unit>

</army>

 

<victory_condition>

<kill_or_rout_enemy></kill_or_rout_enemy>

</victory_condition>

 

<rout_position x="200.00" y="-1500.00"/>        

</alliance>

 

 

<battle_description>

<battle_script prepare_for_fade_in="true">AN_Start.lua</battle_script>

<time_of_day>day</time_of_day>

<season>Summer</season>

<precipitation_type>dry</precipitation_type>

<type>land_normal</type>

<timeout_winning_alliance_index>0</timeout_winning_alliance_index

</battle_description>

 

<weather>

<environment_key>Script\AN_Adrianople\AN.environment</environment_key>

<prevailing_wind x="1.00" y="0.00"/>

</weather>

 

<sea_surface_name>wind_level_4</sea_surface_name>

 

<battle_map_definition>

<name>terrain/battles/adrianople/</name>

</battle_map_definition>

 

<loading_screen_title_override>

battle_title_adrianople

</loading_screen_title_override>

 

<playable_area dimension="1924" />

</battle>