第五步,叛军配置,
本步骤非必须步骤,只是针对本教程所写事件的叛军提供一个配置:
division_template = {
name = "Nihon Sekigun" #这个是模版名称,日本赤军
regiments = { #这个是模版构成,x和y分别代表横坐标和纵坐标
infantry = { x = 0 y = 0 } #这里的意思是第一列总共四行都是步兵营
infantry = { x = 0 y = 1 }
infantry = { x = 0 y = 2 }
infantry = { x = 0 y = 3 }
light_armor = { x = 1 y = 0 } #这里是第二列总共四行都是轻型装坦克营
light_armor = { x = 1 y = 1 }
light_armor = { x = 1 y = 2 }
light_armor = { x = 1 y = 3 }
cavalry = { x = 2 y = 0 } #这里是第三列总共三行都是骑兵营
cavalry = { x = 2 y = 1 }
cavalry = { x = 2 y = 2 }
}
support = { #这里是支援部队
engineer = { x = 0 y = 0 } #工兵连
recon = { x = 0 y = 1 } #侦察连
artillery = { x = 0 y = 2 } #炮兵连
field_hospital = { x = 0 y = 3 } #野战医院
signal_company = { x = 0 y = 4 } #通信连
}
priority = 0 #这个是优先级,-1代表预备役的训练水准,0代表默认,1代表精锐
}
##### OOB #####
units = {
#赤军
division = {
name = "1 Nihon Sekigun"
location = 4184 #Asahigawa
division_template = "Nihon Sekigun"
start_experience_factor = 1.0
}
division = {
name = "2 Nihon Sekigun"
location = 4184 #Asahigawa
division_template = "Nihon Sekigun"
start_experience_factor = 1.0
}
division = {
name = "3 Nihon Sekigun"
location = 4184 #Asahigawa
division_template = "Nihon Sekigun"
start_experience_factor = 1.0
}
division = {
name = "4 Nihon Sekigun"
location = 4184 #Asahigawa
division_template = "Nihon Sekigun"
start_experience_factor = 1.0
}
division = {
name = "5 Nihon Sekigun"
location = 4184 #Asahigawa
division_template = "Nihon Sekigun"
start_experience_factor = 1.0
}
division = {
name = "6 Nihon Sekigun"
location = 4184 #Asahigawa
division_template = "Nihon Sekigun"
start_experience_factor = 1.0
}
division = {
name = "7 Nihon Sekigun"
location = 4184 #Asahigawa
division_template = "Nihon Sekigun"
start_experience_factor = 1.0
}
division = {
name = "8 Nihon Sekigun"
location = 4184 #Asahigawa
division_template = "Nihon Sekigun"
start_experience_factor = 1.0
}
division = {
name = "9 Nihon Sekigun"
location = 4184 #Asahigawa
division_template = "Nihon Sekigun"
start_experience_factor = 1.0
}
division = {
name = "10 Nihon Sekigun"
location = 4184 #Asahigawa
division_template = "Nihon Sekigun"
start_experience_factor = 1.0
}
division = {
name = "11 Nihon Sekigun"
location = 4184 #Asahigawa
division_template = "Nihon Sekigun"
start_experience_factor = 1.0
}
division = {
name = "12 Nihon Sekigun"
location = 4184 #Asahigawa
division_template = "Nihon Sekigun"
start_experience_factor = 1.0
}
division = {
name = "13 Nihon Sekigun"
location = 4184 #Asahigawa
division_template = "Nihon Sekigun"
start_experience_factor = 1.0
}
division = {
name = "14 Nihon Sekigun"
location = 4184 #Asahigawa
division_template = "Nihon Sekigun"
start_experience_factor = 1.0
}
division = {
name = "15 Nihon Sekigun"
location = 4184 #Asahigawa
division_template = "Nihon Sekigun"
start_experience_factor = 1.0
}
division = {
name = "16 Nihon Sekigun"
location = 4184 #Asahigawa
division_template = "Nihon Sekigun"
start_experience_factor = 1.0
}
division = {
name = "17 Nihon Sekigun"
location = 4184 #Asahigawa
division_template = "Nihon Sekigun"
start_experience_factor = 1.0
}
division = {
name = "18 Nihon Sekigun"
location = 4184 #Asahigawa
division_template = "Nihon Sekigun"
start_experience_factor = 1.0
}
division = {
name = "19 Nihon Sekigun"
location = 4184 #Asahigawa
division_template = "Nihon Sekigun"
start_experience_factor = 1.0
}
division = {
name = "20 Nihon Sekigun"
location = 4184 #Asahigawa
division_template = "Nihon Sekigun"
start_experience_factor = 1.0
}
division = {
name = "21 Nihon Sekigun"
location = 4184 #Asahigawa
division_template = "Nihon Sekigun"
start_experience_factor = 1.0
}
division = {
name = "22 Nihon Sekigun"
location = 4184 #Asahigawa
division_template = "Nihon Sekigun"
start_experience_factor = 1.0
}
division = {
name = "23 Nihon Sekigun"
location = 4184 #Asahigawa
division_template = "Nihon Sekigun"
start_experience_factor = 1.0
}
division = {
name = "24 Nihon Sekigun"
location = 4184 #Asahigawa
division_template = "Nihon Sekigun"
start_experience_factor = 1.0
}
}
保存为txt之后放入到history/units里面如下图所示:
上图中的JAP_gyokusai是日本玉碎部队,代码如下:
division_template = {
name = "gyoku sai shide"
regiments = {
infantry = { x = 0 y = 0 }
infantry = { x = 0 y = 1 }
infantry = { x = 0 y = 2 }
infantry = { x = 0 y = 3 }
light_armor = { x = 1 y = 0 }
light_armor = { x = 1 y = 1 }
light_armor = { x = 1 y = 2 }
light_armor = { x = 1 y = 3 }
motorized = { x = 2 y = 0 }
motorized = { x = 2 y = 1 }
motorized = { x = 2 y = 2 }
}
support = {
engineer = { x = 0 y = 0 }
recon = { x = 0 y = 1 }
artillery = { x = 0 y = 2 }
field_hospital = { x = 0 y = 3 }
signal_company = { x = 0 y = 4 }
}
priority = 0
}
##### OOB #####
units = {
#玉碎部队
division = {
name = "1 gyoku sai shide"
location = 4184 #Asahigawa
division_template = "gyoku sai shide"
start_experience_factor = 0.7
}
division = {
name = "2 gyoku sai shide"
location = 4184 #Asahigawa
division_template = "gyoku sai shide"
start_experience_factor = 0.7
}
division = {
name = "3 gyoku sai shide"
location = 4184 #Asahigawa
division_template = "gyoku sai shide"
start_experience_factor = 0.7
}
division = {
name = "4 gyoku sai shide"
location = 4184 #Asahigawa
division_template = "gyoku sai shide"
start_experience_factor = 0.7
}
division = {
name = "5 gyoku sai shide"
location = 4184 #Asahigawa
division_template = "gyoku sai shide"
start_experience_factor = 0.7
}
division = {
name = "6 gyoku sai shide"
location = 4184 #Asahigawa
division_template = "gyoku sai shide"
start_experience_factor = 0.7
}
division = {
name = "7 gyoku sai shide"
location = 4184 #Asahigawa
division_template = "gyoku sai shide"
start_experience_factor = 0.7
}
division = {
name = "8 gyoku sai shide"
location = 4184 #Asahigawa
division_template = "gyoku sai shide"
start_experience_factor = 0.7
}
division = {
name = "9 gyoku sai shide"
location = 4184 #Asahigawa
division_template = "gyoku sai shide"
start_experience_factor = 0.7
}
division = {
name = "10 gyoku sai shide"
location = 4184 #Asahigawa
division_template = "gyoku sai shide"
start_experience_factor = 0.7
}
division = {
name = "11 gyoku sai shide"
location = 4184 #Asahigawa
division_template = "gyoku sai shide"
start_experience_factor = 0.7
}
division = {
name = "12 gyoku sai shide"
location = 4184 #Asahigawa
division_template = "gyoku sai shide"
start_experience_factor = 0.7
}
division = {
name = "13 gyoku sai shide"
location = 4184 #Asahigawa
division_template = "gyoku sai shide"
start_experience_factor = 0.7
}
division = {
name = "14 gyoku sai shide"
location = 4184 #Asahigawa
division_template = "gyoku sai shide"
start_experience_factor = 0.7
}
division = {
name = "15 gyoku sai shide"
location = 4184 #Asahigawa
division_template = "gyoku sai shide"
start_experience_factor = 0.7
}
division = {
name = "16 gyoku sai shide"
location = 4184 #Asahigawa
division_template = "gyoku sai shide"
start_experience_factor = 0.7
}
division = {
name = "17 gyoku sai shide"
location = 4184 #Asahigawa
division_template = "gyoku sai shide"
start_experience_factor = 0.7
}
division = {
name = "18 gyoku sai shide"
location = 4184 #Asahigawa
division_template = "gyoku sai shide"
start_experience_factor = 0.7
}
division = {
name = "19 gyoku sai shide"
location = 4184 #Asahigawa
division_template = "gyoku sai shide"
start_experience_factor = 0.7
}
division = {
name = "20 gyoku sai shide"
location = 4184 #Asahigawa
division_template = "gyoku sai shide"
start_experience_factor = 0.7
}
division = {
name = "21 gyoku sai shide"
location = 4184 #Asahigawa
division_template = "gyoku sai shide"
start_experience_factor = 0.7
}
division = {
name = "22 gyoku sai shide"
location = 4184 #Asahigawa
division_template = "gyoku sai shide"
start_experience_factor = 0.7
}
}
这样一来这个事件mod就算是完成了99%了
最后需要再创建一个.mod文件,内容如下:name="The fall of Tokyo" #这里是你的mod名称
path="mod/tokyofall/" #这里是mod路径
tags={
"Japan events" #这里是mod标签
}
picture="japansurrender.jpg" #这里是mod预览图 放入The fall of Tokyo文件夹里面
supported_version="1.1.*" #这里是支持版本
保存放在你的mod的同文件夹内如下图所示:
图中俩文件放入DocumentsParadox InteractiveHearts of Iron IVmod文件夹内
上一个: 《我的世界》虚无世界2全生物图鉴资料大全
下一个: 《辐射4》抢救误杀队友方法图文攻略
浏览量:302017-02-09
浏览量:02017-01-25
浏览量:12017-01-20
浏览量:02017-01-18
浏览量:42017-01-17
浏览量:22016-12-28
赚麻了!英伟达CEO年薪大涨60%!
《黎明杀机》开发商推出衍生游戏《What the Fog》
《寂静之地:入侵日》 6月28日北美上映
RTX5090/5080显卡即将来袭!测试功耗惊人!
《猩球崛起4》成该系列开局票房最高的一部作品
索尼PS5总销量达到5930万