PDA

View Full Version : how to give a voice to new unit



doxofra
12-24-2006, 20:24
i created some new units.
but they dont have any voice
so i found some txt files but cant found relected thing.
how can i give them a voice?

like when i clicking 'Feudal knigts', they should say 'knights!'

mor dan
12-24-2006, 21:29
show me your full unit entry from the unit.txt file

doxofra
12-24-2006, 22:30
type Feudal Knights_ug1
dictionary Feudal_Knights_ug1 ; fuedal knights
category cavalry
class heavy
voice_type Heavy
accent English
banner faction main_cavalry
banner holy crusade_cavalry
soldier Feudal_Knights, 32, 0, 1
mount barded horse
mount_effect elephant -4, camel -4
attributes sea_faring, hide_forest, hardy, can_withdraw, can_formed_charge, knight
formation 2, 4.4, 3, 6, 2, square, wedge
stat_health 1, 0
stat_pri 10, 6, no, 0, 0, melee, melee_blade, piercing, spear, 25, 1
;stat_pri_ex 0, 0, 0
stat_pri_attr no
stat_sec 11, 4, no, 0, 0, melee, melee_blade, piercing, sword, 25, 1
;stat_sec_ex 0, 0, 0
stat_sec_attr no
stat_pri_armour 9, 5, 4, metal
;stat_armour_ex 7, 8, 0, 0, 5, 4, 4, metal
stat_sec_armour 0, 0, flesh
stat_heat 5
stat_ground 0, -2, -4, 0
stat_mental 9, impetuous, trained
stat_charge_dist 45
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 930, 250, 120, 95, 930, 4, 180
armour_ug_levels 3
armour_ug_models Feudal_Knights_ug1
ownership england, scotland, france, hre, denmark, spain, portugal, milan, venice, papal_states, hungary, slave
era 0 england, france, hre, denmark, spain, portugal, milan, venice, hungary
era 1 scotland
;unit_info 10, 0, 16



heres sample one. i add accent English this, but still they dont:sweatdrop:

mor dan
12-24-2006, 22:45
have you tried it without the accent?

doxofra
12-24-2006, 23:13
yes. i've did it
shall you copy that to your UNIT file and try an experiment?

mor dan
12-24-2006, 23:37
not from the PC i'm on. it doesn't have the game on it, just the files (i mod, take it home, then test it out).

ok one main thing i am noticing is "type Feudal Knights_ug1"

i'm curious about that underscore since no other unit type has that _ in its "type" field. can you try it with the name Feudal Knights Ug1, and make all the necessary adjustmens?

doxofra
12-25-2006, 21:55
it didnt work. they dont say anything who i added.
for example
i make gothicknights to another factions but only 'hre' can here voice
only differerent thing is ownership. i add france, england,,etc
of course i've edied battlemodel file. it worked cleary except voice
i dont know what file give them to voice.
i dont think unitfile do that.

sorry for fool english:whip:

doxofra
12-28-2006, 05:09
Sorry but anyone know about this?