Results 1 to 8 of 8

Thread: Generals Bodyguard

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Finder of Little Oddities Senior Member Makanyane's Avatar
    Join Date
    Jan 2006
    Posts
    2,220

    Default Re: Generals Bodyguard

    type roman praetorian cohort i
    dictionary roman_praetorian_cohort_i ; Praetorian Cohort
    category infantry
    class heavy
    voice_type Heavy_1
    soldier roman_praetorian_cohort_i, 40, 0, 1.3
    officer roman_centurion
    attributes sea_faring, hide_forest, can_sap, general_unit
    formation 1, 2, 2, 3, 4, square, testudo
    stat_health 1, 0
    stat_pri 16, 3, pilum, 35, 2, thrown, blade, piercing, spear, 25 ,1
    stat_pri_attr prec, thrown ap
    stat_sec 12, 3, no, 0, 0, melee, simple, piercing, sword, 25 ,1
    stat_sec_attr no
    to make the infantry unit selected as a general you'd just add the bit in bold to the attributes line (ignore whether or not it has general in its type name that is irrelevant)

    remove the general_unit bit from the cavalry unit that faction uses at the moment.

    ********
    If you want to keep the 'cavalry' unit as general but dismount it you'd need to change to:
    type roman generals guard cavalry early
    dictionary roman_generals_guard_cavalry_early ; Roman General
    category infantry
    class heavy
    voice_type General_1
    soldier roman_medium_cavalry, 12, 0, 1
    mount generals horse
    mount_effect elephant -8, camel -4
    attributes sea_faring, general_unit, hide_forest, hardy
    formation 1.5, 4, 3, 6, 3, square
    remove the two lines I've crossed out and change category, you'd probably also want to change its unit statistics as well to make them more appropriate for an infantry unit.
    If making it into infantry you also need to change the animation the soldier uses, look in descr_model_battle.txt for
    type roman_medium_cavalry
    skeleton fs_hc_spearman, fs_hc_swordsman
    indiv_range 40
    texture romans_julii, data/......
    and change to
    type roman_medium_cavalry
    skeleton fs_spearman, fs_swordsman
    indiv_range 40
    texture romans_julii, data/......
    *******

    That's all quite simple if you don't mind it happening to all the factions that use the unit at the moment.

    If you only want to do it for one faction and they share units you'll to make a duplicate of the unit with a different 'type' name so you can change for one and not the other. (change the ownership lines to control which faction gets which) The type name is used in export_descr_buildings.txt and descr_strat.txt for recruitment, so you'd need to add new entries to that for the effected faction.

    If you need the dismounted cavalry to apply to only one faction you need to make a duplicate of the DMB entry with a different 'type' name for the new version, and use the new DMB 'type' name as the 'soldier' line for the new EDU unit entry..

    erm you might find it helpful to go back and look in the scriptorium at the adding units tutorials.
    Last edited by Makanyane; 08-30-2007 at 17:37.
    Not used mods before? Looking for something small and fun?!
    Download the:

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO