- 本页关于修改兵种单位的属性。关于单位模型的修改请参考兵模。
修改单位
此内容可能已落后版本,最后更新于1.23
游戏中所有可以看见的单位都被储存在 /Europa Universalis IV/common/units/。
陆军单位
要添加一个新的历史陆军单位(例如长戟步兵,halberd_infantry),你需要创建一个单位文件在 /Europa Universalis IV/common/units/ 里面。单位设定参照以下格式:
type = <internal type> # 决定单位内部类型。(步兵,骑兵,炮兵) unit_type = <technology group> # 可选。设定该单位将会出现在某个特定科技组,省略它将会使所有科技组都可以使用这个单位。 maneuver = <int> # 打击范围,原版步兵和炮兵此处填1,骑兵填2 offensive_morale = <int> # 进攻时的士气 defensive_morale = <int> # 防御时的士气 offensive_fire = <int> # 进攻时的火力 defensive_fire = <int> # 防御时的火力 offensive_shock = <int> # 进攻时的冲击 defensive_shock = <int> # 防御时的冲击 unitsize = <int> # 可选。 可以设定一个陆军单位的人数(基准是1000人), 使一个团的人数变得更多或更少。 manpower = <float> # 可选。 可以设定一个陆军单位消耗的人力,此处1点相当于1000人力。 # 可选,当触发器满足时,显示该单位作为一个选项 trigger = { <triggers> }
陆军单位可以是这三种内部类型之一:
infantry # 步兵 cavalry # 骑兵 artillery # 炮兵
注意: 改变一个单位的大小并不会改变作战公式,这意味着人数少的军团在战斗中将会表现不佳。
海军单位
要添加一个新的历史海军单位(例如三桅帆船,barque),你需要创建一个文件在 /Europa Universalis IV/common/units/里面。 单位设定参照以下格式:
type = <internal type> # 决定单位内部类型。(重型船,轻型船,浆帆船,运输船) unit_type = <technology group> # 可选。 设定该单位将会出现在某个特定科技组,省略它将会使所有科技组都可以使用这个单位。 hull_size = <int> # 船体 base_cannons = <int> # 基础火炮 sail_speed = <int> # 航行速度 blockade = <int> # 封锁效率 trade_power = <float> # 可选。设定当这艘船在保护贸易时提供的贸易力量。 sprite_level = <int> # 可选。 船的等级(1至5) manpower = <float> # 可选。 可以设定一个海军单位消耗的水手,此处1点相当于1000水手。 # 可选,当触发器满足时,显示该单位作为一个选项 trigger = { <triggers> }
海军单位可以是这四种内部类型之一:
heavy_ship # 重型船 light_ship # 轻型船 galley # 桨帆船 transport # 运输船
内部类型
内部类型的功能是不能被修改的。例如,你不可以移除设定在 骑兵 单位上的侧翼攻击,或者将其添加到其他不同的内部类型上。
文件中的其他区域引用这些类型例如定义和修正(例如炮兵速度ARTILLERY_SPEED
或步兵作战能力 infantry_power
)都将影响所有使用上述内部类型的单位。
科技
要使单位出现,它们必须在科技中启用。添加以下代码使科技启用某个单位:
enable = <unit>
注意:陆军单位只能启用在军事科技,而海军单位只能启用在外交科技。
本地化
单位的本地化遵循以下格式:
<unit>: "单位名称在这里" <unit>DESCR: "描述在这里"
参考资料
兵种单位关键字就是文件名
adal_guerilla_warfare
adal_gunpowder_warfare
african_abyssinian_cavalry
african_abyssinian_light_cavalry
african_clubmen
african_cuirassier
african_dragoon
african_hill_warfare
african_hussar
african_mandelaku
african_mossi_horsemen
african_somali_cavalry
african_spearmen
african_swarm
african_tuareg_cavalry
african_western_franchise_warfare
afsharid_reformed
afsharid_reformed_infantry
algonkin_tomahawk_charge
ali_bey_reformed_infantry
american_western_franchise_warfare
anglofrench_line
apache_guerilla
archipelago_frigate
asian_arquebusier
asian_charge_cavalry
asian_mass_infantry
asian_musketeer
austrian_grenzer
austrian_hussar
austrian_jaeger
austrian_tercio
austrian_white_coat
aztec_gunpowder_warfare
aztec_hill_warfare
aztec_tribal_warfare
bantu_gunpowder_warfare
bantu_plains_warfare
bantu_tribal_warfare
bardiche_infantry
barque
bhonsle_cavalry
bhonsle_infantry
brig
british_hussar
british_redcoat
british_square
caravel
carrack
central_american_dragoon
central_american_horsemen
central_american_hussar
central_american_rifle_cavalry
central_american_swarm
chambered_demi_cannon
chebeck
chevauchee
chinese_dragoon
chinese_footsoldier
chinese_longspear
chinese_steppe
coehorn_mortar
cog
commanche_swarm
creek_arquebusier
culverin
druzhina_cavalry
durrani_dragoon
durrani_rifled_musketeer
durrani_swivel
dutch_maurician
early_carrack
early_frigate
east_asian_spearmen
east_mongolian_steppe
eastern_bow
eastern_carabinier
eastern_knights
eastern_medieval_infantry
eastern_militia
eastern_skirmisher
eastern_uhlan
eastindiaman
ethiopian_guerilla_warfare
ethiopian_gunpowder_warfare
ethiopian_mountain_warfare
flute
flying_battery
french_bluecoat
french_carabinier
french_caracolle
french_cuirassier
french_dragoon
french_impulse
frigate
gaelic_free_shooter
gaelic_galloglaigh
gaelic_mercenary
galiot
galleass
galleon
galley
germanized_pike
great_frigate
ha_foreign_influenced_infantry
ha_reformed_influenced_infantry
ha_reformed_xantican_warrior
ha_reformed_xoloti
ha_xantican_warrior
ha_xiuhtecuhtli_soldier
ha_xiuhtecuhtlian_infantry
ha_xoloti
halberd_infantry
han_banner
heavy_frigate
high_american_dragoon
high_american_horsemen
high_american_hussar
high_american_rifle_cavalry
high_american_swarm
houfnice
hungarian_hussar
huron_arquebusier
inca_mountain_warfare
incan_axemen
incan_guerilla_warfare
incan_slingshots
indian_archers
indian_arquebusier
indian_elephant
indian_footsoldier
indian_rifle
indian_shock_cavalry
irish_charge
iroquis_rifle_scout
iroquois_rifle_scout
italian_condotta
japanese_archer
japanese_footsoldier
japanese_samurai
large_cast_bronze_mortar
large_cast_iron_bombard
leather_cannon
maharathan_cavalry
maharathan_guerilla_warfare
mali_tribal_warfare
mamluk_archer
mamluk_cavalry_charge
mamluk_duel
mamluk_musket_charge
manchu_banner
maya_forest_warfare
maya_guerilla_warfare
maya_gunpowder_warfare
maya_tribal_warfare
merchantman
mesoamerican_spearmen
mexican_guerilla_warfare
mixed_order_infantry
mongol_bow
mongol_steppe
mongol_swarm
mongolian_bow
mughal_mansabdar
mughal_musketeer
muscovite_caracolle
muscovite_cossack
muscovite_musketeer
muscovite_soldaty
muslim_cavalry_archers
muslim_dragoon
muslim_mass_infantry
napoleonic_lancers
napoleonic_square
native_clubmen
native_indian_archer
native_indian_horsemen
native_indian_mountain_warfare
native_indian_tribal_warfare
niger_kongolese_forest_warfare
niger_kongolese_guerilla_warfare
niger_kongolese_gunpowder_warfare
niger_kongolese_tribal_warfare
north_american_dragoon
north_american_horsemen
north_american_hussar
north_american_rifle_cavalry
north_american_swarm
open_order_cavalry
ottoman_azab
ottoman_janissary
ottoman_lancer
ottoman_musellem
ottoman_new_model
ottoman_nizami_cedid
ottoman_reformed_janissary
ottoman_reformed_spahi
ottoman_sekban
ottoman_spahi
ottoman_timariot
ottoman_toprakli_dragoon
ottoman_toprakli_hit_and_run
ottoman_yaya
pedrero
persian_cavalry_charge
persian_footsoldier
persian_rifle
persian_shamshir
peruvian_guerilla_warfare
polish_hussar
polish_musketeer
polish_tercio
polish_winged_hussar
prussian_drill
prussian_frederickian
prussian_uhlan
pueblo_ambush
qizilbash_cavalry
rajput_hill_fighters
rajput_musketeer
reformed_asian_cavalry
reformed_asian_musketeer
reformed_manchu_rifle
reformed_mughal_mansabdar
reformed_mughal_musketeer
reformed_steppe_rifles
reformed_westernized_incan
royal_mortar
russian_cossack
russian_cuirassier
russian_green_coat
russian_lancer
russian_mass
russian_petrine
saxon_infantry
schwarze_reiter
scottish_highlander
shaybani
sikh_hit_and_run
sikh_rifle
sioux_dragoon
slavic_stradioti
small_cast_iron_bombard
songhai_tribal_warfare
south_american_arquebusier
south_american_dragoon
south_american_forest_warfare
south_american_gunpowder_warfare
south_american_horsemen
south_american_hussar
south_american_reformed_gunpowder_warfare
south_american_rifle_cavalry
south_american_spearmen
south_american_swarm
south_american_warfare
south_indian_musketeer
spanish_tercio
steppe_cavalry
steppe_footmen
steppe_infantry
steppe_lancers
steppe_mounted_raiders
steppe_musketeers
steppe_raiders
steppe_riders
steppe_rifles
steppe_uhlans
swedish_arme_blanche
swedish_caroline
swedish_gallop
swedish_gustavian
swiss_landsknechten
swivel_cannon
tartar_cossack
threedecker
tipu_sultan_rocket
tofongchis_musketeer
topchis_artillery
trabakul
twodecker
war_galley
wargalleon
western_longbow
western_medieval_infantry
western_medieval_knights
western_men_at_arms
westernized_adal
westernized_aztec
westernized_bantu
westernized_ethiopian
westernized_incan
westernized_mayan
westernized_niger_kongolese
westernized_south_american
westernized_zapotec
zaporoghian_cossack
zapotec_gunpowder_warfare
zapotec_plains_warfare
zapotec_tribal_warfare
zulu_chest_and_horns
模组制作
文档 | 效果指令 • 触发条件 • 修正 • 作用域 • 变量 • 本地化 • 可定制的本地化 |
脚本 | 顾问 • 时代 • 书签 • 建筑 • 宣战理由 • 殖民区域 • 新建国家 • 文化 • 决议 • 定义 • 外交行动 • 灾难 • 阶层• 事件 • 派系 • 政府 • 政府互动(1.35) • 伟大工程 • 历史 • 理念组 • 思潮 • 任务树 • 修正 • 自定义国家 • 政策 • 宗教 • 叛军 • 附属国类型 • 科技 • 贸易公司 • 商品 • 单位 • 旗舰 |
地图 | 地图 • Map Modding Quick Reference• 随机新世界 • 贸易节点 |
图形 | 3D模型 • 界面 • 贴图库 • 字体 • 粒子特效 • 着色器 • 兵模 |
音频 | 音乐 • 音效 |
其它 | 控制台指令 • 校验码 • JoroDox模组制作工具 • Mod文件结构 • Mod错误调试 • 验证器 • 运行文件 |
教程 | 添加省份 • 成就修改 • On actions • 模组制作 |