new ship

Thread: new ship

  1. Brogie's Avatar

    Brogie said:

    Default new ship

    in the unit des is it possible to say copy the details of a ship type such as:

    dictionary grande_carrack ; Grande Carrack
    category ship
    class light
    voice_type Light
    soldier Peasants, 60, 0, 1
    ship heavy warship
    attributes sea_faring, can_withdraw
    formation 50, 50, 75, 75, 1, square
    stat_health 1, 0
    stat_pri 35, 0, no, 0, 0, melee, melee_simple, slashing, none, 25, 1
    ;stat_pri_ex 0, 0, 0
    stat_pri_attr no
    stat_sec 0, 0, no, 0, 0, no, melee_simple, blunt, none, 25, 1
    ;stat_sec_ex 0, 0, 0
    stat_sec_attr no
    stat_pri_armour 0, 35, 0, flesh
    ;stat_armour_ex 0, 0, 0, 0, 35, 0, 0, flesh
    stat_sec_armour 0, 0, flesh
    stat_heat 0
    stat_ground 0, 0, 0, 0
    stat_mental 5, normal, trained
    stat_charge_dist 30
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 1900, 350, 250, 250, 1900, 4, 470
    armour_ug_levels 0
    armour_ug_models Peasants
    ownership portugal, spain
    ;unit_info 35, 0, 35

    then change it totype grande carrack
    dictionary grande_carrack ; Grande Carrack
    category ship
    class light
    voice_type Light
    soldier Peasants, 60, 0, 1
    ship heavy warship
    attributes sea_faring, can_withdraw
    formation 50, 50, 75, 75, 1, square
    stat_health 1, 0
    stat_pri 35, 0, no, 0, 0, melee, melee_simple, slashing, none, 25, 1
    ;stat_pri_ex 0, 0, 0
    stat_pri_attr no
    stat_sec 0, 0, no, 0, 0, no, melee_simple, blunt, none, 25, 1
    ;stat_sec_ex 0, 0, 0
    stat_sec_attr no
    stat_pri_armour 0, 35, 0, flesh
    ;stat_armour_ex 0, 0, 0, 0, 35, 0, 0, flesh
    stat_sec_armour 0, 0, flesh
    stat_heat 0
    stat_ground 0, 0, 0, 0
    stat_mental 5, normal, trained
    stat_charge_dist 30
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 1900, 350, 250, 250, 1900, 4, 470
    armour_ug_levels 0
    armour_ug_models Peasants
    ownership England
    ;unit_info 35, 0, 35

    would then allow england to have this ship type?
    would ti work for otehr units?
     
  2. Bwian's Avatar

    Bwian said:

    Default Re: new ship

    There is a quicker way .... where is says portugal, spain under ownership, this is telling the game that this unit is available to portugal and spain. Add in .england and it will make the unit avialable to england.

    The only other thing to check is in modeldb. I am not sure if these units are assigned skins by this file, but if is does....you will need to add this. I don't think it does...but I haven't looked closely enough to know without checking
    Careless Orc Costs Lives!
     
  3. alpaca's Avatar

    alpaca said:

    Default Re: new ship

    Quote Originally Posted by Bwian
    There is a quicker way .... where is says portugal, spain under ownership, this is telling the game that this unit is available to portugal and spain. Add in .england and it will make the unit avialable to england.

    The only other thing to check is in modeldb. I am not sure if these units are assigned skins by this file, but if is does....you will need to add this. I don't think it does...but I haven't looked closely enough to know without checking
    soldier peasants, so you don't have to change anything else I think.
     
Single Sign On provided by vBSSO