Log in

View Full Version : new ship



Brogie
06-06-2007, 13:23
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?

Bwian
06-11-2007, 15:23
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

alpaca
06-11-2007, 17:41
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.