游侠NETSHOW论坛
标题:
《中世纪II》修改出只属于自己的建筑(罗马适用)
[打印本页]
作者:
Vampire王子
时间:
2009-9-11 16:08:04
标题:
《中世纪II》修改出只属于自己的建筑(罗马适用)
由于硬盘一直吃紧,小弟最近才有机会刚下了《中世纪II》来玩。之前玩罗马全战系列的时候,就得了不修改就会死的病....... 所以中世纪II刚上手,就把这个优良传统继承了下来!
由于有前人的研究,所以站在这些巨人的肩膀上看的果然既远又清楚.......
刚拜读完123321888前辈制作的中II修改宝典,索性马上开始实际操作
由于小弟之前玩罗马就是先从建筑下手,所以这次先带来修改建筑类的小发现(我没找到类似的帖子... 如果有人发过,那恕小弟孤陋寡闻,如果真是我原创,那还请各位客官抬爱回个帖!)
相信大家都已经通过修改宝典等了解到建筑物的属性是可以添加、编辑、修改的,这个属性包括可招募兵种,城镇效果加成两大类,我们以“二级城镇”(wooden_wall city)这个建筑来看:文件位置为data下的export_descr_buildings
原始数据为:
wooden_wall city requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, }
{
convert_to 2
capability
{
recruit_pool "Conquistadores" 1 0.4 3 0 requires factions { spain, portugal, } and hidden_resource america
recruit_pool "Dismounted Conquistadores" 1 0.4 3 0 requires factions { spain, portugal, } and hidden_resource america
recruit_pool "Town Militia" 1 0.2 2 0 requires factions { england, scotland, france, hre, denmark, spain, portugal, Normans, }
recruit_pool "Italian Militia" 1 0.2 2 0 requires factions { milan, venice, papal_states, sicily, }
recruit_pool "EE Town Militia" 1 0.2 2 0 requires factions { poland, hungary, }
recruit_pool "EE Archer Militia" 1 0.2 2 0 requires factions { russia, }
recruit_pool "SE Town Militia" 1 0.2 2 0 requires factions { byzantium, }
recruit_pool "ME Town Militia" 1 0.2 2 0 requires factions { moors, turks, mongols, timurids, }
recruit_pool "ME Archer Militia" 1 0.2 2 0 requires factions { egypt, }
recruit_pool "Peasant Spearmen" 1 0.2 2 0 requires factions { Saxons, }
wall_level 1
gate_strength 1
tower_level 1
free_upkeep bonus 3
happiness_bonus bonus 1
recruitment_slots 2
}
material wooden
construction 2
cost 1200
settlement_min town
upgrades
{
stone_wall
}
修改后可以招募Lancers和加了多重城镇加成的属性代码:
wooden_wall city requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, }
{
convert_to 2
capability
{
recruit_pool "Conquistadores" 1 0.4 3 0 requires factions { spain, portugal, } and hidden_resource america
recruit_pool "Dismounted Conquistadores" 1 0.4 3 0 requires factions { spain, portugal, } and hidden_resource america
recruit_pool "Town Militia" 1 0.2 2 0 requires factions { england, scotland, france, hre, denmark, spain, portugal, Normans, }
recruit_pool "Italian Militia" 1 0.2 2 0 requires factions { milan, venice, papal_states, sicily, }
recruit_pool "EE Town Militia" 1 0.2 2 0 requires factions { poland, hungary, }
recruit_pool "EE Archer Militia" 1 0.2 2 0 requires factions { russia, }
recruit_pool "SE Town Militia" 1 0.2 2 0 requires factions { byzantium, }
recruit_pool "ME Town Militia" 1 0.2 2 0 requires factions { moors, turks, mongols, timurids, }
recruit_pool "ME Archer Militia" 1 0.2 2 0 requires factions { egypt, }
recruit_pool "Peasant Spearmen" 1 0.2 2 0 requires factions { Saxons, }
recruit_pool "Lancers" 1 0.4 3 0 requires factions { france, }
可招募Lancers骑兵(在未修改贴图前,务必注意只能修改本国兵种)
wall_level 1
gate_strength 1
tower_level 1
free_upkeep bonus 3
happiness_bonus bonus 1
happiness_bonus bonus 100 requires factions { france, }
城镇人民快乐指数提高500%(数字和实际效果为1:5)
recruitment_slots 2
}
material wooden
construction 2
cost 1200
settlement_min town
upgrades
{
stone_wall
}
大家注意
红色
字体部分为修改添加后的字符串。这是很稀松平常的修改,我今天并不是主要说明这个。
请大家注意我所添加的城镇加成属性的字符串为
happiness_bonus bonus 100 requires factions { france, }
,在这其中我在最后加入了此文件的通用规则“
requires factions { france, }
”,这样,这些属性就只有对法国适用,其余国家虽然也有这个建筑,但是他们却享受不到这么好的待遇,呵呵。
虽然“
requires factions { france, }
” 没有见过用在城镇属性加成的后面,但我觉得我不能修改得连电脑也能使用这些好糠的技能和加成,不然修改有何意义?所以我试着把可招募兵种那里的适用规则转移到了城镇加成上来了,没想到确实如我所料。我把这种情况称为“文件语言的自适应性”(没文化自己取的怪名字,见笑了)。这种情况会发生在几乎所有的中II和罗马的TXT可编辑文件里,大家可以自己发掘,我只是给个例子。
相信,有了这条规则,大家在玩帝国会战之前就能修改自己需要的属性给自己将要玩的国家,并且独享这些优势。这样大家就能仗着自己独有的优势,在全战的天下里所向披靡了。
在此再次感谢123321888,jyh4nt这两位前辈带来的中II修改宝典,谢谢
[
本帖最后由 Vampire王子 于 2009-9-11 16:19 编辑
]
欢迎光临 游侠NETSHOW论坛 (https://game.ali213.net/)
Powered by Discuz! X2