Results 1 to 6 of 6

Thread: Question about export_descr_unit.text

  1. #1

    Default Question about export_descr_unit.text

    I trying create some new units. I have read Mythic_Commodore A Beginner's Guide to the Export_Descr_Unit and How to make new units. I have some confuse about export_descr_unit.text. There are bit different between RoTK mod file and other mod

    Code:
    type Swiss Pikemen
    dictionary Swiss_Pikemen ; Swiss Pikemen
    category infantry
    class spearmen
    voice_type Heavy
    accent German
    banner faction main_spear
    banner holy crusade
    soldier Swiss_Pikemen, 60, 0, 1
    attributes sea_faring, hide_forest, very_hardy, can_withdraw, pike
    formation 1.2, 1.2, 2.4, 2.4, 8, square, phalanx
    stat_health 1, 0
    stat_pri 14, 4, no, 0, 0, melee, melee_blade, piercing, spear, 25, 1
    ;stat_pri_ex 0, 0, 0
    stat_pri_attr spear, long_pike, spear_bonus_8
    stat_sec 13, 3, no, 0, 0, melee, melee_blade, piercing, sword, 25, 1
    ;stat_sec_ex 0, 0, 0
    stat_sec_attr no
    stat_pri_armour 0, 5, 0, flesh
    ;stat_armour_ex 0, 0, 0, 0, 5, 0, 0, flesh
    stat_sec_armour 0, 0, flesh
    stat_heat 2
    stat_ground 1, -2, 3, 2
    stat_mental 11, impetuous, highly_trained
    stat_charge_dist 40
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 470, 185, 115, 90, 470, 4, 110
    armour_ug_levels 0
    armour_ug_models Swiss_Pikemen
    ownership slave
    ;unit_info 14, 0, 5
    Unit_info line defines something?
    And code in RoTK mod

    Example:
    Code:
    type             JiangJun_ZhongYuan_Aa_0112-GuoJiadictionary       JiangJun_ZhongYuan_Aa_0112-GuoJia
    category         cavalry
    class            missile
    voice_type       Light
    banner faction   main_cavalry
    banner holy      crusade_cavalry
    soldier          ZYgongqibing, 15, 0, 1
    officer          ZYgongqibing
    mount            hanxuema
    mount_effect     elephant -4, camel -4
    attributes       sea_faring, hide_forest, hardy, can_withdraw, horse_archers, cantabrian_circle, general_unit, no_custom
    move_speed_mod   1.0
    formation        2, 4.4, 3, 6, 3, square
    stat_health      2, 3
    stat_pri         7, 2, cav_composite_arrow, 130, 40, missile, missile_mechanical, piercing, none, 0, 1
    stat_pri_attr    no
    stat_sec         6, 5, no, 0, 0, melee, melee_blade, piercing, sword, 60, 1
    stat_sec_attr    no
    stat_pri_armour  7, 5, 0, flesh
    stat_sec_armour  0, 0, flesh
    stat_heat        1
    stat_ground      0, -1, -2, 1
    stat_mental      12, disciplined, highly_trained
    stat_charge_dist 20
    stat_fire_delay  0
    stat_food        60, 300
    stat_cost        1, 2000, 0, 200, 200, 555, 1, 100
    armour_ug_levels 0, 5, 6
    armour_ug_models ZYgongqibing, ZYgongqibing, ZYgongqibing
    ownership        england
    era 0            england
    era 1            england
    recruit_priority_offset   0
    Some unit have recruit_priority_offset's value, Some unit don't.
    Please explain it to me
    Thanks & best regard

  2. #2
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,123
    Blog Entries
    35

    Default Re: Question about export_descr_unit.text

    unit_info - this line is disabled by the semi colon ( ; ) in front of the line. It's not used in M2TW and can be removed.
    recruit_priority_offset_value - optional. It sets the priority for recruitment calculations, the lower the number the lower the chance that the AI will recruit it.










  3. #3

    Default Re: Question about export_descr_unit.text

    Thank you vey much. I can change portrait and unit-info pic for start officer like Cao Cao or reinforcement officer like Xu Huang now. But I can't find officer like Cao Pi in descr_stra or campaign_script. In descr_stra only write "record charactor J0135_CaoPi". There is no info about where his portrait stored or what kind of unit. Please help me.

  4. #4
    Seether's Avatar RoTK Workhorse
    Join Date
    Oct 2005
    Location
    FloRida
    Posts
    5,404

    Default Re: Question about export_descr_unit.text

    That's because Cao Pi is only 9 years old at campaign start. If a character is underage and in a family tree, or isn't spawned via script, then they will not have certain entries (such as portrait) listed for them anywhere. Unfortunately, you'll have to manually search through the portraits yourself.
    Member of the Imperial House of Hader - Under the Benevolent Patronage of y2day
    A Wolf Among Sheep: A Rise of Three Kingdoms AAR

  5. #5

    Default Re: Question about export_descr_unit.text

    Thank for your advice. But in export_descr_unit have code JiangJun_ZhongYuan_J0135_CaoPi. How can Cao Pi has exact uni when he appears. I have not had Cao Pi yet. But I have Xiahou Shang son of Xiahou Dun, his unit is ZhongYuan Cavalry. It must be ruled somewhere isn't it?

  6. #6
    Seether's Avatar RoTK Workhorse
    Join Date
    Oct 2005
    Location
    FloRida
    Posts
    5,404

    Default Re: Question about export_descr_unit.text

    Because he was "of age" in the original RTW mod.
    Member of the Imperial House of Hader - Under the Benevolent Patronage of y2day
    A Wolf Among Sheep: A Rise of Three Kingdoms AAR

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •