Results 1 to 4 of 4

Thread: editing unit damage

  1. #1

    Default editing unit damage

    I want to edit unit damages, how do I do this?
    I thought about writing something clever, but then I remembered I'm not clever enough.

  2. #2

    Default Re: editing unit damage

    First, use the unpacker to unpack all your files. Then open the export_descr_unit folder, and simply edit the values there. It's pretty straightforward.

  3. #3

    Default Re: editing unit damage

    Right, to edit the damage of primary and secondary weapons, first unpack, and such, then follow these steps:

    1. Open EDU, and find the unit entry you want to edit; in my case, I have chosen Crusader Knights.

    Code:
    type             Crusader Knights
    dictionary       Crusader_Knights      ; Crusader Knights
    category         cavalry
    class            heavy
    voice_type       Heavy
    accent         French
    banner faction   main_cavalry
    banner holy      crusade_cavalry
    soldier          Crusader_Knights, 32, 0, 0.5
    mount            heavy horse
    mount_effect     elephant -4, camel -4
    attributes       sea_faring, hide_forest, hardy, can_withdraw, can_formed_charge, mercenary_unit, knight
    formation        2, 4.4, 3, 6, 2, square, wedge
    stat_health      1, 0
    stat_pri         13, 6, no, 0, 0, melee, melee_blade, piercing, spear, 0, 0.7
    ;stat_pri_ex      0, 0, 0
    stat_pri_attr    no
    stat_sec         14, 4, no, 0, 0, melee, melee_blade, piercing, sword, 0, 0.7
    ;stat_sec_ex      0, 0, 0
    stat_sec_attr    no
    stat_pri_armour  9, 9, 4, metal
    ;stat_armour_ex   7, 0, 0, 0, 6, 4, 4, metal
    stat_sec_armour  0, 0, flesh
    stat_heat        5
    stat_ground      0, -2, -4, 0
    stat_mental      11, impetuous, trained
    stat_charge_dist 45
    stat_fire_delay  -20000
    stat_food        60, 300
    stat_cost        1, 1080, 350, 130, 100, 880, 4, 220
    armour_ug_levels 3
    armour_ug_models Crusader_Knights
    ownership        slave
    ;unit_info        13, 0, 17
    2. The text highlighted in red is what you need to edit, stat_pri controlling the damage of the primary weapon and stat_sec controlling the secondary wepaon. These weapons are, in our case, a lance (stat_pri) and a sword (stat_sec).

    3. Right, change the values to what you want, then save and close the file. I'm going to assume you know about the .bat file, and running the game through it. Now when you look at the unit (in our case, Crusader Knights), they should have changed values.

    P.S The number after the attack value (stat_pri 13, 6,) is the charge bonus.

  4. #4
    Halie Satanus's Avatar Emperor of ice cream
    Join Date
    Nov 2005
    Location
    London
    Posts
    19,998
    Blog Entries
    1

    Default Re: editing unit damage

    Moved..

Posting Permissions

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