Results 1 to 7 of 7

Thread: Question about to place a Elephant in....

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Shaidar Haran Senior Member SAM Site Champion Myrddraal's Avatar
    Join Date
    Feb 2004
    Location
    UK
    Posts
    5,752

    Default Re: Question about to place a Elephant in....

    So you want to add an elephant unit to thrace. By that I take it you want elephants to be recruitable by thrace right?

    Lets use carthaginian elephant african as an example

    1. Open export_descr_unit.txt and look for the entry for elephants:

    Code:
    type             carthaginian elephant african
    dictionary       carthaginian_elephant_african      ; War Elephants
    category         cavalry
    class            heavy
    voice_type       Medium_1
    soldier          carthaginian_elephant_crew, 18, 6, 1
    mount            elephant african
    mount_effect     horse +4, chariot +8, camel +4
    attributes       sea_faring, can_run_amok, frighten_foot, frighten_mounted
    formation        7, 11, 13,16, 1, square
    stat_health      1, 12
    stat_pri         6, 3, arrow, 120, 60, missile, archery, piercing, none, 25 ,1
    stat_pri_attr    no
    stat_sec         6, 8, no, 0, 0, melee, other, blunt, none, 25 ,1
    stat_sec_attr    area, launching, ap
    stat_pri_armour  0, 4, 0, flesh
    stat_sec_armour  13, 3, flesh
    stat_heat        -1
    stat_ground      0, 1, -6, -1
    stat_mental      8, normal, untrained
    stat_charge_dist 30
    stat_fire_delay  0
    stat_food        60, 300
    stat_cost        2, 2520, 490, 260, 380, 2520
    ownership        carthage
    You need to make the following edits here (highlighted in blue):

    Code:
    ownership        carthage, thrace
    2. Now open descr_model_battle.txt and find the entry for carthaginian_elephant_crew (you get this name from the 'soldier' line in export_descr_unit.txt)

    Code:
    type                carthaginian_elephant_crew
    skeleton            fs_forest_elephant_rider
    indiv_range            40
    texture                carthage, data/models_unit/textures/unit_carthage_light_archer_carthage.tga
    model_flexi        data/models_unit/unit_carthage_archer_high.cas, 15
    model_flexi        data/models_unit/unit_carthage_archer_med.cas, 30
    model_flexi        data/models_unit/unit_carthage_archer_low.cas, 40
    model_flexi        data/models_unit/unit_carthage_archer_lowest.cas, max
    model_sprite        carthage, 60.0, data/sprites/carthage_carthaginian_elephant_crew_sprite.spr
    model_tri            400, 0.5f, 0.5f, 0.5f
    In this section textures are assigned for different factions. For now, we'll use the same textures, but for thrace. Make the following edits (highlighted in blue):

    Code:
    type                carthaginian_elephant_crew
    skeleton            fs_forest_elephant_rider
    indiv_range            40
    texture                carthage, data/models_unit/textures/unit_carthage_light_archer_carthage.tga
    texture                thrace, data/models_unit/textures/unit_carthage_light_archer_carthage.tga
    model_flexi        data/models_unit/unit_carthage_archer_high.cas, 15
    model_flexi        data/models_unit/unit_carthage_archer_med.cas, 30
    model_flexi        data/models_unit/unit_carthage_archer_low.cas, 40
    model_flexi        data/models_unit/unit_carthage_archer_lowest.cas, max
    model_sprite        carthage, 60.0, data/sprites/carthage_carthaginian_elephant_crew_sprite.spr
    model_sprite        thrace, 60.0, data/sprites/carthage_carthaginian_elephant_crew_sprite.spr
    model_tri            400, 0.5f, 0.5f, 0.5f

    And you're done!

    BTW, I suggest you read some of the tutorials in the Modification Guides, Tools & Tutorials database. The question you're asking is quite basic, and you could find a lot of your answers there.

    Good luck
    Last edited by Myrddraal; 09-06-2006 at 14:29.

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