- 好友
- 5
- 在线时间
- 0 小时
- 最后登录
- 2024-11-18
见习骑士
- UID
- 3225805
- 第纳尔
- 1483
- 精华
- 0
- 互助
- 37
- 荣誉
- 0
- 贡献
- 0
- 魅力
- 256
- 注册时间
- 2021-3-14
鲜花( 48) 鸡蛋( 0)
|
本帖最后由 快乐风猫 于 2021-5-11 16:49 编辑
不加阵营 只加新文化的兵种树 玩家自立可以选择使用 供新手参考 蓝色代码是搜索项 引用黑色代码是添加项 不会用折叠 所以有些长
module_party_templates.py
搜索kingdom_6_reinforcements_c 下面添加
("icathia_a", "{!}icathia_a", 0, 0, fac_commoners, 0, [(trp_icathia_spearmen,2,4),(trp_icathia_recruits,5,10)]),
("icathia_b", "{!}icathia_b", 0, 0, fac_commoners, 0, [(trp_icathia_spearmen,2,4),(trp_icathia_hussar,3,6)]),
("icathia_c", "{!}icathia_c", 0, 0, fac_commoners, 0, [(trp_icathia_cavalry,2,4),(trp_icathia_elite_square,1,2)]),
上面的兵种是我自己新加的,请自行修改添加兵种
###################################
module_factions.py
搜索("culture_6", "{!}culture_6", 0, 0.9, [], []), 下面添加
("culture_7", "{!}culture_7", 0, 0.9, [], []),
###################################
module_scripts.py
搜索(faction_set_slot, "fac_culture_6", slot_faction_tier_5_troop, "trp_sarranid_mamluke"), 下面添加
(faction_set_slot, "fac_culture_7", slot_faction_tier_1_troop, "trp_icathia_recruits"),
(faction_set_slot, "fac_culture_7", slot_faction_tier_2_troop, "trp_icathia_spearmen"),
(faction_set_slot, "fac_culture_7", slot_faction_tier_3_troop, "trp_icathia_spearmen"),
(faction_set_slot, "fac_culture_7", slot_faction_tier_4_troop, "trp_icathia_square"),
(faction_set_slot, "fac_culture_7", slot_faction_tier_5_troop, "trp_icathia_knight"),
这是新文化的兵种 还是自行修改你自己的兵种
###################################
继续搜索(faction_set_slot, "fac_culture_6", slot_faction_town_spy_female_troop, "trp_spy_walker_2"), 下面添加
(faction_set_slot, "fac_culture_7", slot_faction_town_walker_male_troop, "trp_sarranid_townsman"),
(faction_set_slot, "fac_culture_7", slot_faction_town_walker_female_troop, "trp_sarranid_townswoman"),
(faction_set_slot, "fac_culture_7", slot_faction_village_walker_male_troop, "trp_sarranid_townsman"),
(faction_set_slot, "fac_culture_7", slot_faction_village_walker_female_troop, "trp_sarranid_townswoman"),
(faction_set_slot, "fac_culture_7", slot_faction_town_spy_male_troop, "trp_spy_walker_1"),
(faction_set_slot, "fac_culture_7", slot_faction_town_spy_female_troop, "trp_spy_walker_2"),
这是新文化的市民居民什么的
#####################################
继续搜索(faction_set_slot, ":faction_no", slot_faction_reinforcements_c, "pt_kingdom_6_reinforcements_c"), 下面添加
(else_try),
(faction_slot_eq, ":faction_no", slot_faction_culture, "fac_culture_7"),
(faction_set_slot, ":faction_no", slot_faction_deserter_troop, "trp_sarranid_deserter"),
(faction_set_slot, ":faction_no", slot_faction_guard_troop, "trp_sarranid_castle_guard"),
(faction_set_slot, ":faction_no", slot_faction_messenger_troop, "trp_sarranid_messenger"),
(faction_set_slot, ":faction_no", slot_faction_prison_guard_troop, "trp_sarranid_prison_guard"),
(faction_set_slot, ":faction_no", slot_faction_castle_guard_troop, "trp_sarranid_castle_guard"),
(faction_set_slot, ":faction_no", slot_faction_reinforcements_a, "pt_icathia_a"),
(faction_set_slot, ":faction_no", slot_faction_reinforcements_b, "pt_icathia_b"),
(faction_set_slot, ":faction_no", slot_faction_reinforcements_c, "pt_icathia_c"),
这是新文化城堡里的各种守卫 下面的abc是引用上面添加的三个新文化部队模板
###################################################
(assign, ":player_faction_culture", "fac_culture_1"),
(faction_set_slot, "fac_player_supporters_faction", slot_faction_culture, ":player_faction_culture"),
(faction_set_slot, "fac_player_faction", slot_faction_culture, ":player_faction_culture"),
这是game_start里面开局赋予的玩家阵营文化 将玩家阵营赋予了斯瓦迪亚的文化,不过并没有什么用
##########################################
想使用新文化兵种树在你想要的地方加上重新给它赋值就行了 想用哪个文化的兵种就把fac_culture_7改成哪个文化
(assign, ":player_faction_culture", "fac_culture_7"),
(faction_set_slot, "fac_player_supporters_faction", slot_faction_culture, ":player_faction_culture"),
(faction_set_slot, "fac_player_faction", slot_faction_culture, ":player_faction_culture"),
(call_script, "script_initialize_faction_troop_types"), #初始化阵营兵种类型
最关键的一步 还是module_scripts里搜索update_volunteer_troops_in_village 这是控制玩家在村子招兵的脚本
搜索之后可以看到(party_get_slot, ":center_culture", ":center_no", slot_center_culture), #这是获取当前中心的文化 。
游戏里中心阵营改变的时候文化不会改变 所以要把这句修改成
(store_faction_of_party, ":center_culture", ":center_no"), #储存中心阵营 这样你就可以在你王国的村子里招新的文化兵种了
继续下面搜索update_npc_volunteer_troops_in_village 这是控制国家NPC领主村庄招兵的脚本找到(party_get_slot, ":center_culture", ":center_no", slot_center_culture), #也是这一句 获取中心文化
同上修改为
(store_faction_of_party, ":center_culture", ":center_no"), #这里修改了后NPC或者其他领主加入你的国家就会自动使用新文化的兵种树
自立之后等村子招募刷新一次 就是你的新兵种树了, 测试没什么毛病,希望没漏掉什么。
|
评分
-
查看全部评分
|